1 // Copyright 2013 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_RTCP_MOCK_RTCP_RECEIVER_FEEDBACK_H_
6 #define MEDIA_CAST_RTCP_MOCK_RTCP_RECEIVER_FEEDBACK_H_
10 #include "media/cast/rtcp/rtcp_defines.h"
11 #include "media/cast/rtcp/rtcp_receiver.h"
12 #include "media/cast/transport/cast_transport_defines.h"
13 #include "testing/gmock/include/gmock/gmock.h"
18 class MockRtcpReceiverFeedback
: public RtcpReceiverFeedback
{
20 MockRtcpReceiverFeedback();
21 virtual ~MockRtcpReceiverFeedback();
23 MOCK_METHOD1(OnReceivedSenderReport
,
24 void(const transport::RtcpSenderInfo
& remote_sender_info
));
26 MOCK_METHOD1(OnReceiverReferenceTimeReport
,
27 void(const RtcpReceiverReferenceTimeReport
& remote_time_report
));
29 MOCK_METHOD0(OnReceivedSendReportRequest
, void());
31 MOCK_METHOD1(OnReceivedReceiverLog
,
32 void(const RtcpReceiverLogMessage
& receiver_log
));
33 MOCK_METHOD1(OnReceivedSenderLog
,
34 void(const transport::RtcpSenderLogMessage
& sender_log
));
37 class MockRtcpRttFeedback
: public RtcpRttFeedback
{
39 MockRtcpRttFeedback();
40 virtual ~MockRtcpRttFeedback();
42 MOCK_METHOD3(OnReceivedDelaySinceLastReport
,
43 void(uint32 media_ssrc
,
45 uint32 delay_since_last_report
));
51 #endif // MEDIA_CAST_RTCP_MOCK_RTCP_RECEIVER_FEEDBACK_H_