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

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

Issue 1782743005: Add QuicCompressedCertsCache* to QuicCrytoServerStream plumbed from QuicServerSessionBase. No behav… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116387934
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.cc ('k') | net/tools/quic/quic_server_session_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_dispatcher_test.cc
diff --git a/net/tools/quic/quic_dispatcher_test.cc b/net/tools/quic/quic_dispatcher_test.cc
index e4373085e92ab1dc80b65043a61ac721fcc26c19..67fb2d6cf5cb67e6f0aa36e2651fda1be04a2f90 100644
--- a/net/tools/quic/quic_dispatcher_test.cc
+++ b/net/tools/quic/quic_dispatcher_test.cc
@@ -67,9 +67,11 @@ class TestQuicSpdyServerSession : public QuicServerSessionBase {
QuicSpdyStream*(SpdyPriority priority));
QuicCryptoServerStreamBase* CreateQuicCryptoServerStream(
- const QuicCryptoServerConfig* crypto_config) override {
+ const QuicCryptoServerConfig* crypto_config,
+ QuicCompressedCertsCache* compressed_certs_cache) override {
return new QuicCryptoServerStream(
- crypto_config, FLAGS_enable_quic_stateless_reject_support, this);
+ crypto_config, compressed_certs_cache,
+ FLAGS_enable_quic_stateless_reject_support, this);
}
void SetCryptoStream(QuicCryptoServerStream* crypto_stream) {
@@ -395,8 +397,10 @@ TEST_F(QuicDispatcherTest, NoVersionPacketToTimeWaitListManager) {
class MockQuicCryptoServerStream : public QuicCryptoServerStream {
public:
MockQuicCryptoServerStream(const QuicCryptoServerConfig& crypto_config,
+ QuicCompressedCertsCache* compressed_certs_cache,
QuicSession* session)
: QuicCryptoServerStream(&crypto_config,
+ compressed_certs_cache,
FLAGS_enable_quic_stateless_reject_support,
session) {}
void set_handshake_confirmed_for_testing(bool handshake_confirmed) {
@@ -486,7 +490,8 @@ class QuicDispatcherStatelessRejectTest
&mock_helper_, &crypto_config_,
QuicDispatcherPeer::GetCache(&dispatcher_), &session1_);
- crypto_stream1_ = new MockQuicCryptoServerStream(crypto_config_, session1_);
+ crypto_stream1_ = new MockQuicCryptoServerStream(
+ crypto_config_, QuicDispatcherPeer::GetCache(&dispatcher_), session1_);
session1_->SetCryptoStream(crypto_stream1_);
crypto_stream1_->set_handshake_confirmed_for_testing(
GetParam().crypto_handshake_successful);
« no previous file with comments | « net/quic/test_tools/quic_test_utils.cc ('k') | net/tools/quic/quic_server_session_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698