| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2015 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 <stdint.h> | 11 #include <stdint.h> |
| 12 | 12 |
| 13 #include <memory> | 13 #include <memory> |
| 14 | 14 |
| 15 #include "webrtc/base/asyncresolverinterface.h" | |
| 16 #include "webrtc/base/bind.h" | |
| 17 #include "webrtc/base/checks.h" | |
| 18 #include "webrtc/base/gunit.h" | |
| 19 #include "webrtc/base/ssladapter.h" | |
| 20 #include "webrtc/base/virtualsocketserver.h" | |
| 21 #include "webrtc/p2p/base/basicpacketsocketfactory.h" | 15 #include "webrtc/p2p/base/basicpacketsocketfactory.h" |
| 22 #include "webrtc/p2p/base/teststunserver.h" | 16 #include "webrtc/p2p/base/teststunserver.h" |
| 23 #include "webrtc/p2p/stunprober/stunprober.h" | 17 #include "webrtc/p2p/stunprober/stunprober.h" |
| 18 #include "webrtc/rtc_base/asyncresolverinterface.h" |
| 19 #include "webrtc/rtc_base/bind.h" |
| 20 #include "webrtc/rtc_base/checks.h" |
| 21 #include "webrtc/rtc_base/gunit.h" |
| 22 #include "webrtc/rtc_base/ssladapter.h" |
| 23 #include "webrtc/rtc_base/virtualsocketserver.h" |
| 24 | 24 |
| 25 using stunprober::StunProber; | 25 using stunprober::StunProber; |
| 26 using stunprober::AsyncCallback; | 26 using stunprober::AsyncCallback; |
| 27 | 27 |
| 28 namespace stunprober { | 28 namespace stunprober { |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| 32 const rtc::SocketAddress kLocalAddr("192.168.0.1", 0); | 32 const rtc::SocketAddress kLocalAddr("192.168.0.1", 0); |
| 33 const rtc::SocketAddress kStunAddr1("1.1.1.1", 3478); | 33 const rtc::SocketAddress kStunAddr1("1.1.1.1", 3478); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 TEST_F(StunProberTest, NonSharedMode) { | 129 TEST_F(StunProberTest, NonSharedMode) { |
| 130 RunProber(false); | 130 RunProber(false); |
| 131 } | 131 } |
| 132 | 132 |
| 133 TEST_F(StunProberTest, SharedMode) { | 133 TEST_F(StunProberTest, SharedMode) { |
| 134 RunProber(true); | 134 RunProber(true); |
| 135 } | 135 } |
| 136 | 136 |
| 137 } // namespace stunprober | 137 } // namespace stunprober |
| OLD | NEW |