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

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: tweak needed for flush Created 3 years, 3 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
« no previous file with comments | « media/formats/mp2t/mp2t_stream_parser.cc ('k') | media/formats/mp2t/ts_section_cat.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « media/formats/mp2t/mp2t_stream_parser.cc ('k') | media/formats/mp2t/ts_section_cat.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698