Index: webrtc/pc/webrtcsession_unittest.cc |
diff --git a/webrtc/pc/webrtcsession_unittest.cc b/webrtc/pc/webrtcsession_unittest.cc |
index e9017d429c94b51524c5292cd7176d5bbaebf149..f785151d1884c0f41a4554e24c71167acdcedb43 100644 |
--- a/webrtc/pc/webrtcsession_unittest.cc |
+++ b/webrtc/pc/webrtcsession_unittest.cc |
@@ -369,9 +369,10 @@ class WebRtcSessionTest |
WebRtcSessionTest() |
: media_engine_(new cricket::FakeMediaEngine()), |
data_engine_(new cricket::FakeDataEngine()), |
- channel_manager_(new cricket::ChannelManager(media_engine_, |
- data_engine_, |
- rtc::Thread::Current())), |
+ channel_manager_(new cricket::ChannelManager( |
+ std::unique_ptr<cricket::MediaEngineInterface>(media_engine_), |
+ std::unique_ptr<cricket::DataEngineInterface>(data_engine_), |
+ rtc::Thread::Current())), |
fake_call_(webrtc::Call::Config(&event_log_)), |
media_controller_( |
webrtc::MediaControllerInterface::Create(cricket::MediaConfig(), |
@@ -1504,6 +1505,8 @@ class WebRtcSessionTest |
} |
webrtc::RtcEventLogNullImpl event_log_; |
+ // |media_engine_| and |data_engine_| are actually owned by |
+ // |channel_manager_|. |
cricket::FakeMediaEngine* media_engine_; |
cricket::FakeDataEngine* data_engine_; |
// Actually owned by session_. |