OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_CAST_RTCP_MOCK_RTCP_RECEIVER_FEEDBACK_H_ | 5 #ifndef MEDIA_CAST_RTCP_MOCK_RTCP_RECEIVER_FEEDBACK_H_ |
6 #define MEDIA_CAST_RTCP_MOCK_RTCP_RECEIVER_FEEDBACK_H_ | 6 #define MEDIA_CAST_RTCP_MOCK_RTCP_RECEIVER_FEEDBACK_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "media/cast/rtcp/rtcp_receiver.h" | 10 #include "media/cast/rtcp/rtcp_receiver.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
12 | 12 |
13 namespace media { | 13 namespace media { |
14 namespace cast { | 14 namespace cast { |
15 | 15 |
16 class MockRtcpReceiverFeedback : public RtcpReceiverFeedback { | 16 class MockRtcpReceiverFeedback : public RtcpReceiverFeedback { |
17 public: | 17 public: |
| 18 MockRtcpReceiverFeedback(); |
| 19 virtual ~MockRtcpReceiverFeedback(); |
| 20 |
18 MOCK_METHOD1(OnReceivedSenderReport, | 21 MOCK_METHOD1(OnReceivedSenderReport, |
19 void(const RtcpSenderInfo& remote_sender_info)); | 22 void(const RtcpSenderInfo& remote_sender_info)); |
20 | 23 |
21 MOCK_METHOD1(OnReceiverReferenceTimeReport, | 24 MOCK_METHOD1(OnReceiverReferenceTimeReport, |
22 void(const RtcpReceiverReferenceTimeReport& remote_time_report)); | 25 void(const RtcpReceiverReferenceTimeReport& remote_time_report)); |
23 | 26 |
24 MOCK_METHOD0(OnReceivedSendReportRequest, void()); | 27 MOCK_METHOD0(OnReceivedSendReportRequest, void()); |
25 }; | 28 }; |
26 | 29 |
27 class MockRtcpRttFeedback : public RtcpRttFeedback { | 30 class MockRtcpRttFeedback : public RtcpRttFeedback { |
28 public: | 31 public: |
| 32 MockRtcpRttFeedback(); |
| 33 virtual ~MockRtcpRttFeedback(); |
| 34 |
29 MOCK_METHOD3(OnReceivedDelaySinceLastReport, | 35 MOCK_METHOD3(OnReceivedDelaySinceLastReport, |
30 void(uint32 media_ssrc, | 36 void(uint32 media_ssrc, |
31 uint32 last_report, | 37 uint32 last_report, |
32 uint32 delay_since_last_report)); | 38 uint32 delay_since_last_report)); |
33 }; | 39 }; |
34 | 40 |
35 } // namespace cast | 41 } // namespace cast |
36 } // namespace media | 42 } // namespace media |
37 | 43 |
38 #endif // MEDIA_CAST_RTCP_MOCK_RTCP_RECEIVER_FEEDBACK_H_ | 44 #endif // MEDIA_CAST_RTCP_MOCK_RTCP_RECEIVER_FEEDBACK_H_ |
OLD | NEW |