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

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

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/reliable_quic_stream_test.cc ('k') | net/quic/test_tools/quic_config_peer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « net/quic/reliable_quic_stream_test.cc ('k') | net/quic/test_tools/quic_config_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698