OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <memory> | 5 #include <memory> |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "net/base/ip_endpoint.h" | 8 #include "net/base/ip_endpoint.h" |
9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
10 #include "net/base/test_completion_callback.h" | 10 #include "net/base/test_completion_callback.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 string* signature_; | 135 string* signature_; |
136 string* leaf_cert_sct_; | 136 string* leaf_cert_sct_; |
137 }; | 137 }; |
138 | 138 |
139 class ProofTest : public ::testing::TestWithParam<QuicVersion> {}; | 139 class ProofTest : public ::testing::TestWithParam<QuicVersion> {}; |
140 | 140 |
141 } // namespace | 141 } // namespace |
142 | 142 |
143 INSTANTIATE_TEST_CASE_P(QuicVersion, | 143 INSTANTIATE_TEST_CASE_P(QuicVersion, |
144 ProofTest, | 144 ProofTest, |
145 ::testing::ValuesIn(QuicSupportedVersions())); | 145 ::testing::ValuesIn(AllSupportedVersions())); |
146 | 146 |
147 // TODO(rtenneti): Enable testing of ProofVerifier. See http://crbug.com/514468. | 147 // TODO(rtenneti): Enable testing of ProofVerifier. See http://crbug.com/514468. |
148 TEST_P(ProofTest, DISABLED_Verify) { | 148 TEST_P(ProofTest, DISABLED_Verify) { |
149 std::unique_ptr<ProofSource> source(CryptoTestUtils::ProofSourceForTesting()); | 149 std::unique_ptr<ProofSource> source(CryptoTestUtils::ProofSourceForTesting()); |
150 std::unique_ptr<ProofVerifier> verifier( | 150 std::unique_ptr<ProofVerifier> verifier( |
151 CryptoTestUtils::ProofVerifierForTesting()); | 151 CryptoTestUtils::ProofVerifierForTesting()); |
152 | 152 |
153 const string server_config = "server config bytes"; | 153 const string server_config = "server config bytes"; |
154 const string hostname = "test.example.com"; | 154 const string hostname = "test.example.com"; |
155 const uint16_t port = 8443; | 155 const uint16_t port = 8443; |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 for (size_t i = 1; i < certs.size(); i++) { | 475 for (size_t i = 1; i < certs.size(); i++) { |
476 wrong_certs.push_back(certs[i]); | 476 wrong_certs.push_back(certs[i]); |
477 } | 477 } |
478 RunVerification(verifier.get(), hostname, port, server_config, quic_version, | 478 RunVerification(verifier.get(), hostname, port, server_config, quic_version, |
479 chlo_hash, wrong_certs, signature, false); | 479 chlo_hash, wrong_certs, signature, false); |
480 } | 480 } |
481 } | 481 } |
482 | 482 |
483 } // namespace test | 483 } // namespace test |
484 } // namespace net | 484 } // namespace net |
OLD | NEW |