Chromium Code Reviews| Index: net/http/mock_http_cache.h |
| diff --git a/net/http/mock_http_cache.h b/net/http/mock_http_cache.h |
| index a24200bf8348cd2ea0ed018a54c7832386195bad..7718f35116974bb17bda26854341e77f7b93ba5f 100644 |
| --- a/net/http/mock_http_cache.h |
| +++ b/net/http/mock_http_cache.h |
| @@ -158,6 +158,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; |
| @@ -234,6 +236,14 @@ class MockHttpCache { |
| // the test! (by setting test_mode to zero). |
| static void SetTestMode(int test_mode); |
| + // Functions to test the state of ActiveEntry. |
| + |
|
jkarlin
2017/04/20 15:05:40
remove newline
|
| + 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_; |
| }; |