OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
207 MOCK_METHOD0(GetRtcpStatisticsCallback, RtcpStatisticsCallback*()); | 207 MOCK_METHOD0(GetRtcpStatisticsCallback, RtcpStatisticsCallback*()); |
208 MOCK_METHOD1(SendFeedbackPacket, bool(const rtcp::TransportFeedback& packet)); | 208 MOCK_METHOD1(SendFeedbackPacket, bool(const rtcp::TransportFeedback& packet)); |
209 MOCK_METHOD1(RegisterAudioCallback, | 209 MOCK_METHOD1(RegisterAudioCallback, |
210 int32_t(RtpAudioFeedback* messagesCallback)); | 210 int32_t(RtpAudioFeedback* messagesCallback)); |
211 MOCK_METHOD1(SetAudioPacketSize, | 211 MOCK_METHOD1(SetAudioPacketSize, |
212 int32_t(const uint16_t packetSizeSamples)); | 212 int32_t(const uint16_t packetSizeSamples)); |
213 MOCK_METHOD3(SendTelephoneEventOutband, | 213 MOCK_METHOD3(SendTelephoneEventOutband, |
214 int32_t(const uint8_t key, const uint16_t time_ms, const uint8_t level)); | 214 int32_t(const uint8_t key, const uint16_t time_ms, const uint8_t level)); |
215 MOCK_METHOD1(SetSendREDPayloadType, | 215 MOCK_METHOD1(SetSendREDPayloadType, |
216 int32_t(const int8_t payloadType)); | 216 int32_t(const int8_t payloadType)); |
217 MOCK_CONST_METHOD1(SendREDPayloadType, | 217 MOCK_CONST_METHOD1(SendREDPayloadType, int32_t(int8_t* payloadType)); |
218 int32_t(int8_t& payloadType)); | |
219 MOCK_METHOD2(SetRTPAudioLevelIndicationStatus, | 218 MOCK_METHOD2(SetRTPAudioLevelIndicationStatus, |
220 int32_t(const bool enable, const uint8_t ID)); | 219 int32_t(const bool enable, const uint8_t ID)); |
221 MOCK_CONST_METHOD2(GetRTPAudioLevelIndicationStatus, | 220 MOCK_CONST_METHOD2(GetRTPAudioLevelIndicationStatus, |
222 int32_t(bool& enable, uint8_t& ID)); | 221 int32_t(bool& enable, uint8_t& ID)); |
223 MOCK_METHOD1(SetAudioLevel, | 222 MOCK_METHOD1(SetAudioLevel, |
224 int32_t(const uint8_t level_dBov)); | 223 int32_t(const uint8_t level_dBov)); |
225 MOCK_METHOD1(SetTargetSendBitrate, | 224 MOCK_METHOD1(SetTargetSendBitrate, |
226 void(uint32_t bitrate_bps)); | 225 void(uint32_t bitrate_bps)); |
227 MOCK_METHOD3(SetGenericFECStatus, | 226 MOCK_METHOD3(SetGenericFECStatus, |
228 void(const bool enable, | 227 void(const bool enable, |
229 const uint8_t payload_type_red, | 228 const uint8_t payload_type_red, |
230 const uint8_t payload_type_fec)); | 229 const uint8_t payload_type_fec)); |
231 MOCK_METHOD3(GenericFECStatus, | 230 MOCK_METHOD3(GenericFECStatus, |
mflodman
2015/12/09 09:19:13
I think you should keep the old method too until i
danilchap
2015/12/09 11:23:36
GMock documentation tells that virtual functions s
mflodman
2015/12/10 08:24:23
Acknowledged.
| |
232 void(bool& enable, | 231 void(bool* enable, |
233 uint8_t& payloadTypeRED, | 232 uint8_t* payloadTypeRED, |
234 uint8_t& payloadTypeFEC)); | 233 uint8_t* payloadTypeFEC)); |
235 MOCK_METHOD2(SetFecParameters, | 234 MOCK_METHOD2(SetFecParameters, |
236 int32_t(const FecProtectionParams* delta_params, | 235 int32_t(const FecProtectionParams* delta_params, |
237 const FecProtectionParams* key_params)); | 236 const FecProtectionParams* key_params)); |
238 MOCK_METHOD1(SetKeyFrameRequestMethod, | 237 MOCK_METHOD1(SetKeyFrameRequestMethod, |
239 int32_t(const KeyFrameRequestMethod method)); | 238 int32_t(const KeyFrameRequestMethod method)); |
240 MOCK_METHOD0(RequestKeyFrame, | 239 MOCK_METHOD0(RequestKeyFrame, |
241 int32_t()); | 240 int32_t()); |
242 MOCK_CONST_METHOD3(Version, | 241 MOCK_CONST_METHOD3(Version, |
243 int32_t(char* version, uint32_t& remaining_buffer_in_bytes, uint32_t& posi tion)); | 242 int32_t(char* version, uint32_t& remaining_buffer_in_bytes, uint32_t& posi tion)); |
244 MOCK_METHOD0(TimeUntilNextProcess, | 243 MOCK_METHOD0(TimeUntilNextProcess, |
245 int64_t()); | 244 int64_t()); |
246 MOCK_METHOD0(Process, | 245 MOCK_METHOD0(Process, |
247 int32_t()); | 246 int32_t()); |
248 MOCK_METHOD1(RegisterSendFrameCountObserver, | 247 MOCK_METHOD1(RegisterSendFrameCountObserver, |
249 void(FrameCountObserver*)); | 248 void(FrameCountObserver*)); |
250 MOCK_CONST_METHOD0(GetSendFrameCountObserver, | 249 MOCK_CONST_METHOD0(GetSendFrameCountObserver, |
251 FrameCountObserver*(void)); | 250 FrameCountObserver*(void)); |
252 MOCK_METHOD1(RegisterSendChannelRtpStatisticsCallback, | 251 MOCK_METHOD1(RegisterSendChannelRtpStatisticsCallback, |
253 void(StreamDataCountersCallback*)); | 252 void(StreamDataCountersCallback*)); |
254 MOCK_CONST_METHOD0(GetSendChannelRtpStatisticsCallback, | 253 MOCK_CONST_METHOD0(GetSendChannelRtpStatisticsCallback, |
255 StreamDataCountersCallback*(void)); | 254 StreamDataCountersCallback*(void)); |
256 // Members. | 255 // Members. |
257 unsigned int remote_ssrc_; | 256 unsigned int remote_ssrc_; |
258 }; | 257 }; |
259 | 258 |
260 } // namespace webrtc | 259 } // namespace webrtc |
261 | 260 |
262 #endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_ | 261 #endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_ |
OLD | NEW |