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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 }; | 66 }; |
67 | 67 |
68 class MockRtcpCallbackImpl : public RtcpStatisticsCallback { | 68 class MockRtcpCallbackImpl : public RtcpStatisticsCallback { |
69 public: | 69 public: |
70 MOCK_METHOD2(StatisticsUpdated, void(const RtcpStatistics&, uint32_t)); | 70 MOCK_METHOD2(StatisticsUpdated, void(const RtcpStatistics&, uint32_t)); |
71 MOCK_METHOD2(CNameChanged, void(const char*, uint32_t)); | 71 MOCK_METHOD2(CNameChanged, void(const char*, uint32_t)); |
72 }; | 72 }; |
73 | 73 |
74 class MockTransportFeedbackObserver : public TransportFeedbackObserver { | 74 class MockTransportFeedbackObserver : public TransportFeedbackObserver { |
75 public: | 75 public: |
76 MOCK_METHOD3(AddPacket, void(uint32_t, uint16_t, size_t)); | 76 // (not used method) MOCK_METHOD3(AddPacket, void(uint32_t, uint16_t, |
77 MOCK_METHOD4(AddPacket, | 77 // size_t)); |
78 void(uint32_t, uint16_t, size_t, const PacedPacketInfo&)); | 78 MOCK_METHOD5( |
| 79 AddPacket, |
| 80 void(uint32_t, uint16_t, size_t, size_t, const PacedPacketInfo&)); |
79 MOCK_METHOD1(OnTransportFeedback, void(const rtcp::TransportFeedback&)); | 81 MOCK_METHOD1(OnTransportFeedback, void(const rtcp::TransportFeedback&)); |
80 MOCK_CONST_METHOD0(GetTransportFeedbackVector, std::vector<PacketFeedback>()); | 82 MOCK_CONST_METHOD0(GetTransportFeedbackVector, std::vector<PacketFeedback>()); |
81 }; | 83 }; |
82 | 84 |
83 class MockRtcpBandwidthObserver : public RtcpBandwidthObserver { | 85 class MockRtcpBandwidthObserver : public RtcpBandwidthObserver { |
84 public: | 86 public: |
85 MOCK_METHOD1(OnReceivedEstimatedBitrate, void(uint32_t)); | 87 MOCK_METHOD1(OnReceivedEstimatedBitrate, void(uint32_t)); |
86 MOCK_METHOD3(OnReceivedRtcpReceiverReport, | 88 MOCK_METHOD3(OnReceivedRtcpReceiverReport, |
87 void(const ReportBlockList&, int64_t, int64_t)); | 89 void(const ReportBlockList&, int64_t, int64_t)); |
88 }; | 90 }; |
(...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1243 | 1245 |
1244 rtcp::ExtendedReports xr; | 1246 rtcp::ExtendedReports xr; |
1245 xr.SetTargetBitrate(bitrate); | 1247 xr.SetTargetBitrate(bitrate); |
1246 | 1248 |
1247 EXPECT_CALL(bitrate_allocation_observer_, | 1249 EXPECT_CALL(bitrate_allocation_observer_, |
1248 OnBitrateAllocationUpdated(expected_allocation)); | 1250 OnBitrateAllocationUpdated(expected_allocation)); |
1249 InjectRtcpPacket(xr); | 1251 InjectRtcpPacket(xr); |
1250 } | 1252 } |
1251 | 1253 |
1252 } // namespace webrtc | 1254 } // namespace webrtc |
OLD | NEW |