Index: net/tools/quic/quic_simple_server_session_test.cc |
diff --git a/net/tools/quic/quic_simple_server_session_test.cc b/net/tools/quic/quic_simple_server_session_test.cc |
index ccc9573c95f6da2a9d5deb53e5537c56ef41081a..40760ebe5f887c6c25c3dd2efb0f3e49932f37bd 100644 |
--- a/net/tools/quic/quic_simple_server_session_test.cc |
+++ b/net/tools/quic/quic_simple_server_session_test.cc |
@@ -396,6 +396,10 @@ class QuicSimpleServerSessionServerPushTest |
// control blocks it. |
QuicConfigPeer::SetReceivedInitialSessionFlowControlWindow( |
&config_, kInitialSessionFlowControlWindowForTest); |
+ // Enable server push. |
+ QuicTagVector copt; |
+ copt.push_back(kSPSH); |
+ QuicConfigPeer::SetReceivedConnectionOptions(&config_, copt); |
connection_ = new StrictMock<MockConnectionWithSendStreamData>( |
&helper_, Perspective::IS_SERVER, SupportedVersions(GetParam())); |
@@ -403,7 +407,7 @@ class QuicSimpleServerSessionServerPushTest |
&crypto_config_, |
&compressed_certs_cache_)); |
session_->Initialize(); |
- // Needed to make new session flow control window work. |
+ // Needed to make new session flow control window and server push work. |
session_->OnConfigNegotiated(); |
visitor_ = QuicConnectionPeer::GetVisitor(connection_); |