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

Side by Side Diff: webrtc/test/mock_voice_engine.h

Issue 2516993002: Pass SdpAudioFormat through Channel, without converting to CodecInst (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 int(int channel, int accociate_send_channel)); 139 int(int channel, int accociate_send_channel));
140 140
141 // VoECodec 141 // VoECodec
142 MOCK_METHOD0(NumOfCodecs, int()); 142 MOCK_METHOD0(NumOfCodecs, int());
143 MOCK_METHOD2(GetCodec, int(int index, CodecInst& codec)); 143 MOCK_METHOD2(GetCodec, int(int index, CodecInst& codec));
144 MOCK_METHOD2(SetSendCodec, int(int channel, const CodecInst& codec)); 144 MOCK_METHOD2(SetSendCodec, int(int channel, const CodecInst& codec));
145 MOCK_METHOD2(GetSendCodec, int(int channel, CodecInst& codec)); 145 MOCK_METHOD2(GetSendCodec, int(int channel, CodecInst& codec));
146 MOCK_METHOD2(SetBitRate, int(int channel, int bitrate_bps)); 146 MOCK_METHOD2(SetBitRate, int(int channel, int bitrate_bps));
147 MOCK_METHOD2(GetRecCodec, int(int channel, CodecInst& codec)); 147 MOCK_METHOD2(GetRecCodec, int(int channel, CodecInst& codec));
148 MOCK_METHOD2(SetRecPayloadType, int(int channel, const CodecInst& codec)); 148 MOCK_METHOD2(SetRecPayloadType, int(int channel, const CodecInst& codec));
149 MOCK_METHOD3(SetRecPayloadType,
150 int(int channel,
151 int payload_type,
152 const SdpAudioFormat& format));
149 MOCK_METHOD2(GetRecPayloadType, int(int channel, CodecInst& codec)); 153 MOCK_METHOD2(GetRecPayloadType, int(int channel, CodecInst& codec));
150 MOCK_METHOD3(SetSendCNPayloadType, 154 MOCK_METHOD3(SetSendCNPayloadType,
151 int(int channel, int type, PayloadFrequencies frequency)); 155 int(int channel, int type, PayloadFrequencies frequency));
152 MOCK_METHOD2(SetFECStatus, int(int channel, bool enable)); 156 MOCK_METHOD2(SetFECStatus, int(int channel, bool enable));
153 MOCK_METHOD2(GetFECStatus, int(int channel, bool& enabled)); 157 MOCK_METHOD2(GetFECStatus, int(int channel, bool& enabled));
154 MOCK_METHOD4(SetVADStatus, 158 MOCK_METHOD4(SetVADStatus,
155 int(int channel, bool enable, VadModes mode, bool disableDTX)); 159 int(int channel, bool enable, VadModes mode, bool disableDTX));
156 MOCK_METHOD4( 160 MOCK_METHOD4(
157 GetVADStatus, 161 GetVADStatus,
158 int(int channel, bool& enabled, VadModes& mode, bool& disabledDTX)); 162 int(int channel, bool& enabled, VadModes& mode, bool& disabledDTX));
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_; 347 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_;
344 348
345 MockAudioDeviceModule mock_audio_device_; 349 MockAudioDeviceModule mock_audio_device_;
346 MockAudioProcessing mock_audio_processing_; 350 MockAudioProcessing mock_audio_processing_;
347 MockAudioTransport mock_audio_transport_; 351 MockAudioTransport mock_audio_transport_;
348 }; 352 };
349 } // namespace test 353 } // namespace test
350 } // namespace webrtc 354 } // namespace webrtc
351 355
352 #endif // WEBRTC_AUDIO_MOCK_VOICE_ENGINE_H_ 356 #endif // WEBRTC_AUDIO_MOCK_VOICE_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698