| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 ReadTestDataFile("bear-1280x720-a_frag-cenc_missing-saiz-saio.mp4"); | 237 ReadTestDataFile("bear-1280x720-a_frag-cenc_missing-saiz-saio.mp4"); |
| 238 EXPECT_FALSE(AppendDataInPieces(buffer->data(), buffer->data_size(), 512)); | 238 EXPECT_FALSE(AppendDataInPieces(buffer->data(), buffer->data_size(), 512)); |
| 239 } | 239 } |
| 240 | 240 |
| 241 // Test a file where all video samples start with an Access Unit | 241 // Test a file where all video samples start with an Access Unit |
| 242 // Delimiter (AUD) NALU. | 242 // Delimiter (AUD) NALU. |
| 243 TEST_F(MP4StreamParserTest, VideoSamplesStartWithAUDs) { | 243 TEST_F(MP4StreamParserTest, VideoSamplesStartWithAUDs) { |
| 244 ParseMP4File("bear-1280x720-av_with-aud-nalus_frag.mp4", 512); | 244 ParseMP4File("bear-1280x720-av_with-aud-nalus_frag.mp4", 512); |
| 245 } | 245 } |
| 246 | 246 |
| 247 #if defined(ENABLE_HEVC_DEMUXING) |
| 248 TEST_F(MP4StreamParserTest, HEVC_in_MP4_container) { |
| 249 ParseMP4File("bear-hevc-frag.mp4", 512); |
| 250 } |
| 251 #endif |
| 252 |
| 247 // TODO(strobe): Create and test media which uses CENC auxiliary info stored | 253 // TODO(strobe): Create and test media which uses CENC auxiliary info stored |
| 248 // inside a private box | 254 // inside a private box |
| 249 | 255 |
| 250 } // namespace mp4 | 256 } // namespace mp4 |
| 251 } // namespace media | 257 } // namespace media |
| OLD | NEW |