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

Side by Side Diff: net/tools/quic/test_tools/quic_test_client.h

Issue 126283002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed extra space Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_QUIC_TEST_CLIENT_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_
6 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ 6 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 22 matching lines...) Expand all
33 QuicTestClient(IPEndPoint server_address, 33 QuicTestClient(IPEndPoint server_address,
34 const string& server_hostname, 34 const string& server_hostname,
35 bool secure, 35 bool secure,
36 const QuicVersionVector& supported_versions); 36 const QuicVersionVector& supported_versions);
37 QuicTestClient(IPEndPoint server_address, 37 QuicTestClient(IPEndPoint server_address,
38 const string& server_hostname, 38 const string& server_hostname,
39 bool secure, 39 bool secure,
40 const QuicConfig& config, 40 const QuicConfig& config,
41 const QuicVersionVector& supported_versions); 41 const QuicVersionVector& supported_versions);
42 42
43 virtual ~QuicTestClient(); 43 virtual ~QuicTestClient() OVERRIDE;
44 44
45 // ExpectCertificates controls whether the server is expected to provide 45 // ExpectCertificates controls whether the server is expected to provide
46 // certificates. The certificates, if any, are not verified, but the common 46 // certificates. The certificates, if any, are not verified, but the common
47 // name is recorded and available with |cert_common_name()|. 47 // name is recorded and available with |cert_common_name()|.
48 void ExpectCertificates(bool on); 48 void ExpectCertificates(bool on);
49 49
50 // Clears any outstanding state and sends a simple GET of 'uri' to the 50 // Clears any outstanding state and sends a simple GET of 'uri' to the
51 // server. Returns 0 if the request failed and no bytes were written. 51 // server. Returns 0 if the request failed and no bytes were written.
52 ssize_t SendRequest(const string& uri); 52 ssize_t SendRequest(const string& uri);
53 ssize_t SendMessage(const HTTPMessage& message); 53 ssize_t SendMessage(const HTTPMessage& message);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // client_. 150 // client_.
151 ProofVerifier* proof_verifier_; 151 ProofVerifier* proof_verifier_;
152 }; 152 };
153 153
154 } // namespace test 154 } // namespace test
155 155
156 } // namespace tools 156 } // namespace tools
157 } // namespace net 157 } // namespace net
158 158
159 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ 159 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/packet_dropping_test_writer.h ('k') | net/tools/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698