Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1030)

Unified Diff: net/tools/quic/quic_in_memory_cache.h

Issue 18655004: Add a quic_in_memory_cache_test data file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "Fix unittest error." Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698