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

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

Issue 396533003: Populate FasterExtraStats for QUIC requests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/tcp_cubic_sender.cc ('k') | net/quic/quic_connection.cc » ('j') | 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 8409f97283302b4ba39081187c822057406ab875..ef2e1c0a2cf0ff5a68305f1ae2a209aa138b6635 100644
--- a/net/quic/congestion_control/tcp_cubic_sender_test.cc
+++ b/net/quic/congestion_control/tcp_cubic_sender_test.cc
@@ -207,6 +207,9 @@ TEST_F(TcpCubicSenderTest, ExponentialSlowStart) {
}
TEST_F(TcpCubicSenderTest, SlowStartAckTrain) {
+ EXPECT_EQ(kDefaultMaxCongestionWindowTCP * kDefaultTCPMSS,
+ sender_->GetSlowStartThreshold());
+
// Make sure that we fall out of slow start when we send ACK train longer
// than half the RTT, in this test case 30ms, which is more than 30 calls to
// Ack2Packets in one round.
@@ -238,8 +241,10 @@ TEST_F(TcpCubicSenderTest, SlowStartAckTrain) {
}
SendAvailableSendWindow();
AckNPackets(2);
+ QuicByteCount expected_ss_tresh = expected_send_window;
expected_send_window += kDefaultTCPMSS;
EXPECT_EQ(expected_send_window, sender_->GetCongestionWindow());
+ EXPECT_EQ(expected_ss_tresh, sender_->GetSlowStartThreshold());
EXPECT_EQ(140u, sender_->slowstart_threshold());
// Now RTO and ensure slow start gets reset.
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender.cc ('k') | net/quic/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698