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

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

Issue 680253005: Fixes reduction for n-connection emulation in TCP Reno. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Delay_use_of_FORWARD_SECURE_encrypter_78801773
Patch Set: Created 6 years, 2 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/tcp_cubic_sender.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/congestion_control/tcp_cubic_sender_test.cc
diff --git a/net/quic/congestion_control/tcp_cubic_sender_test.cc b/net/quic/congestion_control/tcp_cubic_sender_test.cc
index 8da8cb99bce27960abb01f8b77dc411814df7c46..4fe8dbfb5014ddb89aa5b2a88a050b86b7253fa8 100644
--- a/net/quic/congestion_control/tcp_cubic_sender_test.cc
+++ b/net/quic/congestion_control/tcp_cubic_sender_test.cc
@@ -49,6 +49,10 @@ class TcpCubicSenderPeer : public TcpCubicSender {
return hybrid_slow_start_;
}
+ float GetRenoBeta() const {
+ return RenoBeta();
+ }
+
RttStats rtt_stats_;
QuicConnectionStats stats_;
};
@@ -599,7 +603,7 @@ TEST_F(TcpCubicSenderTest, 2ConnectionCongestionAvoidanceAtEndOfRecovery) {
LoseNPackets(1);
// We should now have fallen out of slow start with a reduced window.
- expected_send_window *= kRenoBeta;
+ expected_send_window = expected_send_window * sender_->GetRenoBeta();
EXPECT_EQ(expected_send_window, sender_->GetCongestionWindow());
// No congestion window growth should occur in recovery phase, i.e., until the
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698