Move ownership of PacketRouter from CongestionController to Call.

And delete the method CongestionController::packet_router.

BUG=None

Review-Url: https://codereview.webrtc.org/2516983004
Cr-Commit-Position: refs/heads/master@{#15323}
This commit is contained in:
nisse
2016-11-30 03:35:20 -08:00
committed by Commit bot
parent 06251f1955
commit 0245da0fa0
17 changed files with 149 additions and 141 deletions

View File

@ -938,7 +938,9 @@ void EventLogAnalyzer::CreateBweSimulationGraph(Plot* plot) {
SimulatedClock clock(0);
BitrateObserver observer;
RtcEventLogNullImpl null_event_log;
CongestionController cc(&clock, &observer, &observer, &null_event_log);
PacketRouter packet_router;
CongestionController cc(&clock, &observer, &observer, &null_event_log,
&packet_router);
// TODO(holmer): Log the call config and use that here instead.
static const uint32_t kDefaultStartBitrateBps = 300000;
cc.SetBweBitrates(0, kDefaultStartBitrateBps, -1);