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

Side by Side Diff: media/base/mock_audio_renderer_sink.h

Issue 10698066: Switch to pcm_low_latency and enable resampling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments! Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/base/fake_audio_render_callback.cc ('k') | media/base/mock_audio_renderer_sink.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_
6 #define MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_
7
8 #include "media/audio/audio_parameters.h"
9 #include "media/base/audio_renderer_sink.h"
10 #include "testing/gmock/include/gmock/gmock.h"
11
12 namespace media {
13
14 class MockAudioRendererSink : public AudioRendererSink {
15 public:
16 MockAudioRendererSink();
17
18 MOCK_METHOD0(Start, void());
19 MOCK_METHOD0(Stop, void());
20 MOCK_METHOD1(Pause, void(bool flush));
21 MOCK_METHOD0(Play, void());
22 MOCK_METHOD1(SetPlaybackRate, void(float rate));
23 MOCK_METHOD1(SetVolume, bool(double volume));
24 MOCK_METHOD1(GetVolume, void(double* volume));
25
26 virtual void Initialize(const AudioParameters& params,
27 RenderCallback* renderer) OVERRIDE;
28 AudioRendererSink::RenderCallback* callback() { return callback_; }
29
30 protected:
31 virtual ~MockAudioRendererSink();
32
33 private:
34 RenderCallback* callback_;
35
36 DISALLOW_COPY_AND_ASSIGN(MockAudioRendererSink);
37 };
38
39 } // namespace media
40
41 #endif // MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_
OLDNEW
« no previous file with comments | « media/base/fake_audio_render_callback.cc ('k') | media/base/mock_audio_renderer_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698