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

Side by Side Diff: net/quic/quic_crypto_server_stream_test.cc

Issue 1404053002: relnote: Disables strike register lookups when talking QUIC_VERSION_27 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Remove_unused_supported_versions_103964623
Patch Set: Use a smaller cert and delete the TODO Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.cc ('k') | net/quic/quic_flags.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/quic_crypto_server_stream.h" 5 #include "net/quic/quic_crypto_server_stream.h"
6 6
7 #include <map> 7 #include <map>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 TestQuicSpdyClientSession* client_session = nullptr; 118 TestQuicSpdyClientSession* client_session = nullptr;
119 CreateClientSessionForTest(server_id_, supports_stateless_rejects, 119 CreateClientSessionForTest(server_id_, supports_stateless_rejects,
120 QuicTime::Delta::FromSeconds(100000), 120 QuicTime::Delta::FromSeconds(100000),
121 &client_crypto_config_, &client_connection_, 121 &client_crypto_config_, &client_connection_,
122 &client_session); 122 &client_session);
123 CHECK(client_session); 123 CHECK(client_session);
124 client_session_.reset(client_session); 124 client_session_.reset(client_session);
125 } 125 }
126 126
127 bool AsyncStrikeRegisterVerification() { 127 bool AsyncStrikeRegisterVerification() {
128 if (server_connection_->version() > QUIC_VERSION_26) {
129 return false;
130 }
128 return GetParam(); 131 return GetParam();
129 } 132 }
130 133
131 void ConstructHandshakeMessage() { 134 void ConstructHandshakeMessage() {
132 CryptoFramer framer; 135 CryptoFramer framer;
133 message_data_.reset(framer.ConstructHandshakeMessage(message_)); 136 message_data_.reset(framer.ConstructHandshakeMessage(message_));
134 } 137 }
135 138
136 int CompleteCryptoHandshake() { 139 int CompleteCryptoHandshake() {
137 CHECK(server_connection_); 140 CHECK(server_connection_);
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 message_.Clear(); 407 message_.Clear();
405 QuicConfig stateful_reject_config = DefaultQuicConfig(); 408 QuicConfig stateful_reject_config = DefaultQuicConfig();
406 stateful_reject_config.ToHandshakeMessage(&message_); 409 stateful_reject_config.ToHandshakeMessage(&message_);
407 EXPECT_FALSE( 410 EXPECT_FALSE(
408 QuicCryptoServerStreamPeer::DoesPeerSupportStatelessRejects(message_)); 411 QuicCryptoServerStreamPeer::DoesPeerSupportStatelessRejects(message_));
409 } 412 }
410 413
411 } // namespace 414 } // namespace
412 } // namespace test 415 } // namespace test
413 } // namespace net 416 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.cc ('k') | net/quic/quic_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698