| 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 "webrtc/p2p/base/basicpacketsocketfactory.h" | 14 #include "webrtc/p2p/base/basicpacketsocketfactory.h" |
| 15 #include "webrtc/p2p/base/constants.h" | 15 #include "webrtc/p2p/base/p2pconstants.h" |
| 16 #include "webrtc/p2p/base/portallocator.h" | 16 #include "webrtc/p2p/base/portallocator.h" |
| 17 #include "webrtc/p2p/base/tcpport.h" | 17 #include "webrtc/p2p/base/tcpport.h" |
| 18 #include "webrtc/p2p/base/testturnserver.h" | 18 #include "webrtc/p2p/base/testturnserver.h" |
| 19 #include "webrtc/p2p/base/turnport.h" | 19 #include "webrtc/p2p/base/turnport.h" |
| 20 #include "webrtc/p2p/base/udpport.h" | 20 #include "webrtc/p2p/base/udpport.h" |
| 21 #include "webrtc/base/asynctcpsocket.h" | 21 #include "webrtc/base/asynctcpsocket.h" |
| 22 #include "webrtc/base/buffer.h" | 22 #include "webrtc/base/buffer.h" |
| 23 #include "webrtc/base/dscp.h" | 23 #include "webrtc/base/dscp.h" |
| 24 #include "webrtc/base/firewallsocketserver.h" | 24 #include "webrtc/base/firewallsocketserver.h" |
| 25 #include "webrtc/base/gunit.h" | 25 #include "webrtc/base/gunit.h" |
| (...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 turn_port_->PrepareAddress(); | 1049 turn_port_->PrepareAddress(); |
| 1050 ASSERT_TRUE_WAIT(turn_error_, kResolverTimeout); | 1050 ASSERT_TRUE_WAIT(turn_error_, kResolverTimeout); |
| 1051 EXPECT_TRUE(turn_port_->Candidates().empty()); | 1051 EXPECT_TRUE(turn_port_->Candidates().empty()); |
| 1052 turn_port_.reset(); | 1052 turn_port_.reset(); |
| 1053 rtc::Thread::Current()->Post(this, MSG_TESTFINISH); | 1053 rtc::Thread::Current()->Post(this, MSG_TESTFINISH); |
| 1054 // Waiting for above message to be processed. | 1054 // Waiting for above message to be processed. |
| 1055 ASSERT_TRUE_WAIT(test_finish_, kTimeout); | 1055 ASSERT_TRUE_WAIT(test_finish_, kTimeout); |
| 1056 EXPECT_EQ(last_fd_count, GetFDCount()); | 1056 EXPECT_EQ(last_fd_count, GetFDCount()); |
| 1057 } | 1057 } |
| 1058 #endif | 1058 #endif |
| OLD | NEW |