Add a new QUIC platform API QUIC_SLOW_TEST which will be used in chrome
to disable tests which are too slow.
gfe-relnote: n/a - test only
PiperOrigin-RevId: 280683817
Change-Id: I932310747a3ae2ca430b26d9d56d0f44cb9ee589
diff --git a/quic/core/congestion_control/bbr2_simulator_test.cc b/quic/core/congestion_control/bbr2_simulator_test.cc
index 85136bb..27f29d5 100644
--- a/quic/core/congestion_control/bbr2_simulator_test.cc
+++ b/quic/core/congestion_control/bbr2_simulator_test.cc
@@ -1023,7 +1023,7 @@
ASSERT_TRUE(simulator_result);
}
-TEST_F(Bbr2MultiSenderTest, Bbr2VsReno) {
+TEST_F(Bbr2MultiSenderTest, QUIC_SLOW_TEST(Bbr2VsReno)) {
SetupTcpSender(sender_endpoints_[1].get(), /*reno=*/true);
MultiSenderTopologyParams params;
@@ -1054,7 +1054,7 @@
ASSERT_TRUE(simulator_result);
}
-TEST_F(Bbr2MultiSenderTest, Bbr2VsCubic) {
+TEST_F(Bbr2MultiSenderTest, QUIC_SLOW_TEST(Bbr2VsCubic)) {
SetupTcpSender(sender_endpoints_[1].get(), /*reno=*/false);
MultiSenderTopologyParams params;
diff --git a/quic/platform/api/quic_test.h b/quic/platform/api/quic_test.h
index 8b6e135..f4ef99a 100644
--- a/quic/platform/api/quic_test.h
+++ b/quic/platform/api/quic_test.h
@@ -28,4 +28,6 @@
EXPECT_QUIC_DEBUG_DEATH_IMPL(condition, message)
}
+#define QUIC_SLOW_TEST(test) QUIC_SLOW_TEST_IMPL(test)
+
#endif // QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_