| 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/test_tools/crypto_test_utils.h" | 5 #include "net/quic/test_tools/crypto_test_utils.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 scoped_ptr<CTVerifier> cert_transparency_verifier, | 143 scoped_ptr<CTVerifier> cert_transparency_verifier, |
| 144 const std::string& cert_file) | 144 const std::string& cert_file) |
| 145 : TestProofVerifierChromium(std::move(cert_verifier), | 145 : TestProofVerifierChromium(std::move(cert_verifier), |
| 146 std::move(transport_security_state), | 146 std::move(transport_security_state), |
| 147 std::move(cert_transparency_verifier), | 147 std::move(cert_transparency_verifier), |
| 148 cert_file) {} | 148 cert_file) {} |
| 149 ~FakeProofVerifier() override {} | 149 ~FakeProofVerifier() override {} |
| 150 | 150 |
| 151 // ProofVerifier interface | 151 // ProofVerifier interface |
| 152 QuicAsyncStatus VerifyProof(const std::string& hostname, | 152 QuicAsyncStatus VerifyProof(const std::string& hostname, |
| 153 const uint16_t port, |
| 153 const std::string& server_config, | 154 const std::string& server_config, |
| 154 QuicVersion quic_version, | 155 QuicVersion quic_version, |
| 155 StringPiece chlo_hash, | 156 StringPiece chlo_hash, |
| 156 const std::vector<std::string>& certs, | 157 const std::vector<std::string>& certs, |
| 157 const std::string& cert_sct, | 158 const std::string& cert_sct, |
| 158 const std::string& signature, | 159 const std::string& signature, |
| 159 const ProofVerifyContext* verify_context, | 160 const ProofVerifyContext* verify_context, |
| 160 std::string* error_details, | 161 std::string* error_details, |
| 161 scoped_ptr<ProofVerifyDetails>* verify_details, | 162 scoped_ptr<ProofVerifyDetails>* verify_details, |
| 162 ProofVerifierCallback* callback) override { | 163 ProofVerifierCallback* callback) override { |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 } | 272 } |
| 272 | 273 |
| 273 // static | 274 // static |
| 274 ProofVerifyContext* CryptoTestUtils::ProofVerifyContextForTesting() { | 275 ProofVerifyContext* CryptoTestUtils::ProofVerifyContextForTesting() { |
| 275 return new ProofVerifyContextChromium(/*cert_verify_flags=*/0, BoundNetLog()); | 276 return new ProofVerifyContextChromium(/*cert_verify_flags=*/0, BoundNetLog()); |
| 276 } | 277 } |
| 277 | 278 |
| 278 } // namespace test | 279 } // namespace test |
| 279 | 280 |
| 280 } // namespace net | 281 } // namespace net |
| OLD | NEW |