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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 QuicTime::Delta::FromSeconds(100000), | 138 QuicTime::Delta::FromSeconds(100000), |
139 supported_versions_, | 139 supported_versions_, |
140 | 140 |
141 helpers_.back(), &client_crypto_config_, | 141 helpers_.back(), &client_crypto_config_, |
142 &client_connection_, &client_session); | 142 &client_connection_, &client_session); |
143 CHECK(client_session); | 143 CHECK(client_session); |
144 client_session_.reset(client_session); | 144 client_session_.reset(client_session); |
145 } | 145 } |
146 | 146 |
147 bool AsyncStrikeRegisterVerification() { | 147 bool AsyncStrikeRegisterVerification() { |
148 if (server_connection_->version() > QUIC_VERSION_26) { | 148 if (server_connection_->version() > QUIC_VERSION_30) { |
149 return false; | 149 return false; |
150 } | 150 } |
151 return GetParam(); | 151 return GetParam(); |
152 } | 152 } |
153 | 153 |
154 void ConstructHandshakeMessage() { | 154 void ConstructHandshakeMessage() { |
155 CryptoFramer framer; | 155 CryptoFramer framer; |
156 message_data_.reset(framer.ConstructHandshakeMessage(message_)); | 156 message_data_.reset(framer.ConstructHandshakeMessage(message_)); |
157 } | 157 } |
158 | 158 |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 /*from_peer=*/true); | 517 /*from_peer=*/true); |
518 | 518 |
519 // The outstanding nonce verification RPC now completes. | 519 // The outstanding nonce verification RPC now completes. |
520 strike_register_client_->RunPendingVerifications(); | 520 strike_register_client_->RunPendingVerifications(); |
521 } | 521 } |
522 | 522 |
523 } // namespace | 523 } // namespace |
524 | 524 |
525 } // namespace test | 525 } // namespace test |
526 } // namespace net | 526 } // namespace net |
OLD | NEW |