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

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

Issue 822713002: Update from https://crrev.com/309415 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years 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
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 bcdf8d900bccd60a80d001a2982505bef5d298cc..5b9873391eb9e97a14fc8a0c651008598f2fdd44 100644
--- a/net/quic/congestion_control/hybrid_slow_start_test.cc
+++ b/net/quic/congestion_control/hybrid_slow_start_test.cc
@@ -84,8 +84,8 @@ TEST_F(HybridSlowStartTest, AckTrain) {
}
TEST_F(HybridSlowStartTest, Delay) {
- // We expect to detect the increase at +1/16 of the RTT; hence at a typical
- // RTT of 60ms the detection will happen at 63.75 ms.
+ // We expect to detect the increase at +1/8 of the RTT; hence at a typical
+ // RTT of 60ms the detection will happen at 67.5 ms.
const int kHybridStartMinSamples = 8; // Number of acks required to trigger.
QuicPacketSequenceNumber end_sequence_number = 1;
@@ -100,12 +100,12 @@ TEST_F(HybridSlowStartTest, Delay) {
slow_start_->StartReceiveRound(end_sequence_number++);
for (int n = 1; n < kHybridStartMinSamples; ++n) {
EXPECT_FALSE(slow_start_->ShouldExitSlowStart(
- rtt_.Add(QuicTime::Delta::FromMilliseconds(n + 5)), rtt_, 100));
+ rtt_.Add(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(5)), rtt_, 100));
+ rtt_.Add(QuicTime::Delta::FromMilliseconds(10)), rtt_, 100));
}
} // namespace test

Powered by Google App Engine
This is Rietveld 408576698