| 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 // svn://svn.chromium.org/chrome-internal/trunk/data/media/ | 8 // svn://svn.chromium.org/chrome-internal/trunk/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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 "security/234630b.mov", | 128 "security/234630b.mov", |
| 129 PIPELINE_OK, | 129 PIPELINE_OK, |
| 130 PIPELINE_ERROR_DECODE); | 130 PIPELINE_ERROR_DECODE); |
| 131 FFMPEG_TEST_CASE(Cr242786, "security/242786.webm", PIPELINE_OK, PIPELINE_OK); | 131 FFMPEG_TEST_CASE(Cr242786, "security/242786.webm", PIPELINE_OK, PIPELINE_OK); |
| 132 // Test for out-of-bounds access with slightly corrupt file (detection logic | 132 // Test for out-of-bounds access with slightly corrupt file (detection logic |
| 133 // thinks it's a MONO file, but actually contains STEREO audio). | 133 // thinks it's a MONO file, but actually contains STEREO audio). |
| 134 FFMPEG_TEST_CASE(Cr275590, | 134 FFMPEG_TEST_CASE(Cr275590, |
| 135 "security/275590.m4a", | 135 "security/275590.m4a", |
| 136 DECODER_ERROR_NOT_SUPPORTED, | 136 DECODER_ERROR_NOT_SUPPORTED, |
| 137 DEMUXER_ERROR_COULD_NOT_OPEN); | 137 DEMUXER_ERROR_COULD_NOT_OPEN); |
| 138 FFMPEG_TEST_CASE(Cr444522, "security/444522.mp4", PIPELINE_OK, PIPELINE_OK); |
| 139 FFMPEG_TEST_CASE(Cr444539, |
| 140 "security/444539.m4a", |
| 141 DEMUXER_ERROR_COULD_NOT_OPEN, |
| 142 DEMUXER_ERROR_COULD_NOT_OPEN); |
| 143 FFMPEG_TEST_CASE(Cr444546, |
| 144 "security/444546.mp4", |
| 145 DEMUXER_ERROR_COULD_NOT_OPEN, |
| 146 DEMUXER_ERROR_COULD_NOT_OPEN); |
| 138 | 147 |
| 139 // General MP4 test cases. | 148 // General MP4 test cases. |
| 140 FFMPEG_TEST_CASE(MP4_0, | 149 FFMPEG_TEST_CASE(MP4_0, |
| 141 "security/aac.10419.mp4", | 150 "security/aac.10419.mp4", |
| 142 DEMUXER_ERROR_COULD_NOT_OPEN, | 151 DEMUXER_ERROR_COULD_NOT_OPEN, |
| 143 DEMUXER_ERROR_COULD_NOT_OPEN); | 152 DEMUXER_ERROR_COULD_NOT_OPEN); |
| 144 FFMPEG_TEST_CASE(MP4_1, | 153 FFMPEG_TEST_CASE(MP4_1, |
| 145 "security/clockh264aac_200021889.mp4", | 154 "security/clockh264aac_200021889.mp4", |
| 146 DEMUXER_ERROR_COULD_NOT_OPEN, | 155 DEMUXER_ERROR_COULD_NOT_OPEN, |
| 147 DEMUXER_ERROR_COULD_NOT_OPEN); | 156 DEMUXER_ERROR_COULD_NOT_OPEN); |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 } | 344 } |
| 336 | 345 |
| 337 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { | 346 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { |
| 338 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) { | 347 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) { |
| 339 Play(); | 348 Play(); |
| 340 WaitUntilEndedOrError(); | 349 WaitUntilEndedOrError(); |
| 341 } | 350 } |
| 342 } | 351 } |
| 343 | 352 |
| 344 } // namespace media | 353 } // namespace media |
| OLD | NEW |