OLD | NEW |
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2017 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_FAILING_PROOF_SOURCE_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_FAILING_PROOF_SOURCE_H_ |
6 #define NET_QUIC_TEST_TOOLS_FAILING_PROOF_SOURCE_H_ | 6 #define NET_QUIC_TEST_TOOLS_FAILING_PROOF_SOURCE_H_ |
7 | 7 |
8 #include "net/quic/core/crypto/proof_source.h" | 8 #include "net/quic/core/crypto/proof_source.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
11 namespace test { | 11 namespace test { |
12 | 12 |
13 class FailingProofSource : public ProofSource { | 13 class FailingProofSource : public ProofSource { |
14 public: | 14 public: |
15 bool GetProof(const QuicSocketAddress& server_address, | |
16 const std::string& hostname, | |
17 const std::string& server_config, | |
18 QuicVersion quic_version, | |
19 base::StringPiece chlo_hash, | |
20 const QuicTagVector& connection_options, | |
21 QuicReferenceCountedPointer<ProofSource::Chain>* out_chain, | |
22 QuicCryptoProof* out_proof) override; | |
23 | |
24 void GetProof(const QuicSocketAddress& server_address, | 15 void GetProof(const QuicSocketAddress& server_address, |
25 const std::string& hostname, | 16 const std::string& hostname, |
26 const std::string& server_config, | 17 const std::string& server_config, |
27 QuicVersion quic_version, | 18 QuicVersion quic_version, |
28 base::StringPiece chlo_hash, | 19 base::StringPiece chlo_hash, |
29 const QuicTagVector& connection_options, | 20 const QuicTagVector& connection_options, |
30 std::unique_ptr<Callback> callback) override; | 21 std::unique_ptr<Callback> callback) override; |
31 }; | 22 }; |
32 | 23 |
33 } // namespace test | 24 } // namespace test |
34 } // namespace net | 25 } // namespace net |
35 | 26 |
36 #endif // NET_QUIC_TEST_TOOLS_FAILING_PROOF_SOURCE_H_ | 27 #endif // NET_QUIC_TEST_TOOLS_FAILING_PROOF_SOURCE_H_ |
OLD | NEW |