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_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" |
11 #include "net/quic/core/crypto/quic_encrypter.h" | 11 #include "net/quic/core/crypto/quic_encrypter.h" |
12 #include "net/quic/core/quic_flags.h" | |
13 #include "net/quic/core/quic_packets.h" | 12 #include "net/quic/core/quic_packets.h" |
14 #include "net/quic/core/quic_server_id.h" | 13 #include "net/quic/core/quic_server_id.h" |
15 #include "net/quic/core/quic_utils.h" | 14 #include "net/quic/core/quic_utils.h" |
| 15 #include "net/quic/platform/api/quic_flags.h" |
16 #include "net/quic/test_tools/crypto_test_utils.h" | 16 #include "net/quic/test_tools/crypto_test_utils.h" |
17 #include "net/quic/test_tools/quic_stream_peer.h" | 17 #include "net/quic/test_tools/quic_stream_peer.h" |
18 #include "net/quic/test_tools/quic_stream_sequencer_peer.h" | 18 #include "net/quic/test_tools/quic_stream_sequencer_peer.h" |
19 #include "net/quic/test_tools/quic_test_utils.h" | 19 #include "net/quic/test_tools/quic_test_utils.h" |
20 #include "net/quic/test_tools/simple_quic_framer.h" | 20 #include "net/quic/test_tools/simple_quic_framer.h" |
21 #include "testing/gmock/include/gmock/gmock.h" | 21 #include "testing/gmock/include/gmock/gmock.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
23 | 23 |
24 using std::string; | 24 using std::string; |
25 | 25 |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 client_state->GetNextServerDesignatedConnectionId(); | 447 client_state->GetNextServerDesignatedConnectionId(); |
448 QuicConnectionId expected_id = | 448 QuicConnectionId expected_id = |
449 server_session_->connection()->random_generator()->RandUint64(); | 449 server_session_->connection()->random_generator()->RandUint64(); |
450 EXPECT_EQ(GetPeerInMemoryConnectionId(expected_id), server_designated_id); | 450 EXPECT_EQ(GetPeerInMemoryConnectionId(expected_id), server_designated_id); |
451 EXPECT_FALSE(client_state->has_server_designated_connection_id()); | 451 EXPECT_FALSE(client_state->has_server_designated_connection_id()); |
452 } | 452 } |
453 | 453 |
454 } // namespace | 454 } // namespace |
455 } // namespace test | 455 } // namespace test |
456 } // namespace net | 456 } // namespace net |
OLD | NEW |