| 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 #include "media/test/pipeline_integration_test_base.h" | 5 #include "media/test/pipeline_integration_test_base.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 if (!prepend_video_decoders_cb.is_null()) { | 49 if (!prepend_video_decoders_cb.is_null()) { |
| 50 video_decoders = prepend_video_decoders_cb.Run(); | 50 video_decoders = prepend_video_decoders_cb.Run(); |
| 51 DCHECK(!video_decoders.empty()); | 51 DCHECK(!video_decoders.empty()); |
| 52 } | 52 } |
| 53 | 53 |
| 54 #if !defined(MEDIA_DISABLE_LIBVPX) | 54 #if !defined(MEDIA_DISABLE_LIBVPX) |
| 55 video_decoders.push_back(new VpxVideoDecoder()); | 55 video_decoders.push_back(new VpxVideoDecoder()); |
| 56 #endif // !defined(MEDIA_DISABLE_LIBVPX) | 56 #endif // !defined(MEDIA_DISABLE_LIBVPX) |
| 57 | 57 |
| 58 // Android does not have an ffmpeg video decoder. | 58 // Android does not have an ffmpeg video decoder. |
| 59 #if !defined(MEDIA_DISABLE_FFMPEG) && !defined(OS_ANDROID) | 59 #if !defined(MEDIA_DISABLE_FFMPEG) && !defined(OS_ANDROID) && \ |
| 60 !defined(DISABLE_FFMPEG_VIDEO_DECODERS) |
| 60 video_decoders.push_back(new FFmpegVideoDecoder(media_log)); | 61 video_decoders.push_back(new FFmpegVideoDecoder(media_log)); |
| 61 #endif | 62 #endif |
| 62 return video_decoders; | 63 return video_decoders; |
| 63 } | 64 } |
| 64 | 65 |
| 65 static ScopedVector<AudioDecoder> CreateAudioDecodersForTest( | 66 static ScopedVector<AudioDecoder> CreateAudioDecodersForTest( |
| 66 MediaLog* media_log, | 67 MediaLog* media_log, |
| 67 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, | 68 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, |
| 68 CreateAudioDecodersCB prepend_audio_decoders_cb) { | 69 CreateAudioDecodersCB prepend_audio_decoders_cb) { |
| 69 ScopedVector<AudioDecoder> audio_decoders; | 70 ScopedVector<AudioDecoder> audio_decoders; |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 base::RunLoop().Run(); | 562 base::RunLoop().Run(); |
| 562 return pipeline_status_; | 563 return pipeline_status_; |
| 563 } | 564 } |
| 564 | 565 |
| 565 base::TimeTicks DummyTickClock::NowTicks() { | 566 base::TimeTicks DummyTickClock::NowTicks() { |
| 566 now_ += base::TimeDelta::FromSeconds(60); | 567 now_ += base::TimeDelta::FromSeconds(60); |
| 567 return now_; | 568 return now_; |
| 568 } | 569 } |
| 569 | 570 |
| 570 } // namespace media | 571 } // namespace media |
| OLD | NEW |