blob: 03130768cab684975af0be145f2fbe9284688950 [file] [log] [blame]
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +00001/*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_
12#define WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_
13
14#include <gmock/gmock.h>
15
16#include "modules/interface/module.h"
17#include "modules/rtp_rtcp/interface/rtp_rtcp.h"
18#include "modules/rtp_rtcp/interface/rtp_rtcp_defines.h"
19
20namespace webrtc {
21
22class MockRtpRtcp : public RtpRtcp {
23 public:
24 MOCK_METHOD1(ChangeUniqueId,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000025 int32_t(const int32_t id));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000026 MOCK_METHOD1(RegisterDefaultModule,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000027 int32_t(RtpRtcp* module));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000028 MOCK_METHOD0(DeRegisterDefaultModule,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000029 int32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000030 MOCK_METHOD0(DefaultModuleRegistered,
31 bool());
32 MOCK_METHOD0(NumberChildModules,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000033 uint32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000034 MOCK_METHOD1(RegisterSyncModule,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000035 int32_t(RtpRtcp* module));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000036 MOCK_METHOD0(DeRegisterSyncModule,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000037 int32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000038 MOCK_METHOD0(InitReceiver,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000039 int32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000040 MOCK_METHOD1(RegisterIncomingDataCallback,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000041 int32_t(RtpData* incomingDataCallback));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000042 MOCK_METHOD1(RegisterIncomingRTPCallback,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000043 int32_t(RtpFeedback* incomingMessagesCallback));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000044 MOCK_METHOD2(SetPacketTimeout,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000045 int32_t(const uint32_t RTPtimeoutMS, const uint32_t RTCPtimeoutMS));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000046 MOCK_METHOD2(SetPeriodicDeadOrAliveStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000047 int32_t(const bool enable, const uint8_t sampleTimeSeconds));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000048 MOCK_METHOD2(PeriodicDeadOrAliveStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000049 int32_t(bool &enable, uint8_t &sampleTimeSeconds));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000050 MOCK_METHOD1(RegisterReceivePayload,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000051 int32_t(const CodecInst& voiceCodec));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000052 MOCK_METHOD1(RegisterReceivePayload,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000053 int32_t(const VideoCodec& videoCodec));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000054 MOCK_METHOD2(ReceivePayloadType,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000055 int32_t(const CodecInst& voiceCodec, int8_t* plType));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000056 MOCK_METHOD2(ReceivePayloadType,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000057 int32_t(const VideoCodec& videoCodec, int8_t* plType));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000058 MOCK_METHOD1(DeRegisterReceivePayload,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000059 int32_t(const int8_t payloadType));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000060 MOCK_CONST_METHOD0(RemoteTimestamp,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000061 uint32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000062 MOCK_CONST_METHOD0(LocalTimeOfRemoteTimeStamp,
63 int64_t());
64 MOCK_CONST_METHOD1(EstimatedRemoteTimeStamp,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000065 int32_t(uint32_t& timestamp));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000066 MOCK_CONST_METHOD0(RemoteSSRC,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000067 uint32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000068 MOCK_CONST_METHOD1(RemoteCSRCs,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000069 int32_t(uint32_t arrOfCSRC[kRtpCsrcSize]));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000070 MOCK_CONST_METHOD1(SSRCFilter,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000071 int32_t(uint32_t& allowedSSRC));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000072 MOCK_METHOD2(SetSSRCFilter,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000073 int32_t(const bool enable, const uint32_t allowedSSRC));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000074 MOCK_METHOD2(SetRTXReceiveStatus,
mflodman@webrtc.org06077c92013-04-12 14:55:46 +000075 int32_t(bool enable, uint32_t ssrc));
76 MOCK_CONST_METHOD3(RTXReceiveStatus,
77 int32_t(bool* enable, uint32_t* ssrc, int* payload_type));
78 MOCK_METHOD1(SetRtxReceivePayloadType,
79 void(int));
stefan@webrtc.org028ec722013-05-29 12:12:51 +000080 MOCK_METHOD3(IncomingRtpPacket,
81 int32_t(const uint8_t* incomingPacket, const uint16_t packetLength,
82 const webrtc::RTPHeader& header));
83 MOCK_METHOD2(IncomingRtcpPacket,
84 int32_t(const uint8_t* incomingPacket, uint16_t packetLength));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000085 MOCK_METHOD4(IncomingAudioNTP,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000086 int32_t(const uint32_t audioReceivedNTPsecs,
87 const uint32_t audioReceivedNTPfrac,
88 const uint32_t audioRTCPArrivalTimeSecs,
89 const uint32_t audioRTCPArrivalTimeFrac));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000090 MOCK_METHOD0(InitSender,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000091 int32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000092 MOCK_METHOD1(RegisterSendTransport,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000093 int32_t(Transport* outgoingTransport));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000094 MOCK_METHOD1(SetMaxTransferUnit,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000095 int32_t(const uint16_t size));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000096 MOCK_METHOD3(SetTransportOverhead,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000097 int32_t(const bool TCP, const bool IPV6,
98 const uint8_t authenticationOverhead));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000099 MOCK_CONST_METHOD0(MaxPayloadLength,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000100 uint16_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000101 MOCK_CONST_METHOD0(MaxDataPayloadLength,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000102 uint16_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000103 MOCK_METHOD1(RegisterSendPayload,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000104 int32_t(const CodecInst& voiceCodec));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000105 MOCK_METHOD1(RegisterSendPayload,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000106 int32_t(const VideoCodec& videoCodec));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000107 MOCK_METHOD1(DeRegisterSendPayload,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000108 int32_t(const int8_t payloadType));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000109 MOCK_METHOD2(RegisterSendRtpHeaderExtension,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000110 int32_t(const RTPExtensionType type, const uint8_t id));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000111 MOCK_METHOD1(DeregisterSendRtpHeaderExtension,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000112 int32_t(const RTPExtensionType type));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000113 MOCK_CONST_METHOD0(StartTimestamp,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000114 uint32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000115 MOCK_METHOD1(SetStartTimestamp,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000116 int32_t(const uint32_t timestamp));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000117 MOCK_CONST_METHOD0(SequenceNumber,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000118 uint16_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000119 MOCK_METHOD1(SetSequenceNumber,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000120 int32_t(const uint16_t seq));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000121 MOCK_CONST_METHOD0(SSRC,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000122 uint32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000123 MOCK_METHOD1(SetSSRC,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000124 int32_t(const uint32_t ssrc));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000125 MOCK_CONST_METHOD1(CSRCs,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000126 int32_t(uint32_t arrOfCSRC[kRtpCsrcSize]));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000127 MOCK_METHOD2(SetCSRCs,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000128 int32_t(const uint32_t arrOfCSRC[kRtpCsrcSize], const uint8_t arrLength));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000129 MOCK_METHOD1(SetCSRCStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000130 int32_t(const bool include));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000131 MOCK_METHOD3(SetRTXSendStatus,
mflodman@webrtc.org06077c92013-04-12 14:55:46 +0000132 int32_t(RtxMode mode, bool setSSRC, uint32_t ssrc));
133 MOCK_CONST_METHOD3(RTXSendStatus,
134 int32_t(RtxMode* mode, uint32_t* ssrc, int* payload_type));
135 MOCK_METHOD1(SetRtxSendPayloadType,
136 void(int));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000137 MOCK_METHOD1(SetSendingStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000138 int32_t(const bool sending));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000139 MOCK_CONST_METHOD0(Sending,
140 bool());
141 MOCK_METHOD1(SetSendingMediaStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000142 int32_t(const bool sending));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000143 MOCK_CONST_METHOD0(SendingMedia,
144 bool());
145 MOCK_CONST_METHOD4(BitrateSent,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000146 void(uint32_t* totalRate, uint32_t* videoRate, uint32_t* fecRate, uint32_t* nackRate));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000147 MOCK_CONST_METHOD1(EstimatedReceiveBandwidth,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000148 int(uint32_t* available_bandwidth));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000149 MOCK_METHOD8(SendOutgoingData,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000150 int32_t(const FrameType frameType,
151 const int8_t payloadType,
152 const uint32_t timeStamp,
153 int64_t capture_time_ms,
154 const uint8_t* payloadData,
155 const uint32_t payloadSize,
156 const RTPFragmentationHeader* fragmentation,
157 const RTPVideoHeader* rtpVideoHdr));
pwestin@webrtc.org32f05a72012-11-13 21:12:39 +0000158 MOCK_METHOD3(TimeToSendPacket,
159 void(uint32_t ssrc, uint16_t sequence_number, int64_t capture_time_ms));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000160 MOCK_METHOD3(RegisterRtcpObservers,
161 void(RtcpIntraFrameObserver* intraFrameCallback,
162 RtcpBandwidthObserver* bandwidthCallback,
163 RtcpFeedback* callback));
164 MOCK_CONST_METHOD0(RTCP,
165 RTCPMethod());
166 MOCK_METHOD1(SetRTCPStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000167 int32_t(const RTCPMethod method));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000168 MOCK_METHOD1(SetCNAME,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000169 int32_t(const char cName[RTCP_CNAME_SIZE]));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000170 MOCK_METHOD1(CNAME,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000171 int32_t(char cName[RTCP_CNAME_SIZE]));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000172 MOCK_CONST_METHOD2(RemoteCNAME,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000173 int32_t(const uint32_t remoteSSRC,
174 char cName[RTCP_CNAME_SIZE]));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000175 MOCK_CONST_METHOD5(RemoteNTP,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000176 int32_t(uint32_t *ReceivedNTPsecs,
177 uint32_t *ReceivedNTPfrac,
178 uint32_t *RTCPArrivalTimeSecs,
179 uint32_t *RTCPArrivalTimeFrac,
180 uint32_t *rtcp_timestamp));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000181 MOCK_METHOD2(AddMixedCNAME,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000182 int32_t(const uint32_t SSRC,
183 const char cName[RTCP_CNAME_SIZE]));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000184 MOCK_METHOD1(RemoveMixedCNAME,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000185 int32_t(const uint32_t SSRC));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000186 MOCK_CONST_METHOD5(RTT,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000187 int32_t(const uint32_t remoteSSRC, uint16_t* RTT, uint16_t* avgRTT, uint16_t* minRTT, uint16_t* maxRTT));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000188 MOCK_METHOD1(ResetRTT,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000189 int32_t(const uint32_t remoteSSRC));
mflodman@webrtc.org63187902012-11-26 12:40:15 +0000190 MOCK_METHOD1(SetRtt, void(uint32_t rtt));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000191 MOCK_METHOD1(SendRTCP,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000192 int32_t(uint32_t rtcpPacketType));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000193 MOCK_METHOD1(SendRTCPReferencePictureSelection,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000194 int32_t(const uint64_t pictureID));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000195 MOCK_METHOD1(SendRTCPSliceLossIndication,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000196 int32_t(const uint8_t pictureID));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000197 MOCK_METHOD0(ResetStatisticsRTP,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000198 int32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000199 MOCK_CONST_METHOD5(StatisticsRTP,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000200 int32_t(uint8_t *fraction_lost, uint32_t *cum_lost, uint32_t *ext_max, uint32_t *jitter, uint32_t *max_jitter));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000201 MOCK_METHOD0(ResetReceiveDataCountersRTP,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000202 int32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000203 MOCK_METHOD0(ResetSendDataCountersRTP,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000204 int32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000205 MOCK_CONST_METHOD4(DataCountersRTP,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000206 int32_t(uint32_t *bytesSent, uint32_t *packetsSent, uint32_t *bytesReceived, uint32_t *packetsReceived));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000207 MOCK_METHOD1(RemoteRTCPStat,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000208 int32_t(RTCPSenderInfo* senderInfo));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000209 MOCK_CONST_METHOD1(RemoteRTCPStat,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000210 int32_t(std::vector<RTCPReportBlock>* receiveBlocks));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000211 MOCK_METHOD2(AddRTCPReportBlock,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000212 int32_t(const uint32_t SSRC, const RTCPReportBlock* receiveBlock));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000213 MOCK_METHOD1(RemoveRTCPReportBlock,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000214 int32_t(const uint32_t SSRC));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000215 MOCK_METHOD4(SetRTCPApplicationSpecificData,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000216 int32_t(const uint8_t subType, const uint32_t name, const uint8_t* data, const uint16_t length));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000217 MOCK_METHOD1(SetRTCPVoIPMetrics,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000218 int32_t(const RTCPVoIPMetric* VoIPMetric));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000219 MOCK_CONST_METHOD0(REMB,
220 bool());
221 MOCK_METHOD1(SetREMBStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000222 int32_t(const bool enable));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000223 MOCK_METHOD3(SetREMBData,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000224 int32_t(const uint32_t bitrate, const uint8_t numberOfSSRC, const uint32_t* SSRC));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000225 MOCK_METHOD1(SetRemoteBitrateObserver,
226 bool(RemoteBitrateObserver*));
227 MOCK_CONST_METHOD0(IJ,
228 bool());
229 MOCK_METHOD1(SetIJStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000230 int32_t(const bool));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000231 MOCK_CONST_METHOD0(TMMBR,
232 bool());
233 MOCK_METHOD1(SetTMMBRStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000234 int32_t(const bool enable));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000235 MOCK_METHOD1(OnBandwidthEstimateUpdate,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000236 void(uint16_t bandWidthKbit));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000237 MOCK_CONST_METHOD0(NACK,
238 NACKMethod());
stefan@webrtc.orga7761c72013-02-01 15:09:57 +0000239 MOCK_METHOD2(SetNACKStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000240 int32_t(const NACKMethod method, int oldestSequenceNumberToNack));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000241 MOCK_CONST_METHOD0(SelectiveRetransmissions,
242 int());
243 MOCK_METHOD1(SetSelectiveRetransmissions,
244 int(uint8_t settings));
245 MOCK_METHOD2(SendNACK,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000246 int32_t(const uint16_t* nackList, const uint16_t size));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000247 MOCK_METHOD2(SetStorePacketsStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000248 int32_t(const bool enable, const uint16_t numberToStore));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000249 MOCK_METHOD1(RegisterAudioCallback,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000250 int32_t(RtpAudioFeedback* messagesCallback));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000251 MOCK_METHOD1(SetAudioPacketSize,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000252 int32_t(const uint16_t packetSizeSamples));
turaj@webrtc.orgd4caede2013-03-12 22:27:27 +0000253 MOCK_METHOD1(SetTelephoneEventForwardToDecoder, int(bool forwardToDecoder));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000254 MOCK_CONST_METHOD0(TelephoneEventForwardToDecoder,
255 bool());
256 MOCK_CONST_METHOD1(SendTelephoneEventActive,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000257 bool(int8_t& telephoneEvent));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000258 MOCK_METHOD3(SendTelephoneEventOutband,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000259 int32_t(const uint8_t key, const uint16_t time_ms, const uint8_t level));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000260 MOCK_METHOD1(SetSendREDPayloadType,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000261 int32_t(const int8_t payloadType));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000262 MOCK_CONST_METHOD1(SendREDPayloadType,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000263 int32_t(int8_t& payloadType));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000264 MOCK_METHOD2(SetRTPAudioLevelIndicationStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000265 int32_t(const bool enable, const uint8_t ID));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000266 MOCK_CONST_METHOD2(GetRTPAudioLevelIndicationStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000267 int32_t(bool& enable, uint8_t& ID));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000268 MOCK_METHOD1(SetAudioLevel,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000269 int32_t(const uint8_t level_dBov));
stefan@webrtc.org41e36772013-04-09 14:56:29 +0000270 MOCK_METHOD1(SetCameraDelay,
271 int32_t(const int32_t delayMS));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000272 MOCK_METHOD1(SetTargetSendBitrate,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000273 void(const uint32_t bitrate));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000274 MOCK_METHOD3(SetGenericFECStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000275 int32_t(const bool enable, const uint8_t payloadTypeRED, const uint8_t payloadTypeFEC));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000276 MOCK_METHOD3(GenericFECStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000277 int32_t(bool& enable, uint8_t& payloadTypeRED, uint8_t& payloadTypeFEC));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000278 MOCK_METHOD2(SetFecParameters,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000279 int32_t(const FecProtectionParams* delta_params,
280 const FecProtectionParams* key_params));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000281 MOCK_METHOD1(SetKeyFrameRequestMethod,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000282 int32_t(const KeyFrameRequestMethod method));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000283 MOCK_METHOD0(RequestKeyFrame,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000284 int32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000285 MOCK_CONST_METHOD3(Version,
286 int32_t(char* version, uint32_t& remaining_buffer_in_bytes, uint32_t& position));
287 MOCK_METHOD0(TimeUntilNextProcess,
288 int32_t());
289 MOCK_METHOD0(Process,
290 int32_t());
291
292 // Members.
293 unsigned int remote_ssrc_;
294};
295
296} // namespace webrtc
297
298#endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_