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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 PIPELINE_ERROR_DECODE); | 119 PIPELINE_ERROR_DECODE); |
120 FFMPEG_TEST_CASE(Cr234630a, "security/234630a.mov", PIPELINE_OK, PIPELINE_OK); | 120 FFMPEG_TEST_CASE(Cr234630a, "security/234630a.mov", PIPELINE_OK, PIPELINE_OK); |
121 FFMPEG_TEST_CASE(Cr234630b, | 121 FFMPEG_TEST_CASE(Cr234630b, |
122 "security/234630b.mov", | 122 "security/234630b.mov", |
123 PIPELINE_OK, | 123 PIPELINE_OK, |
124 PIPELINE_ERROR_DECODE); | 124 PIPELINE_ERROR_DECODE); |
125 FFMPEG_TEST_CASE(Cr242786, "security/242786.webm", PIPELINE_OK, PIPELINE_OK); | 125 FFMPEG_TEST_CASE(Cr242786, "security/242786.webm", PIPELINE_OK, PIPELINE_OK); |
126 // Test for out-of-bounds access with slightly corrupt file (detection logic | 126 // Test for out-of-bounds access with slightly corrupt file (detection logic |
127 // thinks it's a MONO file, but actually contains STEREO audio). | 127 // thinks it's a MONO file, but actually contains STEREO audio). |
128 FFMPEG_TEST_CASE(Cr275590, "security/275590.m4a", PIPELINE_OK, PIPELINE_OK); | 128 FFMPEG_TEST_CASE(Cr275590, "security/275590.m4a", PIPELINE_OK, PIPELINE_OK); |
129 FFMPEG_TEST_CASE(Cr444522, "security/444522.mp4", PIPELINE_OK, PIPELINE_OK); | 129 FFMPEG_TEST_CASE(Cr444522, |
| 130 "security/444522.mp4", |
| 131 DEMUXER_ERROR_COULD_NOT_OPEN, |
| 132 DEMUXER_ERROR_COULD_NOT_OPEN); |
130 FFMPEG_TEST_CASE(Cr444539, | 133 FFMPEG_TEST_CASE(Cr444539, |
131 "security/444539.m4a", | 134 "security/444539.m4a", |
132 DEMUXER_ERROR_COULD_NOT_OPEN, | 135 DEMUXER_ERROR_COULD_NOT_OPEN, |
133 DEMUXER_ERROR_COULD_NOT_OPEN); | 136 DEMUXER_ERROR_COULD_NOT_OPEN); |
134 FFMPEG_TEST_CASE(Cr444546, | 137 FFMPEG_TEST_CASE(Cr444546, |
135 "security/444546.mp4", | 138 "security/444546.mp4", |
136 DEMUXER_ERROR_COULD_NOT_OPEN, | 139 DEMUXER_ERROR_COULD_NOT_OPEN, |
137 DEMUXER_ERROR_COULD_NOT_OPEN); | 140 DEMUXER_ERROR_COULD_NOT_OPEN); |
138 FFMPEG_TEST_CASE(Cr449958, | 141 FFMPEG_TEST_CASE(Cr449958, |
139 "security/449958.webm", | 142 "security/449958.webm", |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 } | 342 } |
340 | 343 |
341 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { | 344 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { |
342 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) { | 345 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) { |
343 Play(); | 346 Play(); |
344 WaitUntilEndedOrError(); | 347 WaitUntilEndedOrError(); |
345 } | 348 } |
346 } | 349 } |
347 | 350 |
348 } // namespace media | 351 } // namespace media |
OLD | NEW |