OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // Allows injecting a ChannelProxy factory. | 87 // Allows injecting a ChannelProxy factory. |
88 MOCK_METHOD1(ChannelProxyFactory, voe::ChannelProxy*(int channel_id)); | 88 MOCK_METHOD1(ChannelProxyFactory, voe::ChannelProxy*(int channel_id)); |
89 | 89 |
90 // VoiceEngineImpl | 90 // VoiceEngineImpl |
91 virtual std::unique_ptr<voe::ChannelProxy> GetChannelProxy( | 91 virtual std::unique_ptr<voe::ChannelProxy> GetChannelProxy( |
92 int channel_id) /* override */ { | 92 int channel_id) /* override */ { |
93 return std::unique_ptr<voe::ChannelProxy>(ChannelProxyFactory(channel_id)); | 93 return std::unique_ptr<voe::ChannelProxy>(ChannelProxyFactory(channel_id)); |
94 } | 94 } |
95 | 95 |
96 // VoEBase | 96 // VoEBase |
97 MOCK_METHOD1(RegisterVoiceEngineObserver, int(VoiceEngineObserver& observer)); | |
98 MOCK_METHOD0(DeRegisterVoiceEngineObserver, int()); | |
99 MOCK_METHOD3( | 97 MOCK_METHOD3( |
100 Init, | 98 Init, |
101 int(AudioDeviceModule* external_adm, | 99 int(AudioDeviceModule* external_adm, |
102 AudioProcessing* external_apm, | 100 AudioProcessing* external_apm, |
103 const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory)); | 101 const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory)); |
104 MOCK_METHOD0(audio_device_module, AudioDeviceModule*()); | 102 MOCK_METHOD0(audio_device_module, AudioDeviceModule*()); |
105 MOCK_METHOD0(transmit_mixer, voe::TransmitMixer*()); | 103 MOCK_METHOD0(transmit_mixer, voe::TransmitMixer*()); |
106 MOCK_METHOD0(Terminate, int()); | 104 MOCK_METHOD0(Terminate, int()); |
107 MOCK_METHOD0(CreateChannel, int()); | 105 MOCK_METHOD0(CreateChannel, int()); |
108 MOCK_METHOD1(CreateChannel, int(const ChannelConfig& config)); | 106 MOCK_METHOD1(CreateChannel, int(const ChannelConfig& config)); |
(...skipping 15 matching lines...) Expand all Loading... |
124 | 122 |
125 std::map<int, std::unique_ptr<MockRtpRtcp>> mock_rtp_rtcps_; | 123 std::map<int, std::unique_ptr<MockRtpRtcp>> mock_rtp_rtcps_; |
126 | 124 |
127 MockAudioDeviceModule mock_audio_device_; | 125 MockAudioDeviceModule mock_audio_device_; |
128 MockAudioTransport mock_audio_transport_; | 126 MockAudioTransport mock_audio_transport_; |
129 }; | 127 }; |
130 } // namespace test | 128 } // namespace test |
131 } // namespace webrtc | 129 } // namespace webrtc |
132 | 130 |
133 #endif // AUDIO_MOCK_VOICE_ENGINE_H_ | 131 #endif // AUDIO_MOCK_VOICE_ENGINE_H_ |
OLD | NEW |