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

Unified Diff: webrtc/test/mock_voice_engine.h

Issue 2721003002: Remove usage of VoEVolumeControl from WVoE and Audio[Send|Receive]Stream. (Closed)
Patch Set: rebase+comment Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/test/mock_voe_channel_proxy.h ('k') | webrtc/voice_engine/channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/mock_voice_engine.h
diff --git a/webrtc/test/mock_voice_engine.h b/webrtc/test/mock_voice_engine.h
index 61773043725e69481d66fdeadd6fbe4ad7186bc7..406b58f69d65ad9ceec2e268785da3dbc2747d6f 100644
--- a/webrtc/test/mock_voice_engine.h
+++ b/webrtc/test/mock_voice_engine.h
@@ -21,6 +21,10 @@
#include "webrtc/voice_engine/voice_engine_impl.h"
namespace webrtc {
+namespace voe {
+class TransmitMixer;
+} // namespace voe
+
namespace test {
// NOTE: This class inherits from VoiceEngineImpl so that its clients will be
@@ -122,6 +126,7 @@ class MockVoiceEngine : public VoiceEngineImpl {
const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory));
MOCK_METHOD0(audio_processing, AudioProcessing*());
MOCK_METHOD0(audio_device_module, AudioDeviceModule*());
+ MOCK_METHOD0(transmit_mixer, voe::TransmitMixer*());
MOCK_METHOD0(Terminate, int());
MOCK_METHOD0(CreateChannel, int());
MOCK_METHOD1(CreateChannel, int(const ChannelConfig& config));
@@ -289,23 +294,6 @@ class MockVoiceEngine : public VoiceEngineImpl {
int(int channel, bool& enable, int& redPayloadtype));
MOCK_METHOD3(SetNACKStatus, int(int channel, bool enable, int maxNoPackets));
- // VoEVolumeControl
- MOCK_METHOD1(SetSpeakerVolume, int(unsigned int volume));
- MOCK_METHOD1(GetSpeakerVolume, int(unsigned int& volume));
- MOCK_METHOD1(SetMicVolume, int(unsigned int volume));
- MOCK_METHOD1(GetMicVolume, int(unsigned int& volume));
- MOCK_METHOD2(SetInputMute, int(int channel, bool enable));
- MOCK_METHOD2(GetInputMute, int(int channel, bool& enabled));
- MOCK_METHOD1(GetSpeechInputLevel, int(unsigned int& level));
- MOCK_METHOD2(GetSpeechOutputLevel, int(int channel, unsigned int& level));
- MOCK_METHOD1(GetSpeechInputLevelFullRange, int(unsigned int& level));
- MOCK_METHOD2(GetSpeechOutputLevelFullRange,
- int(int channel, unsigned& level));
- MOCK_METHOD2(SetChannelOutputVolumeScaling, int(int channel, float scaling));
- MOCK_METHOD2(GetChannelOutputVolumeScaling, int(int channel, float& scaling));
- MOCK_METHOD3(SetOutputVolumePan, int(int channel, float left, float right));
- MOCK_METHOD3(GetOutputVolumePan, int(int channel, float& left, float& right));
-
private:
// TODO(ossu): I'm not particularly happy about keeping the decoder factory
// here, but due to how gmock is implemented, I cannot just keep it in the
« no previous file with comments | « webrtc/test/mock_voe_channel_proxy.h ('k') | webrtc/voice_engine/channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698