Index: webrtc/p2p/client/fakeportallocator.h |
diff --git a/webrtc/p2p/client/fakeportallocator.h b/webrtc/p2p/client/fakeportallocator.h |
index dca86f633e7c39664cd82a17a2823132791c400a..d59333a97d21f84b160aaf79d332364ff14fc6f1 100644 |
--- a/webrtc/p2p/client/fakeportallocator.h |
+++ b/webrtc/p2p/client/fakeportallocator.h |
@@ -101,11 +101,24 @@ class FakePortAllocator : public cricket::PortAllocator { |
} |
} |
+ void SetIceServers( |
+ const ServerAddresses& stun_servers, |
+ const std::vector<RelayServerConfig>& turn_servers) override { |
+ stun_servers_ = stun_servers; |
+ turn_servers_ = turn_servers; |
+ } |
+ |
+ const ServerAddresses& stun_servers() const { return stun_servers_; } |
+ |
+ const std::vector<RelayServerConfig>& turn_servers() const { |
+ return turn_servers_; |
+ } |
+ |
virtual cricket::PortAllocatorSession* CreateSessionInternal( |
const std::string& content_name, |
int component, |
const std::string& ice_ufrag, |
- const std::string& ice_pwd) { |
+ const std::string& ice_pwd) override { |
return new FakePortAllocatorSession( |
worker_thread_, factory_, content_name, component, ice_ufrag, ice_pwd); |
} |
@@ -114,6 +127,8 @@ class FakePortAllocator : public cricket::PortAllocator { |
rtc::Thread* worker_thread_; |
rtc::PacketSocketFactory* factory_; |
rtc::scoped_ptr<rtc::BasicPacketSocketFactory> owned_factory_; |
+ ServerAddresses stun_servers_; |
+ std::vector<RelayServerConfig> turn_servers_; |
}; |
} // namespace cricket |