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 "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 } | 84 } |
85 int DoomEntriesBetween(base::Time initial_time, | 85 int DoomEntriesBetween(base::Time initial_time, |
86 base::Time end_time, | 86 base::Time end_time, |
87 const CompletionCallback& callback) override { | 87 const CompletionCallback& callback) override { |
88 return backend_->DoomEntriesBetween(initial_time, end_time, callback); | 88 return backend_->DoomEntriesBetween(initial_time, end_time, callback); |
89 } | 89 } |
90 int DoomEntriesSince(base::Time initial_time, | 90 int DoomEntriesSince(base::Time initial_time, |
91 const CompletionCallback& callback) override { | 91 const CompletionCallback& callback) override { |
92 return backend_->DoomEntriesSince(initial_time, callback); | 92 return backend_->DoomEntriesSince(initial_time, callback); |
93 } | 93 } |
| 94 int CalculateSizeOfEntriesBetween( |
| 95 base::Time initial_time, |
| 96 base::Time end_time, |
| 97 const CompletionCallback& callback) override { |
| 98 return backend_->CalculateSizeOfEntriesBetween( |
| 99 initial_time, end_time, callback); |
| 100 } |
94 scoped_ptr<Iterator> CreateIterator() override { | 101 scoped_ptr<Iterator> CreateIterator() override { |
95 return backend_->CreateIterator(); | 102 return backend_->CreateIterator(); |
96 } | 103 } |
97 void GetStats(base::StringPairs* stats) override { | 104 void GetStats(base::StringPairs* stats) override { |
98 return backend_->GetStats(stats); | 105 return backend_->GetStats(stats); |
99 } | 106 } |
100 void OnExternalCacheHit(const std::string& key) override { | 107 void OnExternalCacheHit(const std::string& key) override { |
101 return backend_->OnExternalCacheHit(key); | 108 return backend_->OnExternalCacheHit(key); |
102 } | 109 } |
103 | 110 |
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1006 EXPECT_EQ(1, sequence_out); | 1013 EXPECT_EQ(1, sequence_out); |
1007 close_loop2->Run(); | 1014 close_loop2->Run(); |
1008 EXPECT_EQ(2, sequence_out); | 1015 EXPECT_EQ(2, sequence_out); |
1009 } | 1016 } |
1010 | 1017 |
1011 INSTANTIATE_TEST_CASE_P(CacheStorageCacheTest, | 1018 INSTANTIATE_TEST_CASE_P(CacheStorageCacheTest, |
1012 CacheStorageCacheTestP, | 1019 CacheStorageCacheTestP, |
1013 ::testing::Values(false, true)); | 1020 ::testing::Values(false, true)); |
1014 | 1021 |
1015 } // namespace content | 1022 } // namespace content |
OLD | NEW |