Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Side by Side Diff: media/ffmpeg/ffmpeg_regression_tests.cc

Issue 2569543002: Add more ffmpeg regression tests for issues from M56 roll (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 FFMPEG_TEST_CASE(Cr532967, 166 FFMPEG_TEST_CASE(Cr532967,
167 "security/532967.webm", 167 "security/532967.webm",
168 PIPELINE_OK, 168 PIPELINE_OK,
169 PIPELINE_OK); 169 PIPELINE_OK);
170 // TODO(tguilbert): update PIPELINE_ERROR_DECODE to 170 // TODO(tguilbert): update PIPELINE_ERROR_DECODE to
171 // AUDIO_RENDERER_ERROR_IMPLICIT_CONFIG_CHANGE once the status is created. 171 // AUDIO_RENDERER_ERROR_IMPLICIT_CONFIG_CHANGE once the status is created.
172 FFMPEG_TEST_CASE(Cr599625, 172 FFMPEG_TEST_CASE(Cr599625,
173 "security/599625.mp4", 173 "security/599625.mp4",
174 PIPELINE_OK, 174 PIPELINE_OK,
175 PIPELINE_ERROR_DECODE); 175 PIPELINE_ERROR_DECODE);
176 FFMPEG_TEST_CASE(Cr635422,
177 "security/635422.ogg",
178 DEMUXER_ERROR_COULD_NOT_OPEN,
179 DEMUXER_ERROR_COULD_NOT_OPEN);
180 FFMPEG_TEST_CASE(Cr637428,
181 "security/637428.ogg",
182 PIPELINE_ERROR_DECODE,
183 PIPELINE_ERROR_DECODE);
184 FFMPEG_TEST_CASE(Cr639961,
185 "security/639961.flac",
186 PIPELINE_ERROR_INITIALIZATION_FAILED,
187 PIPELINE_ERROR_INITIALIZATION_FAILED);
188 FFMPEG_TEST_CASE(Cr640889, "security/640889.flac", PIPELINE_OK, PIPELINE_OK);
189 FFMPEG_TEST_CASE(Cr640912, "security/640912.flac", PIPELINE_OK, PIPELINE_OK);
176 // TODO(liberato): before crbug.com/658440 was fixed, this would fail if run 190 // TODO(liberato): before crbug.com/658440 was fixed, this would fail if run
177 // twice under ASAN. If run once, then it doesn't. However, it still catches 191 // twice under ASAN. If run once, then it doesn't. However, it still catches
178 // issues in crbug.com/662118, so it's included anyway. 192 // issues in crbug.com/662118, so it's included anyway.
179 FFMPEG_TEST_CASE(Cr658440, "security/658440.flac", PIPELINE_OK, PIPELINE_OK); 193 FFMPEG_TEST_CASE(Cr658440, "security/658440.flac", PIPELINE_OK, PIPELINE_OK);
180 FFMPEG_TEST_CASE(Cr665305, 194 FFMPEG_TEST_CASE(Cr665305,
181 "crbug665305.flac", 195 "crbug665305.flac",
182 PIPELINE_OK, 196 PIPELINE_OK,
183 PIPELINE_ERROR_DECODE); 197 PIPELINE_ERROR_DECODE);
184 FFMPEG_TEST_CASE_SEEKING(Cr666770, 198 FFMPEG_TEST_CASE_SEEKING(Cr666770,
185 "security/666770.mp4", 199 "security/666770.mp4",
186 PIPELINE_OK, 200 PIPELINE_OK,
187 PIPELINE_OK, 201 PIPELINE_OK,
188 base::TimeDelta::FromSecondsD(0.0843)); 202 base::TimeDelta::FromSecondsD(0.0843));
189 FFMPEG_TEST_CASE(Cr666874, 203 FFMPEG_TEST_CASE(Cr666874,
190 "security/666874.mp3", 204 "security/666874.mp3",
191 DEMUXER_ERROR_COULD_NOT_OPEN, 205 DEMUXER_ERROR_COULD_NOT_OPEN,
192 DEMUXER_ERROR_COULD_NOT_OPEN); 206 DEMUXER_ERROR_COULD_NOT_OPEN);
193 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,
209 "security/668346.flac",
210 PIPELINE_ERROR_INITIALIZATION_FAILED,
211 PIPELINE_ERROR_INITIALIZATION_FAILED);
194 212
195 // General MP4 test cases. 213 // General MP4 test cases.
196 FFMPEG_TEST_CASE(MP4_0, 214 FFMPEG_TEST_CASE(MP4_0,
197 "security/aac.10419.mp4", 215 "security/aac.10419.mp4",
198 DEMUXER_ERROR_COULD_NOT_OPEN, 216 DEMUXER_ERROR_COULD_NOT_OPEN,
199 DEMUXER_ERROR_COULD_NOT_OPEN); 217 DEMUXER_ERROR_COULD_NOT_OPEN);
200 FFMPEG_TEST_CASE(MP4_1, 218 FFMPEG_TEST_CASE(MP4_1,
201 "security/clockh264aac_200021889.mp4", 219 "security/clockh264aac_200021889.mp4",
202 DEMUXER_ERROR_COULD_NOT_OPEN, 220 DEMUXER_ERROR_COULD_NOT_OPEN,
203 DEMUXER_ERROR_COULD_NOT_OPEN); 221 DEMUXER_ERROR_COULD_NOT_OPEN);
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 } 415 }
398 416
399 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { 417 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) {
400 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) { 418 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) {
401 Play(); 419 Play();
402 WaitUntilEndedOrError(); 420 WaitUntilEndedOrError();
403 } 421 }
404 } 422 }
405 423
406 } // namespace media 424 } // namespace media
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698