Index: net/http/mock_http_cache.h |
diff --git a/net/http/mock_http_cache.h b/net/http/mock_http_cache.h |
index f6a805c34f550be39e332c350cc99b20ea6342d3..5ccb5e16cc7bd78144d724351f6acaabdcf788da 100644 |
--- a/net/http/mock_http_cache.h |
+++ b/net/http/mock_http_cache.h |
@@ -156,6 +156,8 @@ class MockDiskCache : public disk_cache::Backend { |
void ReleaseAll(); |
+ bool IsDiskEntryDoomed(const std::string& key); |
+ |
private: |
using EntryMap = std::unordered_map<std::string, MockDiskEntry*>; |
class NotImplementedIterator; |
@@ -232,6 +234,14 @@ class MockHttpCache { |
// the test! (by setting test_mode to zero). |
static void SetTestMode(int test_mode); |
+ // Functions to test the state of ActiveEntry. |
+ |
+ bool IsWriterPresent(const std::string& key); |
+ bool IsHeadersTransactionPresent(const std::string& key); |
+ int GetCountReaders(const std::string& key); |
+ int GetCountAddToEntryQueue(const std::string& key); |
+ int GetCountDoneHeadersQueue(const std::string& key); |
+ |
private: |
HttpCache http_cache_; |
}; |