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_30) { | 148 if (server_connection_->version() > QUIC_VERSION_31) { |
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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 QUIC_NO_ERROR, ConnectionCloseSource::FROM_PEER); | 519 QUIC_NO_ERROR, ConnectionCloseSource::FROM_PEER); |
520 | 520 |
521 // The outstanding nonce verification RPC now completes. | 521 // The outstanding nonce verification RPC now completes. |
522 strike_register_client_->RunPendingVerifications(); | 522 strike_register_client_->RunPendingVerifications(); |
523 } | 523 } |
524 | 524 |
525 } // namespace | 525 } // namespace |
526 | 526 |
527 } // namespace test | 527 } // namespace test |
528 } // namespace net | 528 } // namespace net |
OLD | NEW |