gfe-relnote: Change the default value of --quic_lumpy_pacing_size to 2. Protected by --quic_change_default_lumpy_pacing_size_to_two.
PiperOrigin-RevId: 256245931
Change-Id: I8f5f1f11bb0ba98d7d9754a2664b51751e948f22
diff --git a/quic/core/congestion_control/pacing_sender_test.cc b/quic/core/congestion_control/pacing_sender_test.cc
index f6cf63b..066a3b5 100644
--- a/quic/core/congestion_control/pacing_sender_test.cc
+++ b/quic/core/congestion_control/pacing_sender_test.cc
@@ -280,8 +280,9 @@
}
TEST_F(PacingSenderTest, FastSending) {
- // Ensure the pacing sender paces, even when the inter-packet spacing is less
- // than the pacing granularity.
+ SetQuicReloadableFlag(quic_change_default_lumpy_pacing_size_to_two, true);
+ // Ensure the pacing sender paces, even when the inter-packet spacing(0.5ms)
+ // is less than the pacing granularity(1ms).
InitPacingRate(10, QuicBandwidth::FromBytesAndTimeDelta(
2 * kMaxOutgoingPacketSize,
QuicTime::Delta::FromMilliseconds(1)));
@@ -293,12 +294,11 @@
CheckPacketIsSentImmediately();
}
- // The first packet was a "make up", then we sent two packets "into the
- // future", since it's 2 packets/ms, so the delay should be 1.5ms.
- CheckPacketIsSentImmediately();
- CheckPacketIsSentImmediately();
- CheckPacketIsSentImmediately();
- CheckPacketIsDelayed(QuicTime::Delta::FromMicroseconds(1500));
+ CheckPacketIsSentImmediately(); // Make up
+ CheckPacketIsSentImmediately(); // Lumpy token
+ CheckPacketIsSentImmediately(); // "In the future" but within granularity.
+ CheckPacketIsSentImmediately(); // Lumpy token
+ CheckPacketIsDelayed(QuicTime::Delta::FromMicroseconds(2000));
clock_.AdvanceTime(QuicTime::Delta::FromMilliseconds(5));
CheckPacketIsSentImmediately();
@@ -312,10 +312,11 @@
// The first packet was a "make up", then we sent two packets "into the
// future", so the delay should be 1.5ms.
- CheckPacketIsSentImmediately();
- CheckPacketIsSentImmediately();
- CheckPacketIsSentImmediately();
- CheckPacketIsDelayed(QuicTime::Delta::FromMicroseconds(1500));
+ CheckPacketIsSentImmediately(); // Make up
+ CheckPacketIsSentImmediately(); // Lumpy token
+ CheckPacketIsSentImmediately(); // "In the future" but within granularity.
+ CheckPacketIsSentImmediately(); // Lumpy token
+ CheckPacketIsDelayed(QuicTime::Delta::FromMicroseconds(2000));
}
TEST_F(PacingSenderTest, NoBurstEnteringRecovery) {