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

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

Issue 1186943003: Revert of Add support for the audio-output-device switching IPC mechanism to the renderer lower... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « media/base/fake_audio_renderer_sink.cc ('k') | media/blink/webaudiosourceprovider_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_ 5 #ifndef MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_
6 #define MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_ 6 #define MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_
7 7
8 #include <string>
9
10 #include "media/audio/audio_parameters.h" 8 #include "media/audio/audio_parameters.h"
11 #include "media/base/audio_renderer_sink.h" 9 #include "media/base/audio_renderer_sink.h"
12 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
13 11
14 namespace media { 12 namespace media {
15 13
16 class MockAudioRendererSink : public AudioRendererSink { 14 class MockAudioRendererSink : public AudioRendererSink {
17 public: 15 public:
18 MockAudioRendererSink(); 16 MockAudioRendererSink();
19 17
20 MOCK_METHOD0(Start, void()); 18 MOCK_METHOD0(Start, void());
21 MOCK_METHOD0(Stop, void()); 19 MOCK_METHOD0(Stop, void());
22 MOCK_METHOD0(Pause, void()); 20 MOCK_METHOD0(Pause, void());
23 MOCK_METHOD0(Play, void()); 21 MOCK_METHOD0(Play, void());
24 MOCK_METHOD1(SetVolume, bool(double volume)); 22 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();
30 }
31 23
32 void Initialize(const AudioParameters& params, 24 void Initialize(const AudioParameters& params,
33 RenderCallback* renderer) override; 25 RenderCallback* renderer) override;
34 AudioRendererSink::RenderCallback* callback() { return callback_; } 26 AudioRendererSink::RenderCallback* callback() { return callback_; }
35 27
36 protected: 28 protected:
37 ~MockAudioRendererSink() override; 29 ~MockAudioRendererSink() override;
38 30
39 private: 31 private:
40 RenderCallback* callback_; 32 RenderCallback* callback_;
41 33
42 DISALLOW_COPY_AND_ASSIGN(MockAudioRendererSink); 34 DISALLOW_COPY_AND_ASSIGN(MockAudioRendererSink);
43 }; 35 };
44 36
45 } // namespace media 37 } // namespace media
46 38
47 #endif // MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_ 39 #endif // MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_
OLDNEW
« no previous file with comments | « media/base/fake_audio_renderer_sink.cc ('k') | media/blink/webaudiosourceprovider_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698