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

Unified Diff: net/quic/quic_connection_test.cc

Issue 687093002: Move receive_window_ from BbrTcpSender and TcpCubicSender to (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Gathering_ClientConnectionStats_78688302
Patch Set: Created 6 years, 2 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/congestion_control/tcp_cubic_sender_test.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 4f1e97a13496fc1c424015944173dd4d06335ffe..4dbbe13a578da3b0612750abc6ca28f6f1200e61 100644
--- a/net/quic/quic_connection_test.cc
+++ b/net/quic/quic_connection_test.cc
@@ -1327,10 +1327,10 @@ TEST_P(QuicConnectionTest, TooManySentPackets) {
EXPECT_CALL(visitor_,
OnConnectionClosed(QUIC_TOO_MANY_OUTSTANDING_SENT_PACKETS,
false));
- EXPECT_CALL(visitor_, OnCanWrite()).Times(0);
- } else {
- EXPECT_CALL(visitor_, OnCanWrite()).Times(1);
}
+ // We're receive buffer limited, so the connection won't try to write more.
+ 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) {
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender_test.cc ('k') | net/quic/quic_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698