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

Unified Diff: content/browser/cache_storage/cache_storage_cache_unittest.cc

Issue 2626173003: Calculate the size of all cache entries between two points in time. (Closed)
Patch Set: fix unit_tests compilation Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/disk_cache/backend_unittest.cc » ('j') | net/disk_cache/blockfile/backend_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/cache_storage/cache_storage_cache_unittest.cc
diff --git a/content/browser/cache_storage/cache_storage_cache_unittest.cc b/content/browser/cache_storage/cache_storage_cache_unittest.cc
index fd27f866ad1259d6f2fc99d5cd59cead9fd9bf61..2624e7629e839f40a397ab10c3b1a71f667ff9a1 100644
--- a/content/browser/cache_storage/cache_storage_cache_unittest.cc
+++ b/content/browser/cache_storage/cache_storage_cache_unittest.cc
@@ -108,6 +108,13 @@ class DelayableBackend : public disk_cache::Backend {
const CompletionCallback& callback) override {
return backend_->CalculateSizeOfAllEntries(callback);
}
+ int CalculateSizeOfEntriesBetween(
+ base::Time initial_time,
+ base::Time end_time,
+ const CompletionCallback& callback) override {
+ return backend_->CalculateSizeOfEntriesBetween(initial_time, end_time,
+ callback);
+ }
std::unique_ptr<Iterator> CreateIterator() override {
return backend_->CreateIterator();
}
« no previous file with comments | « no previous file | net/disk_cache/backend_unittest.cc » ('j') | net/disk_cache/blockfile/backend_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698