Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtcp_receiver_unittest.cc

Issue 2708873003: Propagate packet pacing information to SendTimeHistory. (Closed)
Patch Set: . Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_METHOD3(AddPacket, void(uint16_t, size_t, int)); 80 MOCK_METHOD2(AddPacket, void(uint16_t, size_t));
81 MOCK_METHOD3(AddPacket, void(uint16_t, size_t, const PacedPacketInfo&));
81 MOCK_METHOD1(OnTransportFeedback, void(const rtcp::TransportFeedback&)); 82 MOCK_METHOD1(OnTransportFeedback, void(const rtcp::TransportFeedback&));
82 MOCK_CONST_METHOD0(GetTransportFeedbackVector, std::vector<PacketInfo>()); 83 MOCK_CONST_METHOD0(GetTransportFeedbackVector, std::vector<PacketInfo>());
83 }; 84 };
84 85
85 class MockRtcpBandwidthObserver : public RtcpBandwidthObserver { 86 class MockRtcpBandwidthObserver : public RtcpBandwidthObserver {
86 public: 87 public:
87 MOCK_METHOD1(OnReceivedEstimatedBitrate, void(uint32_t)); 88 MOCK_METHOD1(OnReceivedEstimatedBitrate, void(uint32_t));
88 MOCK_METHOD3(OnReceivedRtcpReceiverReport, 89 MOCK_METHOD3(OnReceivedRtcpReceiverReport,
89 void(const ReportBlockList&, int64_t, int64_t)); 90 void(const ReportBlockList&, int64_t, int64_t));
90 }; 91 };
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after
1308 1309
1309 rtcp::ExtendedReports xr; 1310 rtcp::ExtendedReports xr;
1310 xr.SetTargetBitrate(bitrate); 1311 xr.SetTargetBitrate(bitrate);
1311 1312
1312 EXPECT_CALL(bitrate_allocation_observer_, 1313 EXPECT_CALL(bitrate_allocation_observer_,
1313 OnBitrateAllocationUpdated(expected_allocation)); 1314 OnBitrateAllocationUpdated(expected_allocation));
1314 InjectRtcpPacket(xr); 1315 InjectRtcpPacket(xr);
1315 } 1316 }
1316 1317
1317 } // namespace webrtc 1318 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698