| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/crypto/quic_crypto_server_config.h" | 5 #include "net/quic/crypto/quic_crypto_server_config.h" |
| 6 | 6 |
| 7 #include <stdarg.h> | 7 #include <stdarg.h> |
| 8 | 8 |
| 9 #include <memory> |
| 10 |
| 9 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
| 10 #include "net/quic/crypto/aes_128_gcm_12_encrypter.h" | 12 #include "net/quic/crypto/aes_128_gcm_12_encrypter.h" |
| 11 #include "net/quic/crypto/cert_compressor.h" | 13 #include "net/quic/crypto/cert_compressor.h" |
| 12 #include "net/quic/crypto/chacha20_poly1305_rfc7539_encrypter.h" | 14 #include "net/quic/crypto/chacha20_poly1305_rfc7539_encrypter.h" |
| 13 #include "net/quic/crypto/crypto_handshake_message.h" | 15 #include "net/quic/crypto/crypto_handshake_message.h" |
| 14 #include "net/quic/crypto/crypto_secret_boxer.h" | 16 #include "net/quic/crypto/crypto_secret_boxer.h" |
| 15 #include "net/quic/crypto/crypto_server_config_protobuf.h" | 17 #include "net/quic/crypto/crypto_server_config_protobuf.h" |
| 16 #include "net/quic/crypto/quic_random.h" | 18 #include "net/quic/crypto/quic_random.h" |
| 17 #include "net/quic/crypto/strike_register_client.h" | 19 #include "net/quic/crypto/strike_register_client.h" |
| 18 #include "net/quic/quic_flags.h" | 20 #include "net/quic/quic_flags.h" |
| (...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 TEST_F(CryptoServerConfigsTest, InvalidConfigs) { | 776 TEST_F(CryptoServerConfigsTest, InvalidConfigs) { |
| 775 // Ensure that invalid configs don't change anything. | 777 // Ensure that invalid configs don't change anything. |
| 776 SetConfigs("a", 800, 1, "b", 900, 1, "c", 1100, 1, nullptr); | 778 SetConfigs("a", 800, 1, "b", 900, 1, "c", 1100, 1, nullptr); |
| 777 test_peer_.CheckConfigs("a", false, "b", true, "c", false, nullptr); | 779 test_peer_.CheckConfigs("a", false, "b", true, "c", false, nullptr); |
| 778 SetConfigs("a", 800, 1, "c", 1100, 1, "INVALID1", 1000, 1, nullptr); | 780 SetConfigs("a", 800, 1, "c", 1100, 1, "INVALID1", 1000, 1, nullptr); |
| 779 test_peer_.CheckConfigs("a", false, "b", true, "c", false, nullptr); | 781 test_peer_.CheckConfigs("a", false, "b", true, "c", false, nullptr); |
| 780 } | 782 } |
| 781 | 783 |
| 782 } // namespace test | 784 } // namespace test |
| 783 } // namespace net | 785 } // namespace net |
| OLD | NEW |