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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 TEST_F(MP4StreamParserTest, CENC) { | 254 TEST_F(MP4StreamParserTest, CENC) { |
255 // Encrypted test mp4 files have non-zero duration and are treated as | 255 // Encrypted test mp4 files have non-zero duration and are treated as |
256 // recorded streams. | 256 // recorded streams. |
257 InitializeParserAndExpectLiveness(DemuxerStream::LIVENESS_RECORDED); | 257 InitializeParserAndExpectLiveness(DemuxerStream::LIVENESS_RECORDED); |
258 | 258 |
259 scoped_refptr<DecoderBuffer> buffer = | 259 scoped_refptr<DecoderBuffer> buffer = |
260 ReadTestDataFile("bear-1280x720-v_frag-cenc.mp4"); | 260 ReadTestDataFile("bear-1280x720-v_frag-cenc.mp4"); |
261 EXPECT_TRUE(AppendDataInPieces(buffer->data(), buffer->data_size(), 512)); | 261 EXPECT_TRUE(AppendDataInPieces(buffer->data(), buffer->data_size(), 512)); |
262 } | 262 } |
263 | 263 |
| 264 #if defined(ENABLE_HEVC_DEMUXING) |
| 265 TEST_F(MP4StreamParserTest, HEVC_in_MP4_container) { |
| 266 InitializeParserAndExpectLiveness(DemuxerStream::LIVENESS_RECORDED); |
| 267 scoped_refptr<DecoderBuffer> buffer = ReadTestDataFile("bear-hevc-frag.mp4"); |
| 268 EXPECT_TRUE(AppendDataInPieces(buffer->data(), buffer->data_size(), 512)); |
| 269 } |
| 270 #endif |
| 271 |
264 } // namespace mp4 | 272 } // namespace mp4 |
265 } // namespace media | 273 } // namespace media |
OLD | NEW |