OLD | NEW |
(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_ |
OLD | NEW |