1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MEDIA_CAST_RTP_INCLUDE_MOCK_RTP_FEEDBACK_H_
6 #define MEDIA_CAST_RTP_INCLUDE_MOCK_RTP_FEEDBACK_H_
8 #include "media/cast/net/rtp/rtp_parser/rtp_feedback.h"
9 #include "testing/gmock/include/gmock/gmock.h"
14 class MockRtpFeedback
: public RtpFeedback
{
16 MOCK_METHOD4(OnInitializeDecoder
,
17 int32(const int8 payloadType
,
22 MOCK_METHOD1(OnPacketTimeout
, void(const int32 id
));
23 MOCK_METHOD2(OnReceivedPacket
,
24 void(const int32 id
, const RtpRtcpPacketField packet_type
));
25 MOCK_METHOD2(OnPeriodicDeadOrAlive
,
26 void(const int32 id
, const RTPAliveType alive
));
27 MOCK_METHOD2(OnIncomingSSRCChanged
, void(const int32 id
, const uint32 ssrc
));
28 MOCK_METHOD3(OnIncomingCSRCChanged
,
29 void(const int32 id
, const uint32 csrc
, const bool added
));
35 #endif // MEDIA_CAST_RTP_INCLUDE_MOCK_RTP_FEEDBACK_H_