Index: webrtc/pc/rtcstatscollector_unittest.cc |
diff --git a/webrtc/pc/rtcstatscollector_unittest.cc b/webrtc/pc/rtcstatscollector_unittest.cc |
index 715da567abbdb98fb7f5f8ccb7238559e9fcd779..adace3f4dda75630ede92567d1ab4ce03b200cae 100644 |
--- a/webrtc/pc/rtcstatscollector_unittest.cc |
+++ b/webrtc/pc/rtcstatscollector_unittest.cc |
@@ -277,9 +277,10 @@ class RTCStatsCollectorTestHelper : public SetSessionDescriptionObserver { |
network_thread_(rtc::Thread::Current()), |
signaling_thread_(rtc::Thread::Current()), |
media_engine_(new cricket::FakeMediaEngine()), |
- channel_manager_(new cricket::ChannelManager(media_engine_, |
- worker_thread_, |
- network_thread_)), |
+ channel_manager_(new cricket::ChannelManager( |
+ std::unique_ptr<cricket::MediaEngineInterface>(media_engine_), |
+ worker_thread_, |
+ network_thread_)), |
media_controller_( |
MediaControllerInterface::Create(cricket::MediaConfig(), |
worker_thread_, |
@@ -489,6 +490,7 @@ class RTCStatsCollectorTestHelper : public SetSessionDescriptionObserver { |
rtc::Thread* const worker_thread_; |
rtc::Thread* const network_thread_; |
rtc::Thread* const signaling_thread_; |
+ // |media_engine_| is actually owned by |channel_manager_|. |
cricket::FakeMediaEngine* media_engine_; |
std::unique_ptr<cricket::ChannelManager> channel_manager_; |
std::unique_ptr<MediaControllerInterface> media_controller_; |