Remove IWYU pragmas
These were added as part of
d5c80ad9c07b94465d8ea62d2b6f87c30cac765e: test treewide: iwyu
Since then, Nan hasn't been very active on the project, and to my
knowledge, since the initial run, we've never used IWYU again.
clang-include-cleaner seems to work well without needing these pragmas,
and is what we're using, even if it's less useful than IWYU.
Remove all mention of IWYU.
Tested: Code compiles.
Change-Id: I06feedeeac9a114f5bdec81d59ca83223efd8aa7
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/include/dbus_utility.hpp b/include/dbus_utility.hpp
index c9604f0..11163de 100644
--- a/include/dbus_utility.hpp
+++ b/include/dbus_utility.hpp
@@ -19,7 +19,7 @@
#include "dbus_singleton.hpp"
#include "logging.hpp"
-#include <boost/system/error_code.hpp> // IWYU pragma: keep
+#include <boost/system/error_code.hpp>
#include <sdbusplus/asio/property.hpp>
#include <sdbusplus/message/native_types.hpp>
@@ -38,10 +38,6 @@
#include <variant>
#include <vector>
-// IWYU pragma: no_include <stddef.h>
-// IWYU pragma: no_include <stdint.h>
-// IWYU pragma: no_include <boost/system/detail/error_code.hpp>
-
namespace dbus
{
diff --git a/include/http_utility.hpp b/include/http_utility.hpp
index c6c0e3e..3eef889 100644
--- a/include/http_utility.hpp
+++ b/include/http_utility.hpp
@@ -10,8 +10,6 @@
#include <string_view>
#include <vector>
-// IWYU pragma: no_include <ctype.h>
-
namespace http_helpers
{
diff --git a/include/openbmc_dbus_rest.hpp b/include/openbmc_dbus_rest.hpp
index 9a3a632..4671793 100644
--- a/include/openbmc_dbus_rest.hpp
+++ b/include/openbmc_dbus_rest.hpp
@@ -64,15 +64,6 @@
#include <variant>
#include <vector>
-// IWYU pragma: no_include <boost/algorithm/string/detail/classification.hpp>
-// IWYU pragma: no_include <boost/system/detail/error_code.hpp>
-// IWYU pragma: no_include <boost/system/detail/error_category.hpp>
-// IWYU pragma: no_include <errno.h>
-// IWYU pragma: no_include <string.h>
-// IWYU pragma: no_include <ext/alloc_traits.h>
-// IWYU pragma: no_include <exception>
-// IWYU pragma: no_include <boost/type_index/type_index_facade.hpp>
-
namespace crow
{
namespace openbmc_mapper
diff --git a/redfish-core/include/error_messages.hpp b/redfish-core/include/error_messages.hpp
index 5866e27..cf10b44 100644
--- a/redfish-core/include/error_messages.hpp
+++ b/redfish-core/include/error_messages.hpp
@@ -25,7 +25,6 @@
#include <string>
#include <string_view>
-// IWYU pragma: no_include <cstdint.h>
// IWYU pragma: no_forward_declare crow::Response
namespace redfish
diff --git a/redfish-core/include/privileges.hpp b/redfish-core/include/privileges.hpp
index 87780ee..8a4fd77 100644
--- a/redfish-core/include/privileges.hpp
+++ b/redfish-core/include/privileges.hpp
@@ -32,8 +32,6 @@
#include <utility>
#include <vector>
-// IWYU pragma: no_include <stddef.h>
-
namespace redfish
{
diff --git a/redfish-core/include/query.hpp b/redfish-core/include/query.hpp
index a46bd4a..89f862d 100644
--- a/redfish-core/include/query.hpp
+++ b/redfish-core/include/query.hpp
@@ -23,8 +23,6 @@
#include <utility>
// IWYU pragma: no_forward_declare crow::App
-// IWYU pragma: no_include <boost/url/impl/params_view.hpp>
-// IWYU pragma: no_include <boost/url/impl/url_view.hpp>
#include "redfish_aggregator.hpp"
diff --git a/redfish-core/include/registries.hpp b/redfish-core/include/registries.hpp
index 3d572c2..837588a 100644
--- a/redfish-core/include/registries.hpp
+++ b/redfish-core/include/registries.hpp
@@ -26,8 +26,6 @@
#include <string_view>
#include <utility>
-// IWYU pragma: no_include <stddef.h>
-
namespace redfish::registries
{
struct Header
diff --git a/redfish-core/include/utils/json_utils.hpp b/redfish-core/include/utils/json_utils.hpp
index bc1a69a..d335878 100644
--- a/redfish-core/include/utils/json_utils.hpp
+++ b/redfish-core/include/utils/json_utils.hpp
@@ -41,7 +41,6 @@
#include <variant>
#include <vector>
-// IWYU pragma: no_include <stdint.h>
// IWYU pragma: no_forward_declare crow::Request
namespace redfish
diff --git a/redfish-core/include/utils/query_param.hpp b/redfish-core/include/utils/query_param.hpp
index 5de3967..34ba5b3 100644
--- a/redfish-core/include/utils/query_param.hpp
+++ b/redfish-core/include/utils/query_param.hpp
@@ -14,7 +14,7 @@
#include <sys/types.h>
-#include <boost/beast/http/message.hpp> // IWYU pragma: keep
+#include <boost/beast/http/message.hpp>
#include <boost/beast/http/status.hpp>
#include <boost/beast/http/verb.hpp>
#include <boost/url/params_view.hpp>
@@ -39,14 +39,6 @@
#include <utility>
#include <vector>
-// IWYU pragma: no_include <boost/url/impl/params_view.hpp>
-// IWYU pragma: no_include <boost/beast/http/impl/message.hpp>
-// IWYU pragma: no_include <boost/intrusive/detail/list_iterator.hpp>
-// IWYU pragma: no_include <boost/algorithm/string/detail/classification.hpp>
-// IWYU pragma: no_include <boost/iterator/iterator_facade.hpp>
-// IWYU pragma: no_include <boost/type_index/type_index_facade.hpp>
-// IWYU pragma: no_include <stdint.h>
-
namespace redfish
{
namespace query_param
diff --git a/redfish-core/include/utils/time_utils.hpp b/redfish-core/include/utils/time_utils.hpp
index 17509b0..fbcd39e 100644
--- a/redfish-core/include/utils/time_utils.hpp
+++ b/redfish-core/include/utils/time_utils.hpp
@@ -13,9 +13,6 @@
#include <string>
#include <string_view>
-// IWYU pragma: no_include <stddef.h>
-// IWYU pragma: no_include <stdint.h>
-
namespace redfish
{
diff --git a/redfish-core/src/error_messages.cpp b/redfish-core/src/error_messages.cpp
index 7bb8a37..503aaff 100644
--- a/redfish-core/src/error_messages.cpp
+++ b/redfish-core/src/error_messages.cpp
@@ -34,8 +34,6 @@
#include <string_view>
#include <utility>
-// IWYU pragma: no_include <stddef.h>
-
namespace redfish
{
diff --git a/test/http/crow_getroutes_test.cpp b/test/http/crow_getroutes_test.cpp
index 0c3f8de..dc6e427 100644
--- a/test/http/crow_getroutes_test.cpp
+++ b/test/http/crow_getroutes_test.cpp
@@ -4,15 +4,8 @@
#include <memory>
-#include <gmock/gmock.h> // IWYU pragma: keep
-#include <gtest/gtest.h> // IWYU pragma: keep
-
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
-// IWYU pragma: no_include <gmock/gmock-matchers.h>
-// IWYU pragma: no_include <gmock/gmock-more-matchers.h>
-// IWYU pragma: no_include <gtest/gtest-matchers.h>
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
namespace crow
{
diff --git a/test/http/mutual_tls.cpp b/test/http/mutual_tls.cpp
index e354466..bb3cbbf 100644
--- a/test/http/mutual_tls.cpp
+++ b/test/http/mutual_tls.cpp
@@ -21,7 +21,7 @@
#include <memory>
#include <gmock/gmock.h>
-#include <gtest/gtest.h> // IWYU pragma: keep
+#include <gtest/gtest.h>
using ::testing::IsNull;
using ::testing::NotNull;
diff --git a/test/http/mutual_tls_meta.cpp b/test/http/mutual_tls_meta.cpp
index 0e280c1..918a9c9 100644
--- a/test/http/mutual_tls_meta.cpp
+++ b/test/http/mutual_tls_meta.cpp
@@ -4,7 +4,7 @@
#include <string>
#include <vector>
-#include <gtest/gtest.h> // IWYU pragma: keep
+#include <gtest/gtest.h>
namespace redfish
{
diff --git a/test/http/router_test.cpp b/test/http/router_test.cpp
index e0e5b7a..5430872 100644
--- a/test/http/router_test.cpp
+++ b/test/http/router_test.cpp
@@ -1,9 +1,8 @@
-#include "async_resp.hpp" // IWYU pragma: keep
+#include "async_resp.hpp"
#include "http_request.hpp"
#include "routing.hpp"
#include "utility.hpp"
-#include <boost/beast/http/message.hpp> // IWYU pragma: keep
#include <boost/beast/http/verb.hpp>
#include <memory>
@@ -11,13 +10,8 @@
#include <string_view>
#include <system_error>
-#include <gtest/gtest.h> // IWYU pragma: keep
+#include <gtest/gtest.h>
-// IWYU pragma: no_include <boost/beast/http/impl/message.hpp>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
-// IWYU pragma: no_include <boost/intrusive/detail/list_iterator.hpp>
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
// IWYU pragma: no_forward_declare bmcweb::AsyncResp
namespace crow
diff --git a/test/http/utility_test.cpp b/test/http/utility_test.cpp
index f5ae5b1..36725ef 100644
--- a/test/http/utility_test.cpp
+++ b/test/http/utility_test.cpp
@@ -12,10 +12,7 @@
#include <string>
#include <string_view>
-#include <gtest/gtest.h> // IWYU pragma: keep
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
+#include <gtest/gtest.h>
namespace crow::utility
{
diff --git a/test/http/verb_test.cpp b/test/http/verb_test.cpp
index 698e39c..c2faab3 100644
--- a/test/http/verb_test.cpp
+++ b/test/http/verb_test.cpp
@@ -6,7 +6,7 @@
#include <optional>
#include <string_view>
-#include <gtest/gtest.h> // IWYU pragma: keep
+#include <gtest/gtest.h>
using BoostVerb = boost::beast::http::verb;
diff --git a/test/include/dbus_utility_test.cpp b/test/include/dbus_utility_test.cpp
index c6b02c6..eb8ac17 100644
--- a/test/include/dbus_utility_test.cpp
+++ b/test/include/dbus_utility_test.cpp
@@ -2,11 +2,7 @@
#include <string>
-#include <gtest/gtest.h> // IWYU pragma: keep
-
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
+#include <gtest/gtest.h>
namespace dbus::utility
{
diff --git a/test/include/http_utility_test.cpp b/test/include/http_utility_test.cpp
index d2060c1..d4823da 100644
--- a/test/include/http_utility_test.cpp
+++ b/test/include/http_utility_test.cpp
@@ -2,11 +2,7 @@
#include <array>
-#include <gtest/gtest.h> // IWYU pragma: keep
-
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
+#include <gtest/gtest.h>
namespace http_helpers
{
diff --git a/test/include/human_sort_test.cpp b/test/include/human_sort_test.cpp
index 741fb3d..dec8a52 100644
--- a/test/include/human_sort_test.cpp
+++ b/test/include/human_sort_test.cpp
@@ -3,13 +3,8 @@
#include <set>
#include <string>
-#include <gmock/gmock.h> // IWYU pragma: keep
-#include <gtest/gtest.h> // IWYU pragma: keep
-
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
-// IWYU pragma: no_include <gmock/gmock-matchers.h>
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
namespace
{
diff --git a/test/include/ibm/configfile_test.cpp b/test/include/ibm/configfile_test.cpp
index 1d95a79..f6f042d 100644
--- a/test/include/ibm/configfile_test.cpp
+++ b/test/include/ibm/configfile_test.cpp
@@ -3,11 +3,7 @@
#include <string>
-#include <gtest/gtest.h> // IWYU pragma: keep
-
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
+#include <gtest/gtest.h>
namespace crow
{
diff --git a/test/include/json_html_serializer.cpp b/test/include/json_html_serializer.cpp
index 82e21b9..5aebb3a 100644
--- a/test/include/json_html_serializer.cpp
+++ b/test/include/json_html_serializer.cpp
@@ -4,11 +4,7 @@
#include <string>
-#include <gtest/gtest.h> // IWYU pragma: keep
-
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
+#include <gtest/gtest.h>
namespace json_html_util
{
diff --git a/test/include/multipart_test.cpp b/test/include/multipart_test.cpp
index 9e79dbd..c294b7b 100644
--- a/test/include/multipart_test.cpp
+++ b/test/include/multipart_test.cpp
@@ -8,14 +8,7 @@
#include <system_error>
#include <vector>
-#include <gtest/gtest.h> // IWYU pragma: keep
-
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
-// IWYU pragma: no_include <boost/beast/http/impl/fields.hpp>
-// IWYU pragma: no_include <boost/intrusive/detail/list_iterator.hpp>
-// IWYU pragma: no_include <boost/intrusive/detail/tree_iterator.hpp>
+#include <gtest/gtest.h>
namespace
{
diff --git a/test/include/openbmc_dbus_rest_test.cpp b/test/include/openbmc_dbus_rest_test.cpp
index b01e92a..7efd10d 100644
--- a/test/include/openbmc_dbus_rest_test.cpp
+++ b/test/include/openbmc_dbus_rest_test.cpp
@@ -1,12 +1,7 @@
#include "openbmc_dbus_rest.hpp"
-#include <gmock/gmock.h> // IWYU pragma: keep
-#include <gtest/gtest.h> // IWYU pragma: keep
-
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
-// IWYU pragma: no_include <gmock/gmock-matchers.h>
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
namespace crow::openbmc_mapper
{
diff --git a/test/include/ossl_random.cpp b/test/include/ossl_random.cpp
index 1b9a2b8..f0c7697 100644
--- a/test/include/ossl_random.cpp
+++ b/test/include/ossl_random.cpp
@@ -1,7 +1,7 @@
#include "ossl_random.hpp"
-#include <gmock/gmock.h> // IWYU pragma: keep
-#include <gtest/gtest.h> // IWYU pragma: keep
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
namespace
{
diff --git a/test/include/str_utility_test.cpp b/test/include/str_utility_test.cpp
index c52cab9..a214d31 100644
--- a/test/include/str_utility_test.cpp
+++ b/test/include/str_utility_test.cpp
@@ -3,13 +3,8 @@
#include <string>
#include <vector>
-#include <gmock/gmock.h> // IWYU pragma: keep
-#include <gtest/gtest.h> // IWYU pragma: keep
-
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
-// IWYU pragma: no_include <gmock/gmock-matchers.h>
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
namespace
{
diff --git a/test/redfish-core/include/privileges_test.cpp b/test/redfish-core/include/privileges_test.cpp
index fe098ed..0005f57 100644
--- a/test/redfish-core/include/privileges_test.cpp
+++ b/test/redfish-core/include/privileges_test.cpp
@@ -4,14 +4,8 @@
#include <array>
-#include <gmock/gmock.h> // IWYU pragma: keep
-#include <gtest/gtest.h> // IWYU pragma: keep
-
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
-// IWYU pragma: no_include <gmock/gmock-matchers.h>
-// IWYU pragma: no_include <gmock/gmock-more-matchers.h>
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
namespace redfish
{
diff --git a/test/redfish-core/include/redfish_aggregator_test.cpp b/test/redfish-core/include/redfish_aggregator_test.cpp
index 5274e1b..9d8ea07 100644
--- a/test/redfish-core/include/redfish_aggregator_test.cpp
+++ b/test/redfish-core/include/redfish_aggregator_test.cpp
@@ -12,7 +12,7 @@
#include <string>
#include <utility>
-#include <gtest/gtest.h> // IWYU pragma: keep
+#include <gtest/gtest.h>
namespace redfish
{
diff --git a/test/redfish-core/include/registries_test.cpp b/test/redfish-core/include/registries_test.cpp
index 25f2c60..692d2d4 100644
--- a/test/redfish-core/include/registries_test.cpp
+++ b/test/redfish-core/include/registries_test.cpp
@@ -1,11 +1,7 @@
#include "registries.hpp"
#include "registries/openbmc_message_registry.hpp"
-#include <gtest/gtest.h> // IWYU pragma: keep
-
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
+#include <gtest/gtest.h>
namespace redfish::registries
{
diff --git a/test/redfish-core/include/utils/hex_utils_test.cpp b/test/redfish-core/include/utils/hex_utils_test.cpp
index a4ff5b7..a4b376c 100644
--- a/test/redfish-core/include/utils/hex_utils_test.cpp
+++ b/test/redfish-core/include/utils/hex_utils_test.cpp
@@ -5,13 +5,8 @@
#include <limits>
#include <vector>
-#include <gmock/gmock.h> // IWYU pragma: keep
-#include <gtest/gtest.h> // IWYU pragma: keep
-
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
namespace
{
diff --git a/test/redfish-core/include/utils/ip_utils_test.cpp b/test/redfish-core/include/utils/ip_utils_test.cpp
index 67cacc0..0cfe4cb 100644
--- a/test/redfish-core/include/utils/ip_utils_test.cpp
+++ b/test/redfish-core/include/utils/ip_utils_test.cpp
@@ -4,11 +4,7 @@
#include <cstdint>
-#include <gtest/gtest.h> // IWYU pragma: keep
-
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
+#include <gtest/gtest.h>
namespace redfish::ip_util
{
diff --git a/test/redfish-core/include/utils/json_utils_test.cpp b/test/redfish-core/include/utils/json_utils_test.cpp
index cf59297..2238728 100644
--- a/test/redfish-core/include/utils/json_utils_test.cpp
+++ b/test/redfish-core/include/utils/json_utils_test.cpp
@@ -14,13 +14,8 @@
#include <variant>
#include <vector>
-#include <gmock/gmock.h> // IWYU pragma: keep
-#include <gtest/gtest.h> // IWYU pragma: keep
-
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
-// IWYU pragma: no_include <boost/intrusive/detail/list_iterator.hpp>
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
namespace redfish::json_util
{
diff --git a/test/redfish-core/include/utils/query_param_test.cpp b/test/redfish-core/include/utils/query_param_test.cpp
index b466f81..6c6524d 100644
--- a/test/redfish-core/include/utils/query_param_test.cpp
+++ b/test/redfish-core/include/utils/query_param_test.cpp
@@ -17,15 +17,8 @@
#include <utility>
#include <vector>
-#include <gmock/gmock.h> // IWYU pragma: keep
-#include <gtest/gtest.h> // IWYU pragma: keep
-
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
-// IWYU pragma: no_include <boost/url/impl/url_view.hpp>
-// IWYU pragma: no_include <gmock/gmock-matchers.h>
-// IWYU pragma: no_include <gtest/gtest-matchers.h>
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
namespace redfish::query_param
{
diff --git a/test/redfish-core/include/utils/stl_utils_test.cpp b/test/redfish-core/include/utils/stl_utils_test.cpp
index d8c0a1c..587f835 100644
--- a/test/redfish-core/include/utils/stl_utils_test.cpp
+++ b/test/redfish-core/include/utils/stl_utils_test.cpp
@@ -3,12 +3,8 @@
#include <string>
#include <vector>
-#include <gmock/gmock.h> // IWYU pragma: keep
-#include <gtest/gtest.h> // IWYU pragma: keep
-
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
namespace redfish::stl_utils
{
diff --git a/test/redfish-core/include/utils/time_utils_test.cpp b/test/redfish-core/include/utils/time_utils_test.cpp
index 3777208..ca11097 100644
--- a/test/redfish-core/include/utils/time_utils_test.cpp
+++ b/test/redfish-core/include/utils/time_utils_test.cpp
@@ -6,14 +6,7 @@
#include <limits>
#include <optional>
-#include <gmock/gmock.h> // IWYU pragma: keep
-#include <gtest/gtest.h> // IWYU pragma: keep
-
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
-// IWYU pragma: no_include <gmock/gmock-matchers.h>
-// IWYU pragma: no_include <gtest/gtest-matchers.h>
+#include <gtest/gtest.h>
namespace redfish::time_utils
{
diff --git a/test/redfish-core/lib/service_root_test.cpp b/test/redfish-core/lib/service_root_test.cpp
index 02e9f20..6d0122c 100644
--- a/test/redfish-core/lib/service_root_test.cpp
+++ b/test/redfish-core/lib/service_root_test.cpp
@@ -9,14 +9,8 @@
#include <cstddef>
#include <memory>
-#include <gmock/gmock.h> // IWYU pragma: keep
-#include <gtest/gtest.h> // IWYU pragma: keep
-
-// IWYU pragma: no_include <gtest/gtest-message.h>
-// IWYU pragma: no_include <gtest/gtest-test-part.h>
-// IWYU pragma: no_include "gtest/gtest_pred_impl.h"
-// IWYU pragma: no_include <gmock/gmock-matchers.h>
-// IWYU pragma: no_include <gtest/gtest-matchers.h>
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
namespace redfish
{