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

Unified Diff: net/quic/quic_received_packet_manager_test.cc

Issue 1421853006: Landing Recent QUIC changes until: Fri Oct 30 22:23:58 2015 +0000 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 5 years, 1 month 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_received_packet_manager.cc ('k') | net/quic/quic_reliable_client_stream_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_received_packet_manager_test.cc
diff --git a/net/quic/quic_received_packet_manager_test.cc b/net/quic/quic_received_packet_manager_test.cc
index 31ff8a061e55e97e4fe5e35f7ce2132e0b0624a9..b5a3542455dd724cb276fb39a0a55936cb6e0025 100644
--- a/net/quic/quic_received_packet_manager_test.cc
+++ b/net/quic/quic_received_packet_manager_test.cc
@@ -355,8 +355,7 @@ TEST_F(QuicReceivedPacketManagerTest, RevivedPacket) {
received_manager_.UpdateReceivedPacketInfo(&ack, QuicTime::Zero());
EXPECT_EQ(1u, ack.missing_packets.NumPacketsSlow());
EXPECT_EQ(2u, ack.missing_packets.Min());
- EXPECT_EQ(1u, ack.revived_packets.size());
- EXPECT_EQ(2u, *ack.revived_packets.begin());
+ EXPECT_EQ(2u, ack.latest_revived_packet);
}
TEST_F(QuicReceivedPacketManagerTest, PacketRevivedThenReceived) {
@@ -368,7 +367,7 @@ TEST_F(QuicReceivedPacketManagerTest, PacketRevivedThenReceived) {
QuicAckFrame ack;
received_manager_.UpdateReceivedPacketInfo(&ack, QuicTime::Zero());
EXPECT_TRUE(ack.missing_packets.Empty());
- EXPECT_TRUE(ack.revived_packets.empty());
+ EXPECT_EQ(0u, ack.latest_revived_packet);
}
« no previous file with comments | « net/quic/quic_received_packet_manager.cc ('k') | net/quic/quic_reliable_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698