| 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. Security test files can be found in the | 5 // Regression tests for FFmpeg. Security test files can be found in the |
| 6 // internal media test data directory: | 6 // internal media test data directory: |
| 7 // | 7 // |
| 8 // svn://svn.chromium.org/chrome-internal/trunk/data/media/security/ | 8 // svn://svn.chromium.org/chrome-internal/trunk/data/media/security/ |
| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 "da909399f17e8f8ad7f1fcb3c4ccc33a"); | 138 "da909399f17e8f8ad7f1fcb3c4ccc33a"); |
| 139 FFMPEG_TEST_CASE(Cr132779, "security/132779.webm", | 139 FFMPEG_TEST_CASE(Cr132779, "security/132779.webm", |
| 140 DEMUXER_ERROR_COULD_NOT_PARSE, DEMUXER_ERROR_COULD_NOT_PARSE, | 140 DEMUXER_ERROR_COULD_NOT_PARSE, DEMUXER_ERROR_COULD_NOT_PARSE, |
| 141 kNullHash, kNullHash); | 141 kNullHash, kNullHash); |
| 142 FFMPEG_TEST_CASE(Cr140165, "security/140165.ogg", PIPELINE_ERROR_DECODE, | 142 FFMPEG_TEST_CASE(Cr140165, "security/140165.ogg", PIPELINE_ERROR_DECODE, |
| 143 PIPELINE_ERROR_DECODE, kNullHash, | 143 PIPELINE_ERROR_DECODE, kNullHash, |
| 144 "bd42757e42bdada18cb9441ee4ef8313"); | 144 "bd42757e42bdada18cb9441ee4ef8313"); |
| 145 FFMPEG_TEST_CASE(Cr140647, "security/140647.ogv", | 145 FFMPEG_TEST_CASE(Cr140647, "security/140647.ogv", |
| 146 DECODER_ERROR_NOT_SUPPORTED, DECODER_ERROR_NOT_SUPPORTED, | 146 DECODER_ERROR_NOT_SUPPORTED, DECODER_ERROR_NOT_SUPPORTED, |
| 147 kNullHash, kNullHash); | 147 kNullHash, kNullHash); |
| 148 FFMPEG_TEST_CASE(Cr142738, "content/crbug142738.ogg", PIPELINE_OK, PIPELINE_OK, |
| 149 kNullHash, |
| 150 "70deafc85a38a6711a3441c8a75414c2"); |
| 148 | 151 |
| 149 // General MKV test cases. | 152 // General MKV test cases. |
| 150 FFMPEG_TEST_CASE(MKV_0, "security/nested_tags_lang.mka.627.628", PIPELINE_OK, | 153 FFMPEG_TEST_CASE(MKV_0, "security/nested_tags_lang.mka.627.628", PIPELINE_OK, |
| 151 PIPELINE_ERROR_DECODE, kNullHash, | 154 PIPELINE_ERROR_DECODE, kNullHash, |
| 152 "abc9702fc46f49d6f26da5c62d118cf7"); | 155 "abc9702fc46f49d6f26da5c62d118cf7"); |
| 153 FFMPEG_TEST_CASE(MKV_1, "security/nested_tags_lang.mka.667.628", PIPELINE_OK, | 156 FFMPEG_TEST_CASE(MKV_1, "security/nested_tags_lang.mka.667.628", PIPELINE_OK, |
| 154 PIPELINE_ERROR_DECODE, kNullHash, | 157 PIPELINE_ERROR_DECODE, kNullHash, |
| 155 "414669ce405e681bda578f90c6c08951"); | 158 "414669ce405e681bda578f90c6c08951"); |
| 156 | 159 |
| 157 // General MP4 test cases. | 160 // General MP4 test cases. |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 } | 355 } |
| 353 | 356 |
| 354 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { | 357 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { |
| 355 if (Start(GetTestDataURL(GetParam().filename))) { | 358 if (Start(GetTestDataURL(GetParam().filename))) { |
| 356 Play(); | 359 Play(); |
| 357 WaitUntilEndedOrError(); | 360 WaitUntilEndedOrError(); |
| 358 } | 361 } |
| 359 } | 362 } |
| 360 | 363 |
| 361 } // namespace media | 364 } // namespace media |
| OLD | NEW |