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

Side by Side Diff: media/audio/mock_audio_output_ipc.h

Issue 1666363005: Switching audio clients to using RestartableAudioRendererSink interface as a sink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing RestartableAudioOutputDevice interface Created 4 years, 10 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
OLDNEW
(Empty)
1 // Copyright (c) 2016 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 #ifndef MEDIA_AUDIO_MOCK_AUDIO_OUTPUT_IPC_H_
5 #define MEDIA_AUDIO_MOCK_AUDIO_OUTPUT_IPC_H_
6
7 #include "media/audio/audio_output_device.h"
8 #include "testing/gmock/include/gmock/gmock.h"
9
10 namespace media {
11
12 class MockAudioOutputIPC : public AudioOutputIPC {
13 public:
14 MockAudioOutputIPC();
15 virtual ~MockAudioOutputIPC();
16
17 MOCK_METHOD4(RequestDeviceAuthorization,
18 void(AudioOutputIPCDelegate* delegate,
19 int session_id,
20 const std::string& device_id,
21 const url::Origin& security_origin));
22 MOCK_METHOD2(CreateStream,
23 void(AudioOutputIPCDelegate* delegate,
24 const AudioParameters& params));
25 MOCK_METHOD0(PlayStream, void());
26 MOCK_METHOD0(PauseStream, void());
27 MOCK_METHOD0(CloseStream, void());
28 MOCK_METHOD1(SetVolume, void(double volume));
29 };
30
31 } // namespace media
32
33 #endif // MEDIA_AUDIO_MOCK_AUDIO_OUTPUT_IPC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698