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

Unified Diff: net/quic/congestion_control/time_loss_algorithm_test.cc

Issue 302783003: Rename QUIC's TransmissionInfo pending to in_flight and the associated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/congestion_control/time_loss_algorithm.cc ('k') | net/quic/quic_protocol.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/congestion_control/time_loss_algorithm_test.cc
diff --git a/net/quic/congestion_control/time_loss_algorithm_test.cc b/net/quic/congestion_control/time_loss_algorithm_test.cc
index 42ca030eb8fba99d91818d8a251e3984c5baba0c..bd03e608bcc1cd619ea99874bbc887d145ea2573 100644
--- a/net/quic/congestion_control/time_loss_algorithm_test.cc
+++ b/net/quic/congestion_control/time_loss_algorithm_test.cc
@@ -55,7 +55,7 @@ TEST_F(TimeLossAlgorithmTest, NoLossFor500Nacks) {
for (size_t i = 1; i <= kNumSentPackets; ++i) {
SendDataPacket(i);
}
- unacked_packets_.SetNotPending(2);
+ unacked_packets_.RemoveFromInFlight(2);
for (size_t i = 1; i < 500; ++i) {
unacked_packets_.NackPacket(1, i);
VerifyLosses(2, NULL, 0);
@@ -75,7 +75,7 @@ TEST_F(TimeLossAlgorithmTest, NoLossUntilTimeout) {
EXPECT_EQ(QuicTime::Zero(), loss_algorithm_.GetLossTimeout());
// The packet should not be lost until 1.25 RTTs pass.
unacked_packets_.NackPacket(1, 1);
- unacked_packets_.SetNotPending(2);
+ unacked_packets_.RemoveFromInFlight(2);
VerifyLosses(2, NULL, 0);
// Expect the timer to be set to 0.25 RTT's in the future.
EXPECT_EQ(rtt_stats_.SmoothedRtt().Multiply(0.25),
@@ -98,7 +98,7 @@ TEST_F(TimeLossAlgorithmTest, NoLossWithoutNack) {
// Expect the timer to not be set.
EXPECT_EQ(QuicTime::Zero(), loss_algorithm_.GetLossTimeout());
// The packet should not be lost without a nack.
- unacked_packets_.SetNotPending(1);
+ unacked_packets_.RemoveFromInFlight(1);
VerifyLosses(1, NULL, 0);
// The timer should still not be set.
EXPECT_EQ(QuicTime::Zero(), loss_algorithm_.GetLossTimeout());
@@ -123,7 +123,7 @@ TEST_F(TimeLossAlgorithmTest, MultipleLossesAtOnce) {
for (size_t i = 1; i < kNumSentPackets; ++i) {
unacked_packets_.NackPacket(i, 1);
}
- unacked_packets_.SetNotPending(10);
+ unacked_packets_.RemoveFromInFlight(10);
VerifyLosses(10, NULL, 0);
// Expect the timer to be set to 0.25 RTT's in the future.
EXPECT_EQ(rtt_stats_.SmoothedRtt().Multiply(0.25),
« no previous file with comments | « net/quic/congestion_control/time_loss_algorithm.cc ('k') | net/quic/quic_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698