Fix IsRenderFrameLive and use it in RenderFrameHostManager.
[chromium-blink-merge.git] / media / base / mock_audio_renderer_sink.h
blob00a4092893d56e631d1510befd4ca735fcf85bda
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 "media/audio/audio_parameters.h"
9 #include "media/base/audio_renderer_sink.h"
10 #include "testing/gmock/include/gmock/gmock.h"
12 namespace media {
14 class MockAudioRendererSink : public AudioRendererSink {
15 public:
16 MockAudioRendererSink();
18 MOCK_METHOD0(Start, void());
19 MOCK_METHOD0(Stop, void());
20 MOCK_METHOD0(Pause, void());
21 MOCK_METHOD0(Play, void());
22 MOCK_METHOD1(SetVolume, bool(double volume));
24 virtual void Initialize(const AudioParameters& params,
25 RenderCallback* renderer) OVERRIDE;
26 AudioRendererSink::RenderCallback* callback() { return callback_; }
28 protected:
29 virtual ~MockAudioRendererSink();
31 private:
32 RenderCallback* callback_;
34 DISALLOW_COPY_AND_ASSIGN(MockAudioRendererSink);
37 } // namespace media
39 #endif // MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_