OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <algorithm> | 5 #include <algorithm> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 | 239 |
240 // Test a file where all video samples start with an Access Unit | 240 // Test a file where all video samples start with an Access Unit |
241 // Delimiter (AUD) NALU. | 241 // Delimiter (AUD) NALU. |
242 TEST_F(MP4StreamParserTest, VideoSamplesStartWithAUDs) { | 242 TEST_F(MP4StreamParserTest, VideoSamplesStartWithAUDs) { |
243 ParseMP4File("bear-1280x720-av_with-aud-nalus_frag.mp4", 512); | 243 ParseMP4File("bear-1280x720-av_with-aud-nalus_frag.mp4", 512); |
244 } | 244 } |
245 | 245 |
246 // TODO(strobe): Create and test media which uses CENC auxiliary info stored | 246 // TODO(strobe): Create and test media which uses CENC auxiliary info stored |
247 // inside a private box | 247 // inside a private box |
248 | 248 |
| 249 #if defined(ENABLE_AC3_EAC3_AUDIO_DEMUXING) |
| 250 TEST_F(MP4StreamParserTest, DemuxingAC3) { |
| 251 std::set<int> audio_object_types; |
| 252 audio_object_types.insert(kAC3); |
| 253 parser_.reset(new MP4StreamParser(audio_object_types, false)); |
| 254 ParseMP4File("bear-ac3-frag.mp4", 512); |
| 255 } |
| 256 |
| 257 TEST_F(MP4StreamParserTest, DemuxingEAC3) { |
| 258 std::set<int> audio_object_types; |
| 259 audio_object_types.insert(kEAC3); |
| 260 parser_.reset(new MP4StreamParser(audio_object_types, false)); |
| 261 ParseMP4File("bear-eac3-frag.mp4", 512); |
| 262 } |
| 263 #endif |
| 264 |
249 } // namespace mp4 | 265 } // namespace mp4 |
250 } // namespace media | 266 } // namespace media |
OLD | NEW |