From 9c3d4539b820b34ca112dedbaf2ed5262c003ace Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 14 Nov 2024 09:44:47 +0100 Subject: tests: Implement IWYU suggestions --- test/utils/remote_execution/bazel_action_creator.hpp | 6 +++++- test/utils/remote_execution/main-remote-execution.cpp | 9 +++------ test/utils/remote_execution/test_auth_config.hpp | 3 ++- test/utils/remote_execution/test_remote_config.hpp | 2 ++ 4 files changed, 12 insertions(+), 8 deletions(-) (limited to 'test/utils/remote_execution') diff --git a/test/utils/remote_execution/bazel_action_creator.hpp b/test/utils/remote_execution/bazel_action_creator.hpp index b7185121..1499424c 100644 --- a/test/utils/remote_execution/bazel_action_creator.hpp +++ b/test/utils/remote_execution/bazel_action_creator.hpp @@ -16,20 +16,24 @@ #define INCLUDED_SRC_TEST_UTILS_REMOTE_EXECUTION_ACTION_CREATOR_HPP #include // std::transform, std::copy +#include #include #include #include #include #include +#include "google/protobuf/repeated_ptr_field.h" #include "gsl/gsl" -#include "src/buildtool/auth/authentication.hpp" #include "src/buildtool/common/bazel_digest_factory.hpp" #include "src/buildtool/common/bazel_types.hpp" +#include "src/buildtool/common/remote/remote_common.hpp" #include "src/buildtool/common/remote/retry_config.hpp" #include "src/buildtool/crypto/hash_function.hpp" +#include "src/buildtool/execution_api/bazel_msg/bazel_blob_container.hpp" #include "src/buildtool/execution_api/remote/bazel/bazel_cas_client.hpp" #include "src/buildtool/execution_api/remote/config.hpp" +#include "src/buildtool/file_system/object_type.hpp" #include "test/utils/remote_execution/test_auth_config.hpp" #include "test/utils/remote_execution/test_remote_config.hpp" diff --git a/test/utils/remote_execution/main-remote-execution.cpp b/test/utils/remote_execution/main-remote-execution.cpp index f7bbc4fc..324d5634 100644 --- a/test/utils/remote_execution/main-remote-execution.cpp +++ b/test/utils/remote_execution/main-remote-execution.cpp @@ -15,17 +15,14 @@ #define CATCH_CONFIG_RUNNER #include #include -#include -#include +#include #include #include "catch2/catch_session.hpp" -#include "catch2/catch_test_macros.hpp" +#include "src/buildtool/auth/authentication.hpp" +#include "src/buildtool/common/remote/remote_common.hpp" #include "src/buildtool/execution_api/remote/config.hpp" -#include "src/buildtool/file_system/file_system_manager.hpp" #include "src/buildtool/file_system/git_context.hpp" -#include "src/buildtool/logging/log_level.hpp" -#include "src/buildtool/logging/logger.hpp" #include "test/utils/logging/log_config.hpp" #include "test/utils/remote_execution/test_auth_config.hpp" #include "test/utils/remote_execution/test_remote_config.hpp" diff --git a/test/utils/remote_execution/test_auth_config.hpp b/test/utils/remote_execution/test_auth_config.hpp index 2f5cca25..c4ddfb99 100644 --- a/test/utils/remote_execution/test_auth_config.hpp +++ b/test/utils/remote_execution/test_auth_config.hpp @@ -16,12 +16,13 @@ #define INCLUDED_SRC_TEST_UTILS_REMOTE_EXECUTION_TEST_AUTH_CONFIG_HPP #include -#include +#include #include #include "src/buildtool/auth/authentication.hpp" #include "src/buildtool/logging/log_level.hpp" #include "src/buildtool/logging/logger.hpp" +#include "src/utils/cpp/expected.hpp" #include "test/utils/test_env.hpp" class TestAuthConfig final { diff --git a/test/utils/remote_execution/test_remote_config.hpp b/test/utils/remote_execution/test_remote_config.hpp index 513b24ea..9aa2484a 100644 --- a/test/utils/remote_execution/test_remote_config.hpp +++ b/test/utils/remote_execution/test_remote_config.hpp @@ -16,10 +16,12 @@ #define INCLUDED_SRC_TEST_UTILS_REMOTE_EXECUTION_TEST_REMOTE_CONFIG_HPP #include +#include #include "src/buildtool/execution_api/remote/config.hpp" #include "src/buildtool/logging/log_level.hpp" #include "src/buildtool/logging/logger.hpp" +#include "src/utils/cpp/expected.hpp" #include "test/utils/test_env.hpp" class TestRemoteConfig final { -- cgit v1.2.3