| 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/api/fakemetricsobserver.h" | 14 #include "webrtc/api/fakemetricsobserver.h" |
| 15 #include "webrtc/base/checks.h" | |
| 16 #include "webrtc/base/dscp.h" | |
| 17 #include "webrtc/base/fakeclock.h" | |
| 18 #include "webrtc/base/fakenetwork.h" | |
| 19 #include "webrtc/base/firewallsocketserver.h" | |
| 20 #include "webrtc/base/gunit.h" | |
| 21 #include "webrtc/base/helpers.h" | |
| 22 #include "webrtc/base/logging.h" | |
| 23 #include "webrtc/base/natserver.h" | |
| 24 #include "webrtc/base/natsocketfactory.h" | |
| 25 #include "webrtc/base/proxyserver.h" | |
| 26 #include "webrtc/base/ptr_util.h" | |
| 27 #include "webrtc/base/socketaddress.h" | |
| 28 #include "webrtc/base/ssladapter.h" | |
| 29 #include "webrtc/base/thread.h" | |
| 30 #include "webrtc/base/virtualsocketserver.h" | |
| 31 #include "webrtc/p2p/base/fakeportallocator.h" | 15 #include "webrtc/p2p/base/fakeportallocator.h" |
| 32 #include "webrtc/p2p/base/icetransportinternal.h" | 16 #include "webrtc/p2p/base/icetransportinternal.h" |
| 33 #include "webrtc/p2p/base/p2ptransportchannel.h" | 17 #include "webrtc/p2p/base/p2ptransportchannel.h" |
| 34 #include "webrtc/p2p/base/packettransportinternal.h" | 18 #include "webrtc/p2p/base/packettransportinternal.h" |
| 35 #include "webrtc/p2p/base/testrelayserver.h" | 19 #include "webrtc/p2p/base/testrelayserver.h" |
| 36 #include "webrtc/p2p/base/teststunserver.h" | 20 #include "webrtc/p2p/base/teststunserver.h" |
| 37 #include "webrtc/p2p/base/testturnserver.h" | 21 #include "webrtc/p2p/base/testturnserver.h" |
| 38 #include "webrtc/p2p/client/basicportallocator.h" | 22 #include "webrtc/p2p/client/basicportallocator.h" |
| 23 #include "webrtc/rtc_base/checks.h" |
| 24 #include "webrtc/rtc_base/dscp.h" |
| 25 #include "webrtc/rtc_base/fakeclock.h" |
| 26 #include "webrtc/rtc_base/fakenetwork.h" |
| 27 #include "webrtc/rtc_base/firewallsocketserver.h" |
| 28 #include "webrtc/rtc_base/gunit.h" |
| 29 #include "webrtc/rtc_base/helpers.h" |
| 30 #include "webrtc/rtc_base/logging.h" |
| 31 #include "webrtc/rtc_base/natserver.h" |
| 32 #include "webrtc/rtc_base/natsocketfactory.h" |
| 33 #include "webrtc/rtc_base/proxyserver.h" |
| 34 #include "webrtc/rtc_base/ptr_util.h" |
| 35 #include "webrtc/rtc_base/socketaddress.h" |
| 36 #include "webrtc/rtc_base/ssladapter.h" |
| 37 #include "webrtc/rtc_base/thread.h" |
| 38 #include "webrtc/rtc_base/virtualsocketserver.h" |
| 39 | 39 |
| 40 namespace { | 40 namespace { |
| 41 | 41 |
| 42 using rtc::SocketAddress; | 42 using rtc::SocketAddress; |
| 43 | 43 |
| 44 // Default timeout for tests in this file. | 44 // Default timeout for tests in this file. |
| 45 // Should be large enough for slow buildbots to run the tests reliably. | 45 // Should be large enough for slow buildbots to run the tests reliably. |
| 46 static const int kDefaultTimeout = 10000; | 46 static const int kDefaultTimeout = 10000; |
| 47 static const int kMediumTimeout = 3000; | 47 static const int kMediumTimeout = 3000; |
| 48 static const int kShortTimeout = 1000; | 48 static const int kShortTimeout = 1000; |
| (...skipping 4365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4414 | 4414 |
| 4415 // TCP Relay/Relay is the next. | 4415 // TCP Relay/Relay is the next. |
| 4416 VerifyNextPingableConnection(RELAY_PORT_TYPE, RELAY_PORT_TYPE, | 4416 VerifyNextPingableConnection(RELAY_PORT_TYPE, RELAY_PORT_TYPE, |
| 4417 TCP_PROTOCOL_NAME); | 4417 TCP_PROTOCOL_NAME); |
| 4418 | 4418 |
| 4419 // Finally, Local/Relay will be pinged. | 4419 // Finally, Local/Relay will be pinged. |
| 4420 VerifyNextPingableConnection(LOCAL_PORT_TYPE, RELAY_PORT_TYPE); | 4420 VerifyNextPingableConnection(LOCAL_PORT_TYPE, RELAY_PORT_TYPE); |
| 4421 } | 4421 } |
| 4422 | 4422 |
| 4423 } // namespace cricket { | 4423 } // namespace cricket { |
| OLD | NEW |