Index: net/http/mock_http_cache.cc |
diff --git a/net/http/mock_http_cache.cc b/net/http/mock_http_cache.cc |
index 5363d3af29dd0067ce58b9cd9489b40f2b545b16..514cc4208f82c79b3cafb876ef027716fd69b09f 100644 |
--- a/net/http/mock_http_cache.cc |
+++ b/net/http/mock_http_cache.cc |
@@ -370,10 +370,13 @@ bool MockDiskEntry::ignore_callbacks_ = false; |
//----------------------------------------------------------------------------- |
MockDiskCache::MockDiskCache() |
- : open_count_(0), create_count_(0), fail_requests_(false), |
- soft_failures_(false), double_create_check_(true), |
- fail_sparse_requests_(false) { |
-} |
+ : open_count_(0), |
+ create_count_(0), |
+ doomed_count_(0), |
+ fail_requests_(false), |
+ soft_failures_(false), |
+ double_create_check_(true), |
+ fail_sparse_requests_(false) {} |
MockDiskCache::~MockDiskCache() { |
ReleaseAll(); |
@@ -468,6 +471,7 @@ int MockDiskCache::DoomEntry(const std::string& key, |
if (it != entries_.end()) { |
it->second->Release(); |
entries_.erase(it); |
+ doomed_count_++; |
} |
if (GetTestModeForEntry(key) & TEST_MODE_SYNC_CACHE_START) |