| 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> |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 return backend_->DoomEntriesBetween(initial_time, end_time, callback); | 101 return backend_->DoomEntriesBetween(initial_time, end_time, callback); |
| 102 } | 102 } |
| 103 int DoomEntriesSince(base::Time initial_time, | 103 int DoomEntriesSince(base::Time initial_time, |
| 104 const CompletionCallback& callback) override { | 104 const CompletionCallback& callback) override { |
| 105 return backend_->DoomEntriesSince(initial_time, callback); | 105 return backend_->DoomEntriesSince(initial_time, callback); |
| 106 } | 106 } |
| 107 int CalculateSizeOfAllEntries( | 107 int CalculateSizeOfAllEntries( |
| 108 const CompletionCallback& callback) override { | 108 const CompletionCallback& callback) override { |
| 109 return backend_->CalculateSizeOfAllEntries(callback); | 109 return backend_->CalculateSizeOfAllEntries(callback); |
| 110 } | 110 } |
| 111 int CalculateSizeOfEntriesBetween( |
| 112 base::Time initial_time, |
| 113 base::Time end_time, |
| 114 const CompletionCallback& callback) override { |
| 115 return backend_->CalculateSizeOfEntriesBetween(initial_time, end_time, |
| 116 callback); |
| 117 } |
| 111 std::unique_ptr<Iterator> CreateIterator() override { | 118 std::unique_ptr<Iterator> CreateIterator() override { |
| 112 return backend_->CreateIterator(); | 119 return backend_->CreateIterator(); |
| 113 } | 120 } |
| 114 void GetStats(base::StringPairs* stats) override { | 121 void GetStats(base::StringPairs* stats) override { |
| 115 return backend_->GetStats(stats); | 122 return backend_->GetStats(stats); |
| 116 } | 123 } |
| 117 void OnExternalCacheHit(const std::string& key) override { | 124 void OnExternalCacheHit(const std::string& key) override { |
| 118 return backend_->OnExternalCacheHit(key); | 125 return backend_->OnExternalCacheHit(key); |
| 119 } | 126 } |
| 120 | 127 |
| (...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1646 EXPECT_EQ(1, sequence_out); | 1653 EXPECT_EQ(1, sequence_out); |
| 1647 close_loop2->Run(); | 1654 close_loop2->Run(); |
| 1648 EXPECT_EQ(2, sequence_out); | 1655 EXPECT_EQ(2, sequence_out); |
| 1649 } | 1656 } |
| 1650 | 1657 |
| 1651 INSTANTIATE_TEST_CASE_P(CacheStorageCacheTest, | 1658 INSTANTIATE_TEST_CASE_P(CacheStorageCacheTest, |
| 1652 CacheStorageCacheTestP, | 1659 CacheStorageCacheTestP, |
| 1653 ::testing::Values(false, true)); | 1660 ::testing::Values(false, true)); |
| 1654 | 1661 |
| 1655 } // namespace content | 1662 } // namespace content |
| OLD | NEW |