| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // TODO(tguilbert): update PIPELINE_ERROR_DECODE to | 160 // TODO(tguilbert): update PIPELINE_ERROR_DECODE to |
| 161 // AUDIO_RENDERER_ERROR_IMPLICIT_CONFIG_CHANGE once the status is created. | 161 // AUDIO_RENDERER_ERROR_IMPLICIT_CONFIG_CHANGE once the status is created. |
| 162 FFMPEG_TEST_CASE(Cr599625, | 162 FFMPEG_TEST_CASE(Cr599625, |
| 163 "security/599625.mp4", | 163 "security/599625.mp4", |
| 164 PIPELINE_OK, | 164 PIPELINE_OK, |
| 165 PIPELINE_ERROR_DECODE); | 165 PIPELINE_ERROR_DECODE); |
| 166 // TODO(liberato): before crbug.com/658440 was fixed, this would fail if run | 166 // TODO(liberato): before crbug.com/658440 was fixed, this would fail if run |
| 167 // twice under ASAN. If run once, then it doesn't. However, it still catches | 167 // twice under ASAN. If run once, then it doesn't. However, it still catches |
| 168 // issues in crbug.com/662118, so it's included anyway. | 168 // issues in crbug.com/662118, so it's included anyway. |
| 169 FFMPEG_TEST_CASE(Cr658440, "security/658440.flac", PIPELINE_OK, PIPELINE_OK); | 169 FFMPEG_TEST_CASE(Cr658440, "security/658440.flac", PIPELINE_OK, PIPELINE_OK); |
| 170 FFMPEG_TEST_CASE(Cr665305, |
| 171 "crbug665305.flac", |
| 172 PIPELINE_OK, |
| 173 PIPELINE_ERROR_DECODE); |
| 170 | 174 |
| 171 // General MP4 test cases. | 175 // General MP4 test cases. |
| 172 FFMPEG_TEST_CASE(MP4_0, | 176 FFMPEG_TEST_CASE(MP4_0, |
| 173 "security/aac.10419.mp4", | 177 "security/aac.10419.mp4", |
| 174 DEMUXER_ERROR_COULD_NOT_OPEN, | 178 DEMUXER_ERROR_COULD_NOT_OPEN, |
| 175 DEMUXER_ERROR_COULD_NOT_OPEN); | 179 DEMUXER_ERROR_COULD_NOT_OPEN); |
| 176 FFMPEG_TEST_CASE(MP4_1, | 180 FFMPEG_TEST_CASE(MP4_1, |
| 177 "security/clockh264aac_200021889.mp4", | 181 "security/clockh264aac_200021889.mp4", |
| 178 DEMUXER_ERROR_COULD_NOT_OPEN, | 182 DEMUXER_ERROR_COULD_NOT_OPEN, |
| 179 DEMUXER_ERROR_COULD_NOT_OPEN); | 183 DEMUXER_ERROR_COULD_NOT_OPEN); |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 } | 372 } |
| 369 | 373 |
| 370 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { | 374 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { |
| 371 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) { | 375 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) { |
| 372 Play(); | 376 Play(); |
| 373 WaitUntilEndedOrError(); | 377 WaitUntilEndedOrError(); |
| 374 } | 378 } |
| 375 } | 379 } |
| 376 | 380 |
| 377 } // namespace media | 381 } // namespace media |
| OLD | NEW |