| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2009 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 <algorithm> | 11 #include <algorithm> |
| 12 #include <memory> | 12 #include <memory> |
| 13 | 13 |
| 14 #include "webrtc/base/fakeclock.h" | |
| 15 #include "webrtc/base/fakenetwork.h" | |
| 16 #include "webrtc/base/firewallsocketserver.h" | |
| 17 #include "webrtc/base/gunit.h" | |
| 18 #include "webrtc/base/helpers.h" | |
| 19 #include "webrtc/base/ipaddress.h" | |
| 20 #include "webrtc/base/logging.h" | |
| 21 #include "webrtc/base/natserver.h" | |
| 22 #include "webrtc/base/natsocketfactory.h" | |
| 23 #include "webrtc/base/nethelpers.h" | |
| 24 #include "webrtc/base/network.h" | |
| 25 #include "webrtc/base/socketaddress.h" | |
| 26 #include "webrtc/base/ssladapter.h" | |
| 27 #include "webrtc/base/thread.h" | |
| 28 #include "webrtc/base/virtualsocketserver.h" | |
| 29 #include "webrtc/p2p/base/basicpacketsocketfactory.h" | 14 #include "webrtc/p2p/base/basicpacketsocketfactory.h" |
| 30 #include "webrtc/p2p/base/p2pconstants.h" | 15 #include "webrtc/p2p/base/p2pconstants.h" |
| 31 #include "webrtc/p2p/base/p2ptransportchannel.h" | 16 #include "webrtc/p2p/base/p2ptransportchannel.h" |
| 32 #include "webrtc/p2p/base/testrelayserver.h" | 17 #include "webrtc/p2p/base/testrelayserver.h" |
| 33 #include "webrtc/p2p/base/teststunserver.h" | 18 #include "webrtc/p2p/base/teststunserver.h" |
| 34 #include "webrtc/p2p/base/testturnserver.h" | 19 #include "webrtc/p2p/base/testturnserver.h" |
| 35 #include "webrtc/p2p/client/basicportallocator.h" | 20 #include "webrtc/p2p/client/basicportallocator.h" |
| 21 #include "webrtc/rtc_base/fakeclock.h" |
| 22 #include "webrtc/rtc_base/fakenetwork.h" |
| 23 #include "webrtc/rtc_base/firewallsocketserver.h" |
| 24 #include "webrtc/rtc_base/gunit.h" |
| 25 #include "webrtc/rtc_base/helpers.h" |
| 26 #include "webrtc/rtc_base/ipaddress.h" |
| 27 #include "webrtc/rtc_base/logging.h" |
| 28 #include "webrtc/rtc_base/natserver.h" |
| 29 #include "webrtc/rtc_base/natsocketfactory.h" |
| 30 #include "webrtc/rtc_base/nethelpers.h" |
| 31 #include "webrtc/rtc_base/network.h" |
| 32 #include "webrtc/rtc_base/socketaddress.h" |
| 33 #include "webrtc/rtc_base/ssladapter.h" |
| 34 #include "webrtc/rtc_base/thread.h" |
| 35 #include "webrtc/rtc_base/virtualsocketserver.h" |
| 36 | 36 |
| 37 using rtc::IPAddress; | 37 using rtc::IPAddress; |
| 38 using rtc::SocketAddress; | 38 using rtc::SocketAddress; |
| 39 using rtc::Thread; | 39 using rtc::Thread; |
| 40 | 40 |
| 41 #define MAYBE_SKIP_IPV4 \ | 41 #define MAYBE_SKIP_IPV4 \ |
| 42 if (!rtc::HasIPv4Enabled()) { \ | 42 if (!rtc::HasIPv4Enabled()) { \ |
| 43 LOG(LS_INFO) << "No IPv4... skipping"; \ | 43 LOG(LS_INFO) << "No IPv4... skipping"; \ |
| 44 return; \ | 44 return; \ |
| 45 } | 45 } |
| (...skipping 1854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1900 for (const Candidate& candidate : candidates) { | 1900 for (const Candidate& candidate : candidates) { |
| 1901 // Expect only relay candidates now that the filter is applied. | 1901 // Expect only relay candidates now that the filter is applied. |
| 1902 EXPECT_EQ(std::string(RELAY_PORT_TYPE), candidate.type()); | 1902 EXPECT_EQ(std::string(RELAY_PORT_TYPE), candidate.type()); |
| 1903 // Expect that the raddr is emptied due to the CF_RELAY filter. | 1903 // Expect that the raddr is emptied due to the CF_RELAY filter. |
| 1904 EXPECT_EQ(candidate.related_address(), | 1904 EXPECT_EQ(candidate.related_address(), |
| 1905 rtc::EmptySocketAddressWithFamily(candidate.address().family())); | 1905 rtc::EmptySocketAddressWithFamily(candidate.address().family())); |
| 1906 } | 1906 } |
| 1907 } | 1907 } |
| 1908 | 1908 |
| 1909 } // namespace cricket | 1909 } // namespace cricket |
| OLD | NEW |