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

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

Issue 346853003: Added SetUserAgentID method to QuicClient which calls crypto_config_'s (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_
6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ 6 #define NET_TOOLS_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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 bool secure, 74 bool secure,
75 const QuicConfig& config, 75 const QuicConfig& config,
76 const QuicVersionVector& supported_versions); 76 const QuicVersionVector& supported_versions);
77 77
78 virtual ~QuicTestClient(); 78 virtual ~QuicTestClient();
79 79
80 // ExpectCertificates controls whether the server is expected to provide 80 // ExpectCertificates controls whether the server is expected to provide
81 // certificates. The certificates, if any, are not verified, but the common 81 // certificates. The certificates, if any, are not verified, but the common
82 // name is recorded and available with |cert_common_name()|. 82 // name is recorded and available with |cert_common_name()|.
83 void ExpectCertificates(bool on); 83 void ExpectCertificates(bool on);
84 void SetUserAgentID(string user_agent_id);
wtc 2014/06/19 22:06:38 The input parameter should be a const reference.
ramant (doing other things) 2014/06/19 22:22:41 Done.
84 85
85 // Wraps data in a quic packet and sends it. 86 // Wraps data in a quic packet and sends it.
86 ssize_t SendData(string data, bool last_data); 87 ssize_t SendData(string data, bool last_data);
87 88
88 // From SimpleClient 89 // From SimpleClient
89 // Clears any outstanding state and sends a simple GET of 'uri' to the 90 // Clears any outstanding state and sends a simple GET of 'uri' to the
90 // server. Returns 0 if the request failed and no bytes were written. 91 // server. Returns 0 if the request failed and no bytes were written.
91 virtual ssize_t SendRequest(const string& uri) OVERRIDE; 92 virtual ssize_t SendRequest(const string& uri) OVERRIDE;
92 virtual ssize_t SendMessage(const HTTPMessage& message) OVERRIDE; 93 virtual ssize_t SendMessage(const HTTPMessage& message) OVERRIDE;
93 virtual string SendCustomSynchronousRequest( 94 virtual string SendCustomSynchronousRequest(
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 205
205 DISALLOW_COPY_AND_ASSIGN(QuicTestClient); 206 DISALLOW_COPY_AND_ASSIGN(QuicTestClient);
206 }; 207 };
207 208
208 } // namespace test 209 } // namespace test
209 210
210 } // namespace tools 211 } // namespace tools
211 } // namespace net 212 } // namespace net
212 213
213 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_ 214 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_TEST_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698