Index: net/quic/quic_connection_test.cc |
diff --git a/net/quic/quic_connection_test.cc b/net/quic/quic_connection_test.cc |
index 2eed176c01e83dccab36a20f7f48975d92e8cacb..f8bfc189c47270766d159d6d9d1c02a787c76c23 100644 |
--- a/net/quic/quic_connection_test.cc |
+++ b/net/quic/quic_connection_test.cc |
@@ -1332,8 +1332,8 @@ TEST_P(QuicConnectionTest, LeastUnackedLower) { |
TEST_P(QuicConnectionTest, TooManySentPackets) { |
EXPECT_CALL(visitor_, OnSuccessfulVersionNegotiation(_)); |
- const QuicPacketCount num_sent_packets = kMaxTrackedPackets + 100; |
- for (QuicPacketCount i = 0; i < num_sent_packets; ++i) { |
+ |
+ for (int i = 0; i < 1100; ++i) { |
SendStreamDataToPeer(1, "foo", 3 * i, !kFin, nullptr); |
} |
@@ -1345,8 +1345,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(num_sent_packets); |
- for (QuicPacketSequenceNumber i = 1; i < num_sent_packets; ++i) { |
+ QuicAckFrame frame1 = InitAckFrame(1100); |
+ for (QuicPacketSequenceNumber i = 1; i < 1100; ++i) { |
NackPacket(i, &frame1); |
} |
ProcessAckPacket(&frame1); |
@@ -1357,8 +1357,8 @@ TEST_P(QuicConnectionTest, TooManyReceivedPackets) { |
EXPECT_CALL(visitor_, OnConnectionClosed( |
QUIC_TOO_MANY_OUTSTANDING_RECEIVED_PACKETS, false)); |
- // Miss every other packet for 5000 packets. |
- for (QuicPacketSequenceNumber i = 1; i < kMaxTrackedPackets; ++i) { |
+ // Miss every other packet for 1000 packets. |
+ for (QuicPacketSequenceNumber i = 1; i < 1000; ++i) { |
ProcessPacket(i * 2); |
if (!connection_.connected()) { |
break; |