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

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

Issue 2671333004: Convert class-full-of-statics CryptoTestUtils into a namespace (Closed)
Patch Set: Created 3 years, 10 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/test_tools/crypto_test_utils_test.cc ('k') | net/quic/test_tools/quic_stream_peer.h » ('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 (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
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
OLDNEW
« no previous file with comments | « net/quic/test_tools/crypto_test_utils_test.cc ('k') | net/quic/test_tools/quic_stream_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698