| 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 10 matching lines...) Expand all Loading... |
| 21 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 21 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
| 22 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 22 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
| 23 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" | 23 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" |
| 24 | 24 |
| 25 namespace webrtc { | 25 namespace webrtc { |
| 26 | 26 |
| 27 class MockRtpData : public RtpData { | 27 class MockRtpData : public RtpData { |
| 28 public: | 28 public: |
| 29 MOCK_METHOD3(OnReceivedPayloadData, | 29 MOCK_METHOD3(OnReceivedPayloadData, |
| 30 int32_t(const uint8_t* payloadData, | 30 int32_t(const uint8_t* payloadData, |
| 31 const size_t payloadSize, | 31 size_t payloadSize, |
| 32 const WebRtcRTPHeader* rtpHeader)); | 32 const WebRtcRTPHeader* rtpHeader)); |
| 33 | 33 |
| 34 MOCK_METHOD2(OnRecoveredPacket, | 34 MOCK_METHOD2(OnRecoveredPacket, |
| 35 bool(const uint8_t* packet, size_t packet_length)); | 35 bool(const uint8_t* packet, size_t packet_length)); |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 class MockRtpRtcp : public RtpRtcp { | 38 class MockRtpRtcp : public RtpRtcp { |
| 39 public: | 39 public: |
| 40 MOCK_METHOD1(RegisterDefaultModule, | 40 MOCK_METHOD1(RegisterDefaultModule, |
| 41 int32_t(RtpRtcp* module)); | 41 int32_t(RtpRtcp* module)); |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 int32_t(const uint32_t SSRC)); | 161 int32_t(const uint32_t SSRC)); |
| 162 MOCK_CONST_METHOD5(RTT, | 162 MOCK_CONST_METHOD5(RTT, |
| 163 int32_t(const uint32_t remoteSSRC, | 163 int32_t(const uint32_t remoteSSRC, |
| 164 int64_t* RTT, | 164 int64_t* RTT, |
| 165 int64_t* avgRTT, | 165 int64_t* avgRTT, |
| 166 int64_t* minRTT, | 166 int64_t* minRTT, |
| 167 int64_t* maxRTT)); | 167 int64_t* maxRTT)); |
| 168 MOCK_METHOD1(SendRTCP, int32_t(RTCPPacketType packetType)); | 168 MOCK_METHOD1(SendRTCP, int32_t(RTCPPacketType packetType)); |
| 169 MOCK_METHOD1(SendCompoundRTCP, | 169 MOCK_METHOD1(SendCompoundRTCP, |
| 170 int32_t(const std::set<RTCPPacketType>& packetTypes)); | 170 int32_t(const std::set<RTCPPacketType>& packetTypes)); |
| 171 MOCK_METHOD1(SendRTCPReferencePictureSelection, | 171 MOCK_METHOD1(SendRTCPReferencePictureSelection, int32_t(uint64_t pictureID)); |
| 172 int32_t(const uint64_t pictureID)); | |
| 173 MOCK_METHOD1(SendRTCPSliceLossIndication, | 172 MOCK_METHOD1(SendRTCPSliceLossIndication, |
| 174 int32_t(const uint8_t pictureID)); | 173 int32_t(const uint8_t pictureID)); |
| 175 MOCK_CONST_METHOD2(DataCountersRTP, | 174 MOCK_CONST_METHOD2(DataCountersRTP, |
| 176 int32_t(size_t *bytesSent, uint32_t *packetsSent)); | 175 int32_t(size_t *bytesSent, uint32_t *packetsSent)); |
| 177 MOCK_CONST_METHOD2(GetSendStreamDataCounters, | 176 MOCK_CONST_METHOD2(GetSendStreamDataCounters, |
| 178 void(StreamDataCounters*, StreamDataCounters*)); | 177 void(StreamDataCounters*, StreamDataCounters*)); |
| 179 MOCK_CONST_METHOD3(GetRtpPacketLossStats, | 178 MOCK_CONST_METHOD3(GetRtpPacketLossStats, |
| 180 void(bool, uint32_t, struct RtpPacketLossStats*)); | 179 void(bool, uint32_t, struct RtpPacketLossStats*)); |
| 181 MOCK_METHOD1(RemoteRTCPStat, | 180 MOCK_METHOD1(RemoteRTCPStat, |
| 182 int32_t(RTCPSenderInfo* senderInfo)); | 181 int32_t(RTCPSenderInfo* senderInfo)); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 void(StreamDataCountersCallback*)); | 256 void(StreamDataCountersCallback*)); |
| 258 MOCK_CONST_METHOD0(GetSendChannelRtpStatisticsCallback, | 257 MOCK_CONST_METHOD0(GetSendChannelRtpStatisticsCallback, |
| 259 StreamDataCountersCallback*(void)); | 258 StreamDataCountersCallback*(void)); |
| 260 // Members. | 259 // Members. |
| 261 unsigned int remote_ssrc_; | 260 unsigned int remote_ssrc_; |
| 262 }; | 261 }; |
| 263 | 262 |
| 264 } // namespace webrtc | 263 } // namespace webrtc |
| 265 | 264 |
| 266 #endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_ | 265 #endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_ |
| OLD | NEW |