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

Unified Diff: media/filters/decrypting_video_decoder_unittest.cc

Issue 17422002: Encrypted Media: DecryptingXxx::SetDecryptor() accepts NULL decryptor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add todo and bug. Created 7 years, 6 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/filters/decrypting_video_decoder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/decrypting_video_decoder_unittest.cc
diff --git a/media/filters/decrypting_video_decoder_unittest.cc b/media/filters/decrypting_video_decoder_unittest.cc
index cd9424ce4b8361e9c47e43cb71a181e8539be991..27d4e5383ecb5823e8fb21460ad55cba704b626b 100644
--- a/media/filters/decrypting_video_decoder_unittest.cc
+++ b/media/filters/decrypting_video_decoder_unittest.cc
@@ -254,6 +254,13 @@ TEST_F(DecryptingVideoDecoderTest, Initialize_Normal) {
Initialize();
}
+TEST_F(DecryptingVideoDecoderTest, Initialize_NullDecryptor) {
+ EXPECT_CALL(*this, RequestDecryptorNotification(_))
+ .WillRepeatedly(RunCallbackIfNotNull(static_cast<Decryptor*>(NULL)));
+ InitializeAndExpectStatus(TestVideoConfig::NormalEncrypted(),
+ DECODER_ERROR_NOT_SUPPORTED);
+}
+
TEST_F(DecryptingVideoDecoderTest, Initialize_Failure) {
EXPECT_CALL(*decryptor_, InitializeVideoDecoder(_, _))
.WillRepeatedly(RunCallback<1>(false));
« no previous file with comments | « media/filters/decrypting_video_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698