OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |