Index: net/quic/test_tools/mock_crypto_client_stream.cc |
diff --git a/net/quic/test_tools/mock_crypto_client_stream.cc b/net/quic/test_tools/mock_crypto_client_stream.cc |
index 8650eb989c2dc4f446f312c96b3355cbebc2342d..c6e6780b81de33e47b6213bdecf680c9638468f3 100644 |
--- a/net/quic/test_tools/mock_crypto_client_stream.cc |
+++ b/net/quic/test_tools/mock_crypto_client_stream.cc |
@@ -87,15 +87,17 @@ void MockCryptoClientStream::SetConfigNegotiated() { |
cgst.push_back(kTBBR); |
#endif |
cgst.push_back(kQBIC); |
- session()->config()->SetCongestionFeedback(cgst, kQBIC); |
- session()->config()->SetIdleConnectionStateLifetime( |
+ QuicConfig config; |
+ config.SetCongestionFeedback(cgst, kQBIC); |
+ config.SetIdleConnectionStateLifetime( |
QuicTime::Delta::FromSeconds(2 * kMaximumIdleTimeoutSecs), |
QuicTime::Delta::FromSeconds(kMaximumIdleTimeoutSecs)); |
- session()->config()->SetMaxStreamsPerConnection( |
- 2 * kDefaultMaxStreamsPerConnection, kDefaultMaxStreamsPerConnection); |
+ config.SetMaxStreamsPerConnection(kDefaultMaxStreamsPerConnection / 2, |
+ kDefaultMaxStreamsPerConnection / 2); |
+ config.SetBytesForConnectionIdToSend(PACKET_8BYTE_CONNECTION_ID); |
CryptoHandshakeMessage msg; |
- session()->config()->ToHandshakeMessage(&msg); |
+ config.ToHandshakeMessage(&msg); |
string error_details; |
const QuicErrorCode error = |
session()->config()->ProcessPeerHello(msg, CLIENT, &error_details); |