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) { |