OLD | NEW |
| (Empty) |
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 | |
17 namespace webrtc { | |
18 | |
19 class VoiceEngine; | |
20 | |
21 class 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(SetMicVolume, int(unsigned int volume)); | |
27 MOCK_METHOD1(GetMicVolume, int(unsigned int& volume)); | |
28 MOCK_METHOD2(SetInputMute, int(int channel, bool enable)); | |
29 MOCK_METHOD2(GetInputMute, int(int channel, bool& enabled)); | |
30 MOCK_METHOD1(GetSpeechInputLevel, int(unsigned int& level)); | |
31 MOCK_METHOD2(GetSpeechOutputLevel, int(int channel, unsigned int& level)); | |
32 MOCK_METHOD1(GetSpeechInputLevelFullRange, int(unsigned int& level)); | |
33 MOCK_METHOD2(GetSpeechOutputLevelFullRange, | |
34 int(int channel, unsigned int& level)); | |
35 MOCK_METHOD2(SetChannelOutputVolumeScaling, int(int channel, float scaling)); | |
36 MOCK_METHOD2(GetChannelOutputVolumeScaling, int(int channel, float& scaling)); | |
37 MOCK_METHOD3(SetOutputVolumePan, int(int channel, float left, float right)); | |
38 MOCK_METHOD3(GetOutputVolumePan, int(int channel, float& left, float& right)); | |
39 }; | |
40 | |
41 } // namespace webrtc | |
42 | |
43 #endif // WEBRTC_VOICE_ENGINE_INCLUDE_MOCK_MOCK_VOE_VOLUME_CONTROL_H_ | |
OLD | NEW |