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

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: Fix missed tests 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
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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 scoped_ptr<CTVerifier> cert_transparency_verifier, 141 scoped_ptr<CTVerifier> cert_transparency_verifier,
142 const std::string& cert_file) 142 const std::string& cert_file)
143 : TestProofVerifierChromium(std::move(cert_verifier), 143 : TestProofVerifierChromium(std::move(cert_verifier),
144 std::move(transport_security_state), 144 std::move(transport_security_state),
145 std::move(cert_transparency_verifier), 145 std::move(cert_transparency_verifier),
146 cert_file) {} 146 cert_file) {}
147 ~FakeProofVerifier() override {} 147 ~FakeProofVerifier() override {}
148 148
149 // ProofVerifier interface 149 // ProofVerifier interface
150 QuicAsyncStatus VerifyProof(const std::string& hostname, 150 QuicAsyncStatus VerifyProof(const std::string& hostname,
151 const uint16_t port,
151 const std::string& server_config, 152 const std::string& server_config,
152 const std::vector<std::string>& certs, 153 const std::vector<std::string>& certs,
153 const std::string& cert_sct, 154 const std::string& cert_sct,
154 const std::string& signature, 155 const std::string& signature,
155 const ProofVerifyContext* verify_context, 156 const ProofVerifyContext* verify_context,
156 std::string* error_details, 157 std::string* error_details,
157 scoped_ptr<ProofVerifyDetails>* verify_details, 158 scoped_ptr<ProofVerifyDetails>* verify_details,
158 ProofVerifierCallback* callback) override { 159 ProofVerifierCallback* callback) override {
159 error_details->clear(); 160 error_details->clear();
160 scoped_ptr<ProofVerifyDetailsChromium> verify_details_chromium( 161 scoped_ptr<ProofVerifyDetailsChromium> verify_details_chromium(
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 } 268 }
268 269
269 // static 270 // static
270 ProofVerifyContext* CryptoTestUtils::ProofVerifyContextForTesting() { 271 ProofVerifyContext* CryptoTestUtils::ProofVerifyContextForTesting() {
271 return new ProofVerifyContextChromium(/*cert_verify_flags=*/0, BoundNetLog()); 272 return new ProofVerifyContextChromium(/*cert_verify_flags=*/0, BoundNetLog());
272 } 273 }
273 274
274 } // namespace test 275 } // namespace test
275 276
276 } // namespace net 277 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698