OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "content/browser/appcache/chrome_appcache_service.h" | 10 #include "content/browser/appcache/chrome_appcache_service.h" |
11 #include "content/browser/browser_thread_impl.h" | 11 #include "content/browser/browser_thread_impl.h" |
12 #include "content/public/browser/resource_context.h" | 12 #include "content/public/browser/resource_context.h" |
13 #include "content/public/test/test_browser_context.h" | 13 #include "content/public/test/test_browser_context.h" |
14 #include "net/url_request/url_request_context_getter.h" | 14 #include "net/url_request/url_request_context_getter.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "webkit/appcache/appcache_database.h" | 16 #include "webkit/appcache/appcache_database.h" |
17 #include "webkit/appcache/appcache_storage_impl.h" | 17 #include "webkit/appcache/appcache_storage_impl.h" |
18 #include "webkit/appcache/appcache_test_helper.h" | 18 #include "webkit/appcache/appcache_test_helper.h" |
19 #include "webkit/quota/mock_special_storage_policy.h" | 19 #include "webkit/browser/quota/mock_special_storage_policy.h" |
20 | 20 |
21 #include <set> | 21 #include <set> |
22 | 22 |
23 using appcache::AppCacheTestHelper; | 23 using appcache::AppCacheTestHelper; |
24 | 24 |
25 namespace content { | 25 namespace content { |
26 namespace { | 26 namespace { |
27 const base::FilePath::CharType kTestingAppCacheDirname[] = | 27 const base::FilePath::CharType kTestingAppCacheDirname[] = |
28 FILE_PATH_LITERAL("Application Cache"); | 28 FILE_PATH_LITERAL("Application Cache"); |
29 | 29 |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 EXPECT_TRUE(origins.find(kNormalManifestURL.GetOrigin()) != origins.end()); | 215 EXPECT_TRUE(origins.find(kNormalManifestURL.GetOrigin()) != origins.end()); |
216 EXPECT_TRUE(origins.find(kSessionOnlyManifestURL.GetOrigin()) != | 216 EXPECT_TRUE(origins.find(kSessionOnlyManifestURL.GetOrigin()) != |
217 origins.end()); | 217 origins.end()); |
218 | 218 |
219 // Delete and let cleanup tasks run prior to returning. | 219 // Delete and let cleanup tasks run prior to returning. |
220 appcache_service = NULL; | 220 appcache_service = NULL; |
221 message_loop_.RunUntilIdle(); | 221 message_loop_.RunUntilIdle(); |
222 } | 222 } |
223 | 223 |
224 } // namespace content | 224 } // namespace content |
OLD | NEW |