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_IMPL_QUIC_TEST_LOOPBACK_IMPL_H_ 6 #define NET_QUIC_PLATFORM_IMPL_QUIC_TEST_LOOPBACK_IMPL_H_ 7 8 #include "net/third_party/quiche/src/quic/platform/api/quic_ip_address.h" 9 10 namespace quic { 11 12 // Returns the address family IPv4 used to run test under. 13 IpAddressFamily AddressFamilyUnderTestImpl(); 14 15 // Returns an IPv4 loopback address. 16 QuicIpAddress TestLoopback4Impl(); 17 18 // Returns the only IPv6 loopback address. 19 QuicIpAddress TestLoopback6Impl(); 20 21 // Returns an IPv4 loopback address. 22 QuicIpAddress TestLoopbackImpl(); 23 24 // Returns an indexed IPv4 loopback address. 25 QuicIpAddress TestLoopbackImpl(int index); 26 27 } // namespace quic 28 29 #endif // NET_QUIC_PLATFORM_IMPL_QUIC_TEST_LOOPBACK_IMPL_H_ 30