Using unit classes in BitrateAllocationUpdate struct.
This prepares for moving BitrateAllocationUpdate to API. Bug: webrtc:9718 Change-Id: Ib2bcedb6b68fde33b6a2466f40829e86438aa973 Reviewed-on: https://webrtc-review.googlesource.com/c/111507 Commit-Queue: Sebastian Jansson <srte@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Reviewed-by: Oskar Sundbom <ossu@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25737}
This commit is contained in:
committed by
Commit Bot
parent
e4cccae299
commit
13e5903626
@ -72,9 +72,9 @@ class MockRtpVideoSender : public RtpVideoSenderInterface {
|
||||
|
||||
BitrateAllocationUpdate CreateAllocation(int bitrate_bps) {
|
||||
BitrateAllocationUpdate update;
|
||||
update.bitrate_bps = bitrate_bps;
|
||||
update.fraction_loss = 0;
|
||||
update.rtt = 0;
|
||||
update.target_bitrate = DataRate::bps(bitrate_bps);
|
||||
update.packet_loss_ratio = 0;
|
||||
update.round_trip_time = TimeDelta::Zero();
|
||||
return update;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user