Index: net/quic/quic_connection_test.cc |
diff --git a/net/quic/quic_connection_test.cc b/net/quic/quic_connection_test.cc |
index 5af4e4eaa894e71a0d2210d1ff60bdea3f42ed17..07414291b86e395cf3a2510aaf99ee0298764ba6 100644 |
--- a/net/quic/quic_connection_test.cc |
+++ b/net/quic/quic_connection_test.cc |
@@ -1924,29 +1924,12 @@ TEST_P(QuicConnectionTest, QueueAfterTwoRTOs) { |
TEST_P(QuicConnectionTest, WriteBlockedThenSent) { |
BlockOnNextWrite(); |
writer_->set_is_write_blocked_data_buffered(true); |
- connection_.SendStreamDataWithString(1, "foo", 0, !kFin, NULL); |
- EXPECT_FALSE(connection_.GetRetransmissionAlarm()->IsSet()); |
- |
EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)).Times(1); |
- connection_.OnPacketSent(WriteResult(WRITE_STATUS_OK, 0)); |
- EXPECT_TRUE(connection_.GetRetransmissionAlarm()->IsSet()); |
-} |
- |
-TEST_P(QuicConnectionTest, WriteBlockedAckedThenSent) { |
- EXPECT_CALL(visitor_, OnSuccessfulVersionNegotiation(_)); |
- BlockOnNextWrite(); |
- writer_->set_is_write_blocked_data_buffered(true); |
connection_.SendStreamDataWithString(1, "foo", 0, !kFin, NULL); |
- EXPECT_FALSE(connection_.GetRetransmissionAlarm()->IsSet()); |
- |
- // Ack the sent packet before the callback returns, which happens in |
- // rare circumstances with write blocked sockets. |
- QuicAckFrame ack = InitAckFrame(1); |
- ProcessAckPacket(&ack); |
+ EXPECT_TRUE(connection_.GetRetransmissionAlarm()->IsSet()); |
- EXPECT_CALL(*send_algorithm_, OnPacketSent(_, _, _, _, _)).Times(0); |
connection_.OnPacketSent(WriteResult(WRITE_STATUS_OK, 0)); |
- EXPECT_FALSE(connection_.GetRetransmissionAlarm()->IsSet()); |
+ EXPECT_TRUE(connection_.GetRetransmissionAlarm()->IsSet()); |
} |
TEST_P(QuicConnectionTest, RetransmitWriteBlockedAckedOriginalThenSent) { |