1/* 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11#ifndef WEBRTC_VOICE_ENGINE_INCLUDE_MOCK_MOCK_VOE_VOLUME_CONTROL_H_ 12#define WEBRTC_VOICE_ENGINE_INCLUDE_MOCK_MOCK_VOE_VOLUME_CONTROL_H_ 13 14#include "testing/gmock/include/gmock/gmock.h" 15#include "webrtc/voice_engine/include/voe_volume_control.h" 16 17namespace webrtc { 18 19class VoiceEngine; 20 21class MockVoEVolumeControl : public VoEVolumeControl { 22 public: 23 MOCK_METHOD0(Release, int()); 24 MOCK_METHOD1(SetSpeakerVolume, int(unsigned int volume)); 25 MOCK_METHOD1(GetSpeakerVolume, int(unsigned int& volume)); 26 MOCK_METHOD1(SetSystemOutputMute, int(bool enable)); 27 MOCK_METHOD1(GetSystemOutputMute, int(bool &enabled)); 28 MOCK_METHOD1(SetMicVolume, int(unsigned int volume)); 29 MOCK_METHOD1(GetMicVolume, int(unsigned int& volume)); 30 MOCK_METHOD2(SetInputMute, int(int channel, bool enable)); 31 MOCK_METHOD2(GetInputMute, int(int channel, bool& enabled)); 32 MOCK_METHOD1(SetSystemInputMute, int(bool enable)); 33 MOCK_METHOD1(GetSystemInputMute, int(bool& enabled)); 34 MOCK_METHOD1(GetSpeechInputLevel, int(unsigned int& level)); 35 MOCK_METHOD2(GetSpeechOutputLevel, int(int channel, unsigned int& level)); 36 MOCK_METHOD1(GetSpeechInputLevelFullRange, int(unsigned int& level)); 37 MOCK_METHOD2(GetSpeechOutputLevelFullRange, 38 int(int channel, unsigned int& level)); 39 MOCK_METHOD2(SetChannelOutputVolumeScaling, int(int channel, float scaling)); 40 MOCK_METHOD2(GetChannelOutputVolumeScaling, int(int channel, float& scaling)); 41 MOCK_METHOD3(SetOutputVolumePan, int(int channel, float left, float right)); 42 MOCK_METHOD3(GetOutputVolumePan, int(int channel, float& left, float& right)); 43}; 44 45} // namespace webrtc 46 47#endif // WEBRTC_VOICE_ENGINE_INCLUDE_MOCK_MOCK_VOE_VOLUME_CONTROL_H_ 48