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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 DEMUXER_ERROR_COULD_NOT_OPEN, | 111 DEMUXER_ERROR_COULD_NOT_OPEN, |
112 DEMUXER_ERROR_COULD_NOT_OPEN); | 112 DEMUXER_ERROR_COULD_NOT_OPEN); |
113 FFMPEG_TEST_CASE(Cr142738, "crbug142738.ogg", PIPELINE_OK, PIPELINE_OK); | 113 FFMPEG_TEST_CASE(Cr142738, "crbug142738.ogg", PIPELINE_OK, PIPELINE_OK); |
114 FFMPEG_TEST_CASE(Cr152691, | 114 FFMPEG_TEST_CASE(Cr152691, |
115 "security/152691.mp3", | 115 "security/152691.mp3", |
116 PIPELINE_OK, | 116 PIPELINE_OK, |
117 PIPELINE_ERROR_DECODE); | 117 PIPELINE_ERROR_DECODE); |
118 FFMPEG_TEST_CASE(Cr161639, "security/161639.m4a", PIPELINE_OK, PIPELINE_OK); | 118 FFMPEG_TEST_CASE(Cr161639, "security/161639.m4a", PIPELINE_OK, PIPELINE_OK); |
119 FFMPEG_TEST_CASE(Cr222754, | 119 FFMPEG_TEST_CASE(Cr222754, |
120 "security/222754.mp4", | 120 "security/222754.mp4", |
121 PIPELINE_OK, | 121 DEMUXER_ERROR_NO_SUPPORTED_STREAMS, |
122 PIPELINE_ERROR_DECODE); | 122 DEMUXER_ERROR_NO_SUPPORTED_STREAMS); |
123 FFMPEG_TEST_CASE(Cr234630a, "security/234630a.mov", PIPELINE_OK, PIPELINE_OK); | 123 FFMPEG_TEST_CASE(Cr234630a, "security/234630a.mov", PIPELINE_OK, PIPELINE_OK); |
124 FFMPEG_TEST_CASE(Cr234630b, | 124 FFMPEG_TEST_CASE(Cr234630b, |
125 "security/234630b.mov", | 125 "security/234630b.mov", |
126 PIPELINE_OK, | 126 DEMUXER_ERROR_NO_SUPPORTED_STREAMS, |
127 PIPELINE_ERROR_DECODE); | 127 DEMUXER_ERROR_NO_SUPPORTED_STREAMS); |
128 FFMPEG_TEST_CASE(Cr242786, "security/242786.webm", PIPELINE_OK, PIPELINE_OK); | 128 FFMPEG_TEST_CASE(Cr242786, "security/242786.webm", PIPELINE_OK, PIPELINE_OK); |
129 // Test for out-of-bounds access with slightly corrupt file (detection logic | 129 // Test for out-of-bounds access with slightly corrupt file (detection logic |
130 // thinks it's a MONO file, but actually contains STEREO audio). | 130 // thinks it's a MONO file, but actually contains STEREO audio). |
131 FFMPEG_TEST_CASE(Cr275590, "security/275590.m4a", PIPELINE_OK, PIPELINE_OK); | 131 FFMPEG_TEST_CASE(Cr275590, "security/275590.m4a", PIPELINE_OK, PIPELINE_OK); |
132 FFMPEG_TEST_CASE(Cr444522, | 132 FFMPEG_TEST_CASE(Cr444522, |
133 "security/444522.mp4", | 133 "security/444522.mp4", |
134 DEMUXER_ERROR_COULD_NOT_OPEN, | 134 DEMUXER_ERROR_COULD_NOT_OPEN, |
135 DEMUXER_ERROR_COULD_NOT_OPEN); | 135 DEMUXER_ERROR_COULD_NOT_OPEN); |
136 FFMPEG_TEST_CASE(Cr444539, | 136 FFMPEG_TEST_CASE(Cr444539, |
137 "security/444539.m4a", | 137 "security/444539.m4a", |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 } | 368 } |
369 | 369 |
370 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { | 370 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { |
371 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) { | 371 if (Start(GetParam().filename, kClockless) == PIPELINE_OK) { |
372 Play(); | 372 Play(); |
373 WaitUntilEndedOrError(); | 373 WaitUntilEndedOrError(); |
374 } | 374 } |
375 } | 375 } |
376 | 376 |
377 } // namespace media | 377 } // namespace media |
OLD | NEW |