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

Unified Diff: net/quic/quic_sent_packet_manager_test.cc

Issue 112953003: Remove a QUIC test only flag(limit_rto_increase_for_tests) to limit the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/quic_sent_packet_manager.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_sent_packet_manager_test.cc
diff --git a/net/quic/quic_sent_packet_manager_test.cc b/net/quic/quic_sent_packet_manager_test.cc
index 685279bea30aa59bdee7991cbbe96b7d41892c66..189638c8ea8e7d091133a1d35ddf9f9543ef39b6 100644
--- a/net/quic/quic_sent_packet_manager_test.cc
+++ b/net/quic/quic_sent_packet_manager_test.cc
@@ -1060,29 +1060,6 @@ TEST_F(QuicSentPacketManagerTest, GetTransmissionDelay) {
}
}
-TEST_F(QuicSentPacketManagerTest, GetTestTransmissionDelayTailDrop) {
- FLAGS_limit_rto_increase_for_tests = true;
-
- SendDataPacket(1);
- QuicTime::Delta delay = QuicTime::Delta::FromMilliseconds(500);
- EXPECT_CALL(*send_algorithm_, RetransmissionDelay())
- .WillRepeatedly(Return(delay));
-
- // No backoff for the first 5 retransmissions.
- for (int i = 0; i < 5; ++i) {
- EXPECT_EQ(delay,
- QuicSentPacketManagerPeer::GetRetransmissionDelay(&manager_));
- EXPECT_CALL(*send_algorithm_, OnPacketAbandoned(i + 1, _));
- EXPECT_CALL(*send_algorithm_, OnRetransmissionTimeout());
- manager_.OnRetransmissionTimeout();
- RetransmitNextPacket(i + 2);
- }
-
- // Then backoff starts
- EXPECT_EQ(delay.Add(delay),
- QuicSentPacketManagerPeer::GetRetransmissionDelay(&manager_));
-}
-
} // namespace
} // namespace test
} // namespace net
« no previous file with comments | « net/quic/quic_sent_packet_manager.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698