Index: net/quic/quic_session_test.cc |
diff --git a/net/quic/quic_session_test.cc b/net/quic/quic_session_test.cc |
index 1522f201d7d245ce10719d4262c824b76a6b8580..0a5032e70885846adb43ec89de5e6c7415a9c675 100644 |
--- a/net/quic/quic_session_test.cc |
+++ b/net/quic/quic_session_test.cc |
@@ -995,7 +995,8 @@ TEST_P(QuicSessionTest, WindowUpdateUnblocksHeadersStream) { |
TEST_P(QuicSessionTest, TooManyUnfinishedStreamsCauseConnectionClose) { |
// If a buggy/malicious peer creates too many streams that are not ended with |
// a FIN or RST then we send a connection close. |
- FLAGS_close_quic_connection_unfinished_streams_2 = true; |
+ ValueRestore<bool> old_flag(&FLAGS_close_quic_connection_unfinished_streams_2, |
+ true); |
EXPECT_CALL(*connection_, |
SendConnectionClose(QUIC_TOO_MANY_UNFINISHED_STREAMS)).Times(1); |