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

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

Issue 2679783003: Deprecate FLAGS_quic_reloadable_flag_enable_async_get_proof (Closed)
Patch Set: Address gredner's comments. 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/failing_proof_source.cc ('k') | net/quic/test_tools/fake_proof_source.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 (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 #ifndef NET_QUIC_TEST_TOOLS_FAKE_PROOF_SOURCE_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_FAKE_PROOF_SOURCE_H_
6 #define NET_QUIC_TEST_TOOLS_FAKE_PROOF_SOURCE_H_ 6 #define NET_QUIC_TEST_TOOLS_FAKE_PROOF_SOURCE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 12 matching lines...) Expand all
23 FakeProofSource(); 23 FakeProofSource();
24 ~FakeProofSource() override; 24 ~FakeProofSource() override;
25 25
26 // Before this object is "active", all calls to GetProof will be delegated 26 // Before this object is "active", all calls to GetProof will be delegated
27 // immediately. Once "active", the async ones will be intercepted. This 27 // immediately. Once "active", the async ones will be intercepted. This
28 // distinction is necessary to ensure that GetProof can be called without 28 // distinction is necessary to ensure that GetProof can be called without
29 // interference during test case setup. 29 // interference during test case setup.
30 void Activate(); 30 void Activate();
31 31
32 // ProofSource interface 32 // ProofSource interface
33 bool GetProof(const QuicSocketAddress& server_address,
34 const std::string& hostname,
35 const std::string& server_config,
36 QuicVersion quic_version,
37 base::StringPiece chlo_hash,
38 const QuicTagVector& connection_options,
39 QuicReferenceCountedPointer<ProofSource::Chain>* out_chain,
40 QuicCryptoProof* out_proof) override;
41 void GetProof(const QuicSocketAddress& server_address, 33 void GetProof(const QuicSocketAddress& server_address,
42 const std::string& hostname, 34 const std::string& hostname,
43 const std::string& server_config, 35 const std::string& server_config,
44 QuicVersion quic_version, 36 QuicVersion quic_version,
45 base::StringPiece chlo_hash, 37 base::StringPiece chlo_hash,
46 const QuicTagVector& connection_options, 38 const QuicTagVector& connection_options,
47 std::unique_ptr<ProofSource::Callback> callback) override; 39 std::unique_ptr<ProofSource::Callback> callback) override;
48 40
49 // Get the number of callbacks which are pending 41 // Get the number of callbacks which are pending
50 int NumPendingCallbacks() const; 42 int NumPendingCallbacks() const;
(...skipping 27 matching lines...) Expand all
78 std::unique_ptr<ProofSource::Callback> callback; 70 std::unique_ptr<ProofSource::Callback> callback;
79 }; 71 };
80 72
81 std::vector<Params> params_; 73 std::vector<Params> params_;
82 }; 74 };
83 75
84 } // namespace test 76 } // namespace test
85 } // namespace net 77 } // namespace net
86 78
87 #endif // NET_QUIC_TEST_TOOLS_FAKE_PROOF_SOURCE_H_ 79 #endif // NET_QUIC_TEST_TOOLS_FAKE_PROOF_SOURCE_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/failing_proof_source.cc ('k') | net/quic/test_tools/fake_proof_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698