Index: webrtc/pc/peerconnectionendtoend_unittest.cc |
diff --git a/webrtc/pc/peerconnectionendtoend_unittest.cc b/webrtc/pc/peerconnectionendtoend_unittest.cc |
index c83235229d7cf9cc024be2602e25055dcc440f4f..f7cd91f00ed6bdddc768a114053045e062d77bf6 100644 |
--- a/webrtc/pc/peerconnectionendtoend_unittest.cc |
+++ b/webrtc/pc/peerconnectionendtoend_unittest.cc |
@@ -54,12 +54,14 @@ class PeerConnectionEndToEndTest |
DataChannelList; |
PeerConnectionEndToEndTest() { |
- RTC_CHECK(network_thread_.Start()); |
- RTC_CHECK(worker_thread_.Start()); |
+ network_thread_ = rtc::Thread::CreateWithSocketServer(); |
+ worker_thread_ = rtc::Thread::Create(); |
+ RTC_CHECK(network_thread_->Start()); |
+ RTC_CHECK(worker_thread_->Start()); |
caller_ = new rtc::RefCountedObject<PeerConnectionTestWrapper>( |
- "caller", &network_thread_, &worker_thread_); |
+ "caller", network_thread_.get(), worker_thread_.get()); |
callee_ = new rtc::RefCountedObject<PeerConnectionTestWrapper>( |
- "callee", &network_thread_, &worker_thread_); |
+ "callee", network_thread_.get(), worker_thread_.get()); |
webrtc::PeerConnectionInterface::IceServer ice_server; |
ice_server.uri = "stun:stun.l.google.com:19302"; |
config_.servers.push_back(ice_server); |
@@ -165,8 +167,8 @@ class PeerConnectionEndToEndTest |
} |
protected: |
- rtc::Thread network_thread_; |
- rtc::Thread worker_thread_; |
+ std::unique_ptr<rtc::Thread> network_thread_; |
+ std::unique_ptr<rtc::Thread> worker_thread_; |
rtc::scoped_refptr<PeerConnectionTestWrapper> caller_; |
rtc::scoped_refptr<PeerConnectionTestWrapper> callee_; |
DataChannelList caller_signaled_data_channels_; |