Replace DataSize and DataRate factories with newer versions
This is search and replace change: find . -type f \( -name "*.h" -o -name "*.cc" \) | xargs sed -i -e "s/DataSize::Bytes<\(.*\)>()/DataSize::Bytes(\1)/g" find . -type f \( -name "*.h" -o -name "*.cc" \) | xargs sed -i -e "s/DataSize::bytes/DataSize::Bytes/g" find . -type f \( -name "*.h" -o -name "*.cc" \) | xargs sed -i -e "s/DataRate::BitsPerSec<\(.*\)>()/DataRate::BitsPerSec(\1)/g" find . -type f \( -name "*.h" -o -name "*.cc" \) | xargs sed -i -e "s/DataRate::BytesPerSec<\(.*\)>()/DataRate::BytesPerSec(\1)/g" find . -type f \( -name "*.h" -o -name "*.cc" \) | xargs sed -i -e "s/DataRate::KilobitsPerSec<\(.*\)>()/DataRate::KilobitsPerSec(\1)/g" find . -type f \( -name "*.h" -o -name "*.cc" \) | xargs sed -i -e "s/DataRate::bps/DataRate::BitsPerSec/g" find . -type f \( -name "*.h" -o -name "*.cc" \) | xargs sed -i -e "s/DataRate::kbps/DataRate::KilobitsPerSec/g" git cl format Bug: webrtc:9709 Change-Id: I65aaca69474ba038c1fe2dd8dc30d3f8e7b94c29 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/168647 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30545}
This commit is contained in:
committed by
Commit Bot
parent
701bd172d8
commit
cad3e0e2fa
@ -2407,14 +2407,14 @@ ParsedRtcEventLog::ParseStatus ParsedRtcEventLog::StoreRemoteEstimateEvent(
|
||||
if (proto.has_link_capacity_lower_kbps()) {
|
||||
base_link_capacity_lower_kbps = proto.link_capacity_lower_kbps();
|
||||
base_event.link_capacity_lower =
|
||||
DataRate::kbps(proto.link_capacity_lower_kbps());
|
||||
DataRate::KilobitsPerSec(proto.link_capacity_lower_kbps());
|
||||
}
|
||||
|
||||
absl::optional<uint64_t> base_link_capacity_upper_kbps;
|
||||
if (proto.has_link_capacity_upper_kbps()) {
|
||||
base_link_capacity_upper_kbps = proto.link_capacity_upper_kbps();
|
||||
base_event.link_capacity_upper =
|
||||
DataRate::kbps(proto.link_capacity_upper_kbps());
|
||||
DataRate::KilobitsPerSec(proto.link_capacity_upper_kbps());
|
||||
}
|
||||
|
||||
remote_estimate_events_.push_back(base_event);
|
||||
@ -2452,10 +2452,10 @@ ParsedRtcEventLog::ParseStatus ParsedRtcEventLog::StoreRemoteEstimateEvent(
|
||||
event.timestamp_ms = *timestamp_ms_values[i];
|
||||
if (link_capacity_lower_kbps_values[i])
|
||||
event.link_capacity_lower =
|
||||
DataRate::kbps(*link_capacity_lower_kbps_values[i]);
|
||||
DataRate::KilobitsPerSec(*link_capacity_lower_kbps_values[i]);
|
||||
if (link_capacity_upper_kbps_values[i])
|
||||
event.link_capacity_upper =
|
||||
DataRate::kbps(*link_capacity_upper_kbps_values[i]);
|
||||
DataRate::KilobitsPerSec(*link_capacity_upper_kbps_values[i]);
|
||||
remote_estimate_events_.push_back(event);
|
||||
}
|
||||
return ParseStatus::Success();
|
||||
|
||||
Reference in New Issue
Block a user