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 |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 class FakePortAllocatorSession : public PortAllocatorSession { | 27 class FakePortAllocatorSession : public PortAllocatorSession { |
28 public: | 28 public: |
29 FakePortAllocatorSession(rtc::Thread* worker_thread, | 29 FakePortAllocatorSession(rtc::Thread* worker_thread, |
30 rtc::PacketSocketFactory* factory, | 30 rtc::PacketSocketFactory* factory, |
31 const std::string& content_name, | 31 const std::string& content_name, |
32 int component, | 32 int component, |
33 const std::string& ice_ufrag, | 33 const std::string& ice_ufrag, |
34 const std::string& ice_pwd) | 34 const std::string& ice_pwd) |
35 : PortAllocatorSession(content_name, component, ice_ufrag, ice_pwd, | 35 : PortAllocatorSession(content_name, component, ice_ufrag, ice_pwd, |
36 cricket::PORTALLOCATOR_ENABLE_SHARED_UFRAG), | 36 cricket::kDefaultPortAllocatorFlags), |
37 worker_thread_(worker_thread), | 37 worker_thread_(worker_thread), |
38 factory_(factory), | 38 factory_(factory), |
39 network_("network", "unittest", | 39 network_("network", "unittest", |
40 rtc::IPAddress(INADDR_LOOPBACK), 8), | 40 rtc::IPAddress(INADDR_LOOPBACK), 8), |
41 port_(), running_(false), | 41 port_(), running_(false), |
42 port_config_count_(0) { | 42 port_config_count_(0) { |
43 network_.AddIP(rtc::IPAddress(INADDR_LOOPBACK)); | 43 network_.AddIP(rtc::IPAddress(INADDR_LOOPBACK)); |
44 } | 44 } |
45 | 45 |
46 virtual void StartGettingPorts() { | 46 virtual void StartGettingPorts() { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 109 |
110 private: | 110 private: |
111 rtc::Thread* worker_thread_; | 111 rtc::Thread* worker_thread_; |
112 rtc::PacketSocketFactory* factory_; | 112 rtc::PacketSocketFactory* factory_; |
113 rtc::scoped_ptr<rtc::BasicPacketSocketFactory> owned_factory_; | 113 rtc::scoped_ptr<rtc::BasicPacketSocketFactory> owned_factory_; |
114 }; | 114 }; |
115 | 115 |
116 } // namespace cricket | 116 } // namespace cricket |
117 | 117 |
118 #endif // WEBRTC_P2P_CLIENT_FAKEPORTALLOCATOR_H_ | 118 #endif // WEBRTC_P2P_CLIENT_FAKEPORTALLOCATOR_H_ |
OLD | NEW |