Reformat the WebRTC code base
Running clang-format with chromium's style guide. The goal is n-fold: * providing consistency and readability (that's what code guidelines are for) * preventing noise with presubmit checks and git cl format * building on the previous point: making it easier to automatically fix format issues * you name it Please consider using git-hyper-blame to ignore this commit. Bug: webrtc:9340 Change-Id: I694567c4cdf8cee2860958cfe82bfaf25848bb87 Reviewed-on: https://webrtc-review.googlesource.com/81185 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23660}
This commit is contained in:
@ -483,7 +483,7 @@ EventLogAnalyzer::EventLogAnalyzer(const ParsedRtcEventLogNew& log,
|
||||
}
|
||||
}
|
||||
RTC_LOG(LS_INFO) << "Found " << log_segments_.size()
|
||||
<< " (LOG_START, LOG_END) segments in log.";
|
||||
<< " (LOG_START, LOG_END) segments in log.";
|
||||
}
|
||||
|
||||
class BitrateObserver : public NetworkChangedObserver,
|
||||
@ -641,8 +641,7 @@ void EventLogAnalyzer::CreateAudioLevelGraph(PacketDirection direction,
|
||||
|
||||
plot->SetXAxis(ToCallTimeSec(begin_time_), call_duration_s_, "Time (s)",
|
||||
kLeftMargin, kRightMargin);
|
||||
plot->SetYAxis(-127, 0, "Audio level (dBov)", kBottomMargin,
|
||||
kTopMargin);
|
||||
plot->SetYAxis(-127, 0, "Audio level (dBov)", kBottomMargin, kTopMargin);
|
||||
plot->SetTitle(GetDirectionAsString(direction) + " audio level");
|
||||
}
|
||||
|
||||
|
@ -157,7 +157,6 @@ DEFINE_bool(normalize_time,
|
||||
|
||||
void SetAllPlotFlags(bool setting);
|
||||
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
std::string program_name = argv[0];
|
||||
std::string usage =
|
||||
@ -381,7 +380,6 @@ int main(int argc, char* argv[]) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
void SetAllPlotFlags(bool setting) {
|
||||
FLAG_plot_incoming_packet_sizes = setting;
|
||||
FLAG_plot_outgoing_packet_sizes = setting;
|
||||
|
@ -69,8 +69,8 @@ void ProtobufPlotCollection::ExportProtobuf(
|
||||
// TODO(terelius): Ensure that there is no way to insert plots other than
|
||||
// ProtobufPlots in a ProtobufPlotCollection. Needed to safely static_cast
|
||||
// here.
|
||||
webrtc::analytics::Chart* protobuf_representation
|
||||
= collection->add_charts();
|
||||
webrtc::analytics::Chart* protobuf_representation =
|
||||
collection->add_charts();
|
||||
static_cast<ProtobufPlot*>(plot.get())
|
||||
->ExportProtobuf(protobuf_representation);
|
||||
}
|
||||
|
Reference in New Issue
Block a user