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 3555b914199f2de299192d8bfabba5bea17a3b62..64080eecf332c26eb4fdf21fe2de7acf6b592669 100644 |
--- a/media/formats/mp2t/mp2t_stream_parser_unittest.cc |
+++ b/media/formats/mp2t/mp2t_stream_parser_unittest.cc |
@@ -504,6 +504,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 |