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

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

Issue 1872643002: Add ffmpeg security regression test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 PIPELINE_OK, 150 PIPELINE_OK,
151 PIPELINE_ERROR_DECODE); 151 PIPELINE_ERROR_DECODE);
152 FFMPEG_TEST_CASE(Cr536601, 152 FFMPEG_TEST_CASE(Cr536601,
153 "security/536601.m4a", 153 "security/536601.m4a",
154 PIPELINE_OK, 154 PIPELINE_OK,
155 PIPELINE_OK); 155 PIPELINE_OK);
156 FFMPEG_TEST_CASE(Cr532967, 156 FFMPEG_TEST_CASE(Cr532967,
157 "security/532967.webm", 157 "security/532967.webm",
158 PIPELINE_OK, 158 PIPELINE_OK,
159 PIPELINE_OK); 159 PIPELINE_OK);
160 // TODO(tguilbert): update PIPELINE_ERROR_DECODE to
161 // AUDIO_RENDERER_ERROR_IMPLICIT_CONFIG_CHANGE once the status is created.
162 FFMPEG_TEST_CASE(Cr599625,
163 "security/599625.mp4",
164 PIPELINE_OK,
165 PIPELINE_ERROR_DECODE);
160 166
161 // General MP4 test cases. 167 // General MP4 test cases.
162 FFMPEG_TEST_CASE(MP4_0, 168 FFMPEG_TEST_CASE(MP4_0,
163 "security/aac.10419.mp4", 169 "security/aac.10419.mp4",
164 DEMUXER_ERROR_COULD_NOT_OPEN, 170 DEMUXER_ERROR_COULD_NOT_OPEN,
165 DEMUXER_ERROR_COULD_NOT_OPEN); 171 DEMUXER_ERROR_COULD_NOT_OPEN);
166 FFMPEG_TEST_CASE(MP4_1, 172 FFMPEG_TEST_CASE(MP4_1,
167 "security/clockh264aac_200021889.mp4", 173 "security/clockh264aac_200021889.mp4",
168 DEMUXER_ERROR_COULD_NOT_OPEN, 174 DEMUXER_ERROR_COULD_NOT_OPEN,
169 DEMUXER_ERROR_COULD_NOT_OPEN); 175 DEMUXER_ERROR_COULD_NOT_OPEN);
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 } 364 }
359 365
360 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { 366 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) {
361 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) { 367 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) {
362 Play(); 368 Play();
363 WaitUntilEndedOrError(); 369 WaitUntilEndedOrError();
364 } 370 }
365 } 371 }
366 372
367 } // namespace media 373 } // 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