Index: net/quic/quic_connection_test.cc |
diff --git a/net/quic/quic_connection_test.cc b/net/quic/quic_connection_test.cc |
index e2b0fef2335c94745d453285f3a6b8a96b5c8bbf..c3524629d82859e51ac59983dca16a91d63890d3 100644 |
--- a/net/quic/quic_connection_test.cc |
+++ b/net/quic/quic_connection_test.cc |
@@ -1104,8 +1104,9 @@ TEST_F(QuicConnectionTest, LeastUnackedLower) { |
// This should be fine. |
creator_.set_sequence_number(1); |
QuicAckFrame frame2 = InitAckFrame(0, 1); |
- // The scheduler will not process out of order acks. |
- EXPECT_CALL(visitor_, OnCanWrite()).Times(0); |
+ // The scheduler will not process out of order acks, but all packet processing |
+ // causes the connection to try to write. |
+ EXPECT_CALL(visitor_, OnCanWrite()).Times(1); |
ProcessAckPacket(&frame2); |
// Now claim it's one, but set the ordering so it was sent "after" the first |
@@ -1257,8 +1258,6 @@ TEST_F(QuicConnectionTest, SendingDifferentSequenceNumberLengthsUnackedDelta) { |
TEST_F(QuicConnectionTest, BasicSending) { |
EXPECT_CALL(visitor_, OnSuccessfulVersionNegotiation(_)); |
-// EXPECT_CALL(*send_algorithm_, UpdateRtt(_)); |
-// EXPECT_CALL(*send_algorithm_, OnPacketAcked(_, _)).Times(6); |
QuicPacketSequenceNumber last_packet; |
SendStreamDataToPeer(1, "foo", 0, !kFin, &last_packet); // Packet 1 |
EXPECT_EQ(1u, last_packet); |