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 | |
| 8 | #include "base/macros.h" |
| 9 | |
| 10 | namespace quic { |
| 11 | |
| 12 | class QuicClient; |
| 13 | class QuicPacketWriter; |
| 14 | |
| 15 | namespace test { |
| 16 | |
| 17 | class 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_ |