blob: 7070779f47cadfd9f7554af8b31fdb6139c52917 [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// 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.
4
5#ifndef QUICHE_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_
6#define QUICHE_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_
7
QUICHE teama6ef0a62019-03-07 20:34:33 -05008namespace quic {
9
10class QuicClient;
11class QuicPacketWriter;
12
13namespace test {
14
15class QuicClientPeer {
16 public:
17 QuicClientPeer() = delete;
18
19 static bool CreateUDPSocketAndBind(QuicClient* client);
20 static void CleanUpUDPSocket(QuicClient* client, int fd);
21 static void SetClientPort(QuicClient* client, int port);
22 static void SetWriter(QuicClient* client, QuicPacketWriter* writer);
23};
24
25} // namespace test
26} // namespace quic
27
28#endif // QUICHE_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_