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

Unified Diff: net/quic/quic_protocol_test.cc

Issue 420313005: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0723
Patch Set: change QUIC packet size to 1350 Created 6 years, 5 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_protocol_test.cc
diff --git a/net/quic/quic_protocol_test.cc b/net/quic/quic_protocol_test.cc
index 8eef5be8e420cf87b9a2c048d6edf7092cf177df..9f03900925a94d43de8cdf2fb019516a77d519bc 100644
--- a/net/quic/quic_protocol_test.cc
+++ b/net/quic/quic_protocol_test.cc
@@ -35,23 +35,23 @@ TEST(QuicProtocolTest, MakeQuicTag) {
}
TEST(QuicProtocolTest, IsAawaitingPacket) {
- ReceivedPacketInfo received_info;
- received_info.largest_observed = 10u;
- EXPECT_TRUE(IsAwaitingPacket(received_info, 11u));
- EXPECT_FALSE(IsAwaitingPacket(received_info, 1u));
+ QuicAckFrame ack_frame;
+ ack_frame.largest_observed = 10u;
+ EXPECT_TRUE(IsAwaitingPacket(ack_frame, 11u));
+ EXPECT_FALSE(IsAwaitingPacket(ack_frame, 1u));
- received_info.missing_packets.insert(10);
- EXPECT_TRUE(IsAwaitingPacket(received_info, 10u));
+ ack_frame.missing_packets.insert(10);
+ EXPECT_TRUE(IsAwaitingPacket(ack_frame, 10u));
}
TEST(QuicProtocolTest, InsertMissingPacketsBetween) {
- ReceivedPacketInfo received_info;
- InsertMissingPacketsBetween(&received_info, 4u, 10u);
- EXPECT_EQ(6u, received_info.missing_packets.size());
+ QuicAckFrame ack_frame;
+ InsertMissingPacketsBetween(&ack_frame, 4u, 10u);
+ EXPECT_EQ(6u, ack_frame.missing_packets.size());
QuicPacketSequenceNumber i = 4;
- for (SequenceNumberSet::iterator it = received_info.missing_packets.begin();
- it != received_info.missing_packets.end(); ++it, ++i) {
+ for (SequenceNumberSet::iterator it = ack_frame.missing_packets.begin();
+ it != ack_frame.missing_packets.end(); ++it, ++i) {
EXPECT_EQ(i, *it);
}
}

Powered by Google App Engine
This is Rietveld 408576698