Index: media/formats/mp4/mp4_stream_parser_unittest.cc |
diff --git a/media/formats/mp4/mp4_stream_parser_unittest.cc b/media/formats/mp4/mp4_stream_parser_unittest.cc |
index 5bcb7add29f4a6243ca0ef5ad21d07e4db43b1cf..93aca50ab595f3ea0923c96ddbd68fba953a81aa 100644 |
--- a/media/formats/mp4/mp4_stream_parser_unittest.cc |
+++ b/media/formats/mp4/mp4_stream_parser_unittest.cc |
@@ -247,5 +247,21 @@ TEST_F(MP4StreamParserTest, VideoSamplesStartWithAUDs) { |
// TODO(strobe): Create and test media which uses CENC auxiliary info stored |
// inside a private box |
+#if defined(ENABLE_AC3_EAC3_AUDIO_DEMUXING) |
+TEST_F(MP4StreamParserTest, DemuxingAC3) { |
+ std::set<int> audio_object_types; |
+ audio_object_types.insert(kAC3); |
+ parser_.reset(new MP4StreamParser(audio_object_types, false)); |
+ ParseMP4File("bear-ac3-frag.mp4", 512); |
+} |
+ |
+TEST_F(MP4StreamParserTest, DemuxingEAC3) { |
+ std::set<int> audio_object_types; |
+ audio_object_types.insert(kEAC3); |
+ parser_.reset(new MP4StreamParser(audio_object_types, false)); |
+ ParseMP4File("bear-eac3-frag.mp4", 512); |
+} |
+#endif |
+ |
} // namespace mp4 |
} // namespace media |