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

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: 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/base/test_helpers.cc
diff --git a/media/base/test_helpers.cc b/media/base/test_helpers.cc
index 929b2f3c725c70ee4fa26fc770ee0e9e827112d6..9a40f7d162087505aa7f520ce0425fd33ecc3fd1 100644
--- a/media/base/test_helpers.cc
+++ b/media/base/test_helpers.cc
@@ -242,4 +242,21 @@ bool VerifyFakeVideoBufferForTest(
height == config.coded_size().height());
}
+MatchingCallbackVerifier::MatchingCallbackVerifier() : expecting_b_(false) {
+}
+
+MatchingCallbackVerifier::~MatchingCallbackVerifier() {
+ EXPECT_FALSE(expecting_b_);
+}
+
+void MatchingCallbackVerifier::RecordACalled() {
+ EXPECT_FALSE(expecting_b_);
+ expecting_b_ = true;
+}
+
+void MatchingCallbackVerifier::RecordBCalled() {
+ EXPECT_TRUE(expecting_b_);
+ expecting_b_ = false;
+}
+
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698