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

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

Issue 2808273006: Landing Recent QUIC changes until Sun Apr 9 16:12:55 (Closed)
Patch Set: increment enabled_options in e2e test Created 3 years, 8 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
« no previous file with comments | « net/quic/core/quic_connection_test.cc ('k') | net/quic/core/quic_crypto_server_stream_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 // complete, and can be used for a subsequent successful handshake. 438 // complete, and can be used for a subsequent successful handshake.
439 EXPECT_TRUE(client_state->IsComplete(QuicWallTime::FromUNIXSeconds(0))); 439 EXPECT_TRUE(client_state->IsComplete(QuicWallTime::FromUNIXSeconds(0)));
440 440
441 ASSERT_TRUE(client_state->has_server_nonce()); 441 ASSERT_TRUE(client_state->has_server_nonce());
442 ASSERT_FALSE(client_state->GetNextServerNonce().empty()); 442 ASSERT_FALSE(client_state->GetNextServerNonce().empty());
443 ASSERT_TRUE(client_state->has_server_designated_connection_id()); 443 ASSERT_TRUE(client_state->has_server_designated_connection_id());
444 QuicConnectionId server_designated_id = 444 QuicConnectionId server_designated_id =
445 client_state->GetNextServerDesignatedConnectionId(); 445 client_state->GetNextServerDesignatedConnectionId();
446 QuicConnectionId expected_id = 446 QuicConnectionId expected_id =
447 server_session_->connection()->random_generator()->RandUint64(); 447 server_session_->connection()->random_generator()->RandUint64();
448 EXPECT_EQ(expected_id, server_designated_id); 448 EXPECT_EQ(GetPeerInMemoryConnectionId(expected_id), server_designated_id);
449 EXPECT_FALSE(client_state->has_server_designated_connection_id()); 449 EXPECT_FALSE(client_state->has_server_designated_connection_id());
450 } 450 }
451 451
452 } // namespace 452 } // namespace
453 } // namespace test 453 } // namespace test
454 } // namespace net 454 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_connection_test.cc ('k') | net/quic/core/quic_crypto_server_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698