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

Unified Diff: media/base/test_helpers.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: rebase + android tweaks 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
« no previous file with comments | « media/base/test_helpers.h ('k') | media/filters/audio_decoder_selector_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/test_helpers.cc
diff --git a/media/base/test_helpers.cc b/media/base/test_helpers.cc
index 929b2f3c725c70ee4fa26fc770ee0e9e827112d6..b37dc0e8f8ab46b8a9c346b9c83c381310c47ed9 100644
--- a/media/base/test_helpers.cc
+++ b/media/base/test_helpers.cc
@@ -242,4 +242,21 @@ bool VerifyFakeVideoBufferForTest(
height == config.coded_size().height());
}
+CallbackPairChecker::CallbackPairChecker() : expecting_b_(false) {
+}
+
+CallbackPairChecker::~CallbackPairChecker() {
+ EXPECT_FALSE(expecting_b_);
+}
+
+void CallbackPairChecker::RecordACalled() {
+ EXPECT_FALSE(expecting_b_);
+ expecting_b_ = true;
+}
+
+void CallbackPairChecker::RecordBCalled() {
+ EXPECT_TRUE(expecting_b_);
+ expecting_b_ = false;
+}
+
} // namespace media
« no previous file with comments | « media/base/test_helpers.h ('k') | media/filters/audio_decoder_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698