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

Unified Diff: media/test/pipeline_integration_test_base.cc

Issue 1904793002: Move Pipeline permanent callbacks into Pipeline::Client interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 8 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/test/pipeline_integration_test_base.cc
diff --git a/media/test/pipeline_integration_test_base.cc b/media/test/pipeline_integration_test_base.cc
index 17647ba7ad07dd725c6998ae55f1864f348b398b..528ad96a50530cd87e9501957faeb033e80fd6ad 100644
--- a/media/test/pipeline_integration_test_base.cc
+++ b/media/test/pipeline_integration_test_base.cc
@@ -123,9 +123,9 @@ PipelineStatus PipelineIntegrationTestBase::StartInternal(
EXPECT_CALL(*this, OnMetadata(_))
.Times(AtMost(1))
.WillRepeatedly(SaveArg<0>(&metadata_));
- EXPECT_CALL(*this, OnBufferingStateChanged(BUFFERING_HAVE_ENOUGH))
+ EXPECT_CALL(*this, OnBufferingStateChange(BUFFERING_HAVE_ENOUGH))
.Times(AnyNumber());
- EXPECT_CALL(*this, OnBufferingStateChanged(BUFFERING_HAVE_NOTHING))
+ EXPECT_CALL(*this, OnBufferingStateChange(BUFFERING_HAVE_NOTHING))
.Times(AnyNumber());
CreateDemuxer(std::move(data_source));
@@ -140,20 +140,9 @@ PipelineStatus PipelineIntegrationTestBase::StartInternal(
// media files are provided in advance.
EXPECT_CALL(*this, OnWaitingForDecryptionKey()).Times(0);
- pipeline_->Start(
- demuxer_.get(), CreateRenderer(),
- base::Bind(&PipelineIntegrationTestBase::OnEnded, base::Unretained(this)),
- base::Bind(&PipelineIntegrationTestBase::OnError, base::Unretained(this)),
- base::Bind(&PipelineIntegrationTestBase::OnStatusCallback,
- base::Unretained(this)),
- base::Bind(&PipelineIntegrationTestBase::OnMetadata,
- base::Unretained(this)),
- base::Bind(&PipelineIntegrationTestBase::OnBufferingStateChanged,
- base::Unretained(this)),
- base::Closure(), base::Bind(&PipelineIntegrationTestBase::OnAddTextTrack,
- base::Unretained(this)),
- base::Bind(&PipelineIntegrationTestBase::OnWaitingForDecryptionKey,
- base::Unretained(this)));
+ pipeline_->Start(demuxer_.get(), CreateRenderer(), this,
+ base::Bind(&PipelineIntegrationTestBase::OnStatusCallback,
+ base::Unretained(this)));
message_loop_.Run();
return pipeline_status_;
}
@@ -201,7 +190,7 @@ void PipelineIntegrationTestBase::Pause() {
bool PipelineIntegrationTestBase::Seek(base::TimeDelta seek_time) {
ended_ = false;
- EXPECT_CALL(*this, OnBufferingStateChanged(BUFFERING_HAVE_ENOUGH))
+ EXPECT_CALL(*this, OnBufferingStateChange(BUFFERING_HAVE_ENOUGH))
.WillOnce(InvokeWithoutArgs(&message_loop_, &base::MessageLoop::QuitNow));
pipeline_->Seek(seek_time, base::Bind(&PipelineIntegrationTestBase::OnSeeked,
base::Unretained(this), seek_time));
@@ -219,7 +208,7 @@ bool PipelineIntegrationTestBase::Suspend() {
bool PipelineIntegrationTestBase::Resume(base::TimeDelta seek_time) {
ended_ = false;
- EXPECT_CALL(*this, OnBufferingStateChanged(BUFFERING_HAVE_ENOUGH))
+ EXPECT_CALL(*this, OnBufferingStateChange(BUFFERING_HAVE_ENOUGH))
.WillOnce(InvokeWithoutArgs(&message_loop_, &base::MessageLoop::QuitNow));
pipeline_->Resume(CreateRenderer(), seek_time,
base::Bind(&PipelineIntegrationTestBase::OnSeeked,
« media/blink/webmediaplayer_impl.cc ('K') | « media/test/pipeline_integration_test_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698