| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_ | 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_ |
| 6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_ | 6 #define NET_TOOLS_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| 11 | 11 |
| 12 class QuicCryptoClientConfig; | 12 class QuicCryptoClientConfig; |
| 13 class QuicPacketWriter; | 13 class QuicPacketWriter; |
| 14 | 14 |
| 15 | 15 |
| 16 class QuicClient; | 16 class QuicClient; |
| 17 | 17 |
| 18 namespace test { | 18 namespace test { |
| 19 | 19 |
| 20 class QuicClientPeer { | 20 class QuicClientPeer { |
| 21 public: | 21 public: |
| 22 static bool CreateUDPSocket(QuicClient* client); | 22 static bool CreateUDPSocketAndBind(QuicClient* client); |
| 23 static void CleanUpUDPSocket(QuicClient* client, int fd); | 23 static void CleanUpUDPSocket(QuicClient* client, int fd); |
| 24 static void SetClientPort(QuicClient* client, int port); | 24 static void SetClientPort(QuicClient* client, int port); |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 DISALLOW_COPY_AND_ASSIGN(QuicClientPeer); | 27 DISALLOW_COPY_AND_ASSIGN(QuicClientPeer); |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 } // namespace test | 30 } // namespace test |
| 31 } // namespace net | 31 } // namespace net |
| 32 | 32 |
| 33 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_ | 33 #endif // NET_TOOLS_QUIC_TEST_TOOLS_QUIC_CLIENT_PEER_H_ |
| OLD | NEW |