Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Unified Diff: webrtc/api/videosource_unittest.cc

Issue 1758223002: Change webrtc::VideoSourceInterface to inherit rtc::VideoSourceInterface. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/videosource.cc ('k') | webrtc/api/videosourceinterface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « webrtc/api/videosource.cc ('k') | webrtc/api/videosourceinterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698