Index: webrtc/p2p/base/fakeportallocator.h |
diff --git a/webrtc/p2p/base/fakeportallocator.h b/webrtc/p2p/base/fakeportallocator.h |
index 6730d1ebb82c9fcaa12261436380c15155f6889a..0da50d3d2252da8a8b2abd9d03e51ee14da8c509 100644 |
--- a/webrtc/p2p/base/fakeportallocator.h |
+++ b/webrtc/p2p/base/fakeportallocator.h |
@@ -103,11 +103,14 @@ class FakePortAllocatorSession : public PortAllocatorSession { |
running_(false), |
port_config_count_(0), |
stun_servers_(allocator->stun_servers()), |
- turn_servers_(allocator->turn_servers()), |
- candidate_filter_(allocator->candidate_filter()) { |
+ turn_servers_(allocator->turn_servers()) { |
network_.AddIP(rtc::IPAddress(INADDR_LOOPBACK)); |
} |
+ void SetCandidateFilter(uint32_t filter) override { |
+ candidate_filter_ = filter; |
+ } |
+ |
void StartGettingPorts() override { |
if (!port_) { |
port_.reset(TestUDPPort::Create(worker_thread_, factory_, &network_, |
@@ -181,7 +184,7 @@ class FakePortAllocatorSession : public PortAllocatorSession { |
bool allocation_done_ = false; |
ServerAddresses stun_servers_; |
std::vector<RelayServerConfig> turn_servers_; |
- uint32_t candidate_filter_; |
+ uint32_t candidate_filter_ = CF_ALL; |
int transport_info_update_count_ = 0; |
}; |