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

Unified Diff: net/quic/test_tools/quic_test_utils.cc

Issue 1783783003: Add a QuicCompressedCertsCache instance to QuicDispatcher, plumbing to QuicServerSessionBase but no… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116273065
Patch Set: Created 4 years, 9 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
« no previous file with comments | « net/quic/test_tools/quic_test_utils.h ('k') | net/tools/quic/quic_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/test_tools/quic_test_utils.cc
diff --git a/net/quic/test_tools/quic_test_utils.cc b/net/quic/test_tools/quic_test_utils.cc
index a51c8084cf7fd03b9b91544937eb25db8f323af8..3705a44218490258bfdc98e7ed1d25f0bd33168d 100644
--- a/net/quic/test_tools/quic_test_utils.cc
+++ b/net/quic/test_tools/quic_test_utils.cc
@@ -328,8 +328,13 @@ QuicConsumedData MockQuicSpdySession::ConsumeAllData(
TestQuicSpdyServerSession::TestQuicSpdyServerSession(
QuicConnection* connection,
const QuicConfig& config,
- const QuicCryptoServerConfig* crypto_config)
- : QuicServerSessionBase(config, connection, &visitor_, crypto_config) {
+ const QuicCryptoServerConfig* crypto_config,
+ QuicCompressedCertsCache* compressed_certs_cache)
+ : QuicServerSessionBase(config,
+ connection,
+ &visitor_,
+ crypto_config,
+ compressed_certs_cache) {
Initialize();
}
@@ -764,13 +769,15 @@ void CreateClientSessionForTest(QuicServerId server_id,
(*client_connection)->AdvanceTime(connection_start_time);
}
-void CreateServerSessionForTest(QuicServerId server_id,
- QuicTime::Delta connection_start_time,
- QuicVersionVector supported_versions,
- MockConnectionHelper* helper,
- QuicCryptoServerConfig* server_crypto_config,
- PacketSavingConnection** server_connection,
- TestQuicSpdyServerSession** server_session) {
+void CreateServerSessionForTest(
+ QuicServerId server_id,
+ QuicTime::Delta connection_start_time,
+ QuicVersionVector supported_versions,
+ MockConnectionHelper* helper,
+ QuicCryptoServerConfig* server_crypto_config,
+ QuicCompressedCertsCache* compressed_certs_cache,
+ PacketSavingConnection** server_connection,
+ TestQuicSpdyServerSession** server_session) {
CHECK(server_crypto_config);
CHECK(server_connection);
CHECK(server_session);
@@ -781,7 +788,8 @@ void CreateServerSessionForTest(QuicServerId server_id,
*server_connection = new PacketSavingConnection(
helper, Perspective::IS_SERVER, supported_versions);
*server_session = new TestQuicSpdyServerSession(
- *server_connection, DefaultQuicConfig(), server_crypto_config);
+ *server_connection, DefaultQuicConfig(), server_crypto_config,
+ compressed_certs_cache);
// We advance the clock initially because the default time is zero and the
// strike register worries that we've just overflowed a uint32_t time.
« no previous file with comments | « net/quic/test_tools/quic_test_utils.h ('k') | net/tools/quic/quic_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698