| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Regression tests for FFmpeg. Test files can be found in the internal media | 5 // Regression tests for FFmpeg. Test files can be found in the internal media |
| 6 // test data directory: | 6 // test data directory: |
| 7 // | 7 // |
| 8 // https://chrome-internal.googlesource.com/chrome/data/media | 8 // https://chrome-internal.googlesource.com/chrome/data/media |
| 9 // | 9 // |
| 10 // Simply add the custom_dep below to your gclient and sync: | 10 // Simply add the custom_dep below to your gclient and sync: |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 DEMUXER_ERROR_COULD_NOT_OPEN, | 135 DEMUXER_ERROR_COULD_NOT_OPEN, |
| 136 DEMUXER_ERROR_COULD_NOT_OPEN); | 136 DEMUXER_ERROR_COULD_NOT_OPEN); |
| 137 FFMPEG_TEST_CASE(Cr444546, | 137 FFMPEG_TEST_CASE(Cr444546, |
| 138 "security/444546.mp4", | 138 "security/444546.mp4", |
| 139 DEMUXER_ERROR_COULD_NOT_OPEN, | 139 DEMUXER_ERROR_COULD_NOT_OPEN, |
| 140 DEMUXER_ERROR_COULD_NOT_OPEN); | 140 DEMUXER_ERROR_COULD_NOT_OPEN); |
| 141 FFMPEG_TEST_CASE(Cr449958, | 141 FFMPEG_TEST_CASE(Cr449958, |
| 142 "security/449958.webm", | 142 "security/449958.webm", |
| 143 PIPELINE_OK, | 143 PIPELINE_OK, |
| 144 PIPELINE_ERROR_DECODE); | 144 PIPELINE_ERROR_DECODE); |
| 145 FFMPEG_TEST_CASE(Cr536601, |
| 146 "security/536601.m4a", |
| 147 PIPELINE_OK, |
| 148 PIPELINE_OK); |
| 145 | 149 |
| 146 // General MP4 test cases. | 150 // General MP4 test cases. |
| 147 FFMPEG_TEST_CASE(MP4_0, | 151 FFMPEG_TEST_CASE(MP4_0, |
| 148 "security/aac.10419.mp4", | 152 "security/aac.10419.mp4", |
| 149 DEMUXER_ERROR_COULD_NOT_OPEN, | 153 DEMUXER_ERROR_COULD_NOT_OPEN, |
| 150 DEMUXER_ERROR_COULD_NOT_OPEN); | 154 DEMUXER_ERROR_COULD_NOT_OPEN); |
| 151 FFMPEG_TEST_CASE(MP4_1, | 155 FFMPEG_TEST_CASE(MP4_1, |
| 152 "security/clockh264aac_200021889.mp4", | 156 "security/clockh264aac_200021889.mp4", |
| 153 DEMUXER_ERROR_COULD_NOT_OPEN, | 157 DEMUXER_ERROR_COULD_NOT_OPEN, |
| 154 DEMUXER_ERROR_COULD_NOT_OPEN); | 158 DEMUXER_ERROR_COULD_NOT_OPEN); |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 } | 346 } |
| 343 | 347 |
| 344 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { | 348 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { |
| 345 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) { | 349 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) { |
| 346 Play(); | 350 Play(); |
| 347 WaitUntilEndedOrError(); | 351 WaitUntilEndedOrError(); |
| 348 } | 352 } |
| 349 } | 353 } |
| 350 | 354 |
| 351 } // namespace media | 355 } // namespace media |
| OLD | NEW |