| 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_METHOD2(AddPacket, void(uint16_t, size_t)); | 76 MOCK_METHOD3(AddPacket, void(uint32_t, uint16_t, size_t)); |
| 77 MOCK_METHOD3(AddPacket, void(uint16_t, size_t, const PacedPacketInfo&)); | 77 MOCK_METHOD4(AddPacket, |
| 78 void(uint32_t, uint16_t, size_t, const PacedPacketInfo&)); |
| 78 MOCK_METHOD1(OnTransportFeedback, void(const rtcp::TransportFeedback&)); | 79 MOCK_METHOD1(OnTransportFeedback, void(const rtcp::TransportFeedback&)); |
| 79 MOCK_CONST_METHOD0(GetTransportFeedbackVector, std::vector<PacketFeedback>()); | 80 MOCK_CONST_METHOD0(GetTransportFeedbackVector, std::vector<PacketFeedback>()); |
| 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 }; |
| (...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1242 | 1243 |
| 1243 rtcp::ExtendedReports xr; | 1244 rtcp::ExtendedReports xr; |
| 1244 xr.SetTargetBitrate(bitrate); | 1245 xr.SetTargetBitrate(bitrate); |
| 1245 | 1246 |
| 1246 EXPECT_CALL(bitrate_allocation_observer_, | 1247 EXPECT_CALL(bitrate_allocation_observer_, |
| 1247 OnBitrateAllocationUpdated(expected_allocation)); | 1248 OnBitrateAllocationUpdated(expected_allocation)); |
| 1248 InjectRtcpPacket(xr); | 1249 InjectRtcpPacket(xr); |
| 1249 } | 1250 } |
| 1250 | 1251 |
| 1251 } // namespace webrtc | 1252 } // namespace webrtc |
| OLD | NEW |