| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2006 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include "webrtc/rtc_base/testclient.h" | 11 #include "webrtc/base/testclient.h" |
| 12 #include "webrtc/rtc_base/gunit.h" | 12 #include "webrtc/base/gunit.h" |
| 13 #include "webrtc/rtc_base/nethelpers.h" | 13 #include "webrtc/base/nethelpers.h" |
| 14 #include "webrtc/rtc_base/physicalsocketserver.h" | 14 #include "webrtc/base/physicalsocketserver.h" |
| 15 #include "webrtc/rtc_base/ptr_util.h" | 15 #include "webrtc/base/ptr_util.h" |
| 16 #include "webrtc/rtc_base/testechoserver.h" | 16 #include "webrtc/base/testechoserver.h" |
| 17 #include "webrtc/rtc_base/thread.h" | 17 #include "webrtc/base/thread.h" |
| 18 | 18 |
| 19 using namespace rtc; | 19 using namespace rtc; |
| 20 | 20 |
| 21 #define MAYBE_SKIP_IPV4 \ | 21 #define MAYBE_SKIP_IPV4 \ |
| 22 if (!HasIPv4Enabled()) { \ | 22 if (!HasIPv4Enabled()) { \ |
| 23 LOG(LS_INFO) << "No IPv4... skipping"; \ | 23 LOG(LS_INFO) << "No IPv4... skipping"; \ |
| 24 return; \ | 24 return; \ |
| 25 } | 25 } |
| 26 | 26 |
| 27 #define MAYBE_SKIP_IPV6 \ | 27 #define MAYBE_SKIP_IPV6 \ |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 #if defined(WEBRTC_LINUX) | 88 #if defined(WEBRTC_LINUX) |
| 89 #define MAYBE_TestTcpIPv6 DISABLED_TestTcpIPv6 | 89 #define MAYBE_TestTcpIPv6 DISABLED_TestTcpIPv6 |
| 90 #else | 90 #else |
| 91 #define MAYBE_TestTcpIPv6 TestTcpIPv6 | 91 #define MAYBE_TestTcpIPv6 TestTcpIPv6 |
| 92 #endif | 92 #endif |
| 93 TEST(TestClientTest, MAYBE_TestTcpIPv6) { | 93 TEST(TestClientTest, MAYBE_TestTcpIPv6) { |
| 94 MAYBE_SKIP_IPV6; | 94 MAYBE_SKIP_IPV6; |
| 95 TestTcpInternal(SocketAddress("::1", 0)); | 95 TestTcpInternal(SocketAddress("::1", 0)); |
| 96 } | 96 } |
| OLD | NEW |