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

Unified Diff: net/quic/quic_connection_test.cc

Issue 1180073011: relnote: Increase the maximum number of tracked QUIC packets to 5000. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Change_QUICStreamSequencerTest_96134592
Patch Set: Created 5 years, 6 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') | no next file » | 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 bc1a868c7d76091409630b833db088a84af4b252..43d1cf563f543b1869dfa4919fa71daf1b27482d 100644
--- a/net/quic/quic_connection_test.cc
+++ b/net/quic/quic_connection_test.cc
@@ -1381,7 +1381,8 @@ TEST_P(QuicConnectionTest, LeastUnackedLower) {
TEST_P(QuicConnectionTest, TooManySentPackets) {
EXPECT_CALL(visitor_, OnSuccessfulVersionNegotiation(_));
- for (int i = 0; i < 3100; ++i) {
+ const int num_packets = 5100;
+ for (int i = 0; i < num_packets; ++i) {
SendStreamDataToPeer(1, "foo", 3 * i, !kFin, nullptr);
}
@@ -1393,8 +1394,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(3100);
- for (QuicPacketSequenceNumber i = 1; i < 3100; ++i) {
+ QuicAckFrame frame1 = InitAckFrame(num_packets);
+ for (QuicPacketSequenceNumber i = 1; i < num_packets; ++i) {
NackPacket(i, &frame1);
}
ProcessAckPacket(&frame1);
@@ -1405,8 +1406,8 @@ TEST_P(QuicConnectionTest, TooManyReceivedPackets) {
EXPECT_CALL(visitor_, OnConnectionClosed(
QUIC_TOO_MANY_OUTSTANDING_RECEIVED_PACKETS, false));
- // Miss every other packet for 3000 packets.
- for (QuicPacketSequenceNumber i = 1; i < 3000; ++i) {
+ // Miss every other packet for 5000 packets.
+ for (QuicPacketSequenceNumber i = 1; i < 5000; ++i) {
ProcessPacket(i * 2);
if (!connection_.connected()) {
break;
« no previous file with comments | « net/quic/quic_connection.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698