OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 class MockRtcpCallbackImpl : public RtcpStatisticsCallback { | 70 class MockRtcpCallbackImpl : public RtcpStatisticsCallback { |
71 public: | 71 public: |
72 MOCK_METHOD2(StatisticsUpdated, void(const RtcpStatistics&, uint32_t)); | 72 MOCK_METHOD2(StatisticsUpdated, void(const RtcpStatistics&, uint32_t)); |
73 MOCK_METHOD2(CNameChanged, void(const char*, uint32_t)); | 73 MOCK_METHOD2(CNameChanged, void(const char*, uint32_t)); |
74 }; | 74 }; |
75 | 75 |
76 class MockTransportFeedbackObserver : public TransportFeedbackObserver { | 76 class MockTransportFeedbackObserver : public TransportFeedbackObserver { |
77 public: | 77 public: |
78 MOCK_METHOD3(AddPacket, void(uint16_t, size_t, int)); | 78 MOCK_METHOD3(AddPacket, void(uint16_t, size_t, int)); |
79 MOCK_METHOD1(OnTransportFeedback, void(const rtcp::TransportFeedback&)); | 79 MOCK_METHOD1(OnTransportFeedback, void(const rtcp::TransportFeedback&)); |
| 80 MOCK_CONST_METHOD0(GetTransportFeedbackVector, std::vector<PacketInfo>()); |
80 }; | 81 }; |
81 | 82 |
82 class MockRtcpBandwidthObserver : public RtcpBandwidthObserver { | 83 class MockRtcpBandwidthObserver : public RtcpBandwidthObserver { |
83 public: | 84 public: |
84 MOCK_METHOD1(OnReceivedEstimatedBitrate, void(uint32_t)); | 85 MOCK_METHOD1(OnReceivedEstimatedBitrate, void(uint32_t)); |
85 MOCK_METHOD3(OnReceivedRtcpReceiverReport, | 86 MOCK_METHOD3(OnReceivedRtcpReceiverReport, |
86 void(const ReportBlockList&, int64_t, int64_t)); | 87 void(const ReportBlockList&, int64_t, int64_t)); |
87 }; | 88 }; |
88 | 89 |
89 class MockModuleRtpRtcp : public RTCPReceiver::ModuleRtpRtcp { | 90 class MockModuleRtpRtcp : public RTCPReceiver::ModuleRtpRtcp { |
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1260 TEST_F(RtcpReceiverTest, ForceSenderReport) { | 1261 TEST_F(RtcpReceiverTest, ForceSenderReport) { |
1261 rtcp::RapidResyncRequest rr; | 1262 rtcp::RapidResyncRequest rr; |
1262 rr.From(kSenderSsrc); | 1263 rr.From(kSenderSsrc); |
1263 rr.To(kReceiverMainSsrc); | 1264 rr.To(kReceiverMainSsrc); |
1264 | 1265 |
1265 EXPECT_CALL(rtp_rtcp_impl_, OnRequestSendReport()); | 1266 EXPECT_CALL(rtp_rtcp_impl_, OnRequestSendReport()); |
1266 InjectRtcpPacket(rr); | 1267 InjectRtcpPacket(rr); |
1267 } | 1268 } |
1268 | 1269 |
1269 } // namespace webrtc | 1270 } // namespace webrtc |
OLD | NEW |