Index: net/quic/quic_crypto_server_stream_test.cc |
diff --git a/net/quic/quic_crypto_server_stream_test.cc b/net/quic/quic_crypto_server_stream_test.cc |
index 0dd0b7f8ed2e8192d45f510fcd532a2547363060..01a2db8b5505b506a9317fe06f97a89b3b6f1607 100644 |
--- a/net/quic/quic_crypto_server_stream_test.cc |
+++ b/net/quic/quic_crypto_server_stream_test.cc |
@@ -74,6 +74,7 @@ class QuicCryptoServerStreamTest : public ::testing::TestWithParam<bool> { |
CryptoTestUtils::ProofSourceForTesting()), |
server_id_(kServerHostname, kServerPort, PRIVACY_MODE_DISABLED), |
client_crypto_config_(CryptoTestUtils::ProofVerifierForTesting()) { |
+ FLAGS_enable_quic_stateless_reject_support = false; |
server_crypto_config_.set_strike_register_no_startup_period(); |
InitializeServer(); |
@@ -212,7 +213,7 @@ TEST_P(QuicCryptoServerStreamTest, ConnectedAfterCHLO) { |
TEST_P(QuicCryptoServerStreamTest, StatelessRejectAfterCHLO) { |
ValueRestore<bool> old_flag(&FLAGS_enable_quic_stateless_reject_support, |
true); |
- server_stream()->set_use_stateless_rejects_if_peer_supported(true); |
+ InitializeServer(); |
InitializeFakeClient(/* supports_stateless_rejects= */ true); |
AdvanceHandshakeWithFakeClient(); |
@@ -244,7 +245,7 @@ TEST_P(QuicCryptoServerStreamTest, StatelessRejectAfterCHLO) { |
TEST_P(QuicCryptoServerStreamTest, ConnectedAfterStatelessHandshake) { |
ValueRestore<bool> old_flag(&FLAGS_enable_quic_stateless_reject_support, |
true); |
- server_stream()->set_use_stateless_rejects_if_peer_supported(true); |
+ InitializeServer(); |
InitializeFakeClient(/* supports_stateless_rejects= */ true); |
AdvanceHandshakeWithFakeClient(); |
@@ -271,7 +272,6 @@ TEST_P(QuicCryptoServerStreamTest, ConnectedAfterStatelessHandshake) { |
// Now create new client and server streams with the existing config |
// and try the handshake again (0-RTT handshake). |
InitializeServer(); |
- server_stream()->set_use_stateless_rejects_if_peer_supported(true); |
InitializeFakeClient(/* supports_stateless_rejects= */ true); |
@@ -292,7 +292,7 @@ TEST_P(QuicCryptoServerStreamTest, ConnectedAfterStatelessHandshake) { |
TEST_P(QuicCryptoServerStreamTest, NoStatelessRejectIfNoClientSupport) { |
ValueRestore<bool> old_flag(&FLAGS_enable_quic_stateless_reject_support, |
true); |
- server_stream()->set_use_stateless_rejects_if_peer_supported(true); |
+ InitializeServer(); |
// The server is configured to use stateless rejects, but the client does not |
// support it. |