• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 
5 #ifndef MEDIA_CAST_RTCP_MOCK_RTCP_RECEIVER_FEEDBACK_H_
6 #define MEDIA_CAST_RTCP_MOCK_RTCP_RECEIVER_FEEDBACK_H_
7 
8 #include <vector>
9 
10 #include "media/cast/rtcp/rtcp_receiver.h"
11 #include "testing/gmock/include/gmock/gmock.h"
12 
13 namespace media {
14 namespace cast {
15 
16 class MockRtcpReceiverFeedback : public RtcpReceiverFeedback {
17  public:
18   MockRtcpReceiverFeedback();
19   virtual ~MockRtcpReceiverFeedback();
20 
21   MOCK_METHOD1(OnReceivedSenderReport,
22                void(const RtcpSenderInfo& remote_sender_info));
23 
24   MOCK_METHOD1(OnReceiverReferenceTimeReport,
25                void(const RtcpReceiverReferenceTimeReport& remote_time_report));
26 
27   MOCK_METHOD0(OnReceivedSendReportRequest, void());
28 
29   MOCK_METHOD1(OnReceivedReceiverLog,
30                void(const RtcpReceiverLogMessage& receiver_log));
31   MOCK_METHOD1(OnReceivedSenderLog,
32                void(const RtcpSenderLogMessage& sender_log));
33 };
34 
35 class MockRtcpRttFeedback : public RtcpRttFeedback {
36  public:
37   MockRtcpRttFeedback();
38   virtual ~MockRtcpRttFeedback();
39 
40   MOCK_METHOD3(OnReceivedDelaySinceLastReport,
41                void(uint32 media_ssrc,
42                     uint32 last_report,
43                     uint32 delay_since_last_report));
44 };
45 
46 }  // namespace cast
47 }  // namespace media
48 
49 #endif  // MEDIA_CAST_RTCP_MOCK_RTCP_RECEIVER_FEEDBACK_H_
50