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

Unified Diff: media/renderers/renderer_impl_unittest.cc

Issue 1935873002: Implement disabling and enabling media tracks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@track-control2
Patch Set: Added tests to verify no rendering happens for disabled tracks Created 4 years, 6 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
Index: media/renderers/renderer_impl_unittest.cc
diff --git a/media/renderers/renderer_impl_unittest.cc b/media/renderers/renderer_impl_unittest.cc
index 97900551f4d455206f28337f704e08a48d8d1928..28953d9f0f9ee40a04abc1d1f7af3ce99d65cf84 100644
--- a/media/renderers/renderer_impl_unittest.cc
+++ b/media/renderers/renderer_impl_unittest.cc
@@ -87,6 +87,7 @@ class RendererImplTest : public ::testing::Test {
DemuxerStream::Type type) {
std::unique_ptr<StrictMock<MockDemuxerStream>> stream(
new StrictMock<MockDemuxerStream>(type));
+ EXPECT_CALL(*stream, SetStreamRestartedCB(_)).Times(testing::AnyNumber());
return stream;
}
@@ -503,6 +504,7 @@ TEST_F(RendererImplTest, VideoStreamEnded) {
EXPECT_CALL(time_source_, StopTicking());
EXPECT_CALL(callbacks_, OnEnded());
+ EXPECT_CALL(*video_renderer_, OnTimeStateChanged(false));
video_renderer_client_->OnEnded();
base::RunLoop().RunUntilIdle();
@@ -518,6 +520,7 @@ TEST_F(RendererImplTest, AudioVideoStreamsEnded) {
EXPECT_CALL(time_source_, StopTicking());
EXPECT_CALL(callbacks_, OnEnded());
+ EXPECT_CALL(*video_renderer_, OnTimeStateChanged(false));
video_renderer_client_->OnEnded();
base::RunLoop().RunUntilIdle();

Powered by Google App Engine
This is Rietveld 408576698