| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 PIPELINE_OK, | 150 PIPELINE_OK, |
| 151 PIPELINE_ERROR_DECODE); | 151 PIPELINE_ERROR_DECODE); |
| 152 FFMPEG_TEST_CASE(Cr536601, | 152 FFMPEG_TEST_CASE(Cr536601, |
| 153 "security/536601.m4a", | 153 "security/536601.m4a", |
| 154 PIPELINE_OK, | 154 PIPELINE_OK, |
| 155 PIPELINE_OK); | 155 PIPELINE_OK); |
| 156 FFMPEG_TEST_CASE(Cr532967, | 156 FFMPEG_TEST_CASE(Cr532967, |
| 157 "security/532967.webm", | 157 "security/532967.webm", |
| 158 PIPELINE_OK, | 158 PIPELINE_OK, |
| 159 PIPELINE_OK); | 159 PIPELINE_OK); |
| 160 // TODO(tguilbert): update PIPELINE_ERROR_DECODE to |
| 161 // AUDIO_RENDERER_ERROR_IMPLICIT_CONFIG_CHANGE once the status is created. |
| 162 FFMPEG_TEST_CASE(Cr599625, |
| 163 "security/599625.mp4", |
| 164 PIPELINE_OK, |
| 165 PIPELINE_ERROR_DECODE); |
| 160 | 166 |
| 161 // General MP4 test cases. | 167 // General MP4 test cases. |
| 162 FFMPEG_TEST_CASE(MP4_0, | 168 FFMPEG_TEST_CASE(MP4_0, |
| 163 "security/aac.10419.mp4", | 169 "security/aac.10419.mp4", |
| 164 DEMUXER_ERROR_COULD_NOT_OPEN, | 170 DEMUXER_ERROR_COULD_NOT_OPEN, |
| 165 DEMUXER_ERROR_COULD_NOT_OPEN); | 171 DEMUXER_ERROR_COULD_NOT_OPEN); |
| 166 FFMPEG_TEST_CASE(MP4_1, | 172 FFMPEG_TEST_CASE(MP4_1, |
| 167 "security/clockh264aac_200021889.mp4", | 173 "security/clockh264aac_200021889.mp4", |
| 168 DEMUXER_ERROR_COULD_NOT_OPEN, | 174 DEMUXER_ERROR_COULD_NOT_OPEN, |
| 169 DEMUXER_ERROR_COULD_NOT_OPEN); | 175 DEMUXER_ERROR_COULD_NOT_OPEN); |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 } | 364 } |
| 359 | 365 |
| 360 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { | 366 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { |
| 361 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) { | 367 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) { |
| 362 Play(); | 368 Play(); |
| 363 WaitUntilEndedOrError(); | 369 WaitUntilEndedOrError(); |
| 364 } | 370 } |
| 365 } | 371 } |
| 366 | 372 |
| 367 } // namespace media | 373 } // namespace media |
| OLD | NEW |