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

Unified Diff: net/quic/quic_http_stream_test.cc

Issue 478153003: Change the wire format of the ack frame to include a compressed version (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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_http_stream_test.cc
diff --git a/net/quic/quic_http_stream_test.cc b/net/quic/quic_http_stream_test.cc
index 7ebf8e562aad082dd91a96d7a9381b6c54ff5bf1..b7840c299c96a8d293a100bcae1af6d9a99ba9c4 100644
--- a/net/quic/quic_http_stream_test.cc
+++ b/net/quic/quic_http_stream_test.cc
@@ -156,6 +156,7 @@ class QuicHttpStreamTest : public ::testing::TestWithParam<QuicVersion> {
CHECK(ParseIPLiteralToNumber("192.0.2.33", &ip));
peer_addr_ = IPEndPoint(ip, 443);
self_addr_ = IPEndPoint(ip, 8435);
+ clock_.AdvanceTime(QuicTime::Delta::FromMilliseconds(20));
}
~QuicHttpStreamTest() {
@@ -243,7 +244,6 @@ class QuicHttpStreamTest : public ::testing::TestWithParam<QuicVersion> {
stream_.reset(use_closing_stream_ ?
new AutoClosingStream(session_->GetWeakPtr()) :
new QuicHttpStream(session_->GetWeakPtr()));
- clock_.AdvanceTime(QuicTime::Delta::FromMilliseconds(20));
}
void SetRequest(const std::string& method,
@@ -292,7 +292,7 @@ class QuicHttpStreamTest : public ::testing::TestWithParam<QuicVersion> {
QuicPacketSequenceNumber sequence_number) {
return maker_.MakeAckAndRstPacket(
sequence_number, !kIncludeVersion, stream_id_, QUIC_STREAM_CANCELLED,
- 2, 1, !kIncludeCongestionFeedback);
+ 2, 1, !kIncludeCongestionFeedback, clock_.Now());
}
scoped_ptr<QuicEncryptedPacket> ConstructAckPacket(
@@ -300,7 +300,8 @@ class QuicHttpStreamTest : public ::testing::TestWithParam<QuicVersion> {
QuicPacketSequenceNumber largest_received,
QuicPacketSequenceNumber least_unacked) {
return maker_.MakeAckPacket(sequence_number, largest_received,
- least_unacked, !kIncludeCongestionFeedback);
+ least_unacked, !kIncludeCongestionFeedback,
+ clock_.Now());
}
BoundNetLog net_log_;

Powered by Google App Engine
This is Rietveld 408576698