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 #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 19 matching lines...) Expand all Loading... |
30 void Activate(); | 30 void Activate(); |
31 | 31 |
32 // ProofSource interface | 32 // ProofSource interface |
33 bool GetProof(const IPAddress& server_ip, | 33 bool GetProof(const IPAddress& server_ip, |
34 const std::string& hostname, | 34 const std::string& hostname, |
35 const std::string& server_config, | 35 const std::string& server_config, |
36 QuicVersion quic_version, | 36 QuicVersion quic_version, |
37 base::StringPiece chlo_hash, | 37 base::StringPiece chlo_hash, |
38 const QuicTagVector& connection_options, | 38 const QuicTagVector& connection_options, |
39 scoped_refptr<ProofSource::Chain>* out_chain, | 39 scoped_refptr<ProofSource::Chain>* out_chain, |
40 std::string* out_signature, | 40 QuicCryptoProof* out_proof) override; |
41 std::string* out_leaf_cert_sct) override; | |
42 void GetProof(const IPAddress& server_ip, | 41 void GetProof(const IPAddress& server_ip, |
43 const std::string& hostname, | 42 const std::string& hostname, |
44 const std::string& server_config, | 43 const std::string& server_config, |
45 QuicVersion quic_version, | 44 QuicVersion quic_version, |
46 base::StringPiece chlo_hash, | 45 base::StringPiece chlo_hash, |
47 const QuicTagVector& connection_options, | 46 const QuicTagVector& connection_options, |
48 std::unique_ptr<ProofSource::Callback> callback) override; | 47 std::unique_ptr<ProofSource::Callback> callback) override; |
49 | 48 |
50 // Get the number of callbacks which are pending | 49 // Get the number of callbacks which are pending |
51 int NumPendingCallbacks() const; | 50 int NumPendingCallbacks() const; |
(...skipping 27 matching lines...) Expand all Loading... |
79 std::unique_ptr<ProofSource::Callback> callback; | 78 std::unique_ptr<ProofSource::Callback> callback; |
80 }; | 79 }; |
81 | 80 |
82 std::vector<Params> params_; | 81 std::vector<Params> params_; |
83 }; | 82 }; |
84 | 83 |
85 } // namespace test | 84 } // namespace test |
86 } // namespace net | 85 } // namespace net |
87 | 86 |
88 #endif // NET_QUIC_TEST_TOOLS_FAKE_PROOF_SOURCE_H_ | 87 #endif // NET_QUIC_TEST_TOOLS_FAKE_PROOF_SOURCE_H_ |
OLD | NEW |