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

Unified Diff: webrtc/call/rtc_event_log_unittest.cc

Issue 2181383002: Add NACK rate throttling for audio channels. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/nack_rtx_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/call/rtc_event_log_unittest.cc
diff --git a/webrtc/call/rtc_event_log_unittest.cc b/webrtc/call/rtc_event_log_unittest.cc
index f8b555b63d2e956d4603fce19968c30f428d7dde..57d18b7e72e5b783debfc9f9ff2a1b901bc0c88f 100644
--- a/webrtc/call/rtc_event_log_unittest.cc
+++ b/webrtc/call/rtc_event_log_unittest.cc
@@ -20,6 +20,7 @@
#include "webrtc/base/buffer.h"
#include "webrtc/base/checks.h"
#include "webrtc/base/random.h"
+#include "webrtc/base/rate_limiter.h"
#include "webrtc/call.h"
#include "webrtc/call/rtc_event_log.h"
#include "webrtc/call/rtc_event_log_parser.h"
@@ -111,19 +112,20 @@ size_t GenerateRtpPacket(uint32_t extensions_bitvector,
Random* prng) {
RTC_CHECK_GE(packet_size, 16 + 4 * csrcs_count + 4 * kNumExtensions);
Clock* clock = Clock::GetRealTimeClock();
-
- RTPSender rtp_sender(false, // bool audio
- clock, // Clock* clock
- nullptr, // Transport*
- nullptr, // PacedSender*
- nullptr, // PacketRouter*
- nullptr, // SendTimeObserver*
- nullptr, // BitrateStatisticsObserver*
- nullptr, // FrameCountObserver*
- nullptr, // SendSideDelayObserver*
- nullptr, // RtcEventLog*
- nullptr, // SendPacketObserver*
- nullptr); // NackRateLimiter*
+ RateLimiter retranmission_rate_limiter(clock, 1000);
+
+ RTPSender rtp_sender(false, // bool audio
+ clock, // Clock* clock
+ nullptr, // Transport*
+ nullptr, // PacedSender*
+ nullptr, // PacketRouter*
+ nullptr, // SendTimeObserver*
+ nullptr, // BitrateStatisticsObserver*
+ nullptr, // FrameCountObserver*
+ nullptr, // SendSideDelayObserver*
+ nullptr, // RtcEventLog*
+ nullptr, // SendPacketObserver*
+ &retranmission_rate_limiter);
std::vector<uint32_t> csrcs;
for (unsigned i = 0; i < csrcs_count; i++) {
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/nack_rtx_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698