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

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

Issue 2740453006: Add QuicStringPiece which is actually StringPiece. (Closed)
Patch Set: fix compile error and rebase Created 3 years, 9 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
OLDNEW
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 #include "net/quic/platform/api/quic_string_piece.h"
9 10
10 namespace net { 11 namespace net {
11 namespace test { 12 namespace test {
12 13
13 class FailingProofSource : public ProofSource { 14 class FailingProofSource : public ProofSource {
14 public: 15 public:
15 void GetProof(const QuicSocketAddress& server_address, 16 void GetProof(const QuicSocketAddress& server_address,
16 const std::string& hostname, 17 const std::string& hostname,
17 const std::string& server_config, 18 const std::string& server_config,
18 QuicVersion quic_version, 19 QuicVersion quic_version,
19 base::StringPiece chlo_hash, 20 QuicStringPiece chlo_hash,
20 const QuicTagVector& connection_options, 21 const QuicTagVector& connection_options,
21 std::unique_ptr<Callback> callback) override; 22 std::unique_ptr<Callback> callback) override;
22 }; 23 };
23 24
24 } // namespace test 25 } // namespace test
25 } // namespace net 26 } // namespace net
26 27
27 #endif // NET_QUIC_TEST_TOOLS_FAILING_PROOF_SOURCE_H_ 28 #endif // NET_QUIC_TEST_TOOLS_FAILING_PROOF_SOURCE_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/delayed_verify_strike_register_client.cc ('k') | net/quic/test_tools/failing_proof_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698