Index: media/filters/decrypting_audio_decoder_unittest.cc |
diff --git a/media/filters/decrypting_audio_decoder_unittest.cc b/media/filters/decrypting_audio_decoder_unittest.cc |
index d8b0a5e65fcf9f6c01511c8cad14807b4b138856..1ca19b88c9014b84a4386b09ab7cd3af866c10b9 100644 |
--- a/media/filters/decrypting_audio_decoder_unittest.cc |
+++ b/media/filters/decrypting_audio_decoder_unittest.cc |
@@ -270,6 +270,15 @@ TEST_F(DecryptingAudioDecoderTest, Initialize_UnsupportedAudioConfig) { |
InitializeAndExpectStatus(config, DECODER_ERROR_NOT_SUPPORTED); |
} |
+TEST_F(DecryptingAudioDecoderTest, Initialize_NullDecryptor) { |
+ EXPECT_CALL(*this, RequestDecryptorNotification(_)) |
+ .WillRepeatedly(RunCallbackIfNotNull(static_cast<Decryptor*>(NULL))); |
+ |
+ AudioDecoderConfig config(kCodecVorbis, kSampleFormatPlanarF32, |
+ CHANNEL_LAYOUT_STEREO, 44100, NULL, 0, true); |
+ InitializeAndExpectStatus(config, DECODER_ERROR_NOT_SUPPORTED); |
+} |
+ |
// Test normal decrypt and decode case. |
TEST_F(DecryptingAudioDecoderTest, DecryptAndDecode_Normal) { |
Initialize(); |