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

Unified Diff: net/quic/quic_connection_test.cc

Issue 1003863006: Rollback of merge internal change: 87346681. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Make_SentPacketManager_remove_pending_88507368
Patch Set: Created 5 years, 9 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 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;
« 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