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_stream_test.cc b/quic/core/quic_stream_test.cc
index 97863ad..54ba983 100644
--- a/quic/core/quic_stream_test.cc
+++ b/quic/core/quic_stream_test.cc
@@ -155,14 +155,16 @@
INSTANTIATE_TEST_SUITE_P(
QuicStreamTests,
QuicStreamTest,
- ::testing::ValuesIn(ParsedVersionOfIndex(AllSupportedVersions(), 1)));
+ ::testing::ValuesIn(ParsedVersionOfIndex(AllSupportedVersions(), 1)),
+ ::testing::PrintToStringParamName());
// Make a parameterized version of the QuicStreamTest for those tests
// that need to differentiate based on version number.
class QuicParameterizedStreamTest : public QuicStreamTestBase {};
INSTANTIATE_TEST_SUITE_P(QuicParameterizedStreamTests,
QuicParameterizedStreamTest,
- ::testing::ValuesIn(AllSupportedVersions()));
+ ::testing::ValuesIn(AllSupportedVersions()),
+ ::testing::PrintToStringParamName());
TEST_P(QuicStreamTest, PendingStreamStaticness) {
Initialize();