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 }; | 70 }; |
71 | 71 |
72 class MockRtcpCallbackImpl : public RtcpStatisticsCallback { | 72 class MockRtcpCallbackImpl : public RtcpStatisticsCallback { |
73 public: | 73 public: |
74 MOCK_METHOD2(StatisticsUpdated, void(const RtcpStatistics&, uint32_t)); | 74 MOCK_METHOD2(StatisticsUpdated, void(const RtcpStatistics&, uint32_t)); |
75 MOCK_METHOD2(CNameChanged, void(const char*, uint32_t)); | 75 MOCK_METHOD2(CNameChanged, void(const char*, uint32_t)); |
76 }; | 76 }; |
77 | 77 |
78 class MockTransportFeedbackObserver : public TransportFeedbackObserver { | 78 class MockTransportFeedbackObserver : public TransportFeedbackObserver { |
79 public: | 79 public: |
80 MOCK_METHOD2(AddPacket, void(uint16_t, size_t)); | 80 MOCK_METHOD3(AddPacket, void(uint32_t, uint16_t, size_t)); |
81 MOCK_METHOD3(AddPacket, void(uint16_t, size_t, const PacedPacketInfo&)); | 81 MOCK_METHOD4(AddPacket, |
| 82 void(uint32_t, uint16_t, size_t, const PacedPacketInfo&)); |
82 MOCK_METHOD1(OnTransportFeedback, void(const rtcp::TransportFeedback&)); | 83 MOCK_METHOD1(OnTransportFeedback, void(const rtcp::TransportFeedback&)); |
83 MOCK_CONST_METHOD0(GetTransportFeedbackVector, std::vector<PacketFeedback>()); | 84 MOCK_CONST_METHOD0(GetTransportFeedbackVector, std::vector<PacketFeedback>()); |
84 }; | 85 }; |
85 | 86 |
86 class MockRtcpBandwidthObserver : public RtcpBandwidthObserver { | 87 class MockRtcpBandwidthObserver : public RtcpBandwidthObserver { |
87 public: | 88 public: |
88 MOCK_METHOD1(OnReceivedEstimatedBitrate, void(uint32_t)); | 89 MOCK_METHOD1(OnReceivedEstimatedBitrate, void(uint32_t)); |
89 MOCK_METHOD3(OnReceivedRtcpReceiverReport, | 90 MOCK_METHOD3(OnReceivedRtcpReceiverReport, |
90 void(const ReportBlockList&, int64_t, int64_t)); | 91 void(const ReportBlockList&, int64_t, int64_t)); |
91 }; | 92 }; |
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1309 | 1310 |
1310 rtcp::ExtendedReports xr; | 1311 rtcp::ExtendedReports xr; |
1311 xr.SetTargetBitrate(bitrate); | 1312 xr.SetTargetBitrate(bitrate); |
1312 | 1313 |
1313 EXPECT_CALL(bitrate_allocation_observer_, | 1314 EXPECT_CALL(bitrate_allocation_observer_, |
1314 OnBitrateAllocationUpdated(expected_allocation)); | 1315 OnBitrateAllocationUpdated(expected_allocation)); |
1315 InjectRtcpPacket(xr); | 1316 InjectRtcpPacket(xr); |
1316 } | 1317 } |
1317 | 1318 |
1318 } // namespace webrtc | 1319 } // namespace webrtc |
OLD | NEW |