| 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 <utility> | 5 #include <utility> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
| 14 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "content/browser/appcache/appcache_database.h" | 15 #include "content/browser/appcache/appcache_database.h" |
| 16 #include "content/browser/appcache/appcache_storage_impl.h" | 16 #include "content/browser/appcache/appcache_storage_impl.h" |
| 17 #include "content/browser/appcache/chrome_appcache_service.h" | 17 #include "content/browser/appcache/chrome_appcache_service.h" |
| 18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
| 19 #include "content/public/browser/resource_context.h" | 19 #include "content/public/browser/resource_context.h" |
| 20 #include "content/public/test/mock_special_storage_policy.h" | |
| 21 #include "content/public/test/test_browser_context.h" | 20 #include "content/public/test/test_browser_context.h" |
| 22 #include "content/public/test/test_browser_thread_bundle.h" | 21 #include "content/public/test/test_browser_thread_bundle.h" |
| 23 #include "content/test/appcache_test_helper.h" | 22 #include "content/test/appcache_test_helper.h" |
| 24 #include "net/url_request/url_request_context_getter.h" | 23 #include "net/url_request/url_request_context_getter.h" |
| 24 #include "storage/browser/test/mock_special_storage_policy.h" |
| 25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
| 26 | 26 |
| 27 #include <set> | 27 #include <set> |
| 28 | 28 |
| 29 namespace content { | 29 namespace content { |
| 30 namespace { | 30 namespace { |
| 31 const base::FilePath::CharType kTestingAppCacheDirname[] = | 31 const base::FilePath::CharType kTestingAppCacheDirname[] = |
| 32 FILE_PATH_LITERAL("Application Cache"); | 32 FILE_PATH_LITERAL("Application Cache"); |
| 33 | 33 |
| 34 // Examples of a protected and an unprotected origin, to be used througout the | 34 // Examples of a protected and an unprotected origin, to be used througout the |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 EXPECT_TRUE(origins.find(kNormalManifestURL.GetOrigin()) != origins.end()); | 206 EXPECT_TRUE(origins.find(kNormalManifestURL.GetOrigin()) != origins.end()); |
| 207 EXPECT_TRUE(origins.find(kSessionOnlyManifestURL.GetOrigin()) != | 207 EXPECT_TRUE(origins.find(kSessionOnlyManifestURL.GetOrigin()) != |
| 208 origins.end()); | 208 origins.end()); |
| 209 | 209 |
| 210 // Delete and let cleanup tasks run prior to returning. | 210 // Delete and let cleanup tasks run prior to returning. |
| 211 appcache_service = NULL; | 211 appcache_service = NULL; |
| 212 base::RunLoop().RunUntilIdle(); | 212 base::RunLoop().RunUntilIdle(); |
| 213 } | 213 } |
| 214 | 214 |
| 215 } // namespace content | 215 } // namespace content |
| OLD | NEW |