andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
pbos@webrtc.org | 6c0fab5 | 2013-05-29 14:27:38 +0000 | [diff] [blame] | 14 | #include "testing/gmock/include/gmock/gmock.h" |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 15 | |
pbos@webrtc.org | 6c0fab5 | 2013-05-29 14:27:38 +0000 | [diff] [blame] | 16 | #include "webrtc/modules/interface/module.h" |
| 17 | #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h" |
| 18 | #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h" |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 19 | |
| 20 | namespace webrtc { |
| 21 | |
| 22 | class MockRtpRtcp : public RtpRtcp { |
| 23 | public: |
| 24 | MOCK_METHOD1(ChangeUniqueId, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 25 | int32_t(const int32_t id)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 26 | MOCK_METHOD1(RegisterDefaultModule, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 27 | int32_t(RtpRtcp* module)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 28 | MOCK_METHOD0(DeRegisterDefaultModule, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 29 | int32_t()); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 30 | MOCK_METHOD0(DefaultModuleRegistered, |
| 31 | bool()); |
| 32 | MOCK_METHOD0(NumberChildModules, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 33 | uint32_t()); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 34 | MOCK_METHOD1(RegisterSyncModule, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 35 | int32_t(RtpRtcp* module)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 36 | MOCK_METHOD0(DeRegisterSyncModule, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 37 | int32_t()); |
stefan@webrtc.org | 028ec72 | 2013-05-29 12:12:51 +0000 | [diff] [blame] | 38 | MOCK_METHOD2(IncomingRtcpPacket, |
| 39 | int32_t(const uint8_t* incomingPacket, uint16_t packetLength)); |
wu@webrtc.org | 55055d2 | 2013-08-15 23:38:54 +0000 | [diff] [blame] | 40 | MOCK_METHOD1(SetRemoteSSRC, void(const uint32_t ssrc)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 41 | MOCK_METHOD4(IncomingAudioNTP, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 42 | int32_t(const uint32_t audioReceivedNTPsecs, |
| 43 | const uint32_t audioReceivedNTPfrac, |
| 44 | const uint32_t audioRTCPArrivalTimeSecs, |
| 45 | const uint32_t audioRTCPArrivalTimeFrac)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 46 | MOCK_METHOD0(InitSender, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 47 | int32_t()); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 48 | MOCK_METHOD1(RegisterSendTransport, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 49 | int32_t(Transport* outgoingTransport)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 50 | MOCK_METHOD1(SetMaxTransferUnit, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 51 | int32_t(const uint16_t size)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 52 | MOCK_METHOD3(SetTransportOverhead, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 53 | int32_t(const bool TCP, const bool IPV6, |
| 54 | const uint8_t authenticationOverhead)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 55 | MOCK_CONST_METHOD0(MaxPayloadLength, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 56 | uint16_t()); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 57 | MOCK_CONST_METHOD0(MaxDataPayloadLength, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 58 | uint16_t()); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 59 | MOCK_METHOD1(RegisterSendPayload, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 60 | int32_t(const CodecInst& voiceCodec)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 61 | MOCK_METHOD1(RegisterSendPayload, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 62 | int32_t(const VideoCodec& videoCodec)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 63 | MOCK_METHOD1(DeRegisterSendPayload, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 64 | int32_t(const int8_t payloadType)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 65 | MOCK_METHOD2(RegisterSendRtpHeaderExtension, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 66 | int32_t(const RTPExtensionType type, const uint8_t id)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 67 | MOCK_METHOD1(DeregisterSendRtpHeaderExtension, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 68 | int32_t(const RTPExtensionType type)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 69 | MOCK_CONST_METHOD0(StartTimestamp, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 70 | uint32_t()); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 71 | MOCK_METHOD1(SetStartTimestamp, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 72 | int32_t(const uint32_t timestamp)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 73 | MOCK_CONST_METHOD0(SequenceNumber, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 74 | uint16_t()); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 75 | MOCK_METHOD1(SetSequenceNumber, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 76 | int32_t(const uint16_t seq)); |
pbos@webrtc.org | 49e6306 | 2014-07-07 13:06:48 +0000 | [diff] [blame] | 77 | MOCK_METHOD2(SetRtpStateForSsrc, |
| 78 | void(uint32_t ssrc, const RtpState& rtp_state)); |
| 79 | MOCK_METHOD2(GetRtpStateForSsrc, bool(uint32_t ssrc, RtpState* rtp_state)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 80 | MOCK_CONST_METHOD0(SSRC, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 81 | uint32_t()); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 82 | MOCK_METHOD1(SetSSRC, |
stefan@webrtc.org | 77cf8de | 2014-06-05 08:25:29 +0000 | [diff] [blame] | 83 | void(const uint32_t ssrc)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 84 | MOCK_CONST_METHOD1(CSRCs, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 85 | int32_t(uint32_t arrOfCSRC[kRtpCsrcSize])); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 86 | MOCK_METHOD2(SetCSRCs, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 87 | int32_t(const uint32_t arrOfCSRC[kRtpCsrcSize], const uint8_t arrLength)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 88 | MOCK_METHOD1(SetCSRCStatus, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 89 | int32_t(const bool include)); |
stefan@webrtc.org | 77cf8de | 2014-06-05 08:25:29 +0000 | [diff] [blame] | 90 | MOCK_METHOD1(SetRTXSendStatus, |
| 91 | void(int modes)); |
mflodman@webrtc.org | 06077c9 | 2013-04-12 14:55:46 +0000 | [diff] [blame] | 92 | MOCK_CONST_METHOD3(RTXSendStatus, |
stefan@webrtc.org | 77cf8de | 2014-06-05 08:25:29 +0000 | [diff] [blame] | 93 | void(int* modes, uint32_t* ssrc, int* payload_type)); |
| 94 | MOCK_METHOD1(SetRtxSsrc, |
| 95 | void(uint32_t)); |
mflodman@webrtc.org | 06077c9 | 2013-04-12 14:55:46 +0000 | [diff] [blame] | 96 | MOCK_METHOD1(SetRtxSendPayloadType, |
| 97 | void(int)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 98 | MOCK_METHOD1(SetSendingStatus, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 99 | int32_t(const bool sending)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 100 | MOCK_CONST_METHOD0(Sending, |
| 101 | bool()); |
| 102 | MOCK_METHOD1(SetSendingMediaStatus, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 103 | int32_t(const bool sending)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 104 | MOCK_CONST_METHOD0(SendingMedia, |
| 105 | bool()); |
| 106 | MOCK_CONST_METHOD4(BitrateSent, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 107 | void(uint32_t* totalRate, uint32_t* videoRate, uint32_t* fecRate, uint32_t* nackRate)); |
sprang@webrtc.org | 0e4512b | 2013-12-13 09:46:59 +0000 | [diff] [blame] | 108 | MOCK_METHOD1(RegisterVideoBitrateObserver, void(BitrateStatisticsObserver*)); |
| 109 | MOCK_CONST_METHOD0(GetVideoBitrateObserver, BitrateStatisticsObserver*(void)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 110 | MOCK_CONST_METHOD1(EstimatedReceiveBandwidth, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 111 | int(uint32_t* available_bandwidth)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 112 | MOCK_METHOD8(SendOutgoingData, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 113 | int32_t(const FrameType frameType, |
| 114 | const int8_t payloadType, |
| 115 | const uint32_t timeStamp, |
| 116 | int64_t capture_time_ms, |
| 117 | const uint8_t* payloadData, |
| 118 | const uint32_t payloadSize, |
| 119 | const RTPFragmentationHeader* fragmentation, |
| 120 | const RTPVideoHeader* rtpVideoHdr)); |
stefan@webrtc.org | 04281a4 | 2013-11-13 15:29:21 +0000 | [diff] [blame] | 121 | MOCK_METHOD4(TimeToSendPacket, |
| 122 | bool(uint32_t ssrc, uint16_t sequence_number, int64_t capture_time_ms, |
| 123 | bool retransmission)); |
stefan@webrtc.org | 39f2547 | 2013-06-17 12:53:37 +0000 | [diff] [blame] | 124 | MOCK_METHOD1(TimeToSendPadding, |
| 125 | int(int bytes)); |
stefan@webrtc.org | 8db148e | 2013-12-05 14:05:07 +0000 | [diff] [blame] | 126 | MOCK_CONST_METHOD2(GetSendSideDelay, |
| 127 | bool(int* avg_send_delay_ms, int* max_send_delay_ms)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 128 | MOCK_METHOD3(RegisterRtcpObservers, |
| 129 | void(RtcpIntraFrameObserver* intraFrameCallback, |
| 130 | RtcpBandwidthObserver* bandwidthCallback, |
| 131 | RtcpFeedback* callback)); |
| 132 | MOCK_CONST_METHOD0(RTCP, |
| 133 | RTCPMethod()); |
| 134 | MOCK_METHOD1(SetRTCPStatus, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 135 | int32_t(const RTCPMethod method)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 136 | MOCK_METHOD1(SetCNAME, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 137 | int32_t(const char cName[RTCP_CNAME_SIZE])); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 138 | MOCK_METHOD1(CNAME, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 139 | int32_t(char cName[RTCP_CNAME_SIZE])); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 140 | MOCK_CONST_METHOD2(RemoteCNAME, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 141 | int32_t(const uint32_t remoteSSRC, |
| 142 | char cName[RTCP_CNAME_SIZE])); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 143 | MOCK_CONST_METHOD5(RemoteNTP, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 144 | int32_t(uint32_t *ReceivedNTPsecs, |
| 145 | uint32_t *ReceivedNTPfrac, |
| 146 | uint32_t *RTCPArrivalTimeSecs, |
| 147 | uint32_t *RTCPArrivalTimeFrac, |
| 148 | uint32_t *rtcp_timestamp)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 149 | MOCK_METHOD2(AddMixedCNAME, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 150 | int32_t(const uint32_t SSRC, |
| 151 | const char cName[RTCP_CNAME_SIZE])); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 152 | MOCK_METHOD1(RemoveMixedCNAME, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 153 | int32_t(const uint32_t SSRC)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 154 | MOCK_CONST_METHOD5(RTT, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 155 | int32_t(const uint32_t remoteSSRC, uint16_t* RTT, uint16_t* avgRTT, uint16_t* minRTT, uint16_t* maxRTT)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 156 | MOCK_METHOD1(ResetRTT, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 157 | int32_t(const uint32_t remoteSSRC)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 158 | MOCK_METHOD1(SendRTCP, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 159 | int32_t(uint32_t rtcpPacketType)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 160 | MOCK_METHOD1(SendRTCPReferencePictureSelection, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 161 | int32_t(const uint64_t pictureID)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 162 | MOCK_METHOD1(SendRTCPSliceLossIndication, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 163 | int32_t(const uint8_t pictureID)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 164 | MOCK_METHOD0(ResetSendDataCountersRTP, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 165 | int32_t()); |
wu@webrtc.org | 55055d2 | 2013-08-15 23:38:54 +0000 | [diff] [blame] | 166 | MOCK_CONST_METHOD2(DataCountersRTP, |
| 167 | int32_t(uint32_t *bytesSent, uint32_t *packetsSent)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 168 | MOCK_METHOD1(RemoteRTCPStat, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 169 | int32_t(RTCPSenderInfo* senderInfo)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 170 | MOCK_CONST_METHOD1(RemoteRTCPStat, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 171 | int32_t(std::vector<RTCPReportBlock>* receiveBlocks)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 172 | MOCK_METHOD2(AddRTCPReportBlock, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 173 | int32_t(const uint32_t SSRC, const RTCPReportBlock* receiveBlock)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 174 | MOCK_METHOD1(RemoveRTCPReportBlock, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 175 | int32_t(const uint32_t SSRC)); |
asapersson@webrtc.org | 2fa9f7e | 2014-02-19 11:59:02 +0000 | [diff] [blame] | 176 | MOCK_CONST_METHOD2(GetRtcpPacketTypeCounters, |
| 177 | void(RtcpPacketTypeCounter*, RtcpPacketTypeCounter*)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 178 | MOCK_METHOD4(SetRTCPApplicationSpecificData, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 179 | int32_t(const uint8_t subType, const uint32_t name, const uint8_t* data, const uint16_t length)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 180 | MOCK_METHOD1(SetRTCPVoIPMetrics, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 181 | int32_t(const RTCPVoIPMetric* VoIPMetric)); |
asapersson@webrtc.org | f1262f3 | 2013-10-31 12:14:34 +0000 | [diff] [blame] | 182 | MOCK_METHOD1(SetRtcpXrRrtrStatus, |
| 183 | void(bool enable)); |
asapersson@webrtc.org | 3fe2e7f | 2013-11-21 08:57:04 +0000 | [diff] [blame] | 184 | MOCK_CONST_METHOD0(RtcpXrRrtrStatus, |
| 185 | bool()); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 186 | MOCK_CONST_METHOD0(REMB, |
| 187 | bool()); |
| 188 | MOCK_METHOD1(SetREMBStatus, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 189 | int32_t(const bool enable)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 190 | MOCK_METHOD3(SetREMBData, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 191 | int32_t(const uint32_t bitrate, const uint8_t numberOfSSRC, const uint32_t* SSRC)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 192 | MOCK_CONST_METHOD0(IJ, |
| 193 | bool()); |
| 194 | MOCK_METHOD1(SetIJStatus, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 195 | int32_t(const bool)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 196 | MOCK_CONST_METHOD0(TMMBR, |
| 197 | bool()); |
| 198 | MOCK_METHOD1(SetTMMBRStatus, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 199 | int32_t(const bool enable)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 200 | MOCK_METHOD1(OnBandwidthEstimateUpdate, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 201 | void(uint16_t bandWidthKbit)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 202 | MOCK_CONST_METHOD0(NACK, |
| 203 | NACKMethod()); |
stefan@webrtc.org | a7761c7 | 2013-02-01 15:09:57 +0000 | [diff] [blame] | 204 | MOCK_METHOD2(SetNACKStatus, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 205 | int32_t(const NACKMethod method, int oldestSequenceNumberToNack)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 206 | MOCK_CONST_METHOD0(SelectiveRetransmissions, |
| 207 | int()); |
| 208 | MOCK_METHOD1(SetSelectiveRetransmissions, |
| 209 | int(uint8_t settings)); |
| 210 | MOCK_METHOD2(SendNACK, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 211 | int32_t(const uint16_t* nackList, const uint16_t size)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 212 | MOCK_METHOD2(SetStorePacketsStatus, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 213 | int32_t(const bool enable, const uint16_t numberToStore)); |
wu@webrtc.org | 55055d2 | 2013-08-15 23:38:54 +0000 | [diff] [blame] | 214 | MOCK_CONST_METHOD0(StorePackets, bool()); |
sprang@webrtc.org | 8911937 | 2013-12-05 09:48:44 +0000 | [diff] [blame] | 215 | MOCK_METHOD1(RegisterSendChannelRtcpStatisticsCallback, |
| 216 | void(RtcpStatisticsCallback*)); |
| 217 | MOCK_METHOD0(GetSendChannelRtcpStatisticsCallback, |
| 218 | RtcpStatisticsCallback*()); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 219 | MOCK_METHOD1(RegisterAudioCallback, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 220 | int32_t(RtpAudioFeedback* messagesCallback)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 221 | MOCK_METHOD1(SetAudioPacketSize, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 222 | int32_t(const uint16_t packetSizeSamples)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 223 | MOCK_CONST_METHOD1(SendTelephoneEventActive, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 224 | bool(int8_t& telephoneEvent)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 225 | MOCK_METHOD3(SendTelephoneEventOutband, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 226 | int32_t(const uint8_t key, const uint16_t time_ms, const uint8_t level)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 227 | MOCK_METHOD1(SetSendREDPayloadType, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 228 | int32_t(const int8_t payloadType)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 229 | MOCK_CONST_METHOD1(SendREDPayloadType, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 230 | int32_t(int8_t& payloadType)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 231 | MOCK_METHOD2(SetRTPAudioLevelIndicationStatus, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 232 | int32_t(const bool enable, const uint8_t ID)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 233 | MOCK_CONST_METHOD2(GetRTPAudioLevelIndicationStatus, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 234 | int32_t(bool& enable, uint8_t& ID)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 235 | MOCK_METHOD1(SetAudioLevel, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 236 | int32_t(const uint8_t level_dBov)); |
stefan@webrtc.org | 41e3677 | 2013-04-09 14:56:29 +0000 | [diff] [blame] | 237 | MOCK_METHOD1(SetCameraDelay, |
| 238 | int32_t(const int32_t delayMS)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 239 | MOCK_METHOD1(SetTargetSendBitrate, |
stefan@webrtc.org | 5ee7139 | 2013-09-06 13:58:01 +0000 | [diff] [blame] | 240 | void(const std::vector<uint32_t>& stream_bitrates)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 241 | MOCK_METHOD3(SetGenericFECStatus, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 242 | int32_t(const bool enable, const uint8_t payloadTypeRED, const uint8_t payloadTypeFEC)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 243 | MOCK_METHOD3(GenericFECStatus, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 244 | int32_t(bool& enable, uint8_t& payloadTypeRED, uint8_t& payloadTypeFEC)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 245 | MOCK_METHOD2(SetFecParameters, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 246 | int32_t(const FecProtectionParams* delta_params, |
| 247 | const FecProtectionParams* key_params)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 248 | MOCK_METHOD1(SetKeyFrameRequestMethod, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 249 | int32_t(const KeyFrameRequestMethod method)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 250 | MOCK_METHOD0(RequestKeyFrame, |
pbos@webrtc.org | 771774f | 2013-04-08 11:08:41 +0000 | [diff] [blame] | 251 | int32_t()); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 252 | MOCK_CONST_METHOD3(Version, |
| 253 | int32_t(char* version, uint32_t& remaining_buffer_in_bytes, uint32_t& position)); |
| 254 | MOCK_METHOD0(TimeUntilNextProcess, |
| 255 | int32_t()); |
| 256 | MOCK_METHOD0(Process, |
| 257 | int32_t()); |
sprang@webrtc.org | 9435a17 | 2013-12-04 15:09:27 +0000 | [diff] [blame] | 258 | MOCK_METHOD1(RegisterSendFrameCountObserver, |
| 259 | void(FrameCountObserver*)); |
| 260 | MOCK_CONST_METHOD0(GetSendFrameCountObserver, |
| 261 | FrameCountObserver*(void)); |
sprang@webrtc.org | cf5c552 | 2013-12-05 14:29:02 +0000 | [diff] [blame] | 262 | MOCK_METHOD1(RegisterSendChannelRtpStatisticsCallback, |
| 263 | void(StreamDataCountersCallback*)); |
| 264 | MOCK_CONST_METHOD0(GetSendChannelRtpStatisticsCallback, |
| 265 | StreamDataCountersCallback*(void)); |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 266 | // Members. |
| 267 | unsigned int remote_ssrc_; |
| 268 | }; |
| 269 | |
| 270 | } // namespace webrtc |
| 271 | |
| 272 | #endif // WEBRTC_MODULES_RTP_RTCP_MOCKS_MOCK_RTP_RTCP_H_ |