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

Unified Diff: media/filters/pipeline_integration_test_base.cc

Issue 416333011: Allow setContentDecryptionModule() to get called when setting is done. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ReportCallback Created 6 years, 4 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/filters/pipeline_integration_test_base.cc
diff --git a/media/filters/pipeline_integration_test_base.cc b/media/filters/pipeline_integration_test_base.cc
index 54e7f58aea6eabfc780e4f21d3fa376e0fd5d6bf..6a8843996c9c8070fd014fedde014af7192f5441 100644
--- a/media/filters/pipeline_integration_test_base.cc
+++ b/media/filters/pipeline_integration_test_base.cc
@@ -20,6 +20,7 @@
using ::testing::_;
using ::testing::AnyNumber;
using ::testing::AtMost;
+using ::testing::Eq;
using ::testing::SaveArg;
namespace media {
@@ -307,7 +308,11 @@ PipelineIntegrationTestBase::CreateFilterCollection(
void PipelineIntegrationTestBase::SetDecryptor(
Decryptor* decryptor,
const DecryptorReadyCB& decryptor_ready_cb) {
- decryptor_ready_cb.Run(decryptor);
+ decryptor_ready_cb.Run(
+ decryptor,
+ base::Bind(&PipelineIntegrationTestBase::DecryptorAttached,
+ base::Unretained(this)));
+ EXPECT_CALL(*this, DecryptorAttached(Eq(true)));
xhwang 2014/08/09 00:56:03 Here and below... Does this work (drop the Eq() pa
jrummell 2014/08/11 21:47:15 Done.
}
void PipelineIntegrationTestBase::OnVideoRendererPaint(

Powered by Google App Engine
This is Rietveld 408576698