blob: 76cc31680ce516a23774f01ebf7e7ab3438733a7 [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_METHOD2(RegisterReceiveRtpHeaderExtension,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000061 int32_t(const RTPExtensionType type, const uint8_t id));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000062 MOCK_METHOD1(DeregisterReceiveRtpHeaderExtension,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000063 int32_t(const RTPExtensionType type));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000064 MOCK_CONST_METHOD0(RemoteTimestamp,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000065 uint32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000066 MOCK_CONST_METHOD0(LocalTimeOfRemoteTimeStamp,
67 int64_t());
68 MOCK_CONST_METHOD1(EstimatedRemoteTimeStamp,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000069 int32_t(uint32_t& timestamp));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000070 MOCK_CONST_METHOD0(RemoteSSRC,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000071 uint32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000072 MOCK_CONST_METHOD1(RemoteCSRCs,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000073 int32_t(uint32_t arrOfCSRC[kRtpCsrcSize]));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000074 MOCK_CONST_METHOD1(SSRCFilter,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000075 int32_t(uint32_t& allowedSSRC));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000076 MOCK_METHOD2(SetSSRCFilter,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000077 int32_t(const bool enable, const uint32_t allowedSSRC));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000078 MOCK_METHOD2(SetRTXReceiveStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000079 int32_t(const bool enable, const uint32_t SSRC));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000080 MOCK_CONST_METHOD2(RTXReceiveStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000081 int32_t(bool* enable, uint32_t* SSRC));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000082 MOCK_METHOD2(IncomingPacket,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000083 int32_t(const uint8_t* incomingPacket, const uint16_t packetLength));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000084 MOCK_METHOD4(IncomingAudioNTP,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000085 int32_t(const uint32_t audioReceivedNTPsecs,
86 const uint32_t audioReceivedNTPfrac,
87 const uint32_t audioRTCPArrivalTimeSecs,
88 const uint32_t audioRTCPArrivalTimeFrac));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000089 MOCK_METHOD0(InitSender,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000090 int32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000091 MOCK_METHOD1(RegisterSendTransport,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000092 int32_t(Transport* outgoingTransport));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000093 MOCK_METHOD1(SetMaxTransferUnit,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000094 int32_t(const uint16_t size));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000095 MOCK_METHOD3(SetTransportOverhead,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000096 int32_t(const bool TCP, const bool IPV6,
97 const uint8_t authenticationOverhead));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000098 MOCK_CONST_METHOD0(MaxPayloadLength,
pbos@webrtc.org771774f2013-04-08 11:08:41 +000099 uint16_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000100 MOCK_CONST_METHOD0(MaxDataPayloadLength,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000101 uint16_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000102 MOCK_METHOD1(RegisterSendPayload,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000103 int32_t(const CodecInst& voiceCodec));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000104 MOCK_METHOD1(RegisterSendPayload,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000105 int32_t(const VideoCodec& videoCodec));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000106 MOCK_METHOD1(DeRegisterSendPayload,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000107 int32_t(const int8_t payloadType));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000108 MOCK_METHOD2(RegisterSendRtpHeaderExtension,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000109 int32_t(const RTPExtensionType type, const uint8_t id));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000110 MOCK_METHOD1(DeregisterSendRtpHeaderExtension,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000111 int32_t(const RTPExtensionType type));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000112 MOCK_CONST_METHOD0(StartTimestamp,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000113 uint32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000114 MOCK_METHOD1(SetStartTimestamp,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000115 int32_t(const uint32_t timestamp));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000116 MOCK_CONST_METHOD0(SequenceNumber,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000117 uint16_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000118 MOCK_METHOD1(SetSequenceNumber,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000119 int32_t(const uint16_t seq));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000120 MOCK_CONST_METHOD0(SSRC,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000121 uint32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000122 MOCK_METHOD1(SetSSRC,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000123 int32_t(const uint32_t ssrc));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000124 MOCK_CONST_METHOD1(CSRCs,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000125 int32_t(uint32_t arrOfCSRC[kRtpCsrcSize]));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000126 MOCK_METHOD2(SetCSRCs,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000127 int32_t(const uint32_t arrOfCSRC[kRtpCsrcSize], const uint8_t arrLength));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000128 MOCK_METHOD1(SetCSRCStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000129 int32_t(const bool include));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000130 MOCK_METHOD3(SetRTXSendStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000131 int32_t(const RtxMode mode, const bool setSSRC,
132 const uint32_t SSRC));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000133 MOCK_CONST_METHOD2(RTXSendStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000134 int32_t(RtxMode* mode, uint32_t* SSRC));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000135 MOCK_METHOD1(SetSendingStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000136 int32_t(const bool sending));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000137 MOCK_CONST_METHOD0(Sending,
138 bool());
139 MOCK_METHOD1(SetSendingMediaStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000140 int32_t(const bool sending));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000141 MOCK_CONST_METHOD0(SendingMedia,
142 bool());
143 MOCK_CONST_METHOD4(BitrateSent,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000144 void(uint32_t* totalRate, uint32_t* videoRate, uint32_t* fecRate, uint32_t* nackRate));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000145 MOCK_CONST_METHOD1(EstimatedReceiveBandwidth,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000146 int(uint32_t* available_bandwidth));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000147 MOCK_METHOD8(SendOutgoingData,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000148 int32_t(const FrameType frameType,
149 const int8_t payloadType,
150 const uint32_t timeStamp,
151 int64_t capture_time_ms,
152 const uint8_t* payloadData,
153 const uint32_t payloadSize,
154 const RTPFragmentationHeader* fragmentation,
155 const RTPVideoHeader* rtpVideoHdr));
pwestin@webrtc.org32f05a72012-11-13 21:12:39 +0000156 MOCK_METHOD3(TimeToSendPacket,
157 void(uint32_t ssrc, uint16_t sequence_number, int64_t capture_time_ms));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000158 MOCK_METHOD3(RegisterRtcpObservers,
159 void(RtcpIntraFrameObserver* intraFrameCallback,
160 RtcpBandwidthObserver* bandwidthCallback,
161 RtcpFeedback* callback));
162 MOCK_CONST_METHOD0(RTCP,
163 RTCPMethod());
164 MOCK_METHOD1(SetRTCPStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000165 int32_t(const RTCPMethod method));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000166 MOCK_METHOD1(SetCNAME,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000167 int32_t(const char cName[RTCP_CNAME_SIZE]));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000168 MOCK_METHOD1(CNAME,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000169 int32_t(char cName[RTCP_CNAME_SIZE]));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000170 MOCK_CONST_METHOD2(RemoteCNAME,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000171 int32_t(const uint32_t remoteSSRC,
172 char cName[RTCP_CNAME_SIZE]));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000173 MOCK_CONST_METHOD5(RemoteNTP,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000174 int32_t(uint32_t *ReceivedNTPsecs,
175 uint32_t *ReceivedNTPfrac,
176 uint32_t *RTCPArrivalTimeSecs,
177 uint32_t *RTCPArrivalTimeFrac,
178 uint32_t *rtcp_timestamp));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000179 MOCK_METHOD2(AddMixedCNAME,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000180 int32_t(const uint32_t SSRC,
181 const char cName[RTCP_CNAME_SIZE]));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000182 MOCK_METHOD1(RemoveMixedCNAME,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000183 int32_t(const uint32_t SSRC));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000184 MOCK_CONST_METHOD5(RTT,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000185 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 +0000186 MOCK_METHOD1(ResetRTT,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000187 int32_t(const uint32_t remoteSSRC));
mflodman@webrtc.org63187902012-11-26 12:40:15 +0000188 MOCK_METHOD1(SetRtt, void(uint32_t rtt));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000189 MOCK_METHOD1(SendRTCP,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000190 int32_t(uint32_t rtcpPacketType));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000191 MOCK_METHOD1(SendRTCPReferencePictureSelection,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000192 int32_t(const uint64_t pictureID));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000193 MOCK_METHOD1(SendRTCPSliceLossIndication,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000194 int32_t(const uint8_t pictureID));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000195 MOCK_METHOD0(ResetStatisticsRTP,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000196 int32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000197 MOCK_CONST_METHOD5(StatisticsRTP,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000198 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 +0000199 MOCK_METHOD0(ResetReceiveDataCountersRTP,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000200 int32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000201 MOCK_METHOD0(ResetSendDataCountersRTP,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000202 int32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000203 MOCK_CONST_METHOD4(DataCountersRTP,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000204 int32_t(uint32_t *bytesSent, uint32_t *packetsSent, uint32_t *bytesReceived, uint32_t *packetsReceived));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000205 MOCK_METHOD1(RemoteRTCPStat,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000206 int32_t(RTCPSenderInfo* senderInfo));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000207 MOCK_CONST_METHOD1(RemoteRTCPStat,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000208 int32_t(std::vector<RTCPReportBlock>* receiveBlocks));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000209 MOCK_METHOD2(AddRTCPReportBlock,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000210 int32_t(const uint32_t SSRC, const RTCPReportBlock* receiveBlock));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000211 MOCK_METHOD1(RemoveRTCPReportBlock,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000212 int32_t(const uint32_t SSRC));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000213 MOCK_METHOD4(SetRTCPApplicationSpecificData,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000214 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 +0000215 MOCK_METHOD1(SetRTCPVoIPMetrics,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000216 int32_t(const RTCPVoIPMetric* VoIPMetric));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000217 MOCK_CONST_METHOD0(REMB,
218 bool());
219 MOCK_METHOD1(SetREMBStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000220 int32_t(const bool enable));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000221 MOCK_METHOD3(SetREMBData,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000222 int32_t(const uint32_t bitrate, const uint8_t numberOfSSRC, const uint32_t* SSRC));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000223 MOCK_METHOD1(SetRemoteBitrateObserver,
224 bool(RemoteBitrateObserver*));
225 MOCK_CONST_METHOD0(IJ,
226 bool());
227 MOCK_METHOD1(SetIJStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000228 int32_t(const bool));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000229 MOCK_CONST_METHOD0(TMMBR,
230 bool());
231 MOCK_METHOD1(SetTMMBRStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000232 int32_t(const bool enable));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000233 MOCK_METHOD1(OnBandwidthEstimateUpdate,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000234 void(uint16_t bandWidthKbit));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000235 MOCK_CONST_METHOD0(NACK,
236 NACKMethod());
stefan@webrtc.orga7761c72013-02-01 15:09:57 +0000237 MOCK_METHOD2(SetNACKStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000238 int32_t(const NACKMethod method, int oldestSequenceNumberToNack));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000239 MOCK_CONST_METHOD0(SelectiveRetransmissions,
240 int());
241 MOCK_METHOD1(SetSelectiveRetransmissions,
242 int(uint8_t settings));
243 MOCK_METHOD2(SendNACK,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000244 int32_t(const uint16_t* nackList, const uint16_t size));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000245 MOCK_METHOD2(SetStorePacketsStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000246 int32_t(const bool enable, const uint16_t numberToStore));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000247 MOCK_METHOD1(RegisterAudioCallback,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000248 int32_t(RtpAudioFeedback* messagesCallback));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000249 MOCK_METHOD1(SetAudioPacketSize,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000250 int32_t(const uint16_t packetSizeSamples));
turaj@webrtc.orgd4caede2013-03-12 22:27:27 +0000251 MOCK_METHOD1(SetTelephoneEventForwardToDecoder, int(bool forwardToDecoder));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000252 MOCK_CONST_METHOD0(TelephoneEventForwardToDecoder,
253 bool());
254 MOCK_CONST_METHOD1(SendTelephoneEventActive,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000255 bool(int8_t& telephoneEvent));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000256 MOCK_METHOD3(SendTelephoneEventOutband,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000257 int32_t(const uint8_t key, const uint16_t time_ms, const uint8_t level));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000258 MOCK_METHOD1(SetSendREDPayloadType,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000259 int32_t(const int8_t payloadType));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000260 MOCK_CONST_METHOD1(SendREDPayloadType,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000261 int32_t(int8_t& payloadType));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000262 MOCK_METHOD2(SetRTPAudioLevelIndicationStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000263 int32_t(const bool enable, const uint8_t ID));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000264 MOCK_CONST_METHOD2(GetRTPAudioLevelIndicationStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000265 int32_t(bool& enable, uint8_t& ID));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000266 MOCK_METHOD1(SetAudioLevel,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000267 int32_t(const uint8_t level_dBov));
stefan@webrtc.org41e36772013-04-09 14:56:29 +0000268 MOCK_METHOD1(SetCameraDelay,
269 int32_t(const int32_t delayMS));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000270 MOCK_METHOD1(SetTargetSendBitrate,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000271 void(const uint32_t bitrate));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000272 MOCK_METHOD3(SetGenericFECStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000273 int32_t(const bool enable, const uint8_t payloadTypeRED, const uint8_t payloadTypeFEC));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000274 MOCK_METHOD3(GenericFECStatus,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000275 int32_t(bool& enable, uint8_t& payloadTypeRED, uint8_t& payloadTypeFEC));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000276 MOCK_METHOD2(SetFecParameters,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000277 int32_t(const FecProtectionParams* delta_params,
278 const FecProtectionParams* key_params));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000279 MOCK_METHOD1(SetKeyFrameRequestMethod,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000280 int32_t(const KeyFrameRequestMethod method));
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000281 MOCK_METHOD0(RequestKeyFrame,
pbos@webrtc.org771774f2013-04-08 11:08:41 +0000282 int32_t());
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +0000283 MOCK_CONST_METHOD3(Version,
284 int32_t(char* version, uint32_t& remaining_buffer_in_bytes, uint32_t& position));
285 MOCK_METHOD0(TimeUntilNextProcess,
286 int32_t());
287 MOCK_METHOD0(Process,
288 int32_t());
289
290 // Members.
291 unsigned int remote_ssrc_;
292};
293
294} // namespace webrtc
295
296#endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_