root/media/cast/rtcp/mock_rtcp_receiver_feedback.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef MEDIA_CAST_RTCP_MOCK_RTCP_RECEIVER_FEEDBACK_H_
#define MEDIA_CAST_RTCP_MOCK_RTCP_RECEIVER_FEEDBACK_H_

#include <vector>

#include "media/cast/rtcp/rtcp_defines.h"
#include "media/cast/rtcp/rtcp_receiver.h"
#include "media/cast/transport/cast_transport_defines.h"
#include "testing/gmock/include/gmock/gmock.h"

namespace media {
namespace cast {

class MockRtcpReceiverFeedback : public RtcpReceiverFeedback {
 public:
  MockRtcpReceiverFeedback();
  virtual ~MockRtcpReceiverFeedback();

  MOCK_METHOD1(OnReceivedSenderReport,
               void(const transport::RtcpSenderInfo& remote_sender_info));

  MOCK_METHOD1(OnReceiverReferenceTimeReport,
               void(const RtcpReceiverReferenceTimeReport& remote_time_report));

  MOCK_METHOD0(OnReceivedSendReportRequest, void());

  MOCK_METHOD1(OnReceivedReceiverLog,
               void(const RtcpReceiverLogMessage& receiver_log));
  MOCK_METHOD1(OnReceivedSenderLog,
               void(const transport::RtcpSenderLogMessage& sender_log));
};

class MockRtcpRttFeedback : public RtcpRttFeedback {
 public:
  MockRtcpRttFeedback();
  virtual ~MockRtcpRttFeedback();

  MOCK_METHOD3(OnReceivedDelaySinceLastReport,
               void(uint32 media_ssrc,
                    uint32 last_report,
                    uint32 delay_since_last_report));
};

}  // namespace cast
}  // namespace media

#endif  // MEDIA_CAST_RTCP_MOCK_RTCP_RECEIVER_FEEDBACK_H_

/* [<][>][^][v][top][bottom][index][help] */