QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 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. |
| 4 | |
| 5 | #ifndef QUICHE_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_ |
| 6 | #define QUICHE_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_ |
| 7 | |
QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 8 | namespace quic { |
| 9 | |
| 10 | class QuicClient; |
| 11 | class QuicPacketWriter; |
| 12 | |
| 13 | namespace test { |
| 14 | |
| 15 | class 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_ |