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

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

Issue 1297853002: QUIC - reorganize common code between quic_client and quic_simple_client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_CLIENT_PEER_H_ 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_
6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_ 6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 namespace net { 10 namespace net {
11 11
12 class QuicCryptoClientConfig; 12 class QuicCryptoClientConfig;
13 class QuicPacketWriter; 13 class QuicPacketWriter;
14 14
15 namespace tools { 15 namespace tools {
16 16
17 class QuicClient; 17 class QuicClient;
18 18
19 namespace test { 19 namespace test {
20 20
21 class QuicClientPeer { 21 class QuicClientPeer {
22 public: 22 public:
23 static QuicCryptoClientConfig* GetCryptoConfig(QuicClient* client);
24 static bool CreateUDPSocket(QuicClient* client); 23 static bool CreateUDPSocket(QuicClient* client);
25 static void SetClientPort(QuicClient* client, int port); 24 static void SetClientPort(QuicClient* client, int port);
26 static void SetWriter(QuicClient* client, QuicPacketWriter* writer);
27 25
28 private: 26 private:
29 DISALLOW_COPY_AND_ASSIGN(QuicClientPeer); 27 DISALLOW_COPY_AND_ASSIGN(QuicClientPeer);
30 }; 28 };
31 29
32 } // namespace test 30 } // namespace test
33 } // namespace tools 31 } // namespace tools
34 } // namespace net 32 } // namespace net
35 33
36 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_ 34 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698