Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: content/browser/cache_storage/cache_storage_manager_unittest.cc

Issue 2815743002: Move a couple of blob tests next to the files they cover. (Closed)
Patch Set: Fix gn check, take 2. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 15 matching lines...) Expand all
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" 32 #include "content/browser/quota/mock_quota_manager_proxy.h"
33 #include "content/public/browser/browser_thread.h" 33 #include "content/public/browser/browser_thread.h"
34 #include "content/public/browser/cache_storage_usage_info.h" 34 #include "content/public/browser/cache_storage_usage_info.h"
35 #include "content/public/browser/storage_partition.h" 35 #include "content/public/browser/storage_partition.h"
36 #include "content/public/test/mock_special_storage_policy.h"
37 #include "content/public/test/test_browser_context.h" 36 #include "content/public/test/test_browser_context.h"
38 #include "content/public/test/test_browser_thread_bundle.h" 37 #include "content/public/test/test_browser_thread_bundle.h"
39 #include "net/url_request/url_request_context.h" 38 #include "net/url_request/url_request_context.h"
40 #include "net/url_request/url_request_context_getter.h" 39 #include "net/url_request/url_request_context_getter.h"
41 #include "net/url_request/url_request_job_factory_impl.h" 40 #include "net/url_request/url_request_job_factory_impl.h"
42 #include "storage/browser/blob/blob_data_builder.h" 41 #include "storage/browser/blob/blob_data_builder.h"
43 #include "storage/browser/blob/blob_data_handle.h" 42 #include "storage/browser/blob/blob_data_handle.h"
44 #include "storage/browser/blob/blob_storage_context.h" 43 #include "storage/browser/blob/blob_storage_context.h"
45 #include "storage/browser/blob/blob_url_request_job_factory.h" 44 #include "storage/browser/blob/blob_url_request_job_factory.h"
46 #include "storage/browser/quota/quota_manager_proxy.h" 45 #include "storage/browser/quota/quota_manager_proxy.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 =
56 cache_dir.AppendASCII(CacheStorage::kIndexFileName); 56 cache_dir.AppendASCII(CacheStorage::kIndexFileName);
(...skipping 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « content/browser/cache_storage/cache_storage_cache_unittest.cc ('k') | content/browser/database_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698