| 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 18 matching lines...) Expand all Loading... |
| 29 // FLAKY_OGV_0 may run out of memory under ASAN on IA32 Linux/Mac. | 29 // FLAKY_OGV_0 may run out of memory under ASAN on IA32 Linux/Mac. |
| 30 // | 30 // |
| 31 // Some OGG files leak ~30 bytes of memory, upstream tracking bug: | 31 // Some OGG files leak ~30 bytes of memory, upstream tracking bug: |
| 32 // https://ffmpeg.org/trac/ffmpeg/ticket/1244 | 32 // https://ffmpeg.org/trac/ffmpeg/ticket/1244 |
| 33 // | 33 // |
| 34 | 34 |
| 35 #include "media/filters/pipeline_integration_test_base.h" | 35 #include "media/filters/pipeline_integration_test_base.h" |
| 36 | 36 |
| 37 #include "base/bind.h" | 37 #include "base/bind.h" |
| 38 #include "media/base/test_data_util.h" | 38 #include "media/base/test_data_util.h" |
| 39 #include "media/filters/chunk_demuxer_client.h" | |
| 40 | 39 |
| 41 namespace media { | 40 namespace media { |
| 42 | 41 |
| 43 struct RegressionTestData { | 42 struct RegressionTestData { |
| 44 RegressionTestData(const char* filename, PipelineStatus init_status, | 43 RegressionTestData(const char* filename, PipelineStatus init_status, |
| 45 PipelineStatus end_status, const char* video_md5, | 44 PipelineStatus end_status, const char* video_md5, |
| 46 const char* audio_md5) | 45 const char* audio_md5) |
| 47 : video_md5(video_md5), | 46 : video_md5(video_md5), |
| 48 audio_md5(audio_md5), | 47 audio_md5(audio_md5), |
| 49 filename(filename), | 48 filename(filename), |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 } | 354 } |
| 356 | 355 |
| 357 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { | 356 TEST_P(FlakyFFmpegRegressionTest, BasicPlayback) { |
| 358 if (Start(GetTestDataURL(GetParam().filename))) { | 357 if (Start(GetTestDataURL(GetParam().filename))) { |
| 359 Play(); | 358 Play(); |
| 360 WaitUntilEndedOrError(); | 359 WaitUntilEndedOrError(); |
| 361 } | 360 } |
| 362 } | 361 } |
| 363 | 362 |
| 364 } // namespace media | 363 } // namespace media |
| OLD | NEW |