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

Unified Diff: net/tools/quic/test_tools/quic_test_server.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/tools/quic/test_tools/quic_test_server.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/test_tools/quic_test_server.cc
diff --git a/net/tools/quic/test_tools/quic_test_server.cc b/net/tools/quic/test_tools/quic_test_server.cc
index 31ddef8b0ce6e17fab3eb57632b0ac908826cb04..8d1ebf5f15c83bc49a826e78c614230390066447 100644
--- a/net/tools/quic/test_tools/quic_test_server.cc
+++ b/net/tools/quic/test_tools/quic_test_server.cc
@@ -33,9 +33,14 @@ class CustomStreamSession : public QuicSimpleServerSession {
QuicConnection* connection,
QuicServerSessionVisitor* visitor,
const QuicCryptoServerConfig* crypto_config,
+ QuicCompressedCertsCache* compressed_certs_cache,
QuicTestServer::StreamFactory* factory,
QuicTestServer::CryptoStreamFactory* crypto_stream_factory)
- : QuicSimpleServerSession(config, connection, visitor, crypto_config),
+ : QuicSimpleServerSession(config,
+ connection,
+ visitor,
+ crypto_config,
+ compressed_certs_cache),
stream_factory_(factory),
crypto_stream_factory_(crypto_stream_factory) {}
@@ -88,12 +93,13 @@ class QuicTestDispatcher : public QuicDispatcher {
QuicServerSessionBase* session = nullptr;
if (stream_factory_ != nullptr || crypto_stream_factory_ != nullptr) {
- session =
- new CustomStreamSession(config(), connection, this, crypto_config(),
- stream_factory_, crypto_stream_factory_);
+ session = new CustomStreamSession(
+ config(), connection, this, crypto_config(), compressed_certs_cache(),
+ stream_factory_, crypto_stream_factory_);
} else {
session = session_factory_->CreateSession(config(), connection, this,
- crypto_config());
+ crypto_config(),
+ compressed_certs_cache());
}
session->Initialize();
return session;
@@ -165,8 +171,13 @@ ImmediateGoAwaySession::ImmediateGoAwaySession(
const QuicConfig& config,
QuicConnection* connection,
QuicServerSessionVisitor* visitor,
- const QuicCryptoServerConfig* crypto_config)
- : QuicSimpleServerSession(config, connection, visitor, crypto_config) {
+ const QuicCryptoServerConfig* crypto_config,
+ QuicCompressedCertsCache* compressed_certs_cache)
+ : QuicSimpleServerSession(config,
+ connection,
+ visitor,
+ crypto_config,
+ compressed_certs_cache) {
SendGoAway(QUIC_PEER_GOING_AWAY, "");
}
« no previous file with comments | « net/tools/quic/test_tools/quic_test_server.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698