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)); |