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

Unified Diff: net/tools/quic/quic_simple_server_test.cc

Issue 2518063007: Pass QuicInMemoryCache directly instead of using a singleton. (Closed)
Patch Set: Fix Cronet compile error Created 4 years, 1 month 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_simple_server_test.cc
diff --git a/net/tools/quic/quic_simple_server_test.cc b/net/tools/quic/quic_simple_server_test.cc
index 9c4efb117b744e3946477d3b6a534343b6edaa69..991bb9851e1efda82f5a0f7470ec71a5fd6b5675 100644
--- a/net/tools/quic/quic_simple_server_test.cc
+++ b/net/tools/quic/quic_simple_server_test.cc
@@ -35,8 +35,8 @@ class QuicChromeServerDispatchPacketTest : public ::testing::Test {
new net::test::MockQuicConnectionHelper),
std::unique_ptr<QuicCryptoServerStream::Helper>(
new QuicSimpleServerSessionHelper(QuicRandom::GetInstance())),
- std::unique_ptr<MockAlarmFactory>(
- new net::test::MockAlarmFactory)) {
+ std::unique_ptr<MockAlarmFactory>(new net::test::MockAlarmFactory),
+ &in_memory_cache_) {
dispatcher_.InitializeWithWriter(nullptr);
}
@@ -52,6 +52,7 @@ class QuicChromeServerDispatchPacketTest : public ::testing::Test {
QuicCryptoServerConfig crypto_config_;
QuicVersionManager version_manager_;
net::test::MockQuicDispatcher dispatcher_;
+ QuicInMemoryCache in_memory_cache_;
};
TEST_F(QuicChromeServerDispatchPacketTest, DispatchPacket) {
« no previous file with comments | « net/tools/quic/quic_simple_server_stream_test.cc ('k') | net/tools/quic/test_tools/quic_in_memory_cache_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698