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

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: Enable FLAGS_allow_truncated_connection_ids_for_quic by default 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..452a1f5c75d673cff779862812512d48d08f8b99 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,
QuicTagVector()),
host_port_pair_(kDefaultServerHostName, kDefaultServerPort),
is_https_(false),
@@ -243,7 +244,7 @@ class QuicStreamFactoryTest : public ::testing::TestWithParam<QuicVersion> {
scoped_ptr<QuicEncryptedPacket> ConstructRstPacket() {
QuicStreamId stream_id = kClientDataStreamId1;
return maker_.MakeRstPacket(
- 1, true, stream_id,
+ 1, PACKET_0BYTE_CONNECTION_ID, true, stream_id,
AdjustErrorForVersion(QUIC_RST_ACKNOWLEDGEMENT, GetParam()));
}
@@ -1080,8 +1081,8 @@ TEST_P(QuicStreamFactoryTest, MaxOpenStream) {
MockRead(ASYNC, OK, 0) // EOF
};
QuicStreamId stream_id = kClientDataStreamId1;
- scoped_ptr<QuicEncryptedPacket> rst(
- maker_.MakeRstPacket(1, true, stream_id, QUIC_STREAM_CANCELLED));
+ scoped_ptr<QuicEncryptedPacket> rst(maker_.MakeRstPacket(
+ 1, PACKET_0BYTE_CONNECTION_ID, true, stream_id, QUIC_STREAM_CANCELLED));
MockWrite writes[] = {
MockWrite(ASYNC, rst->data(), rst->length(), 1),
};

Powered by Google App Engine
This is Rietveld 408576698