Remove existing Skia suppressions
[chromium-blink-merge.git] / media / base / mock_audio_renderer_sink.h
blobb813257601a9921fcf5275521f94b5e7e7b1bc5c
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
3 // found in the LICENSE file.
5 #ifndef MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_
6 #define MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_
8 #include <string>
10 #include "media/audio/audio_parameters.h"
11 #include "media/base/audio_renderer_sink.h"
12 #include "testing/gmock/include/gmock/gmock.h"
14 namespace media {
16 class MockAudioRendererSink : public AudioRendererSink {
17 public:
18 MockAudioRendererSink();
20 MOCK_METHOD0(Start, void());
21 MOCK_METHOD0(Stop, void());
22 MOCK_METHOD0(Pause, void());
23 MOCK_METHOD0(Play, void());
24 MOCK_METHOD1(SetVolume, bool(double volume));
25 MOCK_METHOD0(SwitchOutputDevice, void());
26 void SwitchOutputDevice(const std::string&,
27 const GURL& security_origin,
28 const SwitchOutputDeviceCB& callback) override {
29 SwitchOutputDevice();
32 void Initialize(const AudioParameters& params,
33 RenderCallback* renderer) override;
34 AudioRendererSink::RenderCallback* callback() { return callback_; }
36 protected:
37 ~MockAudioRendererSink() override;
39 private:
40 RenderCallback* callback_;
42 DISALLOW_COPY_AND_ASSIGN(MockAudioRendererSink);
45 } // namespace media
47 #endif // MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_