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

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

Issue 2368913003: Populate storage_unittests target. (Closed)
Patch Set: Removed unnecessary include from storage/browser/blob/blob_storage_context_unittest.cc. Created 4 years, 2 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_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/threading/thread_task_runner_handle.h" 20 #include "base/threading/thread_task_runner_handle.h"
21 #include "content/browser/blob_storage/chrome_blob_storage_context.h" 21 #include "content/browser/blob_storage/chrome_blob_storage_context.h"
22 #include "content/browser/cache_storage/cache_storage_cache_handle.h" 22 #include "content/browser/cache_storage/cache_storage_cache_handle.h"
23 #include "content/browser/fileapi/mock_url_request_delegate.h"
24 #include "content/browser/quota/mock_quota_manager_proxy.h"
25 #include "content/common/cache_storage/cache_storage_types.h" 23 #include "content/common/cache_storage/cache_storage_types.h"
26 #include "content/common/service_worker/service_worker_types.h" 24 #include "content/common/service_worker/service_worker_types.h"
27 #include "content/public/browser/browser_thread.h" 25 #include "content/public/browser/browser_thread.h"
28 #include "content/public/browser/storage_partition.h" 26 #include "content/public/browser/storage_partition.h"
29 #include "content/public/common/referrer.h" 27 #include "content/public/common/referrer.h"
30 #include "content/public/test/mock_special_storage_policy.h"
31 #include "content/public/test/test_browser_context.h" 28 #include "content/public/test/test_browser_context.h"
32 #include "content/public/test/test_browser_thread_bundle.h" 29 #include "content/public/test/test_browser_thread_bundle.h"
33 #include "net/base/test_completion_callback.h" 30 #include "net/base/test_completion_callback.h"
34 #include "net/url_request/url_request_context.h" 31 #include "net/url_request/url_request_context.h"
35 #include "net/url_request/url_request_context_getter.h" 32 #include "net/url_request/url_request_context_getter.h"
36 #include "net/url_request/url_request_job_factory_impl.h" 33 #include "net/url_request/url_request_job_factory_impl.h"
37 #include "storage/browser/blob/blob_data_builder.h" 34 #include "storage/browser/blob/blob_data_builder.h"
38 #include "storage/browser/blob/blob_data_handle.h" 35 #include "storage/browser/blob/blob_data_handle.h"
39 #include "storage/browser/blob/blob_data_snapshot.h" 36 #include "storage/browser/blob/blob_data_snapshot.h"
40 #include "storage/browser/blob/blob_storage_context.h" 37 #include "storage/browser/blob/blob_storage_context.h"
41 #include "storage/browser/blob/blob_url_request_job_factory.h" 38 #include "storage/browser/blob/blob_url_request_job_factory.h"
42 #include "storage/browser/quota/quota_manager_proxy.h" 39 #include "storage/browser/quota/quota_manager_proxy.h"
40 #include "storage/browser/test/mock_quota_manager_proxy.h"
41 #include "storage/browser/test/mock_special_storage_policy.h"
42 #include "storage/browser/test/mock_url_request_delegate.h"
43 #include "testing/gtest/include/gtest/gtest.h" 43 #include "testing/gtest/include/gtest/gtest.h"
44 44
45 namespace content { 45 namespace content {
46 46
47 namespace { 47 namespace {
48 const char kTestData[] = "Hello World"; 48 const char kTestData[] = "Hello World";
49 const char kOrigin[] = "http://example.com"; 49 const char kOrigin[] = "http://example.com";
50 const char kCacheName[] = "test_cache"; 50 const char kCacheName[] = "test_cache";
51 51
52 // Returns a BlobProtocolHandler that uses |blob_storage_context|. Caller owns 52 // Returns a BlobProtocolHandler that uses |blob_storage_context|. Caller owns
(...skipping 1570 matching lines...) Expand 10 before | Expand all | Expand 10 after
1623 EXPECT_EQ(1, sequence_out); 1623 EXPECT_EQ(1, sequence_out);
1624 close_loop2->Run(); 1624 close_loop2->Run();
1625 EXPECT_EQ(2, sequence_out); 1625 EXPECT_EQ(2, sequence_out);
1626 } 1626 }
1627 1627
1628 INSTANTIATE_TEST_CASE_P(CacheStorageCacheTest, 1628 INSTANTIATE_TEST_CASE_P(CacheStorageCacheTest,
1629 CacheStorageCacheTestP, 1629 CacheStorageCacheTestP,
1630 ::testing::Values(false, true)); 1630 ::testing::Values(false, true));
1631 1631
1632 } // namespace content 1632 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698