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

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

Issue 25043005: Add better help information to quic_client and quic_server. Also, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment Created 7 years, 2 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
« no previous file with comments | « net/tools/quic/spdy_utils.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "net/tools/quic/test_tools/quic_test_client.h" 5 #include "net/tools/quic/test_tools/quic_test_client.h"
6 6
7 #include "net/base/completion_callback.h" 7 #include "net/base/completion_callback.h"
8 #include "net/base/net_errors.h" 8 #include "net/base/net_errors.h"
9 #include "net/cert/cert_verify_result.h" 9 #include "net/cert/cert_verify_result.h"
10 #include "net/cert/x509_certificate.h" 10 #include "net/cert/x509_certificate.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } 91 }
92 92
93 // A quic client which allows mocking out writes. 93 // A quic client which allows mocking out writes.
94 class QuicEpollClient : public QuicClient { 94 class QuicEpollClient : public QuicClient {
95 public: 95 public:
96 typedef QuicClient Super; 96 typedef QuicClient Super;
97 97
98 QuicEpollClient(IPEndPoint server_address, 98 QuicEpollClient(IPEndPoint server_address,
99 const string& server_hostname, 99 const string& server_hostname,
100 const QuicVersion version) 100 const QuicVersion version)
101 : Super(server_address, server_hostname, version) { 101 : Super(server_address, server_hostname, version, false) {
102 } 102 }
103 103
104 QuicEpollClient(IPEndPoint server_address, 104 QuicEpollClient(IPEndPoint server_address,
105 const string& server_hostname, 105 const string& server_hostname,
106 const QuicConfig& config, 106 const QuicConfig& config,
107 const QuicVersion version) 107 const QuicVersion version)
108 : Super(server_address, server_hostname, config, version) { 108 : Super(server_address, server_hostname, config, version) {
109 } 109 }
110 110
111 virtual ~QuicEpollClient() { 111 virtual ~QuicEpollClient() {
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 } 337 }
338 338
339 void QuicTestClient::UseWriter(QuicTestWriter* writer) { 339 void QuicTestClient::UseWriter(QuicTestWriter* writer) {
340 DCHECK(!connected()); 340 DCHECK(!connected());
341 reinterpret_cast<QuicEpollClient*>(client_.get())->UseWriter(writer); 341 reinterpret_cast<QuicEpollClient*>(client_.get())->UseWriter(writer);
342 } 342 }
343 343
344 } // namespace test 344 } // namespace test
345 } // namespace tools 345 } // namespace tools
346 } // namespace net 346 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/spdy_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698