Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Unified Diff: media/formats/mp2t/mp2t_stream_parser_unittest.cc

Issue 2783703002: Declare intent to use sample-aes later in the stream. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698