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

Unified Diff: media/base/pipeline_unittest.cc

Issue 591203003: media: Pass DemuxerStreamProvider in Renderer::Initialize(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 6 years, 2 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 | « media/base/pipeline.cc ('k') | media/base/renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/pipeline_unittest.cc
diff --git a/media/base/pipeline_unittest.cc b/media/base/pipeline_unittest.cc
index 7b29698c3b7311e7ca08ec391cbeab3dd4e80565..5a7e20df434f82d9e1897c62549d94a99a7db34b 100644
--- a/media/base/pipeline_unittest.cc
+++ b/media/base/pipeline_unittest.cc
@@ -165,10 +165,10 @@ class PipelineTest : public ::testing::Test {
// Sets up expectations to allow the video renderer to initialize.
void SetRendererExpectations() {
- EXPECT_CALL(*renderer_, Initialize(_, _, _, _, _))
- .WillOnce(DoAll(SaveArg<2>(&ended_cb_),
- SaveArg<4>(&buffering_state_cb_),
- RunCallback<0>()));
+ EXPECT_CALL(*renderer_, Initialize(_, _, _, _, _, _))
+ .WillOnce(DoAll(SaveArg<3>(&ended_cb_),
+ SaveArg<5>(&buffering_state_cb_),
+ RunCallback<1>()));
EXPECT_CALL(*renderer_, HasAudio()).WillRepeatedly(Return(audio_stream()));
EXPECT_CALL(*renderer_, HasVideo()).WillRepeatedly(Return(video_stream()));
}
@@ -847,23 +847,23 @@ class PipelineTeardownTest : public PipelineTest {
if (state == kInitRenderer) {
if (stop_or_error == kStop) {
- EXPECT_CALL(*renderer_, Initialize(_, _, _, _, _))
+ EXPECT_CALL(*renderer_, Initialize(_, _, _, _, _, _))
.WillOnce(DoAll(Stop(pipeline_.get(), stop_cb),
- RunCallback<0>()));
+ RunCallback<1>()));
ExpectPipelineStopAndDestroyPipeline();
} else {
status = PIPELINE_ERROR_INITIALIZATION_FAILED;
- EXPECT_CALL(*renderer_, Initialize(_, _, _, _, _))
- .WillOnce(DoAll(RunCallback<3>(status), RunCallback<0>()));
+ EXPECT_CALL(*renderer_, Initialize(_, _, _, _, _, _))
+ .WillOnce(DoAll(RunCallback<4>(status), RunCallback<1>()));
}
EXPECT_CALL(*demuxer_, Stop());
return status;
}
- EXPECT_CALL(*renderer_, Initialize(_, _, _, _, _))
- .WillOnce(DoAll(SaveArg<4>(&buffering_state_cb_),
- RunCallback<0>()));
+ EXPECT_CALL(*renderer_, Initialize(_, _, _, _, _, _))
+ .WillOnce(DoAll(SaveArg<5>(&buffering_state_cb_),
+ RunCallback<1>()));
EXPECT_CALL(callbacks_, OnMetadata(_));
« no previous file with comments | « media/base/pipeline.cc ('k') | media/base/renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698