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

Unified Diff: net/quic/quic_unacked_packet_map_test.cc

Issue 1008323002: Land Recent QUIC Changes until 03/15/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0315
Patch Set: Add quic_packet_reader to BUILD.gn to fix compiler errors Created 5 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_unacked_packet_map.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_unacked_packet_map_test.cc
diff --git a/net/quic/quic_unacked_packet_map_test.cc b/net/quic/quic_unacked_packet_map_test.cc
index cf622e1e6c5c13bf8cc5dc5ed370cc6e0dcbcc57..150bebca4c25bf37e81162515175cca71b4b7602 100644
--- a/net/quic/quic_unacked_packet_map_test.cc
+++ b/net/quic/quic_unacked_packet_map_test.cc
@@ -138,9 +138,9 @@ TEST_F(QuicUnackedPacketMapTest, RttOnly) {
TEST_F(QuicUnackedPacketMapTest, DiscardOldRttOnly) {
// Acks are only tracked for RTT measurement purposes, and are discarded
- // when more than 2500 accumulate.
- const size_t kNumUnackedPackets = 2500;
- for (size_t i = 1; i < 3000; ++i) {
+ // when more than 200 accumulate.
+ const size_t kNumUnackedPackets = 200;
+ for (size_t i = 1; i < 400; ++i) {
unacked_packets_.AddSentPacket(CreateNonRetransmittablePacket(i), 0,
NOT_RETRANSMISSION, now_, kDefaultAckLength,
false);
@@ -189,7 +189,7 @@ TEST_F(QuicUnackedPacketMapTest, StopRetransmission) {
QuicPacketSequenceNumber retransmittable[] = {1};
VerifyRetransmittablePackets(retransmittable, arraysize(retransmittable));
- unacked_packets_.StopRetransmissionForStream(stream_id);
+ unacked_packets_.CancelRetransmissionsForStream(stream_id);
VerifyUnackedPackets(unacked, arraysize(unacked));
VerifyInFlightPackets(unacked, arraysize(unacked));
VerifyRetransmittablePackets(nullptr, 0);
@@ -208,7 +208,7 @@ TEST_F(QuicUnackedPacketMapTest, StopRetransmissionOnOtherStream) {
VerifyRetransmittablePackets(retransmittable, arraysize(retransmittable));
// Stop retransmissions on another stream and verify the packet is unchanged.
- unacked_packets_.StopRetransmissionForStream(stream_id + 2);
+ unacked_packets_.CancelRetransmissionsForStream(stream_id + 2);
VerifyUnackedPackets(unacked, arraysize(unacked));
VerifyInFlightPackets(unacked, arraysize(unacked));
VerifyRetransmittablePackets(retransmittable, arraysize(retransmittable));
@@ -229,7 +229,7 @@ TEST_F(QuicUnackedPacketMapTest, StopRetransmissionAfterRetransmission) {
QuicPacketSequenceNumber retransmittable[] = {2};
VerifyRetransmittablePackets(retransmittable, arraysize(retransmittable));
- unacked_packets_.StopRetransmissionForStream(stream_id);
+ unacked_packets_.CancelRetransmissionsForStream(stream_id);
VerifyUnackedPackets(unacked, arraysize(unacked));
VerifyInFlightPackets(unacked, arraysize(unacked));
VerifyRetransmittablePackets(nullptr, 0);
« no previous file with comments | « net/quic/quic_unacked_packet_map.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698