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

Side by Side Diff: net/tools/quic/quic_simple_client.h

Issue 1017973002: Implement working tests for the simple QUIC client classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no export Created 5 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) 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 // A toy client, which connects to a specified port and sends QUIC 5 // A toy client, which connects to a specified port and sends QUIC
6 // request to that endpoint. 6 // request to that endpoint.
7 7
8 #ifndef NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_H_ 8 #ifndef NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_H_
9 #define NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_H_ 9 #define NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_H_
10 10
(...skipping 23 matching lines...) Expand all
34 class QuicConnectionHelper; 34 class QuicConnectionHelper;
35 class UDPClientSocket; 35 class UDPClientSocket;
36 36
37 namespace tools { 37 namespace tools {
38 38
39 namespace test { 39 namespace test {
40 class QuicClientPeer; 40 class QuicClientPeer;
41 } // namespace test 41 } // namespace test
42 42
43 class QuicSimpleClient : public QuicDataStream::Visitor, 43 class QuicSimpleClient : public QuicDataStream::Visitor,
44 public QuicPacketReader::Visitor { 44 public QuicPacketReader::Visitor {
Nico 2015/03/21 03:59:53 ?
Ryan Hamilton 2015/03/21 04:11:40 Gah! I removed NET_EXPORT_PRIVATE but forgot to fi
45 public: 45 public:
46 class ResponseListener { 46 class ResponseListener {
47 public: 47 public:
48 ResponseListener() {} 48 ResponseListener() {}
49 virtual ~ResponseListener() {} 49 virtual ~ResponseListener() {}
50 virtual void OnCompleteResponse(QuicStreamId id, 50 virtual void OnCompleteResponse(QuicStreamId id,
51 const HttpResponseHeaders& response_headers, 51 const HttpResponseHeaders& response_headers,
52 const std::string& response_body) = 0; 52 const std::string& response_body) = 0;
53 }; 53 };
54 54
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 base::WeakPtrFactory<QuicSimpleClient> weak_factory_; 287 base::WeakPtrFactory<QuicSimpleClient> weak_factory_;
288 288
289 DISALLOW_COPY_AND_ASSIGN(QuicSimpleClient); 289 DISALLOW_COPY_AND_ASSIGN(QuicSimpleClient);
290 }; 290 };
291 291
292 } // namespace tools 292 } // namespace tools
293 } // namespace net 293 } // namespace net
294 294
295 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_H_ 295 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698