| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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/platform/api/quic_logging.h" | 5 #include "net/quic/platform/api/quic_logging.h" |
| 6 #include "net/quic/test_tools/fake_proof_source.h" | 6 #include "net/quic/test_tools/fake_proof_source.h" |
| 7 #include "net/quic/test_tools/crypto_test_utils.h" | 7 #include "net/quic/test_tools/crypto_test_utils.h" |
| 8 | 8 |
| 9 using std::string; | 9 using std::string; |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 namespace test { | 12 namespace test { |
| 13 | 13 |
| 14 FakeProofSource::FakeProofSource() | 14 FakeProofSource::FakeProofSource() |
| 15 : delegate_(CryptoTestUtils::ProofSourceForTesting()) {} | 15 : delegate_(crypto_test_utils::ProofSourceForTesting()) {} |
| 16 | 16 |
| 17 FakeProofSource::~FakeProofSource() {} | 17 FakeProofSource::~FakeProofSource() {} |
| 18 | 18 |
| 19 FakeProofSource::Params::Params(const QuicSocketAddress& server_addr, | 19 FakeProofSource::Params::Params(const QuicSocketAddress& server_addr, |
| 20 std::string hostname, | 20 std::string hostname, |
| 21 std::string server_config, | 21 std::string server_config, |
| 22 QuicVersion quic_version, | 22 QuicVersion quic_version, |
| 23 std::string chlo_hash, | 23 std::string chlo_hash, |
| 24 const QuicTagVector& connection_options, | 24 const QuicTagVector& connection_options, |
| 25 std::unique_ptr<ProofSource::Callback> callback) | 25 std::unique_ptr<ProofSource::Callback> callback) |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 params.quic_version, params.chlo_hash, params.connection_options, &chain, | 97 params.quic_version, params.chlo_hash, params.connection_options, &chain, |
| 98 &proof); | 98 &proof); |
| 99 | 99 |
| 100 params.callback->Run(ok, chain, proof, /* details = */ nullptr); | 100 params.callback->Run(ok, chain, proof, /* details = */ nullptr); |
| 101 auto it = params_.begin() + n; | 101 auto it = params_.begin() + n; |
| 102 params_.erase(it); | 102 params_.erase(it); |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace test | 105 } // namespace test |
| 106 } // namespace net | 106 } // namespace net |
| OLD | NEW |