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

Unified Diff: net/quic/quic_protocol_test.cc

Issue 424003002: Inline the members of QUIC's ReceivedPacketInfo into QuicAckFrame now (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_FixRate_congestion_type_71746617
Patch Set: 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
« no previous file with comments | « net/quic/quic_protocol.cc ('k') | net/quic/quic_received_packet_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
« no previous file with comments | « net/quic/quic_protocol.cc ('k') | net/quic/quic_received_packet_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698