Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: net/quic/test_tools/crypto_test_utils_chromium.cc

Issue 1780983002: Provide valid port on HPKP reports for QUIC connections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Correct ordering of arguments in test Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/quic_crypto_client_stream.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/quic/quic_crypto_client_stream.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698