Fix QUIC core test display
Tests names will now display a pretty name instead of the test index.
For example new string is:
QuicStreamTests/QuicStreamTest.PendingStreamStaticness/Q048
as opposed to old:
QuicStreamTests/QuicStreamTest.PendingStreamStaticness/33
gfe-relnote: n/a, test-only
PiperOrigin-RevId: 269934211
Change-Id: I44552e9730c57e00a3829f5a15ba10d8af2dc207
diff --git a/quic/core/quic_crypto_server_stream_test.cc b/quic/core/quic_crypto_server_stream_test.cc
index de47c68..e2ccfde 100644
--- a/quic/core/quic_crypto_server_stream_test.cc
+++ b/quic/core/quic_crypto_server_stream_test.cc
@@ -170,7 +170,10 @@
ParsedQuicVersionVector supported_versions_ = AllSupportedVersions();
};
-INSTANTIATE_TEST_SUITE_P(Tests, QuicCryptoServerStreamTest, testing::Bool());
+INSTANTIATE_TEST_SUITE_P(Tests,
+ QuicCryptoServerStreamTest,
+ ::testing::Bool(),
+ ::testing::PrintToStringParamName());
TEST_P(QuicCryptoServerStreamTest, NotInitiallyConected) {
Initialize();
@@ -332,7 +335,8 @@
INSTANTIATE_TEST_SUITE_P(MoreTests,
QuicCryptoServerStreamTestWithFailingProofSource,
- testing::Bool());
+ ::testing::Bool(),
+ ::testing::PrintToStringParamName());
TEST_P(QuicCryptoServerStreamTestWithFailingProofSource, Test) {
Initialize();
@@ -366,7 +370,8 @@
INSTANTIATE_TEST_SUITE_P(YetMoreTests,
QuicCryptoServerStreamTestWithFakeProofSource,
- testing::Bool());
+ ::testing::Bool(),
+ ::testing::PrintToStringParamName());
// Regression test for b/35422225, in which multiple CHLOs arriving on the same
// connection in close succession could cause a crash, especially when the use