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

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

Issue 1979763002: Landing Recent QUIC changes until Sun May 8 00:39:29 2016 +0000 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/cubic_bytes_test.cc ('k') | net/quic/quic_chromium_client_stream_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/congestion_control/cubic_test.cc
diff --git a/net/quic/congestion_control/cubic_test.cc b/net/quic/congestion_control/cubic_test.cc
index fb88de60bf23313508e4aa1ee4f33be7be11ec05..2e2c231f8141f73b30db03422b07182eec880a3e 100644
--- a/net/quic/congestion_control/cubic_test.cc
+++ b/net/quic/congestion_control/cubic_test.cc
@@ -5,7 +5,6 @@
#include "net/quic/congestion_control/cubic.h"
#include "base/logging.h"
-#include "net/quic/quic_connection_stats.h"
#include "net/quic/test_tools/mock_clock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -70,37 +69,6 @@ TEST_F(CubicTest, AboveOrigin) {
EXPECT_EQ(expected_cwnd, current_cwnd);
}
-TEST_F(CubicTest, CwndIncreaseStatsDuringConvexRegion) {
- const QuicTime::Delta rtt_min = hundred_ms_;
- QuicPacketCount current_cwnd = 10;
- QuicPacketCount expected_cwnd = current_cwnd + 1;
- // Initialize controller state.
- clock_.AdvanceTime(one_ms_);
- expected_cwnd = cubic_.CongestionWindowAfterAck(current_cwnd, rtt_min);
- current_cwnd = expected_cwnd;
- // Testing Reno mode increase.
- for (int i = 0; i < 48; ++i) {
- for (QuicPacketCount n = 1; n < current_cwnd / kNConnectionAlpha; ++n) {
- // Call once per ACK, causing cwnd growth in Reno mode.
- cubic_.CongestionWindowAfterAck(current_cwnd, rtt_min);
- }
- // Advance current time so that cwnd update is allowed to happen by Cubic.
- clock_.AdvanceTime(hundred_ms_);
- current_cwnd = cubic_.CongestionWindowAfterAck(current_cwnd, rtt_min);
- expected_cwnd++;
- }
-
- // Testing Cubic mode increase.
- for (int i = 0; i < 52; ++i) {
- for (QuicPacketCount n = 1; n < current_cwnd; ++n) {
- // Call once per ACK.
- cubic_.CongestionWindowAfterAck(current_cwnd, rtt_min);
- }
- clock_.AdvanceTime(hundred_ms_);
- current_cwnd = cubic_.CongestionWindowAfterAck(current_cwnd, rtt_min);
- }
-}
-
TEST_F(CubicTest, LossEvents) {
const QuicTime::Delta rtt_min = hundred_ms_;
QuicPacketCount current_cwnd = 422;
« no previous file with comments | « net/quic/congestion_control/cubic_bytes_test.cc ('k') | net/quic/quic_chromium_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698