Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Unified Diff: media/cast/net/rtcp/mock_rtcp_receiver_feedback.h

Issue 387933005: Cast: Refactor RTCP handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: smaller diff Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/cast/net/rtcp/mock_rtcp_receiver_feedback.h
diff --git a/media/cast/net/rtcp/mock_rtcp_receiver_feedback.h b/media/cast/net/rtcp/mock_rtcp_receiver_feedback.h
index e621617883a578a04c3ee43512df1dea3c31ceec..d84afbf343ad07bd36b0d5ab2f384bf000a3c1be 100644
--- a/media/cast/net/rtcp/mock_rtcp_receiver_feedback.h
+++ b/media/cast/net/rtcp/mock_rtcp_receiver_feedback.h
@@ -15,7 +15,8 @@
namespace media {
namespace cast {
-class MockRtcpReceiverFeedback : public RtcpReceiverFeedback {
+// TODO(hclam): Should be renamed to MockRtcpMessageHandler.
+class MockRtcpReceiverFeedback : public RtcpMessageHandler {
public:
MockRtcpReceiverFeedback();
virtual ~MockRtcpReceiverFeedback();
@@ -30,17 +31,12 @@ class MockRtcpReceiverFeedback : public RtcpReceiverFeedback {
MOCK_METHOD1(OnReceivedReceiverLog,
void(const RtcpReceiverLogMessage& receiver_log));
-};
-class MockRtcpRttFeedback : public RtcpRttFeedback {
- public:
- MockRtcpRttFeedback();
- virtual ~MockRtcpRttFeedback();
+ MOCK_METHOD2(OnReceivedDelaySinceLastReport,
+ void(uint32 last_report, uint32 delay_since_last_report));
- MOCK_METHOD3(OnReceivedDelaySinceLastReport,
- void(uint32 media_ssrc,
- uint32 last_report,
- uint32 delay_since_last_report));
+ MOCK_METHOD1(OnReceivedCastFeedback,
+ void(const RtcpCastMessage& cast_message));
};
} // namespace cast

Powered by Google App Engine
This is Rietveld 408576698