| 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..ac520977a99d1086f4a645a227f897b95765dadc 100644
|
| --- a/net/http/mock_http_cache.h
|
| +++ b/net/http/mock_http_cache.h
|
| @@ -64,6 +64,9 @@ class MockDiskEntry : public disk_cache::Entry,
|
| void CancelSparseIO() override;
|
| int ReadyForSparseIO(const CompletionCallback& completion_callback) override;
|
|
|
| + uint8_t memory_entry_data() const { return memory_entry_data_; }
|
| + void set_memory_entry_data(uint8_t val) { memory_entry_data_ = val; }
|
| +
|
| // Fail most subsequent requests.
|
| void set_fail_requests() { fail_requests_ = true; }
|
|
|
| @@ -98,6 +101,7 @@ class MockDiskEntry : public disk_cache::Entry,
|
|
|
| std::string key_;
|
| std::vector<char> data_[kNumCacheEntryDataIndices];
|
| + unsigned char memory_entry_data_;
|
| int test_mode_;
|
| bool doomed_;
|
| bool sparse_;
|
| @@ -137,6 +141,8 @@ class MockDiskCache : public disk_cache::Backend {
|
| size_t DumpMemoryStats(
|
| base::trace_event::ProcessMemoryDump* pmd,
|
| const std::string& parent_absolute_name) const override;
|
| + uint8_t GetMemoryEntryData(const std::string& key) override;
|
| + void SetMemoryEntryData(const std::string& key, uint8_t data) override;
|
|
|
| // Returns number of times a cache entry was successfully opened.
|
| int open_count() const { return open_count_; }
|
|
|