Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / net / tools / quic / test_tools / quic_client_peer.h
blobee520e1d9d757a8ed6eb370705ad5ba1b6fc2b11
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
3 // found in the LICENSE file.
5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_
6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_
8 #include "base/basictypes.h"
10 namespace net {
12 class QuicCryptoClientConfig;
13 class QuicPacketWriter;
15 namespace tools {
17 class QuicClient;
19 namespace test {
21 class QuicClientPeer {
22 public:
23 static QuicCryptoClientConfig* GetCryptoConfig(QuicClient* client);
24 static bool CreateUDPSocket(QuicClient* client);
25 static void SetClientPort(QuicClient* client, int port);
26 static void SetWriter(QuicClient* client, QuicPacketWriter* writer);
28 private:
29 DISALLOW_COPY_AND_ASSIGN(QuicClientPeer);
32 } // namespace test
33 } // namespace tools
34 } // namespace net
36 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_