OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2010 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 #ifndef WEBRTC_P2P_BASE_FAKEPORTALLOCATOR_H_ | 11 #ifndef WEBRTC_P2P_BASE_FAKEPORTALLOCATOR_H_ |
12 #define WEBRTC_P2P_BASE_FAKEPORTALLOCATOR_H_ | 12 #define WEBRTC_P2P_BASE_FAKEPORTALLOCATOR_H_ |
13 | 13 |
14 #include <memory> | 14 #include <memory> |
15 #include <string> | 15 #include <string> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
| 18 #include "webrtc/base/nethelpers.h" |
18 #include "webrtc/p2p/base/basicpacketsocketfactory.h" | 19 #include "webrtc/p2p/base/basicpacketsocketfactory.h" |
19 #include "webrtc/p2p/base/portallocator.h" | 20 #include "webrtc/p2p/base/portallocator.h" |
20 #include "webrtc/p2p/base/udpport.h" | 21 #include "webrtc/p2p/base/udpport.h" |
21 #include "webrtc/rtc_base/nethelpers.h" | |
22 | 22 |
23 namespace rtc { | 23 namespace rtc { |
24 class SocketFactory; | 24 class SocketFactory; |
25 class Thread; | 25 class Thread; |
26 } | 26 } |
27 | 27 |
28 namespace cricket { | 28 namespace cricket { |
29 | 29 |
30 class TestUDPPort : public UDPPort { | 30 class TestUDPPort : public UDPPort { |
31 public: | 31 public: |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 private: | 247 private: |
248 rtc::Thread* network_thread_; | 248 rtc::Thread* network_thread_; |
249 rtc::PacketSocketFactory* factory_; | 249 rtc::PacketSocketFactory* factory_; |
250 std::unique_ptr<rtc::BasicPacketSocketFactory> owned_factory_; | 250 std::unique_ptr<rtc::BasicPacketSocketFactory> owned_factory_; |
251 bool initialized_ = false; | 251 bool initialized_ = false; |
252 }; | 252 }; |
253 | 253 |
254 } // namespace cricket | 254 } // namespace cricket |
255 | 255 |
256 #endif // WEBRTC_P2P_BASE_FAKEPORTALLOCATOR_H_ | 256 #endif // WEBRTC_P2P_BASE_FAKEPORTALLOCATOR_H_ |
OLD | NEW |