iwyu: //aos/testing/...

The full include-list for aos/testing/test_logging.h:

The full include-list for aos/testing/test_logging.cc:
"aos/testing/test_logging.h"
<string.h>                       // for strcmp
<algorithm>                      // for max
<cstdio>                         // for fclose, fopen, printf, stdout, FILE
<memory>                         // for shared_ptr, __shared_ptr_access, make_unique
<mutex>                          // for unique_lock
<string_view>                    // for string_view
<vector>                         // for vector
"absl/base/call_once.h"          // for call_once, once_flag
"aos/logging/implementations.h"  // for LogMessage, PrintMessage, SetImplementation, log_do, ERROR, FATAL, HandleMessageLogImplementation
"aos/stl_mutex/stl_mutex.h"      // for stl_mutex
"aos/time/time.h"                // for monotonic_clock
"gtest/gtest.h"                  // for TestPartResult, TestInfo, UnitTest, EmptyTestEventListener, TestEventListeners, TestResult

The full include-list for aos/testing/test_logging.h:

The full include-list for aos/testing/test_logging_test.cc:
"aos/testing/test_logging.h"
<memory>                 // for allocator
<thread>                 // for thread
"aos/logging/logging.h"  // for INFO, AOS_LOG
"gtest/gtest.h"          // for Test, TestInfo, TEST

The full include-list for aos/testing/test_shm.h:
"aos/ipc_lib/shared_mem_types.h"  // for aos_core

The full include-list for aos/testing/test_shm.cc:
"aos/testing/test_shm.h"
<stddef.h>                    // for NULL
<sys/mman.h>                  // for mmap, munmap, MAP_ANONYMOUS, MAP_FAILED, MAP_SHARED, PROT_READ, PROT_WRITE, size_t
"aos/ipc_lib/shared_mem.h"    // for aos_core_use_address_as_shared_mem
"aos/logging/logging.h"       // for LogImplCheck_NE, AOS_CHECK_NE, AOS_PCHECK
"aos/testing/test_logging.h"  // for EnableTestLogging

The full include-list for aos/testing/gtest_main.cc:
"aos/init.h"            // for InitGoogle
"aos/testing/tmpdir.h"  // for SetTestShmBase
"gflags/gflags.h"       // for DEFINE_bool, DEFINE_string
"glog/logging.h"        // for FLAGS_logtostderr
"gtest/gtest.h"         // for InitGoogleTest, RUN_ALL_TESTS, GTEST_API_

Signed-off-by: Stephan Pleines <pleines.stephan@gmail.com>
Change-Id: I664657e4b1269ddf3649160dee00b2d41094c468
diff --git a/aos/testing/gtest_main.cc b/aos/testing/gtest_main.cc
index 6071bde..1940988 100644
--- a/aos/testing/gtest_main.cc
+++ b/aos/testing/gtest_main.cc
@@ -1,7 +1,3 @@
-#include <getopt.h>
-
-#include <iostream>
-
 #include "gflags/gflags.h"
 #include "glog/logging.h"
 #include "gtest/gtest.h"
diff --git a/aos/testing/test_logging.cc b/aos/testing/test_logging.cc
index 56875bb..15cb64b 100644
--- a/aos/testing/test_logging.cc
+++ b/aos/testing/test_logging.cc
@@ -1,6 +1,12 @@
 #include "aos/testing/test_logging.h"
 
+#include <string.h>
+
+#include <algorithm>
 #include <cstdio>
+#include <memory>
+#include <mutex>
+#include <string_view>
 #include <vector>
 
 #include "absl/base/call_once.h"
@@ -8,6 +14,7 @@
 
 #include "aos/logging/implementations.h"
 #include "aos/stl_mutex/stl_mutex.h"
+#include "aos/time/time.h"
 
 using ::aos::logging::LogMessage;
 
diff --git a/aos/testing/test_logging.h b/aos/testing/test_logging.h
index 3671aa1..b7e8977 100644
--- a/aos/testing/test_logging.h
+++ b/aos/testing/test_logging.h
@@ -1,8 +1,6 @@
 #ifndef AOS_TESTING_TEST_LOGGING_H_
 #define AOS_TESTING_TEST_LOGGING_H_
 
-#include "aos/time/time.h"
-
 namespace aos::testing {
 
 // Enables the logging framework for use during a gtest test.
diff --git a/aos/testing/test_logging_test.cc b/aos/testing/test_logging_test.cc
index 5731545..b37bec4 100644
--- a/aos/testing/test_logging_test.cc
+++ b/aos/testing/test_logging_test.cc
@@ -1,5 +1,6 @@
 #include "aos/testing/test_logging.h"
 
+#include <memory>
 #include <thread>
 
 #include "gtest/gtest.h"
diff --git a/aos/testing/test_shm.cc b/aos/testing/test_shm.cc
index 1b168ea..4922b63 100644
--- a/aos/testing/test_shm.cc
+++ b/aos/testing/test_shm.cc
@@ -1,9 +1,9 @@
 #include "aos/testing/test_shm.h"
 
+#include <stddef.h>
 #include <sys/mman.h>
 
-#include "gflags/gflags.h"
-
+#include "aos/ipc_lib/shared_mem.h"
 #include "aos/logging/logging.h"
 #include "aos/testing/test_logging.h"
 
diff --git a/aos/testing/test_shm.h b/aos/testing/test_shm.h
index 658a72d..24c87ce 100644
--- a/aos/testing/test_shm.h
+++ b/aos/testing/test_shm.h
@@ -1,7 +1,7 @@
 #ifndef AOS_TESTING_TEST_SHM_H_
 #define AOS_TESTING_TEST_SHM_H_
 
-#include "aos/ipc_lib/shared_mem.h"
+#include "aos/ipc_lib/shared_mem_types.h"
 
 namespace aos::testing {