Index: webrtc/api/videosource_unittest.cc |
diff --git a/webrtc/api/videosource_unittest.cc b/webrtc/api/videosource_unittest.cc |
index e5f8b9f1462b2712860837973ac115c57dcc0f3b..cfa1e721b8e61ab49fcbc94d3d10b48a33c11280 100644 |
--- a/webrtc/api/videosource_unittest.cc |
+++ b/webrtc/api/videosource_unittest.cc |
@@ -137,7 +137,7 @@ class VideoSourceTest : public testing::Test { |
state_observer_.reset(new StateObserver(source_)); |
source_->RegisterObserver(state_observer_.get()); |
- source_->AddSink(&renderer_); |
+ source_->AddOrUpdateSink(&renderer_, rtc::VideoSinkWants()); |
} |
rtc::scoped_ptr<TestVideoCapturer> capturer_cleanup_; |
@@ -200,7 +200,7 @@ TEST_F(VideoSourceTest, StartStopRemote) { |
state_observer_.reset(new StateObserver(source_)); |
source_->RegisterObserver(state_observer_.get()); |
- source_->AddSink(&renderer_); |
+ source_->AddOrUpdateSink(&renderer_, rtc::VideoSinkWants()); |
EXPECT_EQ_WAIT(MediaSourceInterface::kLive, state_observer_->state(), |
kMaxWaitMs); |