Index: media/formats/mp2t/mp2t_stream_parser_unittest.cc |
diff --git a/media/formats/mp2t/mp2t_stream_parser_unittest.cc b/media/formats/mp2t/mp2t_stream_parser_unittest.cc |
index 933a5de626f65c0218725fada0a8c6f7469e7662..59d943e340421f6a7673b92d54128b9b4d4f579a 100644 |
--- a/media/formats/mp2t/mp2t_stream_parser_unittest.cc |
+++ b/media/formats/mp2t/mp2t_stream_parser_unittest.cc |
@@ -503,6 +503,19 @@ TEST_F(Mp2tStreamParserTest, HLSSampleAES) { |
EXPECT_EQ(decrypted_audio_buffers[i], unencrypted_audio_buffer); |
} |
} |
+ |
+TEST_F(Mp2tStreamParserTest, PrepareForHLSSampleAES) { |
+ InitializeParser(); |
+ ParseMpeg2TsFile("bear-1280x720-hls-with-CAT.bin", 2048); |
+ parser_->Flush(); |
+ EncryptionScheme video_encryption_scheme = |
+ current_video_config_.encryption_scheme(); |
+ EXPECT_TRUE(video_encryption_scheme.is_encrypted()); |
+ EncryptionScheme audio_encryption_scheme = |
+ current_audio_config_.encryption_scheme(); |
+ EXPECT_TRUE(audio_encryption_scheme.is_encrypted()); |
+} |
+ |
#endif |
} // namespace mp2t |