Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(591)

Unified Diff: media/audio/mock_render_callback.h

Issue 1666363005: Switching audio clients to using RestartableAudioRendererSink interface as a sink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing RestartableAudioOutputDevice interface Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/audio/mock_render_callback.h
diff --git a/media/audio/mock_render_callback.h b/media/audio/mock_render_callback.h
new file mode 100644
index 0000000000000000000000000000000000000000..98e9384bace6e66ad76af37601928285b30d472d
--- /dev/null
+++ b/media/audio/mock_render_callback.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_AUDIO_MOCK_RENDERER_CALLBACK_H_
+#define MEDIA_AUDIO_MOCK_RENDERER_CALLBACK_H_
+
+#include "media/base/audio_renderer_sink.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace media {
+
+class MockRenderCallback : public AudioRendererSink::RenderCallback {
+ public:
+ MockRenderCallback();
+ virtual ~MockRenderCallback();
+
+ MOCK_METHOD3(Render,
+ int(AudioBus* dest,
+ uint32_t audio_delay_milliseconds,
+ uint32_t frames_skipped));
+ MOCK_METHOD0(OnRenderError, void());
+};
+
+} // namespace media
+
+#endif // MEDIA_AUDIO_MOCK_RENDERER_CALLBACK_H_

Powered by Google App Engine
This is Rietveld 408576698