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 |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "net/quic/core/crypto/aes_128_gcm_12_encrypter.h" | 12 #include "net/quic/core/crypto/aes_128_gcm_12_encrypter.h" |
13 #include "net/quic/core/crypto/crypto_framer.h" | 13 #include "net/quic/core/crypto/crypto_framer.h" |
14 #include "net/quic/core/crypto/crypto_handshake.h" | 14 #include "net/quic/core/crypto/crypto_handshake.h" |
15 #include "net/quic/core/crypto/crypto_protocol.h" | 15 #include "net/quic/core/crypto/crypto_protocol.h" |
16 #include "net/quic/core/crypto/crypto_utils.h" | 16 #include "net/quic/core/crypto/crypto_utils.h" |
17 #include "net/quic/core/crypto/quic_crypto_server_config.h" | 17 #include "net/quic/core/crypto/quic_crypto_server_config.h" |
18 #include "net/quic/core/crypto/quic_decrypter.h" | 18 #include "net/quic/core/crypto/quic_decrypter.h" |
19 #include "net/quic/core/crypto/quic_encrypter.h" | 19 #include "net/quic/core/crypto/quic_encrypter.h" |
20 #include "net/quic/core/crypto/quic_random.h" | 20 #include "net/quic/core/crypto/quic_random.h" |
21 #include "net/quic/core/quic_crypto_client_stream.h" | 21 #include "net/quic/core/quic_crypto_client_stream.h" |
22 #include "net/quic/core/quic_flags.h" | 22 #include "net/quic/core/quic_flags.h" |
23 #include "net/quic/core/quic_protocol.h" | 23 #include "net/quic/core/quic_packets.h" |
24 #include "net/quic/core/quic_session.h" | 24 #include "net/quic/core/quic_session.h" |
25 #include "net/quic/platform/api/quic_socket_address.h" | 25 #include "net/quic/platform/api/quic_socket_address.h" |
26 #include "net/quic/test_tools/crypto_test_utils.h" | 26 #include "net/quic/test_tools/crypto_test_utils.h" |
27 #include "net/quic/test_tools/quic_crypto_server_config_peer.h" | 27 #include "net/quic/test_tools/quic_crypto_server_config_peer.h" |
28 #include "net/quic/test_tools/quic_test_utils.h" | 28 #include "net/quic/test_tools/quic_test_utils.h" |
29 #include "testing/gmock/include/gmock/gmock.h" | 29 #include "testing/gmock/include/gmock/gmock.h" |
30 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
31 | 31 |
32 namespace net { | 32 namespace net { |
33 class QuicConnection; | 33 class QuicConnection; |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 // Regression test for b/31521252, in which a crash would happen here. | 520 // Regression test for b/31521252, in which a crash would happen here. |
521 AdvanceHandshakeWithFakeClient(); | 521 AdvanceHandshakeWithFakeClient(); |
522 EXPECT_FALSE(server_stream()->encryption_established()); | 522 EXPECT_FALSE(server_stream()->encryption_established()); |
523 EXPECT_FALSE(server_stream()->handshake_confirmed()); | 523 EXPECT_FALSE(server_stream()->handshake_confirmed()); |
524 } | 524 } |
525 | 525 |
526 } // namespace | 526 } // namespace |
527 | 527 |
528 } // namespace test | 528 } // namespace test |
529 } // namespace net | 529 } // namespace net |
OLD | NEW |