| 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/p2p/base/fakeportallocator.h" | |
| 16 #include "webrtc/p2p/base/packettransportinterface.h" | |
| 17 #include "webrtc/p2p/base/p2ptransportchannel.h" | |
| 18 #include "webrtc/p2p/base/testrelayserver.h" | |
| 19 #include "webrtc/p2p/base/teststunserver.h" | |
| 20 #include "webrtc/p2p/base/testturnserver.h" | |
| 21 #include "webrtc/p2p/client/basicportallocator.h" | |
| 22 #include "webrtc/base/checks.h" | 15 #include "webrtc/base/checks.h" |
| 23 #include "webrtc/base/dscp.h" | 16 #include "webrtc/base/dscp.h" |
| 24 #include "webrtc/base/fakeclock.h" | 17 #include "webrtc/base/fakeclock.h" |
| 25 #include "webrtc/base/fakenetwork.h" | 18 #include "webrtc/base/fakenetwork.h" |
| 26 #include "webrtc/base/firewallsocketserver.h" | 19 #include "webrtc/base/firewallsocketserver.h" |
| 27 #include "webrtc/base/gunit.h" | 20 #include "webrtc/base/gunit.h" |
| 28 #include "webrtc/base/helpers.h" | 21 #include "webrtc/base/helpers.h" |
| 29 #include "webrtc/base/logging.h" | 22 #include "webrtc/base/logging.h" |
| 30 #include "webrtc/base/natserver.h" | 23 #include "webrtc/base/natserver.h" |
| 31 #include "webrtc/base/natsocketfactory.h" | 24 #include "webrtc/base/natsocketfactory.h" |
| 32 #include "webrtc/base/physicalsocketserver.h" | 25 #include "webrtc/base/physicalsocketserver.h" |
| 33 #include "webrtc/base/proxyserver.h" | 26 #include "webrtc/base/proxyserver.h" |
| 34 #include "webrtc/base/socketaddress.h" | 27 #include "webrtc/base/socketaddress.h" |
| 35 #include "webrtc/base/ssladapter.h" | 28 #include "webrtc/base/ssladapter.h" |
| 36 #include "webrtc/base/thread.h" | 29 #include "webrtc/base/thread.h" |
| 37 #include "webrtc/base/virtualsocketserver.h" | 30 #include "webrtc/base/virtualsocketserver.h" |
| 38 #include "webrtc/p2p/base/icetransportinternal.h" | 31 #include "webrtc/p2p/base/icetransportinternal.h" |
| 32 #include "webrtc/p2p/base/fakeportallocator.h" |
| 33 #include "webrtc/p2p/base/p2ptransportchannel.h" |
| 34 #include "webrtc/p2p/base/packettransportinterface.h" |
| 35 #include "webrtc/p2p/base/testrelayserver.h" |
| 36 #include "webrtc/p2p/base/teststunserver.h" |
| 37 #include "webrtc/p2p/base/testturnserver.h" |
| 38 #include "webrtc/p2p/client/basicportallocator.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 4339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4388 | 4388 |
| 4389 // TCP Relay/Relay is the next. | 4389 // TCP Relay/Relay is the next. |
| 4390 VerifyNextPingableConnection(RELAY_PORT_TYPE, RELAY_PORT_TYPE, | 4390 VerifyNextPingableConnection(RELAY_PORT_TYPE, RELAY_PORT_TYPE, |
| 4391 TCP_PROTOCOL_NAME); | 4391 TCP_PROTOCOL_NAME); |
| 4392 | 4392 |
| 4393 // Finally, Local/Relay will be pinged. | 4393 // Finally, Local/Relay will be pinged. |
| 4394 VerifyNextPingableConnection(LOCAL_PORT_TYPE, RELAY_PORT_TYPE); | 4394 VerifyNextPingableConnection(LOCAL_PORT_TYPE, RELAY_PORT_TYPE); |
| 4395 } | 4395 } |
| 4396 | 4396 |
| 4397 } // namespace cricket { | 4397 } // namespace cricket { |
| OLD | NEW |