Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Unified Diff: net/quic/quic_crypto_server_stream_test.cc

Issue 1569853005: relnote: Require QUIC handshakes to require either a valid server nonce or a remote strike register. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@02_CL_111655037
Patch Set: rebase after remove 111628983 Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.cc ('k') | net/quic/quic_flags.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5b007cadb2e1ed1d55fc135902ed42af2dcad386..f783bef5fe73e8395717fa33feb0fd925fbc2487 100644
--- a/net/quic/quic_crypto_server_stream_test.cc
+++ b/net/quic/quic_crypto_server_stream_test.cc
@@ -377,7 +377,12 @@ TEST_P(QuicCryptoServerStreamTest, ZeroRTT) {
server_stream());
}
- EXPECT_EQ(1, client_stream()->num_sent_client_hellos());
+ if (FLAGS_require_strike_register_or_server_nonce &&
+ !AsyncStrikeRegisterVerification()) {
+ EXPECT_EQ(2, client_stream()->num_sent_client_hellos());
+ } else {
+ EXPECT_EQ(1, client_stream()->num_sent_client_hellos());
+ }
}
TEST_P(QuicCryptoServerStreamTest, MessageAfterHandshake) {
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.cc ('k') | net/quic/quic_flags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698