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

Unified Diff: webrtc/call/congestion_controller.cc

Issue 1512853002: Nuke TickTime::UseFakeClock. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: cl format Created 5 years 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
Index: webrtc/call/congestion_controller.cc
diff --git a/webrtc/call/congestion_controller.cc b/webrtc/call/congestion_controller.cc
index 18c880cfc2e6621548d81e2de2dbf5d9f3ab671f..4d346845c044ccdaee2a053da7fc89523d5d2722 100644
--- a/webrtc/call/congestion_controller.cc
+++ b/webrtc/call/congestion_controller.cc
@@ -147,19 +147,19 @@ class WrappingBitrateEstimator : public RemoteBitrateEstimator {
CongestionController::CongestionController(ProcessThread* process_thread,
CallStats* call_stats,
BitrateObserver* bitrate_observer)
- : remb_(new VieRemb()),
+ : clock_(Clock::GetRealTimeClock()),
mflodman 2015/12/09 10:11:25 We might as well skip this member, inject an insta
pbos-webrtc 2015/12/09 10:19:04 Done.
+ remb_(new VieRemb(clock_)),
packet_router_(new PacketRouter()),
- pacer_(new PacedSender(Clock::GetRealTimeClock(),
+ pacer_(new PacedSender(clock_,
packet_router_.get(),
BitrateController::kDefaultStartBitrateKbps,
PacedSender::kDefaultPaceMultiplier *
BitrateController::kDefaultStartBitrateKbps,
0)),
remote_bitrate_estimator_(
- new WrappingBitrateEstimator(remb_.get(), Clock::GetRealTimeClock())),
+ new WrappingBitrateEstimator(remb_.get(), clock_)),
remote_estimator_proxy_(
- new RemoteEstimatorProxy(Clock::GetRealTimeClock(),
- packet_router_.get())),
+ new RemoteEstimatorProxy(clock_, packet_router_.get())),
process_thread_(process_thread),
call_stats_(call_stats),
pacer_thread_(ProcessThread::Create("PacerThread")),

Powered by Google App Engine
This is Rietveld 408576698