| 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/files/file_util.h" | 6 #include "base/files/file_util.h" |
| 7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 12 #include "content/browser/appcache/appcache_database.h" | 12 #include "content/browser/appcache/appcache_database.h" |
| 13 #include "content/browser/appcache/appcache_storage_impl.h" | 13 #include "content/browser/appcache/appcache_storage_impl.h" |
| 14 #include "content/browser/appcache/chrome_appcache_service.h" | 14 #include "content/browser/appcache/chrome_appcache_service.h" |
| 15 #include "content/browser/browser_thread_impl.h" | 15 #include "content/browser/browser_thread_impl.h" |
| 16 #include "content/public/browser/resource_context.h" | 16 #include "content/public/browser/resource_context.h" |
| 17 #include "content/public/test/mock_special_storage_policy.h" | |
| 18 #include "content/public/test/test_browser_context.h" | 17 #include "content/public/test/test_browser_context.h" |
| 19 #include "content/test/appcache_test_helper.h" | 18 #include "content/test/appcache_test_helper.h" |
| 20 #include "net/url_request/url_request_context_getter.h" | 19 #include "net/url_request/url_request_context_getter.h" |
| 20 #include "storage/browser/test/mock_special_storage_policy.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 22 | 22 |
| 23 #include <set> | 23 #include <set> |
| 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 |
| 30 // Examples of a protected and an unprotected origin, to be used througout the | 30 // Examples of a protected and an unprotected origin, to be used througout the |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 EXPECT_TRUE(origins.find(kNormalManifestURL.GetOrigin()) != origins.end()); | 209 EXPECT_TRUE(origins.find(kNormalManifestURL.GetOrigin()) != origins.end()); |
| 210 EXPECT_TRUE(origins.find(kSessionOnlyManifestURL.GetOrigin()) != | 210 EXPECT_TRUE(origins.find(kSessionOnlyManifestURL.GetOrigin()) != |
| 211 origins.end()); | 211 origins.end()); |
| 212 | 212 |
| 213 // Delete and let cleanup tasks run prior to returning. | 213 // Delete and let cleanup tasks run prior to returning. |
| 214 appcache_service = NULL; | 214 appcache_service = NULL; |
| 215 base::RunLoop().RunUntilIdle(); | 215 base::RunLoop().RunUntilIdle(); |
| 216 } | 216 } |
| 217 | 217 |
| 218 } // namespace content | 218 } // namespace content |
| OLD | NEW |