| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2017 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 NET_QUIC_PLATFORM_API_QUIC_TEST_LOOPBACK_H_ |
| 6 #define NET_QUIC_PLATFORM_API_QUIC_TEST_LOOPBACK_H_ |
| 7 |
| 8 #include "net/quic/platform/impl/quic_test_loopback_impl.h" |
| 9 |
| 10 namespace net { |
| 11 |
| 12 // Returns the address family (IPv4 or IPv6) used to run test under. |
| 13 IpAddressFamily AddressFamilyUnderTest(); |
| 14 |
| 15 // Returns an IPv4 loopback address. |
| 16 QuicIpAddress TestLoopback4(); |
| 17 |
| 18 // Returns the only IPv6 loopback address. |
| 19 QuicIpAddress TestLoopback6(); |
| 20 |
| 21 // Returns an appropriate IPv4/Ipv6 loopback address based upon whether the |
| 22 // test's environment. |
| 23 QuicIpAddress TestLoopback(); |
| 24 |
| 25 // If address family under test is IPv4, returns an indexed IPv4 loopback |
| 26 // address. If address family under test is IPv6, the address returned is |
| 27 // platform-dependent. |
| 28 QuicIpAddress TestLoopback(int index); |
| 29 |
| 30 } // namespace net |
| 31 |
| 32 #endif // NET_QUIC_PLATFORM_API_QUIC_TEST_LOOPBACK_H_ |
| OLD | NEW |