| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 MOCK_METHOD2(SetRtxSendPayloadType, void(int, int)); | 105 MOCK_METHOD2(SetRtxSendPayloadType, void(int, int)); |
| 106 MOCK_CONST_METHOD0(RtxSendPayloadType, std::pair<int, int>()); | 106 MOCK_CONST_METHOD0(RtxSendPayloadType, std::pair<int, int>()); |
| 107 MOCK_METHOD1(SetSendingStatus, | 107 MOCK_METHOD1(SetSendingStatus, |
| 108 int32_t(const bool sending)); | 108 int32_t(const bool sending)); |
| 109 MOCK_CONST_METHOD0(Sending, | 109 MOCK_CONST_METHOD0(Sending, |
| 110 bool()); | 110 bool()); |
| 111 MOCK_METHOD1(SetSendingMediaStatus, void(const bool sending)); | 111 MOCK_METHOD1(SetSendingMediaStatus, void(const bool sending)); |
| 112 MOCK_CONST_METHOD0(SendingMedia, | 112 MOCK_CONST_METHOD0(SendingMedia, |
| 113 bool()); | 113 bool()); |
| 114 MOCK_CONST_METHOD4(BitrateSent, | 114 MOCK_CONST_METHOD4(BitrateSent, |
| 115 void(uint32_t* totalRate, uint32_t* videoRate, uint32_t* fecRate, uint32_t
* nackRate)); | 115 void(uint32_t* totalRate, |
| 116 uint32_t* videoRate, |
| 117 uint32_t* fecRate, |
| 118 uint32_t* nackRate)); |
| 116 MOCK_METHOD1(RegisterVideoBitrateObserver, void(BitrateStatisticsObserver*)); | 119 MOCK_METHOD1(RegisterVideoBitrateObserver, void(BitrateStatisticsObserver*)); |
| 117 MOCK_CONST_METHOD0(GetVideoBitrateObserver, BitrateStatisticsObserver*(void)); | 120 MOCK_CONST_METHOD0(GetVideoBitrateObserver, BitrateStatisticsObserver*(void)); |
| 118 MOCK_CONST_METHOD1(EstimatedReceiveBandwidth, | 121 MOCK_CONST_METHOD1(EstimatedReceiveBandwidth, |
| 119 int(uint32_t* available_bandwidth)); | 122 int(uint32_t* available_bandwidth)); |
| 120 MOCK_METHOD8(SendOutgoingData, | 123 MOCK_METHOD8(SendOutgoingData, |
| 121 int32_t(const FrameType frameType, | 124 int32_t(const FrameType frameType, |
| 122 const int8_t payloadType, | 125 const int8_t payloadType, |
| 123 const uint32_t timeStamp, | 126 const uint32_t timeStamp, |
| 124 int64_t capture_time_ms, | 127 int64_t capture_time_ms, |
| 125 const uint8_t* payloadData, | 128 const uint8_t* payloadData, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 int32_t(size_t *bytesSent, uint32_t *packetsSent)); | 172 int32_t(size_t *bytesSent, uint32_t *packetsSent)); |
| 170 MOCK_CONST_METHOD2(GetSendStreamDataCounters, | 173 MOCK_CONST_METHOD2(GetSendStreamDataCounters, |
| 171 void(StreamDataCounters*, StreamDataCounters*)); | 174 void(StreamDataCounters*, StreamDataCounters*)); |
| 172 MOCK_CONST_METHOD3(GetRtpPacketLossStats, | 175 MOCK_CONST_METHOD3(GetRtpPacketLossStats, |
| 173 void(bool, uint32_t, struct RtpPacketLossStats*)); | 176 void(bool, uint32_t, struct RtpPacketLossStats*)); |
| 174 MOCK_METHOD1(RemoteRTCPStat, | 177 MOCK_METHOD1(RemoteRTCPStat, |
| 175 int32_t(RTCPSenderInfo* senderInfo)); | 178 int32_t(RTCPSenderInfo* senderInfo)); |
| 176 MOCK_CONST_METHOD1(RemoteRTCPStat, | 179 MOCK_CONST_METHOD1(RemoteRTCPStat, |
| 177 int32_t(std::vector<RTCPReportBlock>* receiveBlocks)); | 180 int32_t(std::vector<RTCPReportBlock>* receiveBlocks)); |
| 178 MOCK_METHOD4(SetRTCPApplicationSpecificData, | 181 MOCK_METHOD4(SetRTCPApplicationSpecificData, |
| 179 int32_t(const uint8_t subType, const uint32_t name, const uint8_t* data, c
onst uint16_t length)); | 182 int32_t(const uint8_t subType, |
| 183 const uint32_t name, |
| 184 const uint8_t* data, |
| 185 const uint16_t length)); |
| 180 MOCK_METHOD1(SetRTCPVoIPMetrics, | 186 MOCK_METHOD1(SetRTCPVoIPMetrics, |
| 181 int32_t(const RTCPVoIPMetric* VoIPMetric)); | 187 int32_t(const RTCPVoIPMetric* VoIPMetric)); |
| 182 MOCK_METHOD1(SetRtcpXrRrtrStatus, | 188 MOCK_METHOD1(SetRtcpXrRrtrStatus, |
| 183 void(bool enable)); | 189 void(bool enable)); |
| 184 MOCK_CONST_METHOD0(RtcpXrRrtrStatus, | 190 MOCK_CONST_METHOD0(RtcpXrRrtrStatus, |
| 185 bool()); | 191 bool()); |
| 186 MOCK_CONST_METHOD0(REMB, | 192 MOCK_CONST_METHOD0(REMB, |
| 187 bool()); | 193 bool()); |
| 188 MOCK_METHOD1(SetREMBStatus, void(const bool enable)); | 194 MOCK_METHOD1(SetREMBStatus, void(const bool enable)); |
| 189 MOCK_METHOD2(SetREMBData, | 195 MOCK_METHOD2(SetREMBData, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 214 int32_t(RtpAudioFeedback* messagesCallback)); | 220 int32_t(RtpAudioFeedback* messagesCallback)); |
| 215 MOCK_METHOD1(SetAudioPacketSize, | 221 MOCK_METHOD1(SetAudioPacketSize, |
| 216 int32_t(const uint16_t packetSizeSamples)); | 222 int32_t(const uint16_t packetSizeSamples)); |
| 217 MOCK_METHOD3(SendTelephoneEventOutband, | 223 MOCK_METHOD3(SendTelephoneEventOutband, |
| 218 int32_t(const uint8_t key, const uint16_t time_ms, const uint8_t level)); | 224 int32_t(const uint8_t key, const uint16_t time_ms, const uint8_t level)); |
| 219 MOCK_METHOD1(SetSendREDPayloadType, | 225 MOCK_METHOD1(SetSendREDPayloadType, |
| 220 int32_t(const int8_t payloadType)); | 226 int32_t(const int8_t payloadType)); |
| 221 MOCK_CONST_METHOD1(SendREDPayloadType, int32_t(int8_t* payloadType)); | 227 MOCK_CONST_METHOD1(SendREDPayloadType, int32_t(int8_t* payloadType)); |
| 222 MOCK_METHOD2(SetRTPAudioLevelIndicationStatus, | 228 MOCK_METHOD2(SetRTPAudioLevelIndicationStatus, |
| 223 int32_t(const bool enable, const uint8_t ID)); | 229 int32_t(const bool enable, const uint8_t ID)); |
| 224 MOCK_CONST_METHOD2(GetRTPAudioLevelIndicationStatus, | |
| 225 int32_t(bool& enable, uint8_t& ID)); | |
| 226 MOCK_METHOD1(SetAudioLevel, | 230 MOCK_METHOD1(SetAudioLevel, |
| 227 int32_t(const uint8_t level_dBov)); | 231 int32_t(const uint8_t level_dBov)); |
| 228 MOCK_METHOD1(SetTargetSendBitrate, | 232 MOCK_METHOD1(SetTargetSendBitrate, |
| 229 void(uint32_t bitrate_bps)); | 233 void(uint32_t bitrate_bps)); |
| 230 MOCK_METHOD3(SetGenericFECStatus, | 234 MOCK_METHOD3(SetGenericFECStatus, |
| 231 void(const bool enable, | 235 void(const bool enable, |
| 232 const uint8_t payload_type_red, | 236 const uint8_t payload_type_red, |
| 233 const uint8_t payload_type_fec)); | 237 const uint8_t payload_type_fec)); |
| 234 MOCK_METHOD3(GenericFECStatus, | 238 MOCK_METHOD3(GenericFECStatus, |
| 235 void(bool* enable, | 239 void(bool* enable, |
| 236 uint8_t* payloadTypeRED, | 240 uint8_t* payloadTypeRED, |
| 237 uint8_t* payloadTypeFEC)); | 241 uint8_t* payloadTypeFEC)); |
| 238 MOCK_METHOD2(SetFecParameters, | 242 MOCK_METHOD2(SetFecParameters, |
| 239 int32_t(const FecProtectionParams* delta_params, | 243 int32_t(const FecProtectionParams* delta_params, |
| 240 const FecProtectionParams* key_params)); | 244 const FecProtectionParams* key_params)); |
| 241 MOCK_METHOD1(SetKeyFrameRequestMethod, | 245 MOCK_METHOD1(SetKeyFrameRequestMethod, |
| 242 int32_t(const KeyFrameRequestMethod method)); | 246 int32_t(const KeyFrameRequestMethod method)); |
| 243 MOCK_METHOD0(RequestKeyFrame, | 247 MOCK_METHOD0(RequestKeyFrame, |
| 244 int32_t()); | 248 int32_t()); |
| 245 MOCK_CONST_METHOD3(Version, | |
| 246 int32_t(char* version, uint32_t& remaining_buffer_in_bytes, uint32_t& posi
tion)); | |
| 247 MOCK_METHOD0(TimeUntilNextProcess, | 249 MOCK_METHOD0(TimeUntilNextProcess, |
| 248 int64_t()); | 250 int64_t()); |
| 249 MOCK_METHOD0(Process, | 251 MOCK_METHOD0(Process, |
| 250 int32_t()); | 252 int32_t()); |
| 251 MOCK_METHOD1(RegisterSendFrameCountObserver, | 253 MOCK_METHOD1(RegisterSendFrameCountObserver, |
| 252 void(FrameCountObserver*)); | 254 void(FrameCountObserver*)); |
| 253 MOCK_CONST_METHOD0(GetSendFrameCountObserver, | 255 MOCK_CONST_METHOD0(GetSendFrameCountObserver, |
| 254 FrameCountObserver*(void)); | 256 FrameCountObserver*(void)); |
| 255 MOCK_METHOD1(RegisterSendChannelRtpStatisticsCallback, | 257 MOCK_METHOD1(RegisterSendChannelRtpStatisticsCallback, |
| 256 void(StreamDataCountersCallback*)); | 258 void(StreamDataCountersCallback*)); |
| 257 MOCK_CONST_METHOD0(GetSendChannelRtpStatisticsCallback, | 259 MOCK_CONST_METHOD0(GetSendChannelRtpStatisticsCallback, |
| 258 StreamDataCountersCallback*(void)); | 260 StreamDataCountersCallback*(void)); |
| 259 // Members. | 261 // Members. |
| 260 unsigned int remote_ssrc_; | 262 unsigned int remote_ssrc_; |
| 261 }; | 263 }; |
| 262 | 264 |
| 263 } // namespace webrtc | 265 } // namespace webrtc |
| 264 | 266 |
| 265 #endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_ | 267 #endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_ |
| OLD | NEW |