| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2012 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 #if defined(WEBRTC_POSIX) | 10 #if defined(WEBRTC_POSIX) |
| 11 #include <dirent.h> | 11 #include <dirent.h> |
| 12 #endif | 12 #endif |
| 13 | 13 |
| 14 #include <memory> | 14 #include <memory> |
| 15 | 15 |
| 16 #include "webrtc/p2p/base/basicpacketsocketfactory.h" | 16 #include "webrtc/p2p/base/basicpacketsocketfactory.h" |
| 17 #include "webrtc/p2p/base/p2pconstants.h" | 17 #include "webrtc/p2p/base/p2pconstants.h" |
| 18 #include "webrtc/p2p/base/portallocator.h" | 18 #include "webrtc/p2p/base/portallocator.h" |
| 19 #include "webrtc/p2p/base/tcpport.h" | 19 #include "webrtc/p2p/base/tcpport.h" |
| 20 #include "webrtc/p2p/base/testturnserver.h" | 20 #include "webrtc/p2p/base/testturnserver.h" |
| 21 #include "webrtc/p2p/base/turnport.h" | 21 #include "webrtc/p2p/base/turnport.h" |
| 22 #include "webrtc/p2p/base/udpport.h" | 22 #include "webrtc/p2p/base/udpport.h" |
| 23 #include "webrtc/base/asynctcpsocket.h" | 23 #include "webrtc/base/asynctcpsocket.h" |
| 24 #include "webrtc/base/buffer.h" | 24 #include "webrtc/base/buffer.h" |
| 25 #include "webrtc/base/dscp.h" | 25 #include "webrtc/base/dscp.h" |
| 26 #include "webrtc/base/fakeclock.h" | 26 #include "webrtc/base/fakeclock.h" |
| 27 #include "webrtc/base/firewallsocketserver.h" | |
| 28 #include "webrtc/base/gunit.h" | 27 #include "webrtc/base/gunit.h" |
| 29 #include "webrtc/base/helpers.h" | 28 #include "webrtc/base/helpers.h" |
| 30 #include "webrtc/base/logging.h" | 29 #include "webrtc/base/logging.h" |
| 31 #include "webrtc/base/physicalsocketserver.h" | 30 #include "webrtc/base/physicalsocketserver.h" |
| 32 #include "webrtc/base/socketadapters.h" | 31 #include "webrtc/base/socketadapters.h" |
| 33 #include "webrtc/base/socketaddress.h" | 32 #include "webrtc/base/socketaddress.h" |
| 34 #include "webrtc/base/ssladapter.h" | 33 #include "webrtc/base/ssladapter.h" |
| 35 #include "webrtc/base/thread.h" | 34 #include "webrtc/base/thread.h" |
| 36 #include "webrtc/base/virtualsocketserver.h" | 35 #include "webrtc/base/virtualsocketserver.h" |
| 36 #include "webrtc/test/firewallsocketserver.h" |
| 37 | 37 |
| 38 using rtc::SocketAddress; | 38 using rtc::SocketAddress; |
| 39 | 39 |
| 40 static const SocketAddress kLocalAddr1("11.11.11.11", 0); | 40 static const SocketAddress kLocalAddr1("11.11.11.11", 0); |
| 41 static const SocketAddress kLocalAddr2("22.22.22.22", 0); | 41 static const SocketAddress kLocalAddr2("22.22.22.22", 0); |
| 42 static const SocketAddress kLocalIPv6Addr( | 42 static const SocketAddress kLocalIPv6Addr( |
| 43 "2401:fa00:4:1000:be30:5bff:fee5:c3", 0); | 43 "2401:fa00:4:1000:be30:5bff:fee5:c3", 0); |
| 44 static const SocketAddress kLocalIPv6Addr2( | 44 static const SocketAddress kLocalIPv6Addr2( |
| 45 "2401:fa00:4:2000:be30:5bff:fee5:d4", 0); | 45 "2401:fa00:4:2000:be30:5bff:fee5:d4", 0); |
| 46 static const SocketAddress kTurnUdpIntAddr("99.99.99.3", | 46 static const SocketAddress kTurnUdpIntAddr("99.99.99.3", |
| (...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1255 EXPECT_TRUE(turn_port_->Candidates().empty()); | 1255 EXPECT_TRUE(turn_port_->Candidates().empty()); |
| 1256 turn_port_.reset(); | 1256 turn_port_.reset(); |
| 1257 rtc::Thread::Current()->Post(RTC_FROM_HERE, this, MSG_TESTFINISH); | 1257 rtc::Thread::Current()->Post(RTC_FROM_HERE, this, MSG_TESTFINISH); |
| 1258 // Waiting for above message to be processed. | 1258 // Waiting for above message to be processed. |
| 1259 ASSERT_TRUE_SIMULATED_WAIT(test_finish_, 1, fake_clock_); | 1259 ASSERT_TRUE_SIMULATED_WAIT(test_finish_, 1, fake_clock_); |
| 1260 EXPECT_EQ(last_fd_count, GetFDCount()); | 1260 EXPECT_EQ(last_fd_count, GetFDCount()); |
| 1261 } | 1261 } |
| 1262 #endif | 1262 #endif |
| 1263 | 1263 |
| 1264 } // namespace cricket | 1264 } // namespace cricket |
| OLD | NEW |