Include-what-you-use api/rtc_event_log_output*
Bug: webrtc:42226242
Change-Id: Ibf28c25900776f1223dfe9685d2fc299d4da7269
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/354680
Auto-Submit: Björn Terelius <terelius@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#42491}
diff --git a/api/BUILD.gn b/api/BUILD.gn
index 283d105..c68e319 100644
--- a/api/BUILD.gn
+++ b/api/BUILD.gn
@@ -765,6 +765,7 @@
"../rtc_base:logging",
"../rtc_base/system:file_wrapper",
"rtc_event_log",
+ "//third_party/abseil-cpp/absl/strings:string_view",
]
}
diff --git a/api/rtc_event_log_output.h b/api/rtc_event_log_output.h
index f1f84a5..9b55f29 100644
--- a/api/rtc_event_log_output.h
+++ b/api/rtc_event_log_output.h
@@ -11,7 +11,6 @@
#ifndef API_RTC_EVENT_LOG_OUTPUT_H_
#define API_RTC_EVENT_LOG_OUTPUT_H_
-#include <string>
#include "absl/strings/string_view.h"
diff --git a/api/rtc_event_log_output_file.cc b/api/rtc_event_log_output_file.cc
index e1d4c7c..b31e39a 100644
--- a/api/rtc_event_log_output_file.cc
+++ b/api/rtc_event_log_output_file.cc
@@ -10,12 +10,17 @@
#include "api/rtc_event_log_output_file.h"
+#include <cstddef>
+#include <cstdio>
#include <limits>
+#include <string>
#include <utility>
+#include "absl/strings/string_view.h"
#include "api/rtc_event_log/rtc_event_log.h"
#include "rtc_base/checks.h"
#include "rtc_base/logging.h"
+#include "rtc_base/system/file_wrapper.h"
namespace webrtc {
diff --git a/api/rtc_event_log_output_file.h b/api/rtc_event_log_output_file.h
index c9ae0a8..1f94b0d 100644
--- a/api/rtc_event_log_output_file.h
+++ b/api/rtc_event_log_output_file.h
@@ -16,6 +16,7 @@
#include <string>
+#include "absl/strings/string_view.h"
#include "api/rtc_event_log_output.h"
#include "rtc_base/system/file_wrapper.h"
diff --git a/api/rtc_event_log_output_file_unittest.cc b/api/rtc_event_log_output_file_unittest.cc
index d2f1e1c..b1441c7 100644
--- a/api/rtc_event_log_output_file_unittest.cc
+++ b/api/rtc_event_log_output_file_unittest.cc
@@ -10,7 +10,11 @@
#include "api/rtc_event_log_output_file.h"
+#include <stdio.h>
+
+#include <cstddef>
#include <fstream>
+#include <ios>
#include <iterator>
#include <memory>
#include <string>