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_cache.h" | 5 #include "content/browser/cache_storage/cache_storage_cache.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/files/scoped_temp_dir.h" | 14 #include "base/files/scoped_temp_dir.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/ptr_util.h" | 16 #include "base/memory/ptr_util.h" |
17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
18 #include "base/run_loop.h" | 18 #include "base/run_loop.h" |
19 #include "base/strings/string_split.h" | 19 #include "base/strings/string_split.h" |
20 #include "base/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
21 #include "content/browser/fileapi/chrome_blob_storage_context.h" | 21 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
22 #include "content/browser/fileapi/mock_url_request_delegate.h" | 22 #include "content/browser/fileapi/mock_url_request_delegate.h" |
23 #include "content/browser/quota/mock_quota_manager_proxy.h" | 23 #include "content/browser/quota/mock_quota_manager_proxy.h" |
24 #include "content/common/cache_storage/cache_storage_types.h" | 24 #include "content/common/cache_storage/cache_storage_types.h" |
25 #include "content/common/service_worker/service_worker_types.h" | 25 #include "content/common/service_worker/service_worker_types.h" |
26 #include "content/public/browser/browser_thread.h" | 26 #include "content/public/browser/browser_thread.h" |
27 #include "content/public/browser/storage_partition.h" | 27 #include "content/public/browser/storage_partition.h" |
28 #include "content/public/common/referrer.h" | 28 #include "content/public/common/referrer.h" |
29 #include "content/public/test/mock_special_storage_policy.h" | 29 #include "content/public/test/mock_special_storage_policy.h" |
30 #include "content/public/test/test_browser_context.h" | 30 #include "content/public/test/test_browser_context.h" |
(...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1399 EXPECT_EQ(1, sequence_out); | 1399 EXPECT_EQ(1, sequence_out); |
1400 close_loop2->Run(); | 1400 close_loop2->Run(); |
1401 EXPECT_EQ(2, sequence_out); | 1401 EXPECT_EQ(2, sequence_out); |
1402 } | 1402 } |
1403 | 1403 |
1404 INSTANTIATE_TEST_CASE_P(CacheStorageCacheTest, | 1404 INSTANTIATE_TEST_CASE_P(CacheStorageCacheTest, |
1405 CacheStorageCacheTestP, | 1405 CacheStorageCacheTestP, |
1406 ::testing::Values(false, true)); | 1406 ::testing::Values(false, true)); |
1407 | 1407 |
1408 } // namespace content | 1408 } // namespace content |
OLD | NEW |