Index: webrtc/pc/rtcstats_integrationtest.cc |
diff --git a/webrtc/pc/rtcstats_integrationtest.cc b/webrtc/pc/rtcstats_integrationtest.cc |
index 3dffb8d7139257d3af0774ab8196b065c9b0ad52..3d1e7d66ea50fe947d25aa7b3c709df3ca3badc6 100644 |
--- a/webrtc/pc/rtcstats_integrationtest.cc |
+++ b/webrtc/pc/rtcstats_integrationtest.cc |
@@ -34,15 +34,14 @@ |
class RTCStatsIntegrationTest : public testing::Test { |
public: |
RTCStatsIntegrationTest() |
- : network_thread_(new rtc::Thread(&virtual_socket_server_)), |
- worker_thread_(rtc::Thread::Create()) { |
- RTC_CHECK(network_thread_->Start()); |
- RTC_CHECK(worker_thread_->Start()); |
+ : network_thread_(&virtual_socket_server_), worker_thread_() { |
+ RTC_CHECK(network_thread_.Start()); |
+ RTC_CHECK(worker_thread_.Start()); |
caller_ = new rtc::RefCountedObject<PeerConnectionTestWrapper>( |
- "caller", network_thread_.get(), worker_thread_.get()); |
+ "caller", &network_thread_, &worker_thread_); |
callee_ = new rtc::RefCountedObject<PeerConnectionTestWrapper>( |
- "callee", network_thread_.get(), worker_thread_.get()); |
+ "callee", &network_thread_, &worker_thread_); |
} |
void StartCall() { |
@@ -97,8 +96,8 @@ |
// |network_thread_| uses |virtual_socket_server_| so they must be |
// constructed/destructed in the correct order. |
rtc::VirtualSocketServer virtual_socket_server_; |
- std::unique_ptr<rtc::Thread> network_thread_; |
- std::unique_ptr<rtc::Thread> worker_thread_; |
+ rtc::Thread network_thread_; |
+ rtc::Thread worker_thread_; |
rtc::scoped_refptr<PeerConnectionTestWrapper> caller_; |
rtc::scoped_refptr<PeerConnectionTestWrapper> callee_; |
}; |