diff options
author | Ed Tanous <ed@tanous.net> | 2024-04-16 21:10:17 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-04-19 21:53:34 +0300 |
commit | 5b90429a75c58797ec29ac9a8ed18c2dcd7d4950 (patch) | |
tree | cd7bbbe751cb9eef3bdf51abf372d1790aadce24 /test | |
parent | 211cfa49d10cb251b6504bacb13d8e87b4d9c1e4 (diff) | |
download | bmcweb-5b90429a75c58797ec29ac9a8ed18c2dcd7d4950.tar.xz |
Add missing headers
Most of these were found by breaking every redfish class handler into
its own compile unit:
When that's done, these missing headers become compile errors. We
should just fix them.
In addition, this allows us to enable automatic header checking in
clang-tidy using misc-header-cleaner. Because the compiler can now
"see" all the defines, it no longer tries to remove headers that it
thinks are unused.
[1] https://github.com/openbmc/bmcweb/commit/4fdee9e39e9f03122ee16a6fb251a380681f56ac
Tested: Code compiles.
Change-Id: Ifa27ac4a512362b7ded7cc3068648dc4aea6ad7b
Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'test')
-rw-r--r-- | test/http/http2_connection_test.cpp | 1 | ||||
-rw-r--r-- | test/redfish-core/include/utils/dbus_utils.cpp | 10 | ||||
-rw-r--r-- | test/redfish-core/lib/update_service_test.cpp | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/test/http/http2_connection_test.cpp b/test/http/http2_connection_test.cpp index dc71ef3d73..81c78a9a60 100644 --- a/test/http/http2_connection_test.cpp +++ b/test/http/http2_connection_test.cpp @@ -2,6 +2,7 @@ #include "http/http2_connection.hpp" #include "http/http_request.hpp" #include "http/http_response.hpp" +#include "nghttp2_adapters.hpp" #include <nghttp2/nghttp2.h> #include <unistd.h> diff --git a/test/redfish-core/include/utils/dbus_utils.cpp b/test/redfish-core/include/utils/dbus_utils.cpp index 00c53dec7f..3256c94fa1 100644 --- a/test/redfish-core/include/utils/dbus_utils.cpp +++ b/test/redfish-core/include/utils/dbus_utils.cpp @@ -1,19 +1,17 @@ #include "utils/dbus_utils.hpp" -#include "http_request.hpp" +#include "async_resp.hpp" #include "http_response.hpp" #include <boost/beast/http/status.hpp> +#include <boost/system/errc.hpp> #include <nlohmann/json.hpp> +#include <sdbusplus/message.hpp> -#include <cstdint> -#include <optional> +#include <memory> #include <string> -#include <system_error> -#include <vector> -#include <gmock/gmock.h> #include <gtest/gtest.h> namespace redfish::details diff --git a/test/redfish-core/lib/update_service_test.cpp b/test/redfish-core/lib/update_service_test.cpp index 540313154f..87af3f116a 100644 --- a/test/redfish-core/lib/update_service_test.cpp +++ b/test/redfish-core/lib/update_service_test.cpp @@ -2,6 +2,8 @@ #include "http_response.hpp" #include "update_service.hpp" +#include <boost/url/url.hpp> + #include <optional> #include <gtest/gtest.h> |