diff options
author | Ed Tanous <ed@tanous.net> | 2024-03-20 23:38:04 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-03-28 06:35:52 +0300 |
commit | f0b59af46a6aa84890d2181b08d4e1af5ce5002f (patch) | |
tree | 446e1ed998ede11cbad0faa93a65c727eb6bb3df /test/redfish-core | |
parent | 5a8b641229ad1b1c14ae10b7772e5361503675c7 (diff) | |
download | bmcweb-f0b59af46a6aa84890d2181b08d4e1af5ce5002f.tar.xz |
Add misc-include-cleaner
And fix the includes that are wrong.
Note, there is a very large ignore list included in the .clang-tidy
configcfile. These are things that clang-tidy doesn't yet handle
well, like knowing about a details include.
Change-Id: Ie3744f2c8cba68a8700b406449d6c2018a736952
Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'test/redfish-core')
-rw-r--r-- | test/redfish-core/include/redfish_aggregator_test.cpp | 9 | ||||
-rw-r--r-- | test/redfish-core/include/utils/hex_utils_test.cpp | 2 | ||||
-rw-r--r-- | test/redfish-core/include/utils/ip_utils_test.cpp | 4 | ||||
-rw-r--r-- | test/redfish-core/include/utils/json_utils_test.cpp | 1 | ||||
-rw-r--r-- | test/redfish-core/include/utils/query_param_test.cpp | 10 | ||||
-rw-r--r-- | test/redfish-core/include/utils/stl_utils_test.cpp | 1 | ||||
-rw-r--r-- | test/redfish-core/include/utils/time_utils_test.cpp | 6 | ||||
-rw-r--r-- | test/redfish-core/lib/chassis_test.cpp | 5 | ||||
-rw-r--r-- | test/redfish-core/lib/log_services_dump_test.cpp | 8 | ||||
-rw-r--r-- | test/redfish-core/lib/log_services_test.cpp | 6 | ||||
-rw-r--r-- | test/redfish-core/lib/manager_diagnostic_data_test.cpp | 5 | ||||
-rw-r--r-- | test/redfish-core/lib/power_subsystem_test.cpp | 2 | ||||
-rw-r--r-- | test/redfish-core/lib/service_root_test.cpp | 1 | ||||
-rw-r--r-- | test/redfish-core/lib/system_test.cpp | 11 | ||||
-rw-r--r-- | test/redfish-core/lib/thermal_subsystem_test.cpp | 2 | ||||
-rw-r--r-- | test/redfish-core/lib/update_service_test.cpp | 3 |
16 files changed, 59 insertions, 17 deletions
diff --git a/test/redfish-core/include/redfish_aggregator_test.cpp b/test/redfish-core/include/redfish_aggregator_test.cpp index d3c819fcc4..6986dcf00c 100644 --- a/test/redfish-core/include/redfish_aggregator_test.cpp +++ b/test/redfish-core/include/redfish_aggregator_test.cpp @@ -1,8 +1,17 @@ #include "async_resp.hpp" +#include "error_messages.hpp" +#include "http_response.hpp" #include "redfish_aggregator.hpp" +#include <boost/beast/http/field.hpp> +#include <boost/beast/http/status.hpp> #include <nlohmann/json.hpp> +#include <array> +#include <memory> +#include <string> +#include <utility> + #include <gtest/gtest.h> // IWYU pragma: keep namespace redfish diff --git a/test/redfish-core/include/utils/hex_utils_test.cpp b/test/redfish-core/include/utils/hex_utils_test.cpp index c80158a663..a4ff5b781e 100644 --- a/test/redfish-core/include/utils/hex_utils_test.cpp +++ b/test/redfish-core/include/utils/hex_utils_test.cpp @@ -1,7 +1,9 @@ #include "utils/hex_utils.hpp" #include <cctype> +#include <cstdint> #include <limits> +#include <vector> #include <gmock/gmock.h> // IWYU pragma: keep #include <gtest/gtest.h> // IWYU pragma: keep diff --git a/test/redfish-core/include/utils/ip_utils_test.cpp b/test/redfish-core/include/utils/ip_utils_test.cpp index e8b7ac9dd5..67cacc0f69 100644 --- a/test/redfish-core/include/utils/ip_utils_test.cpp +++ b/test/redfish-core/include/utils/ip_utils_test.cpp @@ -1,5 +1,9 @@ #include "utils/ip_utils.hpp" +#include <boost/asio/ip/address.hpp> + +#include <cstdint> + #include <gtest/gtest.h> // IWYU pragma: keep // IWYU pragma: no_include <gtest/gtest-message.h> diff --git a/test/redfish-core/include/utils/json_utils_test.cpp b/test/redfish-core/include/utils/json_utils_test.cpp index ad4d80538d..9245f25d87 100644 --- a/test/redfish-core/include/utils/json_utils_test.cpp +++ b/test/redfish-core/include/utils/json_utils_test.cpp @@ -2,6 +2,7 @@ #include "http_response.hpp" #include "utils/json_utils.hpp" +#include <boost/beast/http/field.hpp> #include <boost/beast/http/status.hpp> #include <nlohmann/json.hpp> diff --git a/test/redfish-core/include/utils/query_param_test.cpp b/test/redfish-core/include/utils/query_param_test.cpp index c5ae21f1d2..46cc64d003 100644 --- a/test/redfish-core/include/utils/query_param_test.cpp +++ b/test/redfish-core/include/utils/query_param_test.cpp @@ -1,13 +1,21 @@ #include "bmcweb_config.h" +#include "error_messages.hpp" +#include "http_response.hpp" #include "utils/query_param.hpp" +#include <boost/beast/http/status.hpp> #include <boost/system/result.hpp> +#include <boost/url/parse.hpp> #include <boost/url/url_view.hpp> #include <nlohmann/json.hpp> -#include <new> +#include <array> +#include <optional> #include <span> +#include <string> +#include <utility> +#include <vector> #include <gmock/gmock.h> // IWYU pragma: keep #include <gtest/gtest.h> // IWYU pragma: keep diff --git a/test/redfish-core/include/utils/stl_utils_test.cpp b/test/redfish-core/include/utils/stl_utils_test.cpp index f1febd088d..d8c0a1c219 100644 --- a/test/redfish-core/include/utils/stl_utils_test.cpp +++ b/test/redfish-core/include/utils/stl_utils_test.cpp @@ -1,6 +1,7 @@ #include "utils/stl_utils.hpp" #include <string> +#include <vector> #include <gmock/gmock.h> // IWYU pragma: keep #include <gtest/gtest.h> // IWYU pragma: keep diff --git a/test/redfish-core/include/utils/time_utils_test.cpp b/test/redfish-core/include/utils/time_utils_test.cpp index e88f7580d4..a1ae058b6f 100644 --- a/test/redfish-core/include/utils/time_utils_test.cpp +++ b/test/redfish-core/include/utils/time_utils_test.cpp @@ -1,5 +1,11 @@ #include "utils/time_utils.hpp" +#include <chrono> +#include <cstdint> +#include <ctime> +#include <limits> +#include <optional> + #include <gmock/gmock.h> // IWYU pragma: keep #include <gtest/gtest.h> // IWYU pragma: keep diff --git a/test/redfish-core/lib/chassis_test.cpp b/test/redfish-core/lib/chassis_test.cpp index 45d06ae8aa..59e21dd26e 100644 --- a/test/redfish-core/lib/chassis_test.cpp +++ b/test/redfish-core/lib/chassis_test.cpp @@ -6,9 +6,14 @@ #include <boost/beast/core/string_type.hpp> #include <boost/beast/http/message.hpp> +#include <boost/beast/http/verb.hpp> #include <nlohmann/json.hpp> +#include <functional> +#include <memory> +#include <string> #include <system_error> +#include <utility> #include <gtest/gtest.h> diff --git a/test/redfish-core/lib/log_services_dump_test.cpp b/test/redfish-core/lib/log_services_dump_test.cpp index 2a6333b6b2..ce7a3a9cd4 100644 --- a/test/redfish-core/lib/log_services_dump_test.cpp +++ b/test/redfish-core/lib/log_services_dump_test.cpp @@ -1,12 +1,10 @@ -#include "app.hpp" #include "async_resp.hpp" -#include "event_service_manager.hpp" -#include "health.hpp" #include "log_services.hpp" -#include <nlohmann/json.hpp> +#include <boost/beast/http/status.hpp> + +#include <memory> -#include <gmock/gmock.h> #include <gtest/gtest.h> namespace redfish diff --git a/test/redfish-core/lib/log_services_test.cpp b/test/redfish-core/lib/log_services_test.cpp index 4f7bedb72f..631e3d159f 100644 --- a/test/redfish-core/lib/log_services_test.cpp +++ b/test/redfish-core/lib/log_services_test.cpp @@ -1,15 +1,13 @@ -#include "app.hpp" #include "async_resp.hpp" #include "log_services.hpp" #include <systemd/sd-id128.h> -#include <nlohmann/json.hpp> - +#include <cstdint> #include <format> +#include <memory> #include <string> -#include <gmock/gmock.h> #include <gtest/gtest.h> namespace redfish diff --git a/test/redfish-core/lib/manager_diagnostic_data_test.cpp b/test/redfish-core/lib/manager_diagnostic_data_test.cpp index b59842ab57..c10bd57c53 100644 --- a/test/redfish-core/lib/manager_diagnostic_data_test.cpp +++ b/test/redfish-core/lib/manager_diagnostic_data_test.cpp @@ -1,8 +1,13 @@ #include "async_resp.hpp" #include "manager_diagnostic_data.hpp" +#include <boost/asio/error.hpp> +#include <boost/beast/http/status.hpp> +#include <boost/system/linux_error.hpp> #include <nlohmann/json.hpp> +#include <cstdint> +#include <limits> #include <memory> #include <gtest/gtest.h> diff --git a/test/redfish-core/lib/power_subsystem_test.cpp b/test/redfish-core/lib/power_subsystem_test.cpp index 1dfbbeb3ff..39ec3118d5 100644 --- a/test/redfish-core/lib/power_subsystem_test.cpp +++ b/test/redfish-core/lib/power_subsystem_test.cpp @@ -1,8 +1,10 @@ #include "async_resp.hpp" +#include "http_response.hpp" #include "power_subsystem.hpp" #include <nlohmann/json.hpp> +#include <memory> #include <optional> #include <string> diff --git a/test/redfish-core/lib/service_root_test.cpp b/test/redfish-core/lib/service_root_test.cpp index 78c068d760..3d47221041 100644 --- a/test/redfish-core/lib/service_root_test.cpp +++ b/test/redfish-core/lib/service_root_test.cpp @@ -7,7 +7,6 @@ #include <nlohmann/json.hpp> #include <memory> -#include <vector> #include <gmock/gmock.h> // IWYU pragma: keep #include <gtest/gtest.h> // IWYU pragma: keep diff --git a/test/redfish-core/lib/system_test.cpp b/test/redfish-core/lib/system_test.cpp index 481c0df746..0becca8956 100644 --- a/test/redfish-core/lib/system_test.cpp +++ b/test/redfish-core/lib/system_test.cpp @@ -1,17 +1,16 @@ -#include "app.hpp" #include "async_resp.hpp" -#include "http_request.hpp" +#include "generated/enums/resource.hpp" #include "http_response.hpp" #include "systems.hpp" -#include <boost/beast/core/string_type.hpp> -#include <boost/beast/http/message.hpp> -#include <boost/system/error_code.hpp> +#include <boost/asio/error.hpp> +#include <boost/beast/http/status.hpp> +#include <boost/system/linux_error.hpp> #include <nlohmann/json.hpp> #include <memory> #include <string> -#include <system_error> +#include <utility> #include <vector> #include <gtest/gtest.h> diff --git a/test/redfish-core/lib/thermal_subsystem_test.cpp b/test/redfish-core/lib/thermal_subsystem_test.cpp index 305e29aeee..35df514c59 100644 --- a/test/redfish-core/lib/thermal_subsystem_test.cpp +++ b/test/redfish-core/lib/thermal_subsystem_test.cpp @@ -1,8 +1,10 @@ #include "async_resp.hpp" +#include "http_response.hpp" #include "thermal_subsystem.hpp" #include <nlohmann/json.hpp> +#include <memory> #include <optional> #include <string> diff --git a/test/redfish-core/lib/update_service_test.cpp b/test/redfish-core/lib/update_service_test.cpp index 6b90aef416..d56d709f5f 100644 --- a/test/redfish-core/lib/update_service_test.cpp +++ b/test/redfish-core/lib/update_service_test.cpp @@ -1,6 +1,9 @@ +#include "http_response.hpp" #include "update_service.hpp" +#include <optional> + #include <gtest/gtest.h> namespace redfish |