Create a PacketFilter for random loss and use it in QuartcBidiTest.
This sets up a second benchmark in QuartcBidiTest which runs at 300 kbps, with
200 ms propagation delay, but also includes 2% random packet loss.
Random loss is one of the features required to bring Simulator-based
BidiTestRunner tests in line with higher-level Quartc quality tests. Those
tests typically use 2-8% random loss, depending on the network profile.
gfe-relnote: n/a (Quartc tests only)
PiperOrigin-RevId: 244062413
Change-Id: Ic7cfc9b7e8c2b5339c8e1a25d7583b8cf156c870
diff --git a/quic/quartc/test/bidi_test_runner.h b/quic/quartc/test/bidi_test_runner.h
index b76695a..4369e22 100644
--- a/quic/quartc/test/bidi_test_runner.h
+++ b/quic/quartc/test/bidi_test_runner.h
@@ -76,6 +76,9 @@
virtual bool RunTest(QuicTime::Delta test_duration);
private:
+ // Returns true when no pending packets are believed to be in-flight.
+ bool PacketsDrained();
+
simulator::Simulator* simulator_;
QuartcPacketTransport* client_transport_;
QuartcPacketTransport* server_transport_;