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

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

Issue 2547203002: Add ffmpeg regression test for flac file hang found by clusterfuzz. (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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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