Index: webrtc/pc/peerconnectioninterface_unittest.cc |
diff --git a/webrtc/pc/peerconnectioninterface_unittest.cc b/webrtc/pc/peerconnectioninterface_unittest.cc |
index c10324a94b7a5772733cd473a939226c074981d2..59ed2e4b28a235f84e81fe2b829b8b6cfefa6d60 100644 |
--- a/webrtc/pc/peerconnectioninterface_unittest.cc |
+++ b/webrtc/pc/peerconnectioninterface_unittest.cc |
@@ -1278,14 +1278,15 @@ TEST_F(PeerConnectionInterfaceTest, CreatePeerConnectionWithPooledCandidates) { |
// and on the correct thread. |
TEST_F(PeerConnectionInterfaceTest, |
CreatePeerConnectionInitializesPortAllocator) { |
- rtc::Thread network_thread; |
- network_thread.Start(); |
+ std::unique_ptr<rtc::Thread> network_thread( |
+ rtc::Thread::CreateWithSocketServer()); |
+ network_thread->Start(); |
rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> pc_factory( |
webrtc::CreatePeerConnectionFactory( |
- &network_thread, rtc::Thread::Current(), rtc::Thread::Current(), |
+ network_thread.get(), rtc::Thread::Current(), rtc::Thread::Current(), |
nullptr, nullptr, nullptr)); |
std::unique_ptr<cricket::FakePortAllocator> port_allocator( |
- new cricket::FakePortAllocator(&network_thread, nullptr)); |
+ new cricket::FakePortAllocator(network_thread.get(), nullptr)); |
cricket::FakePortAllocator* raw_port_allocator = port_allocator.get(); |
PeerConnectionInterface::RTCConfiguration config; |
rtc::scoped_refptr<PeerConnectionInterface> pc( |