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

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

Issue 2463093003: Landing Recent QUIC changes until Sat Oct 29 14:59:35. (Closed)
Patch Set: add change to quiartc_session_test.cc Created 4 years, 1 month 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_client_stream.h" 5 #include "net/quic/core/quic_crypto_client_stream.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "net/quic/core/crypto/aes_128_gcm_12_encrypter.h" 9 #include "net/quic/core/crypto/aes_128_gcm_12_encrypter.h"
10 #include "net/quic/core/crypto/quic_decrypter.h" 10 #include "net/quic/core/crypto/quic_decrypter.h"
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 CreateServerSessionForTest(server_id_, QuicTime::Delta::FromSeconds(100000), 332 CreateServerSessionForTest(server_id_, QuicTime::Delta::FromSeconds(100000),
333 AllSupportedVersions(), &helper_, 333 AllSupportedVersions(), &helper_,
334 &alarm_factory_, &server_crypto_config_, 334 &alarm_factory_, &server_crypto_config_,
335 &server_compressed_certs_cache_, 335 &server_compressed_certs_cache_,
336 &server_connection_, &server_session); 336 &server_connection_, &server_session);
337 CHECK(server_session); 337 CHECK(server_session);
338 server_session_.reset(server_session); 338 server_session_.reset(server_session);
339 CryptoTestUtils::FakeServerOptions options; 339 CryptoTestUtils::FakeServerOptions options;
340 CryptoTestUtils::SetupCryptoServerConfigForTest( 340 CryptoTestUtils::SetupCryptoServerConfigForTest(
341 server_connection_->clock(), server_connection_->random_generator(), 341 server_connection_->clock(), server_connection_->random_generator(),
342 server_session_->config(), &server_crypto_config_, options); 342 &server_crypto_config_, options);
343 FLAGS_enable_quic_stateless_reject_support = true; 343 FLAGS_enable_quic_stateless_reject_support = true;
344 } 344 }
345 345
346 QuicFlagSaver flags_; // Save/restore all QUIC flag values. 346 QuicFlagSaver flags_; // Save/restore all QUIC flag values.
347 347
348 MockQuicConnectionHelper helper_; 348 MockQuicConnectionHelper helper_;
349 MockAlarmFactory alarm_factory_; 349 MockAlarmFactory alarm_factory_;
350 350
351 // Client crypto stream state 351 // Client crypto stream state
352 PacketSavingConnection* client_connection_; 352 PacketSavingConnection* client_connection_;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 client_state->GetNextServerDesignatedConnectionId(); 389 client_state->GetNextServerDesignatedConnectionId();
390 QuicConnectionId expected_id = 390 QuicConnectionId expected_id =
391 server_session_->connection()->random_generator()->RandUint64(); 391 server_session_->connection()->random_generator()->RandUint64();
392 EXPECT_EQ(expected_id, server_designated_id); 392 EXPECT_EQ(expected_id, server_designated_id);
393 EXPECT_FALSE(client_state->has_server_designated_connection_id()); 393 EXPECT_FALSE(client_state->has_server_designated_connection_id());
394 } 394 }
395 395
396 } // namespace 396 } // namespace
397 } // namespace test 397 } // namespace test
398 } // namespace net 398 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/crypto/quic_crypto_server_config.cc ('k') | net/quic/core/quic_crypto_server_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698