Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(456)

Side by Side Diff: net/quic/platform/api/quic_test_loopback.h

Issue 2933613002: Add quic_test_loopback used for tests only. (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/platform/api/quic_ip_address.h ('k') | net/quic/platform/api/quic_test_loopback.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « net/quic/platform/api/quic_ip_address.h ('k') | net/quic/platform/api/quic_test_loopback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698