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 #ifndef MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_ | 5 #ifndef MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_ |
6 #define MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_ | 6 #define MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "media/base/audio_parameters.h" | 11 #include "media/base/audio_parameters.h" |
12 #include "media/base/audio_renderer_sink.h" | 12 #include "media/base/audio_renderer_sink.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
14 | 14 |
15 namespace media { | 15 namespace media { |
16 | 16 |
17 class FakeOutputDevice; | |
18 | |
19 class MockAudioRendererSink : public SwitchableAudioRendererSink { | 17 class MockAudioRendererSink : public SwitchableAudioRendererSink { |
20 public: | 18 public: |
21 MockAudioRendererSink(); | 19 MockAudioRendererSink(); |
22 explicit MockAudioRendererSink(OutputDeviceStatus device_status); | 20 explicit MockAudioRendererSink(OutputDeviceStatus device_status); |
23 MockAudioRendererSink(const std::string& device_id, | 21 MockAudioRendererSink(const std::string& device_id, |
24 OutputDeviceStatus device_status); | 22 OutputDeviceStatus device_status); |
25 MockAudioRendererSink(const std::string& device_id, | 23 MockAudioRendererSink(const std::string& device_id, |
26 OutputDeviceStatus device_status, | 24 OutputDeviceStatus device_status, |
27 const AudioParameters& device_output_params); | 25 const AudioParameters& device_output_params); |
28 | 26 |
(...skipping 18 matching lines...) Expand all Loading... |
47 private: | 45 private: |
48 RenderCallback* callback_; | 46 RenderCallback* callback_; |
49 OutputDeviceInfo output_device_info_; | 47 OutputDeviceInfo output_device_info_; |
50 | 48 |
51 DISALLOW_COPY_AND_ASSIGN(MockAudioRendererSink); | 49 DISALLOW_COPY_AND_ASSIGN(MockAudioRendererSink); |
52 }; | 50 }; |
53 | 51 |
54 } // namespace media | 52 } // namespace media |
55 | 53 |
56 #endif // MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_ | 54 #endif // MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_ |
OLD | NEW |