Index: media/filters/decrypting_demuxer_stream_unittest.cc |
diff --git a/media/filters/decrypting_demuxer_stream_unittest.cc b/media/filters/decrypting_demuxer_stream_unittest.cc |
index 8cd65ca982c88ace982e85ab98605c615211dbe8..e5a32c85a94cf01d0c781f682273d994ed46e1c0 100644 |
--- a/media/filters/decrypting_demuxer_stream_unittest.cc |
+++ b/media/filters/decrypting_demuxer_stream_unittest.cc |
@@ -258,6 +258,15 @@ TEST_F(DecryptingDemuxerStreamTest, Initialize_NormalVideo) { |
} |
} |
+TEST_F(DecryptingDemuxerStreamTest, Initialize_NullDecryptor) { |
+ EXPECT_CALL(*this, RequestDecryptorNotification(_)) |
+ .WillRepeatedly(RunCallbackIfNotNull(static_cast<Decryptor*>(NULL))); |
+ |
+ AudioDecoderConfig input_config(kCodecVorbis, kSampleFormatPlanarF32, |
+ CHANNEL_LAYOUT_STEREO, 44100, NULL, 0, true); |
+ InitializeAudioAndExpectStatus(input_config, DECODER_ERROR_NOT_SUPPORTED); |
+} |
+ |
// Test normal read case. |
TEST_F(DecryptingDemuxerStreamTest, Read_Normal) { |
Initialize(); |