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

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

Issue 2132623002: Landing Recent QUIC changes until 2016-07-02 02:45 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing comment about RPCs Created 4 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/congestion_control/hybrid_slow_start.cc ('k') | net/quic/congestion_control/pacing_sender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/congestion_control/hybrid_slow_start_test.cc
diff --git a/net/quic/congestion_control/hybrid_slow_start_test.cc b/net/quic/congestion_control/hybrid_slow_start_test.cc
index 0e8c934a0a071ca8862a3364673efc1f95e13415..18601afd50ce4c5e520392d75fcd6791adf26eed 100644
--- a/net/quic/congestion_control/hybrid_slow_start_test.cc
+++ b/net/quic/congestion_control/hybrid_slow_start_test.cc
@@ -59,17 +59,17 @@ TEST_F(HybridSlowStartTest, Delay) {
// term RTT provided.
for (int n = 0; n < kHybridStartMinSamples; ++n) {
EXPECT_FALSE(slow_start_->ShouldExitSlowStart(
- rtt_.Add(QuicTime::Delta::FromMilliseconds(n)), rtt_, 100));
+ rtt_ + QuicTime::Delta::FromMilliseconds(n), rtt_, 100));
}
slow_start_->StartReceiveRound(end_packet_number++);
for (int n = 1; n < kHybridStartMinSamples; ++n) {
EXPECT_FALSE(slow_start_->ShouldExitSlowStart(
- rtt_.Add(QuicTime::Delta::FromMilliseconds(n + 10)), rtt_, 100));
+ rtt_ + QuicTime::Delta::FromMilliseconds(n + 10), rtt_, 100));
}
// Expect to trigger since all packets in this burst was above the long term
// RTT provided.
EXPECT_TRUE(slow_start_->ShouldExitSlowStart(
- rtt_.Add(QuicTime::Delta::FromMilliseconds(10)), rtt_, 100));
+ rtt_ + QuicTime::Delta::FromMilliseconds(10), rtt_, 100));
}
} // namespace test
« no previous file with comments | « net/quic/congestion_control/hybrid_slow_start.cc ('k') | net/quic/congestion_control/pacing_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698