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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 Init, | 100 Init, |
101 int(AudioDeviceModule* external_adm, | 101 int(AudioDeviceModule* external_adm, |
102 AudioProcessing* external_apm, | 102 AudioProcessing* external_apm, |
103 const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory)); | 103 const rtc::scoped_refptr<AudioDecoderFactory>& decoder_factory)); |
104 MOCK_METHOD0(audio_device_module, AudioDeviceModule*()); | 104 MOCK_METHOD0(audio_device_module, AudioDeviceModule*()); |
105 MOCK_METHOD0(transmit_mixer, voe::TransmitMixer*()); | 105 MOCK_METHOD0(transmit_mixer, voe::TransmitMixer*()); |
106 MOCK_METHOD0(Terminate, int()); | 106 MOCK_METHOD0(Terminate, int()); |
107 MOCK_METHOD0(CreateChannel, int()); | 107 MOCK_METHOD0(CreateChannel, int()); |
108 MOCK_METHOD1(CreateChannel, int(const ChannelConfig& config)); | 108 MOCK_METHOD1(CreateChannel, int(const ChannelConfig& config)); |
109 MOCK_METHOD1(DeleteChannel, int(int channel)); | 109 MOCK_METHOD1(DeleteChannel, int(int channel)); |
110 MOCK_METHOD1(StartReceive, int(int channel)); | |
111 MOCK_METHOD1(StopReceive, int(int channel)); | |
112 MOCK_METHOD1(StartPlayout, int(int channel)); | 110 MOCK_METHOD1(StartPlayout, int(int channel)); |
113 MOCK_METHOD1(StopPlayout, int(int channel)); | 111 MOCK_METHOD1(StopPlayout, int(int channel)); |
114 MOCK_METHOD1(StartSend, int(int channel)); | 112 MOCK_METHOD1(StartSend, int(int channel)); |
115 MOCK_METHOD1(StopSend, int(int channel)); | 113 MOCK_METHOD1(StopSend, int(int channel)); |
116 MOCK_METHOD1(GetVersion, int(char version[1024])); | |
117 MOCK_METHOD0(LastError, int()); | |
118 MOCK_METHOD0(audio_transport, AudioTransport*()); | 114 MOCK_METHOD0(audio_transport, AudioTransport*()); |
119 MOCK_METHOD2(AssociateSendChannel, | |
120 int(int channel, int accociate_send_channel)); | |
121 | 115 |
122 // VoECodec | 116 // VoECodec |
123 MOCK_METHOD0(NumOfCodecs, int()); | 117 MOCK_METHOD0(NumOfCodecs, int()); |
124 MOCK_METHOD2(GetCodec, int(int index, CodecInst& codec)); | 118 MOCK_METHOD2(GetCodec, int(int index, CodecInst& codec)); |
125 MOCK_METHOD2(SetSendCodec, int(int channel, const CodecInst& codec)); | 119 MOCK_METHOD2(SetSendCodec, int(int channel, const CodecInst& codec)); |
126 MOCK_METHOD2(GetSendCodec, int(int channel, CodecInst& codec)); | 120 MOCK_METHOD2(GetSendCodec, int(int channel, CodecInst& codec)); |
127 MOCK_METHOD2(SetBitRate, int(int channel, int bitrate_bps)); | 121 MOCK_METHOD2(SetBitRate, int(int channel, int bitrate_bps)); |
128 MOCK_METHOD2(GetRecCodec, int(int channel, CodecInst& codec)); | 122 MOCK_METHOD2(GetRecCodec, int(int channel, CodecInst& codec)); |
129 MOCK_METHOD2(SetRecPayloadType, int(int channel, const CodecInst& codec)); | 123 MOCK_METHOD2(SetRecPayloadType, int(int channel, const CodecInst& codec)); |
130 MOCK_METHOD2(GetRecPayloadType, int(int channel, CodecInst& codec)); | 124 MOCK_METHOD2(GetRecPayloadType, int(int channel, CodecInst& codec)); |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 246 |
253 std::map<int, std::unique_ptr<MockRtpRtcp>> mock_rtp_rtcps_; | 247 std::map<int, std::unique_ptr<MockRtpRtcp>> mock_rtp_rtcps_; |
254 | 248 |
255 MockAudioDeviceModule mock_audio_device_; | 249 MockAudioDeviceModule mock_audio_device_; |
256 MockAudioTransport mock_audio_transport_; | 250 MockAudioTransport mock_audio_transport_; |
257 }; | 251 }; |
258 } // namespace test | 252 } // namespace test |
259 } // namespace webrtc | 253 } // namespace webrtc |
260 | 254 |
261 #endif // AUDIO_MOCK_VOICE_ENGINE_H_ | 255 #endif // AUDIO_MOCK_VOICE_ENGINE_H_ |
OLD | NEW |