| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 base::TimeDelta::FromSecondsD(0.0843)); | 202 base::TimeDelta::FromSecondsD(0.0843)); |
| 203 FFMPEG_TEST_CASE(Cr666874, | 203 FFMPEG_TEST_CASE(Cr666874, |
| 204 "security/666874.mp3", | 204 "security/666874.mp3", |
| 205 DEMUXER_ERROR_COULD_NOT_OPEN, | 205 DEMUXER_ERROR_COULD_NOT_OPEN, |
| 206 DEMUXER_ERROR_COULD_NOT_OPEN); | 206 DEMUXER_ERROR_COULD_NOT_OPEN); |
| 207 FFMPEG_TEST_CASE(Cr667063, "security/667063.mp4", PIPELINE_OK, PIPELINE_OK); | 207 FFMPEG_TEST_CASE(Cr667063, "security/667063.mp4", PIPELINE_OK, PIPELINE_OK); |
| 208 FFMPEG_TEST_CASE(Cr668346, | 208 FFMPEG_TEST_CASE(Cr668346, |
| 209 "security/668346.flac", | 209 "security/668346.flac", |
| 210 PIPELINE_ERROR_INITIALIZATION_FAILED, | 210 PIPELINE_ERROR_INITIALIZATION_FAILED, |
| 211 PIPELINE_ERROR_INITIALIZATION_FAILED); | 211 PIPELINE_ERROR_INITIALIZATION_FAILED); |
| 212 FFMPEG_TEST_CASE(Cr670190, |
| 213 "security/670190.ogg", |
| 214 DECODER_ERROR_NOT_SUPPORTED, |
| 215 DECODER_ERROR_NOT_SUPPORTED); |
| 212 | 216 |
| 213 // General MP4 test cases. | 217 // General MP4 test cases. |
| 214 FFMPEG_TEST_CASE(MP4_0, | 218 FFMPEG_TEST_CASE(MP4_0, |
| 215 "security/aac.10419.mp4", | 219 "security/aac.10419.mp4", |
| 216 DEMUXER_ERROR_COULD_NOT_OPEN, | 220 DEMUXER_ERROR_COULD_NOT_OPEN, |
| 217 DEMUXER_ERROR_COULD_NOT_OPEN); | 221 DEMUXER_ERROR_COULD_NOT_OPEN); |
| 218 FFMPEG_TEST_CASE(MP4_1, | 222 FFMPEG_TEST_CASE(MP4_1, |
| 219 "security/clockh264aac_200021889.mp4", | 223 "security/clockh264aac_200021889.mp4", |
| 220 DEMUXER_ERROR_COULD_NOT_OPEN, | 224 DEMUXER_ERROR_COULD_NOT_OPEN, |
| 221 DEMUXER_ERROR_COULD_NOT_OPEN); | 225 DEMUXER_ERROR_COULD_NOT_OPEN); |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 } | 419 } |
| 416 | 420 |
| 417 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { | 421 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { |
| 418 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) { | 422 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) { |
| 419 Play(); | 423 Play(); |
| 420 WaitUntilEndedOrError(); | 424 WaitUntilEndedOrError(); |
| 421 } | 425 } |
| 422 } | 426 } |
| 423 | 427 |
| 424 } // namespace media | 428 } // namespace media |
| OLD | NEW |