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

Unified Diff: net/http/mock_http_cache.cc

Issue 2005753004: Record the number of freshness periods since a stale HttpCache entry was last used (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 4 years, 7 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 | « net/http/http_cache_transaction.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/mock_http_cache.cc
diff --git a/net/http/mock_http_cache.cc b/net/http/mock_http_cache.cc
index 3f8cce4bc0a2cde211978c9055017ec976ed5067..682aff529ada0053bdc0e46d7fea8e7c0f18d40e 100644
--- a/net/http/mock_http_cache.cc
+++ b/net/http/mock_http_cache.cc
@@ -83,11 +83,11 @@ std::string MockDiskEntry::GetKey() const {
}
base::Time MockDiskEntry::GetLastUsed() const {
- return base::Time::FromInternalValue(0);
+ return base::Time::Now();
}
base::Time MockDiskEntry::GetLastModified() const {
- return base::Time::FromInternalValue(0);
+ return base::Time::Now();
}
int32_t MockDiskEntry::GetDataSize(int index) const {
« no previous file with comments | « net/http/http_cache_transaction.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698