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

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: Review fixes. 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
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() {}
scherkus (not reviewing) 2012/07/12 23:02:52 don't inline ctor/dtor for any gmock-containing cl
DaleCurtis 2012/07/12 23:16:29 Yeah this is all wrong, I recompiled today and cla
DaleCurtis 2012/07/13 00:01:25 Done.
17 virtual ~MockAudioRendererSink() {}
18
19 MOCK_METHOD0(Start, void());
20 MOCK_METHOD0(Stop, void());
21 MOCK_METHOD1(Pause, void(bool flush));
22 MOCK_METHOD0(Play, void());
23 MOCK_METHOD1(SetPlaybackRate, void(float rate));
24 MOCK_METHOD1(SetVolume, bool(double volume));
25 MOCK_METHOD1(GetVolume, void(double* volume));
26
27 void Initialize(const AudioParameters& params,
scherkus (not reviewing) 2012/07/12 23:02:52 add virtual + don't inline
DaleCurtis 2012/07/13 00:01:25 Done.
28 RenderCallback* renderer) OVERRIDE {
29 callback_ = renderer;
30 };
31
32 AudioRendererSink::RenderCallback* callback() {
33 return callback_;
34 }
35
36 private:
37 RenderCallback* callback_;
38
39 DISALLOW_COPY_AND_ASSIGN(MockAudioRendererSink);
40 };
41
42 } // namespace media
43
44 #endif // MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698