Index: net/quic/congestion_control/prr_sender_test.cc |
diff --git a/net/quic/congestion_control/prr_sender_test.cc b/net/quic/congestion_control/prr_sender_test.cc |
index 7a42bd5635eb38d051f8e8eda95a16e4f2a68707..ed8397fb50e21443efe1ad00b60f2e7d3633e87b 100644 |
--- a/net/quic/congestion_control/prr_sender_test.cc |
+++ b/net/quic/congestion_control/prr_sender_test.cc |
@@ -35,13 +35,13 @@ TEST_F(PrrSenderTest, SingleLossResultsInSendOnEveryOtherAck) { |
bytes_in_flight -= kMaxSegmentSize; |
EXPECT_EQ(QuicTime::Delta::Zero(), |
prr.TimeUntilSend(congestion_window, bytes_in_flight, |
- ssthresh_after_loss)); |
+ ssthresh_after_loss * kMaxSegmentSize)); |
// Send retransmission. |
prr.OnPacketSent(kMaxSegmentSize); |
// PRR shouldn't allow sending any more packets. |
EXPECT_EQ(QuicTime::Delta::Infinite(), |
prr.TimeUntilSend(congestion_window, bytes_in_flight, |
- ssthresh_after_loss)); |
+ ssthresh_after_loss * kMaxSegmentSize)); |
// One packet is lost, and one ack was consumed above. PRR now paces |
// transmissions through the remaining 48 acks. PRR will alternatively |
@@ -52,13 +52,13 @@ TEST_F(PrrSenderTest, SingleLossResultsInSendOnEveryOtherAck) { |
bytes_in_flight -= kMaxSegmentSize; |
EXPECT_EQ(QuicTime::Delta::Infinite(), |
prr.TimeUntilSend(congestion_window, bytes_in_flight, |
- ssthresh_after_loss)); |
+ ssthresh_after_loss * kMaxSegmentSize)); |
// Ack another packet. PRR should now allow sending a packet in response. |
prr.OnPacketAcked(kMaxSegmentSize); |
bytes_in_flight -= kMaxSegmentSize; |
EXPECT_EQ(QuicTime::Delta::Zero(), |
prr.TimeUntilSend(congestion_window, bytes_in_flight, |
- ssthresh_after_loss)); |
+ ssthresh_after_loss * kMaxSegmentSize)); |
// Send a packet in response. |
prr.OnPacketSent(kMaxSegmentSize); |
bytes_in_flight += kMaxSegmentSize; |
@@ -73,7 +73,7 @@ TEST_F(PrrSenderTest, SingleLossResultsInSendOnEveryOtherAck) { |
bytes_in_flight -= kMaxSegmentSize; |
EXPECT_EQ(QuicTime::Delta::Zero(), |
prr.TimeUntilSend(congestion_window, bytes_in_flight, |
- ssthresh_after_loss)); |
+ ssthresh_after_loss * kMaxSegmentSize)); |
// Send a packet in response, since PRR allows it. |
prr.OnPacketSent(kMaxSegmentSize); |
bytes_in_flight += kMaxSegmentSize; |
@@ -83,7 +83,7 @@ TEST_F(PrrSenderTest, SingleLossResultsInSendOnEveryOtherAck) { |
EXPECT_EQ(congestion_window, bytes_in_flight); |
EXPECT_EQ(QuicTime::Delta::Infinite(), |
prr.TimeUntilSend(congestion_window, bytes_in_flight, |
- ssthresh_after_loss)); |
+ ssthresh_after_loss * kMaxSegmentSize)); |
} |
} |
@@ -106,7 +106,7 @@ TEST_F(PrrSenderTest, BurstLossResultsInSlowStart) { |
for (int j = 0; j < 2; ++j) { |
EXPECT_EQ(QuicTime::Delta::Zero(), |
prr.TimeUntilSend(congestion_window, bytes_in_flight, |
- ssthresh_after_loss)); |
+ ssthresh_after_loss * kMaxSegmentSize)); |
// Send a packet in response. |
prr.OnPacketSent(kMaxSegmentSize); |
bytes_in_flight += kMaxSegmentSize; |
@@ -114,7 +114,7 @@ TEST_F(PrrSenderTest, BurstLossResultsInSlowStart) { |
// PRR should allow no more than 2 packets in response to an ack. |
EXPECT_EQ(QuicTime::Delta::Infinite(), |
prr.TimeUntilSend(congestion_window, bytes_in_flight, |
- ssthresh_after_loss)); |
+ ssthresh_after_loss * kMaxSegmentSize)); |
} |
// Out of SSRB mode, PRR allows one send in response to each ack. |
@@ -123,7 +123,7 @@ TEST_F(PrrSenderTest, BurstLossResultsInSlowStart) { |
bytes_in_flight -= kMaxSegmentSize; |
EXPECT_EQ(QuicTime::Delta::Zero(), |
prr.TimeUntilSend(congestion_window, bytes_in_flight, |
- ssthresh_after_loss)); |
+ ssthresh_after_loss * kMaxSegmentSize)); |
// Send a packet in response. |
prr.OnPacketSent(kMaxSegmentSize); |
bytes_in_flight += kMaxSegmentSize; |