blob: 708e766c1e6cf0020e73253eb57805247f4d275f [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// 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_QUIC_PLATFORM_API_QUIC_TEST_LOOPBACK_H_
6#define QUICHE_QUIC_PLATFORM_API_QUIC_TEST_LOOPBACK_H_
7
8#include "net/quic/platform/impl/quic_test_loopback_impl.h"
9
10namespace quic {
11
12// Returns the address family (IPv4 or IPv6) used to run test under.
13IpAddressFamily AddressFamilyUnderTest();
14
15// Returns an IPv4 loopback address.
16QuicIpAddress TestLoopback4();
17
18// Returns the only IPv6 loopback address.
19QuicIpAddress TestLoopback6();
20
21// Returns an appropriate IPv4/Ipv6 loopback address based upon whether the
22// test's environment.
23QuicIpAddress 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.
28QuicIpAddress TestLoopback(int index);
29
30} // namespace quic
31
32#endif // QUICHE_QUIC_PLATFORM_API_QUIC_TEST_LOOPBACK_H_