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

Unified Diff: net/quic/quic_connection_test.cc

Issue 968923005: Remove TCP and BBR's max congestion window. No practical change, (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@minor_simplification_PendingRetransmission_87254408
Patch Set: Created 5 years, 10 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_connection.cc ('k') | net/quic/quic_protocol.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection_test.cc
diff --git a/net/quic/quic_connection_test.cc b/net/quic/quic_connection_test.cc
index 1964e1ec4086332ef98dcf9be9934148541aecb4..c0b7b35379318eecb93a05bb13c68ea878cbbd23 100644
--- a/net/quic/quic_connection_test.cc
+++ b/net/quic/quic_connection_test.cc
@@ -1359,8 +1359,8 @@ TEST_P(QuicConnectionTest, LeastUnackedLower) {
TEST_P(QuicConnectionTest, TooManySentPackets) {
EXPECT_CALL(visitor_, OnSuccessfulVersionNegotiation(_));
-
- for (int i = 0; i < 1100; ++i) {
+ const QuicPacketCount num_sent_packets = kMaxTrackedPackets + 100;
+ for (QuicPacketCount i = 0; i < num_sent_packets; ++i) {
SendStreamDataToPeer(1, "foo", 3 * i, !kFin, nullptr);
}
@@ -1372,8 +1372,8 @@ TEST_P(QuicConnectionTest, TooManySentPackets) {
EXPECT_CALL(visitor_, OnCanWrite()).Times(0);
// Nack every packet except the last one, leaving a huge gap.
- QuicAckFrame frame1 = InitAckFrame(1100);
- for (QuicPacketSequenceNumber i = 1; i < 1100; ++i) {
+ QuicAckFrame frame1 = InitAckFrame(num_sent_packets);
+ for (QuicPacketSequenceNumber i = 1; i < num_sent_packets; ++i) {
NackPacket(i, &frame1);
}
ProcessAckPacket(&frame1);
@@ -1384,8 +1384,8 @@ TEST_P(QuicConnectionTest, TooManyReceivedPackets) {
EXPECT_CALL(visitor_, OnConnectionClosed(
QUIC_TOO_MANY_OUTSTANDING_RECEIVED_PACKETS, false));
- // Miss every other packet for 1000 packets.
- for (QuicPacketSequenceNumber i = 1; i < 1000; ++i) {
+ // Miss every other packet for 5000 packets.
+ for (QuicPacketSequenceNumber i = 1; i < kMaxTrackedPackets; ++i) {
ProcessPacket(i * 2);
if (!connection_.connected()) {
break;
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698