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

Unified Diff: net/quic/quic_stream_factory_test.cc

Issue 804813010: QUIC - enabled FLAGS_allow_truncated_connection_ids_for_quic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per comments in Patch Set 2 - set MockCryptoClientStream to specify a TCID of 8 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
Index: net/quic/quic_stream_factory_test.cc
diff --git a/net/quic/quic_stream_factory_test.cc b/net/quic/quic_stream_factory_test.cc
index 9248dcf91feb4cf941147ee36138367fc4e25e70..c9ad088c33080b2395b975dcf614995a16317b76 100644
--- a/net/quic/quic_stream_factory_test.cc
+++ b/net/quic/quic_stream_factory_test.cc
@@ -165,6 +165,7 @@ class QuicStreamFactoryTest : public ::testing::TestWithParam<QuicVersion> {
/*load_server_info_timeout=*/0u,
/*disable_loading_server_info_for_new_servers=*/false,
/*load_server_info_timeout_srtt_multiplier=*/0.0f,
+ /*disable_truncated_connection_ids=*/false,
Ryan Hamilton 2015/01/08 22:28:07 Can we set this to true (to make sure things work
ramant (doing other things) 2015/01/08 23:06:58 Hope I got this change right. Done.
QuicTagVector()),
host_port_pair_(kDefaultServerHostName, kDefaultServerPort),
is_https_(false),
@@ -1093,8 +1094,8 @@ TEST_P(QuicStreamFactoryTest, MaxOpenStream) {
HttpRequestInfo request_info;
std::vector<QuicHttpStream*> streams;
// The MockCryptoClientStream sets max_open_streams to be
- // 2 * kDefaultMaxStreamsPerConnection.
- for (size_t i = 0; i < 2 * kDefaultMaxStreamsPerConnection; i++) {
+ // kDefaultMaxStreamsPerConnection / 2.
+ for (size_t i = 0; i < kDefaultMaxStreamsPerConnection / 2; i++) {
QuicStreamRequest request(&factory_);
int rv = request.Request(host_port_pair_,
is_https_,

Powered by Google App Engine
This is Rietveld 408576698