OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016 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. |
| 4 |
| 5 #ifndef MEDIA_AUDIO_MOCK_RENDERER_CALLBACK_H_ |
| 6 #define MEDIA_AUDIO_MOCK_RENDERER_CALLBACK_H_ |
| 7 |
| 8 #include "media/base/audio_renderer_sink.h" |
| 9 #include "testing/gmock/include/gmock/gmock.h" |
| 10 |
| 11 namespace media { |
| 12 |
| 13 class MockRenderCallback : public AudioRendererSink::RenderCallback { |
| 14 public: |
| 15 MockRenderCallback(); |
| 16 virtual ~MockRenderCallback(); |
| 17 |
| 18 MOCK_METHOD3(Render, |
| 19 int(AudioBus* dest, |
| 20 uint32_t audio_delay_milliseconds, |
| 21 uint32_t frames_skipped)); |
| 22 MOCK_METHOD0(OnRenderError, void()); |
| 23 }; |
| 24 |
| 25 } // namespace media |
| 26 |
| 27 #endif // MEDIA_AUDIO_MOCK_RENDERER_CALLBACK_H_ |
OLD | NEW |