Chromium Code Reviews| Index: net/tools/quic/quic_in_memory_cache.h |
| diff --git a/net/tools/quic/quic_in_memory_cache.h b/net/tools/quic/quic_in_memory_cache.h |
| index 600bb1951760c58cca738c7e5ef2da3d02f954a9..d854ebe8a3862cb67a266f6e18832c08f213de02 100644 |
| --- a/net/tools/quic/quic_in_memory_cache.h |
| +++ b/net/tools/quic/quic_in_memory_cache.h |
| @@ -22,6 +22,10 @@ extern std::string FLAGS_quic_in_memory_cache_dir; |
| class QuicServer; |
| +namespace test { |
| +class QuicInMemoryCacheTest; |
| +} |
| + |
| // In-memory cache for HTTP responses. |
| // Reads from disk cache generated by: |
| // `wget -p --save_headers <url>` |
| @@ -66,6 +70,7 @@ class QuicInMemoryCache { |
| void ResetForTests(); |
| private: |
| + friend class test::QuicInMemoryCacheTest; |
|
Ryan Hamilton
2013/07/04 14:46:03
If you make ResetForTests call Initialize, then yo
honghaiz
2013/07/04 17:34:04
Done.
|
| typedef base::hash_map<std::string, Response*> ResponseMap; |
| @@ -73,6 +78,7 @@ class QuicInMemoryCache { |
| friend struct DefaultSingletonTraits<QuicInMemoryCache>; |
| ~QuicInMemoryCache(); |
| + void Initialize(); |
| std::string GetKey(const BalsaHeaders& response_headers) const; |
| // Cached responses. |