blob: 66987e467c68fee86d184908c0985981811fa567 [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
8#include "base/macros.h"
9
10namespace quic {
11
12class QuicClient;
13class QuicPacketWriter;
14
15namespace test {
16
17class QuicClientPeer {
18 public:
19 QuicClientPeer() = delete;
20
21 static bool CreateUDPSocketAndBind(QuicClient* client);
22 static void CleanUpUDPSocket(QuicClient* client, int fd);
23 static void SetClientPort(QuicClient* client, int port);
24 static void SetWriter(QuicClient* client, QuicPacketWriter* writer);
25};
26
27} // namespace test
28} // namespace quic
29
30#endif // QUICHE_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_