1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_FAKE_H_
6 #define CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_FAKE_H_
8 #include "chromecast/media/cma/backend/media_pipeline_device.h"
10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
13 namespace chromecast
{
15 class AudioPipelineDeviceFake
;
16 class MediaClockDeviceFake
;
17 class VideoPipelineDeviceFake
;
19 class MediaPipelineDeviceFake
: public MediaPipelineDevice
{
21 MediaPipelineDeviceFake();
22 ~MediaPipelineDeviceFake() override
;
24 // MediaPipelineDevice implementation.
25 AudioPipelineDevice
* GetAudioPipelineDevice() const override
;
26 VideoPipelineDevice
* GetVideoPipelineDevice() const override
;
27 MediaClockDevice
* GetMediaClockDevice() const override
;
30 scoped_ptr
<MediaClockDeviceFake
> media_clock_device_
;
31 scoped_ptr
<AudioPipelineDeviceFake
> audio_pipeline_device_
;
32 scoped_ptr
<VideoPipelineDeviceFake
> video_pipeline_device_
;
34 DISALLOW_COPY_AND_ASSIGN(MediaPipelineDeviceFake
);
38 } // namespace chromecast
40 #endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_H_