Include-what-you-use rtc_event_log_to_text/

Bug: webrtc:42226242
Change-Id: Ibb9bfc4b444de9d79e9e0e9f0e0545bf195168d5
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/352503
Commit-Queue: Björn Terelius <terelius@webrtc.org>
Reviewed-by: Jeremy Leconte <jleconte@google.com>
Cr-Commit-Position: refs/heads/main@{#42397}
This commit is contained in:
Björn Terelius 2024-05-28 17:00:30 +02:00 committed by WebRTC LUCI CQ
parent c157f29216
commit be40e57195
3 changed files with 12 additions and 1 deletions

View File

@ -515,7 +515,11 @@ if (rtc_include_tests) {
"rtc_event_log_to_text/main.cc",
]
deps = [
"../api:candidate",
"../api:rtp_parameters",
"../api/rtc_event_log",
"../api/transport:bandwidth_usage",
"../api/video:video_frame",
"../logging:ice_log",
"../logging:rtc_event_audio",
"../logging:rtc_event_begin_end",

View File

@ -12,9 +12,15 @@
#include <inttypes.h>
#include <cstdio>
#include <map>
#include <string>
#include <vector>
#include "api/candidate.h"
#include "api/rtp_parameters.h"
#include "api/transport/bandwidth_usage.h"
#include "api/video/video_codec_type.h"
#include "logging/rtc_event_log/events/logged_rtp_rtcp.h"
#include "logging/rtc_event_log/events/rtc_event_alr_state.h"
#include "logging/rtc_event_log/events/rtc_event_audio_network_adaptation.h"

View File

@ -68,7 +68,8 @@ int main(int argc, char* argv[]) {
output = stdout;
} else {
// Print usage information.
std::cerr << absl::ProgramUsageMessage();
absl::string_view usage = absl::ProgramUsageMessage();
fwrite(usage.data(), usage.size(), 1, stderr);
return 1;
}