Index: net/http/mock_http_cache.cc |
diff --git a/net/http/mock_http_cache.cc b/net/http/mock_http_cache.cc |
index d939a3d8f9692f9f6c8eeddeda0e97dd1ccc38ca..5b946cac5337babb6774e449e0be3e0721878560 100644 |
--- a/net/http/mock_http_cache.cc |
+++ b/net/http/mock_http_cache.cc |
@@ -495,6 +495,11 @@ void MockDiskCache::GetStats(base::StringPairs* stats) { |
void MockDiskCache::OnExternalCacheHit(const std::string& key) { |
} |
+void MockDiskCache::ResetCounts() { |
+ open_count_ = 0; |
+ create_count_ = 0; |
+} |
+ |
void MockDiskCache::ReleaseAll() { |
EntryMap::iterator it = entries_.begin(); |
for (; it != entries_.end(); ++it) |
@@ -551,6 +556,11 @@ void MockHttpCache::FailConditionalizations() { |
http_cache_.FailConditionalizationForTest(); |
} |
+void MockHttpCache::ResetCounts() { |
+ disk_cache()->ResetCounts(); |
+ network_layer()->ResetTransactionCount(); |
+} |
+ |
bool MockHttpCache::ReadResponseInfo(disk_cache::Entry* disk_entry, |
HttpResponseInfo* response_info, |
bool* response_truncated) { |