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

Unified Diff: net/quic/quic_stream_factory_test.cc

Issue 12806002: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor comment fix Created 7 years, 9 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/quic_stream_factory.cc ('k') | net/quic/quic_time.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5ddae7c1c4f21859a2b496c57cddf65671fecef7..34b06b8a810385ee15b333e4fe1d91ec60c6dc5e 100644
--- a/net/quic/quic_stream_factory_test.cc
+++ b/net/quic/quic_stream_factory_test.cc
@@ -37,10 +37,12 @@ class QuicStreamFactoryTest : public ::testing::Test {
scoped_ptr<QuicPacket> chlo(ConstructClientHelloPacket(0xDEADBEEF,
clock_,
&random_generator_,
- host));
+ host,
+ true));
QuicFramer framer(kQuicVersion1,
QuicDecrypter::Create(kNULL),
- QuicEncrypter::Create(kNULL));
+ QuicEncrypter::Create(kNULL),
+ false);
return scoped_ptr<QuicEncryptedPacket>(framer.EncryptPacket(1, *chlo));
}
@@ -52,7 +54,8 @@ class QuicStreamFactoryTest : public ::testing::Test {
host));
QuicFramer framer(kQuicVersion1,
QuicDecrypter::Create(kNULL),
- QuicEncrypter::Create(kNULL));
+ QuicEncrypter::Create(kNULL),
+ false);
return scoped_ptr<QuicEncryptedPacket>(framer.EncryptPacket(1, *shlo));
}
@@ -87,7 +90,7 @@ class QuicStreamFactoryTest : public ::testing::Test {
header.fec_flag = false;
header.fec_group = 0;
- QuicAckFrame ack(largest_received, least_unacked);
+ QuicAckFrame ack(largest_received, QuicTime::Zero(), least_unacked);
QuicCongestionFeedbackFrame feedback;
feedback.type = kTCP;
feedback.tcp.accumulated_number_of_lost_packets = 0;
@@ -95,7 +98,8 @@ class QuicStreamFactoryTest : public ::testing::Test {
QuicFramer framer(kQuicVersion1,
QuicDecrypter::Create(kNULL),
- QuicEncrypter::Create(kNULL));
+ QuicEncrypter::Create(kNULL),
+ false);
QuicFrames frames;
frames.push_back(QuicFrame(&ack));
frames.push_back(QuicFrame(&feedback));
@@ -132,7 +136,8 @@ class QuicStreamFactoryTest : public ::testing::Test {
const QuicFrame& frame) {
QuicFramer framer(kQuicVersion1,
QuicDecrypter::Create(kNULL),
- QuicEncrypter::Create(kNULL));
+ QuicEncrypter::Create(kNULL),
+ false);
QuicFrames frames;
frames.push_back(frame);
scoped_ptr<QuicPacket> packet(
« no previous file with comments | « net/quic/quic_stream_factory.cc ('k') | net/quic/quic_time.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698