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

Unified Diff: net/quic/platform/api/quic_test_loopback.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/platform/api/quic_test_loopback.h ('k') | net/quic/platform/impl/quic_test_loopback_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/platform/api/quic_test_loopback.cc
diff --git a/net/quic/platform/api/quic_test_loopback.cc b/net/quic/platform/api/quic_test_loopback.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ea240604897c76b5657862ce2ce86622c88bd031
--- /dev/null
+++ b/net/quic/platform/api/quic_test_loopback.cc
@@ -0,0 +1,29 @@
+// Copyright (c) 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "net/quic/platform/api/quic_test_loopback.h"
+
+namespace net {
+
+IpAddressFamily AddressFamilyUnderTest() {
+ return AddressFamilyUnderTestImpl();
+}
+
+QuicIpAddress TestLoopback4() {
+ return TestLoopback4Impl();
+}
+
+QuicIpAddress TestLoopback6() {
+ return TestLoopback6Impl();
+}
+
+QuicIpAddress TestLoopback() {
+ return TestLoopbackImpl();
+}
+
+QuicIpAddress TestLoopback(int index) {
+ return TestLoopbackImpl(index);
+}
+
+} // namespace net
« no previous file with comments | « net/quic/platform/api/quic_test_loopback.h ('k') | net/quic/platform/impl/quic_test_loopback_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698