| 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/core/quic_crypto_server_stream.h" | 5 #include "net/quic/core/quic_crypto_server_stream.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 PacketSavingConnection* client_connection_; | 190 PacketSavingConnection* client_connection_; |
| 191 QuicCryptoClientConfig client_crypto_config_; | 191 QuicCryptoClientConfig client_crypto_config_; |
| 192 std::unique_ptr<TestQuicSpdyClientSession> client_session_; | 192 std::unique_ptr<TestQuicSpdyClientSession> client_session_; |
| 193 | 193 |
| 194 CryptoHandshakeMessage message_; | 194 CryptoHandshakeMessage message_; |
| 195 std::unique_ptr<QuicData> message_data_; | 195 std::unique_ptr<QuicData> message_data_; |
| 196 CryptoTestUtils::FakeClientOptions client_options_; | 196 CryptoTestUtils::FakeClientOptions client_options_; |
| 197 DelayedVerifyStrikeRegisterClient* strike_register_client_; | 197 DelayedVerifyStrikeRegisterClient* strike_register_client_; |
| 198 | 198 |
| 199 // Which QUIC versions the client and server support. | 199 // Which QUIC versions the client and server support. |
| 200 QuicVersionVector supported_versions_ = QuicSupportedVersions(); | 200 QuicVersionVector supported_versions_ = AllSupportedVersions(); |
| 201 }; | 201 }; |
| 202 | 202 |
| 203 INSTANTIATE_TEST_CASE_P(Tests, QuicCryptoServerStreamTest, testing::Bool()); | 203 INSTANTIATE_TEST_CASE_P(Tests, QuicCryptoServerStreamTest, testing::Bool()); |
| 204 | 204 |
| 205 TEST_P(QuicCryptoServerStreamTest, NotInitiallyConected) { | 205 TEST_P(QuicCryptoServerStreamTest, NotInitiallyConected) { |
| 206 Initialize(); | 206 Initialize(); |
| 207 EXPECT_FALSE(server_stream()->encryption_established()); | 207 EXPECT_FALSE(server_stream()->encryption_established()); |
| 208 EXPECT_FALSE(server_stream()->handshake_confirmed()); | 208 EXPECT_FALSE(server_stream()->handshake_confirmed()); |
| 209 } | 209 } |
| 210 | 210 |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 QUIC_NO_ERROR, "", ConnectionCloseBehavior::SILENT_CLOSE); | 573 QUIC_NO_ERROR, "", ConnectionCloseBehavior::SILENT_CLOSE); |
| 574 | 574 |
| 575 // The outstanding nonce verification RPC now completes. | 575 // The outstanding nonce verification RPC now completes. |
| 576 strike_register_client_->RunPendingVerifications(); | 576 strike_register_client_->RunPendingVerifications(); |
| 577 } | 577 } |
| 578 | 578 |
| 579 } // namespace | 579 } // namespace |
| 580 | 580 |
| 581 } // namespace test | 581 } // namespace test |
| 582 } // namespace net | 582 } // namespace net |
| OLD | NEW |