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

Unified Diff: trunk/src/media/filters/pipeline_integration_test.cc

Issue 210743002: Revert 259154 "Remove HasAudio(), HasVideo(), GetInitialNaturalS..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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 | « trunk/src/media/base/pipeline_unittest.cc ('k') | trunk/src/media/filters/pipeline_integration_test_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/media/filters/pipeline_integration_test.cc
===================================================================
--- trunk/src/media/filters/pipeline_integration_test.cc (revision 259158)
+++ trunk/src/media/filters/pipeline_integration_test.cc (working copy)
@@ -17,7 +17,6 @@
#include "media/cdm/json_web_key.h"
#include "media/filters/chunk_demuxer.h"
-using testing::_;
using testing::AnyNumber;
using testing::AtMost;
@@ -394,17 +393,17 @@
public PipelineIntegrationTestBase {
public:
void StartPipelineWithMediaSource(MockMediaSource* source) {
- EXPECT_CALL(*this, OnMetadata(_)).Times(AtMost(1));
- EXPECT_CALL(*this, OnPrerollCompleted()).Times(AtMost(1));
+ EXPECT_CALL(*this, OnBufferingState(Pipeline::kHaveMetadata))
+ .Times(AtMost(1));
+ EXPECT_CALL(*this, OnBufferingState(Pipeline::kPrerollCompleted))
+ .Times(AtMost(1));
pipeline_->Start(
CreateFilterCollection(source->GetDemuxer(), NULL),
base::Bind(&PipelineIntegrationTest::OnEnded, base::Unretained(this)),
base::Bind(&PipelineIntegrationTest::OnError, base::Unretained(this)),
QuitOnStatusCB(PIPELINE_OK),
- base::Bind(&PipelineIntegrationTest::OnMetadata,
+ base::Bind(&PipelineIntegrationTest::OnBufferingState,
base::Unretained(this)),
- base::Bind(&PipelineIntegrationTest::OnPrerollCompleted,
- base::Unretained(this)),
base::Closure());
message_loop_.Run();
@@ -418,18 +417,18 @@
void StartPipelineWithEncryptedMedia(
MockMediaSource* source,
FakeEncryptedMedia* encrypted_media) {
- EXPECT_CALL(*this, OnMetadata(_)).Times(AtMost(1));
- EXPECT_CALL(*this, OnPrerollCompleted()).Times(AtMost(1));
+ EXPECT_CALL(*this, OnBufferingState(Pipeline::kHaveMetadata))
+ .Times(AtMost(1));
+ EXPECT_CALL(*this, OnBufferingState(Pipeline::kPrerollCompleted))
+ .Times(AtMost(1));
pipeline_->Start(
CreateFilterCollection(source->GetDemuxer(),
encrypted_media->decryptor()),
base::Bind(&PipelineIntegrationTest::OnEnded, base::Unretained(this)),
base::Bind(&PipelineIntegrationTest::OnError, base::Unretained(this)),
QuitOnStatusCB(PIPELINE_OK),
- base::Bind(&PipelineIntegrationTest::OnMetadata,
+ base::Bind(&PipelineIntegrationTest::OnBufferingState,
base::Unretained(this)),
- base::Bind(&PipelineIntegrationTest::OnPrerollCompleted,
- base::Unretained(this)),
base::Closure());
source->set_need_key_cb(base::Bind(&FakeEncryptedMedia::NeedKey,
« no previous file with comments | « trunk/src/media/base/pipeline_unittest.cc ('k') | trunk/src/media/filters/pipeline_integration_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698