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

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

Issue 2236463004: Rename QuicSupportedVersions to QuicAllSupportedVersions. Add QuicCurrentSupportedVersions which re… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@129437595
Patch Set: update more files outside net/ Created 4 years, 4 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
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/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
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
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
OLDNEW
« no previous file with comments | « net/quic/core/quic_crypto_client_stream_test.cc ('k') | net/quic/core/quic_end_to_end_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698