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