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 "media/audio/audio_parameters.h" | 11 #include "media/audio/audio_parameters.h" |
11 #include "media/base/audio_renderer_sink.h" | 12 #include "media/base/audio_renderer_sink.h" |
12 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
13 | 14 |
14 namespace media { | 15 namespace media { |
15 | 16 |
16 class FakeOutputDevice; | 17 class FakeOutputDevice; |
17 | 18 |
18 class MockAudioRendererSink : public RestartableAudioRendererSink { | 19 class MockAudioRendererSink : public RestartableAudioRendererSink { |
19 public: | 20 public: |
(...skipping 17 matching lines...) Expand all Loading... |
37 private: | 38 private: |
38 RenderCallback* callback_; | 39 RenderCallback* callback_; |
39 scoped_ptr<FakeOutputDevice> output_device_; | 40 scoped_ptr<FakeOutputDevice> output_device_; |
40 | 41 |
41 DISALLOW_COPY_AND_ASSIGN(MockAudioRendererSink); | 42 DISALLOW_COPY_AND_ASSIGN(MockAudioRendererSink); |
42 }; | 43 }; |
43 | 44 |
44 } // namespace media | 45 } // namespace media |
45 | 46 |
46 #endif // MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_ | 47 #endif // MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_ |
OLD | NEW |