| 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/test_tools/crypto_test_utils.h" | 5 #include "net/quic/test_tools/crypto_test_utils.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "crypto/openssl_util.h" | 10 #include "crypto/openssl_util.h" |
| 11 #include "crypto/secure_hash.h" | 11 #include "crypto/secure_hash.h" |
| 12 #include "net/quic/core/crypto/channel_id.h" | 12 #include "net/quic/core/crypto/channel_id.h" |
| 13 #include "net/quic/core/crypto/common_cert_set.h" | 13 #include "net/quic/core/crypto/common_cert_set.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_server_config_protobuf.h" | 15 #include "net/quic/core/crypto/crypto_server_config_protobuf.h" |
| 16 #include "net/quic/core/crypto/quic_crypto_server_config.h" | 16 #include "net/quic/core/crypto/quic_crypto_server_config.h" |
| 17 #include "net/quic/core/crypto/quic_decrypter.h" | 17 #include "net/quic/core/crypto/quic_decrypter.h" |
| 18 #include "net/quic/core/crypto/quic_encrypter.h" | 18 #include "net/quic/core/crypto/quic_encrypter.h" |
| 19 #include "net/quic/core/crypto/quic_random.h" | 19 #include "net/quic/core/crypto/quic_random.h" |
| 20 #include "net/quic/core/quic_clock.h" | |
| 21 #include "net/quic/core/quic_crypto_client_stream.h" | 20 #include "net/quic/core/quic_crypto_client_stream.h" |
| 22 #include "net/quic/core/quic_crypto_server_stream.h" | 21 #include "net/quic/core/quic_crypto_server_stream.h" |
| 23 #include "net/quic/core/quic_crypto_stream.h" | 22 #include "net/quic/core/quic_crypto_stream.h" |
| 24 #include "net/quic/core/quic_server_id.h" | 23 #include "net/quic/core/quic_server_id.h" |
| 25 #include "net/quic/core/quic_utils.h" | 24 #include "net/quic/core/quic_utils.h" |
| 25 |
| 26 #include "net/quic/platform/api/quic_clock.h" |
| 26 #include "net/quic/platform/api/quic_socket_address.h" | 27 #include "net/quic/platform/api/quic_socket_address.h" |
| 27 #include "net/quic/test_tools/quic_connection_peer.h" | 28 #include "net/quic/test_tools/quic_connection_peer.h" |
| 28 #include "net/quic/test_tools/quic_framer_peer.h" | 29 #include "net/quic/test_tools/quic_framer_peer.h" |
| 29 #include "net/quic/test_tools/quic_test_utils.h" | 30 #include "net/quic/test_tools/quic_test_utils.h" |
| 30 #include "net/quic/test_tools/simple_quic_framer.h" | 31 #include "net/quic/test_tools/simple_quic_framer.h" |
| 31 #include "third_party/boringssl/src/include/openssl/bn.h" | 32 #include "third_party/boringssl/src/include/openssl/bn.h" |
| 32 #include "third_party/boringssl/src/include/openssl/ec.h" | 33 #include "third_party/boringssl/src/include/openssl/ec.h" |
| 33 #include "third_party/boringssl/src/include/openssl/ecdsa.h" | 34 #include "third_party/boringssl/src/include/openssl/ecdsa.h" |
| 34 #include "third_party/boringssl/src/include/openssl/evp.h" | 35 #include "third_party/boringssl/src/include/openssl/evp.h" |
| 35 #include "third_party/boringssl/src/include/openssl/obj_mac.h" | 36 #include "third_party/boringssl/src/include/openssl/obj_mac.h" |
| (...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1011 // Pass a inchoate CHLO. | 1012 // Pass a inchoate CHLO. |
| 1012 FullChloGenerator generator(crypto_config, server_ip, client_addr, clock, | 1013 FullChloGenerator generator(crypto_config, server_ip, client_addr, clock, |
| 1013 proof, compressed_certs_cache, out); | 1014 proof, compressed_certs_cache, out); |
| 1014 crypto_config->ValidateClientHello( | 1015 crypto_config->ValidateClientHello( |
| 1015 inchoate_chlo, client_addr.host(), server_ip, version, clock, proof, | 1016 inchoate_chlo, client_addr.host(), server_ip, version, clock, proof, |
| 1016 generator.GetValidateClientHelloCallback()); | 1017 generator.GetValidateClientHelloCallback()); |
| 1017 } | 1018 } |
| 1018 | 1019 |
| 1019 } // namespace test | 1020 } // namespace test |
| 1020 } // namespace net | 1021 } // namespace net |
| OLD | NEW |