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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 MOCK_METHOD3(StartRecordingPlayout, | 168 MOCK_METHOD3(StartRecordingPlayout, |
169 int(int channel, OutStream* stream, CodecInst* compression)); | 169 int(int channel, OutStream* stream, CodecInst* compression)); |
170 MOCK_METHOD3(StartRecordingMicrophone, | 170 MOCK_METHOD3(StartRecordingMicrophone, |
171 int(const char* fileNameUTF8, | 171 int(const char* fileNameUTF8, |
172 CodecInst* compression, | 172 CodecInst* compression, |
173 int maxSizeBytes)); | 173 int maxSizeBytes)); |
174 MOCK_METHOD2(StartRecordingMicrophone, | 174 MOCK_METHOD2(StartRecordingMicrophone, |
175 int(OutStream* stream, CodecInst* compression)); | 175 int(OutStream* stream, CodecInst* compression)); |
176 MOCK_METHOD0(StopRecordingMicrophone, int()); | 176 MOCK_METHOD0(StopRecordingMicrophone, int()); |
177 | 177 |
178 // VoEHardware | |
179 MOCK_METHOD1(GetNumOfRecordingDevices, int(int& devices)); | |
180 MOCK_METHOD1(GetNumOfPlayoutDevices, int(int& devices)); | |
181 MOCK_METHOD3(GetRecordingDeviceName, | |
182 int(int index, char strNameUTF8[128], char strGuidUTF8[128])); | |
183 MOCK_METHOD3(GetPlayoutDeviceName, | |
184 int(int index, char strNameUTF8[128], char strGuidUTF8[128])); | |
185 MOCK_METHOD2(SetRecordingDevice, | |
186 int(int index, StereoChannel recordingChannel)); | |
187 MOCK_METHOD1(SetPlayoutDevice, int(int index)); | |
188 MOCK_METHOD1(SetAudioDeviceLayer, int(AudioLayers audioLayer)); | |
189 MOCK_METHOD1(GetAudioDeviceLayer, int(AudioLayers& audioLayer)); | |
190 MOCK_METHOD1(SetRecordingSampleRate, int(unsigned int samples_per_sec)); | |
191 MOCK_CONST_METHOD1(RecordingSampleRate, int(unsigned int* samples_per_sec)); | |
192 MOCK_METHOD1(SetPlayoutSampleRate, int(unsigned int samples_per_sec)); | |
193 MOCK_CONST_METHOD1(PlayoutSampleRate, int(unsigned int* samples_per_sec)); | |
194 MOCK_CONST_METHOD0(BuiltInAECIsAvailable, bool()); | |
195 MOCK_METHOD1(EnableBuiltInAEC, int(bool enable)); | |
196 MOCK_CONST_METHOD0(BuiltInAGCIsAvailable, bool()); | |
197 MOCK_METHOD1(EnableBuiltInAGC, int(bool enable)); | |
198 MOCK_CONST_METHOD0(BuiltInNSIsAvailable, bool()); | |
199 MOCK_METHOD1(EnableBuiltInNS, int(bool enable)); | |
200 | |
201 // VoENetwork | 178 // VoENetwork |
202 MOCK_METHOD2(RegisterExternalTransport, | 179 MOCK_METHOD2(RegisterExternalTransport, |
203 int(int channel, Transport& transport)); | 180 int(int channel, Transport& transport)); |
204 MOCK_METHOD1(DeRegisterExternalTransport, int(int channel)); | 181 MOCK_METHOD1(DeRegisterExternalTransport, int(int channel)); |
205 MOCK_METHOD3(ReceivedRTPPacket, | 182 MOCK_METHOD3(ReceivedRTPPacket, |
206 int(int channel, const void* data, size_t length)); | 183 int(int channel, const void* data, size_t length)); |
207 MOCK_METHOD4(ReceivedRTPPacket, | 184 MOCK_METHOD4(ReceivedRTPPacket, |
208 int(int channel, | 185 int(int channel, |
209 const void* data, | 186 const void* data, |
210 size_t length, | 187 size_t length, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; | 237 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; |
261 | 238 |
262 MockAudioDeviceModule mock_audio_device_; | 239 MockAudioDeviceModule mock_audio_device_; |
263 MockAudioProcessing mock_audio_processing_; | 240 MockAudioProcessing mock_audio_processing_; |
264 MockAudioTransport mock_audio_transport_; | 241 MockAudioTransport mock_audio_transport_; |
265 }; | 242 }; |
266 } // namespace test | 243 } // namespace test |
267 } // namespace webrtc | 244 } // namespace webrtc |
268 | 245 |
269 #endif // WEBRTC_AUDIO_MOCK_VOICE_ENGINE_H_ | 246 #endif // WEBRTC_AUDIO_MOCK_VOICE_ENGINE_H_ |
OLD | NEW |