| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "media/base/test_data_util.h" | 5 #include "media/base/test_data_util.h" |
| 6 #include "media/filters/pipeline_integration_test_base.h" | 6 #include "media/filters/pipeline_integration_test_base.h" |
| 7 #include "testing/perf/perf_test.h" | 7 #include "testing/perf/perf_test.h" |
| 8 | 8 |
| 9 namespace media { | 9 namespace media { |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 RunAudioPlaybackBenchmark("sfx_f32le.wav", "clockless_playback"); | 61 RunAudioPlaybackBenchmark("sfx_f32le.wav", "clockless_playback"); |
| 62 RunAudioPlaybackBenchmark("sfx_s24le.wav", "clockless_playback"); | 62 RunAudioPlaybackBenchmark("sfx_s24le.wav", "clockless_playback"); |
| 63 RunAudioPlaybackBenchmark("sfx_s16le.wav", "clockless_playback"); | 63 RunAudioPlaybackBenchmark("sfx_s16le.wav", "clockless_playback"); |
| 64 RunAudioPlaybackBenchmark("sfx_u8.wav", "clockless_playback"); | 64 RunAudioPlaybackBenchmark("sfx_u8.wav", "clockless_playback"); |
| 65 #if defined(USE_PROPRIETARY_CODECS) | 65 #if defined(USE_PROPRIETARY_CODECS) |
| 66 RunAudioPlaybackBenchmark("sfx.mp3", "clockless_playback"); | 66 RunAudioPlaybackBenchmark("sfx.mp3", "clockless_playback"); |
| 67 #endif | 67 #endif |
| 68 } | 68 } |
| 69 | 69 |
| 70 TEST(PipelineIntegrationPerfTest, VP8PlaybackBenchmark) { | 70 TEST(PipelineIntegrationPerfTest, VP8PlaybackBenchmark) { |
| 71 RunVideoPlaybackBenchmark("bear-640x360.webm", | 71 RunVideoPlaybackBenchmark("bear_silent.webm", "clockless_video_playback_vp8"); |
| 72 "clockless_video_playback_vp8"); | |
| 73 RunVideoPlaybackBenchmark("bear-320x240.webm", | |
| 74 "clockless_video_playback_vp8"); | |
| 75 } | 72 } |
| 76 | 73 |
| 77 TEST(PipelineIntegrationPerfTest, VP9PlaybackBenchmark) { | 74 TEST(PipelineIntegrationPerfTest, VP9PlaybackBenchmark) { |
| 78 RunVideoPlaybackBenchmark("bear-vp9.webm", "clockless_video_playback_vp9"); | 75 RunVideoPlaybackBenchmark("bear-vp9.webm", "clockless_video_playback_vp9"); |
| 79 } | 76 } |
| 80 | 77 |
| 81 TEST(PipelineIntegrationPerfTest, TheoraPlaybackBenchmark) { | 78 TEST(PipelineIntegrationPerfTest, TheoraPlaybackBenchmark) { |
| 82 RunVideoPlaybackBenchmark("bear.ogv", "clockless_video_playback_theora"); | 79 RunVideoPlaybackBenchmark("bear_silent.ogv", |
| 80 "clockless_video_playback_theora"); |
| 83 } | 81 } |
| 84 | 82 |
| 85 #if defined(USE_PROPRIETARY_CODECS) | 83 #if defined(USE_PROPRIETARY_CODECS) |
| 86 TEST(PipelineIntegrationPerfTest, MP4PlaybackBenchmark) { | 84 TEST(PipelineIntegrationPerfTest, MP4PlaybackBenchmark) { |
| 87 RunVideoPlaybackBenchmark("bear-1280x720.mp4", | 85 RunVideoPlaybackBenchmark("bear_silent.mp4", "clockless_video_playback_mp4"); |
| 88 "clockless_video_playback_mp4"); | |
| 89 } | 86 } |
| 90 #endif | 87 #endif |
| 91 | 88 |
| 92 } // namespace media | 89 } // namespace media |
| OLD | NEW |