| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/browser/cache_storage/cache_storage_manager.h" | 5 #include "content/browser/cache_storage/cache_storage_manager.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "base/sha1.h" | 22 #include "base/sha1.h" |
| 23 #include "base/stl_util.h" | 23 #include "base/stl_util.h" |
| 24 #include "base/strings/string_number_conversions.h" | 24 #include "base/strings/string_number_conversions.h" |
| 25 #include "base/threading/thread_task_runner_handle.h" | 25 #include "base/threading/thread_task_runner_handle.h" |
| 26 #include "content/browser/blob_storage/chrome_blob_storage_context.h" | 26 #include "content/browser/blob_storage/chrome_blob_storage_context.h" |
| 27 #include "content/browser/cache_storage/cache_storage.h" | 27 #include "content/browser/cache_storage/cache_storage.h" |
| 28 #include "content/browser/cache_storage/cache_storage.pb.h" | 28 #include "content/browser/cache_storage/cache_storage.pb.h" |
| 29 #include "content/browser/cache_storage/cache_storage_cache_handle.h" | 29 #include "content/browser/cache_storage/cache_storage_cache_handle.h" |
| 30 #include "content/browser/cache_storage/cache_storage_index.h" | 30 #include "content/browser/cache_storage/cache_storage_index.h" |
| 31 #include "content/browser/cache_storage/cache_storage_quota_client.h" | 31 #include "content/browser/cache_storage/cache_storage_quota_client.h" |
| 32 #include "content/browser/quota/mock_quota_manager_proxy.h" | |
| 33 #include "content/public/browser/browser_thread.h" | 32 #include "content/public/browser/browser_thread.h" |
| 34 #include "content/public/browser/cache_storage_usage_info.h" | 33 #include "content/public/browser/cache_storage_usage_info.h" |
| 35 #include "content/public/browser/storage_partition.h" | 34 #include "content/public/browser/storage_partition.h" |
| 36 #include "content/public/test/test_browser_context.h" | 35 #include "content/public/test/test_browser_context.h" |
| 37 #include "content/public/test/test_browser_thread_bundle.h" | 36 #include "content/public/test/test_browser_thread_bundle.h" |
| 38 #include "net/url_request/url_request_context.h" | 37 #include "net/url_request/url_request_context.h" |
| 39 #include "net/url_request/url_request_context_getter.h" | 38 #include "net/url_request/url_request_context_getter.h" |
| 40 #include "net/url_request/url_request_job_factory_impl.h" | 39 #include "net/url_request/url_request_job_factory_impl.h" |
| 41 #include "storage/browser/blob/blob_data_builder.h" | 40 #include "storage/browser/blob/blob_data_builder.h" |
| 42 #include "storage/browser/blob/blob_data_handle.h" | 41 #include "storage/browser/blob/blob_data_handle.h" |
| 43 #include "storage/browser/blob/blob_storage_context.h" | 42 #include "storage/browser/blob/blob_storage_context.h" |
| 44 #include "storage/browser/blob/blob_url_request_job_factory.h" | 43 #include "storage/browser/blob/blob_url_request_job_factory.h" |
| 45 #include "storage/browser/quota/quota_manager_proxy.h" | 44 #include "storage/browser/quota/quota_manager_proxy.h" |
| 45 #include "storage/browser/test/mock_quota_manager_proxy.h" |
| 46 #include "storage/browser/test/mock_special_storage_policy.h" | 46 #include "storage/browser/test/mock_special_storage_policy.h" |
| 47 #include "testing/gtest/include/gtest/gtest.h" | 47 #include "testing/gtest/include/gtest/gtest.h" |
| 48 | 48 |
| 49 namespace content { | 49 namespace content { |
| 50 | 50 |
| 51 namespace { | 51 namespace { |
| 52 | 52 |
| 53 bool IsIndexFileCurrent(const base::FilePath& cache_dir) { | 53 bool IsIndexFileCurrent(const base::FilePath& cache_dir) { |
| 54 base::File::Info info; | 54 base::File::Info info; |
| 55 const base::FilePath index_path = | 55 const base::FilePath index_path = |
| (...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1502 | 1502 |
| 1503 INSTANTIATE_TEST_CASE_P(CacheStorageManagerTests, | 1503 INSTANTIATE_TEST_CASE_P(CacheStorageManagerTests, |
| 1504 CacheStorageManagerTestP, | 1504 CacheStorageManagerTestP, |
| 1505 ::testing::Values(false, true)); | 1505 ::testing::Values(false, true)); |
| 1506 | 1506 |
| 1507 INSTANTIATE_TEST_CASE_P(CacheStorageQuotaClientTests, | 1507 INSTANTIATE_TEST_CASE_P(CacheStorageQuotaClientTests, |
| 1508 CacheStorageQuotaClientTestP, | 1508 CacheStorageQuotaClientTestP, |
| 1509 ::testing::Values(false, true)); | 1509 ::testing::Values(false, true)); |
| 1510 | 1510 |
| 1511 } // namespace content | 1511 } // namespace content |
| OLD | NEW |