Index: webrtc/api/test/peerconnectiontestwrapper.cc |
diff --git a/webrtc/api/test/peerconnectiontestwrapper.cc b/webrtc/api/test/peerconnectiontestwrapper.cc |
index 717c48af13767634c0dcf993b352e4085deeb707..07a6794f882561228b2b09543bf32bc823c69c83 100644 |
--- a/webrtc/api/test/peerconnectiontestwrapper.cc |
+++ b/webrtc/api/test/peerconnectiontestwrapper.cc |
@@ -47,16 +47,20 @@ void PeerConnectionTestWrapper::Connect(PeerConnectionTestWrapper* caller, |
caller, &PeerConnectionTestWrapper::ReceiveAnswerSdp); |
} |
-PeerConnectionTestWrapper::PeerConnectionTestWrapper(const std::string& name, |
- rtc::Thread* worker_thread) |
- : name_(name), worker_thread_(worker_thread) {} |
+PeerConnectionTestWrapper::PeerConnectionTestWrapper( |
+ const std::string& name, |
+ rtc::Thread* worker_thread, |
+ rtc::Thread* network_thread) |
+ : name_(name), |
+ network_thread_(network_thread), |
+ worker_thread_(worker_thread) {} |
PeerConnectionTestWrapper::~PeerConnectionTestWrapper() {} |
bool PeerConnectionTestWrapper::CreatePc( |
const MediaConstraintsInterface* constraints) { |
std::unique_ptr<cricket::PortAllocator> port_allocator( |
- new cricket::FakePortAllocator(worker_thread_, nullptr)); |
+ new cricket::FakePortAllocator(network_thread_, nullptr)); |
fake_audio_capture_module_ = FakeAudioCaptureModule::Create(); |
if (fake_audio_capture_module_ == NULL) { |
@@ -64,8 +68,8 @@ bool PeerConnectionTestWrapper::CreatePc( |
} |
peer_connection_factory_ = webrtc::CreatePeerConnectionFactory( |
- worker_thread_, rtc::Thread::Current(), fake_audio_capture_module_, NULL, |
- NULL); |
+ network_thread_, worker_thread_, rtc::Thread::Current(), |
+ fake_audio_capture_module_, NULL, NULL); |
if (!peer_connection_factory_) { |
return false; |
} |