summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_api/execution_service
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-11-14 09:44:47 +0100
committerMaksim Denisov <denisov.maksim@huawei.com>2024-11-14 14:23:06 +0100
commit9c3d4539b820b34ca112dedbaf2ed5262c003ace (patch)
treef304adf8c9584bf434224620b91860502eb87e15 /test/buildtool/execution_api/execution_service
parent506ffd3bd96da9bac18f377822ca4f2954f75f71 (diff)
downloadjustbuild-9c3d4539b820b34ca112dedbaf2ed5262c003ace.tar.gz
tests: Implement IWYU suggestions
Diffstat (limited to 'test/buildtool/execution_api/execution_service')
-rw-r--r--test/buildtool/execution_api/execution_service/TARGETS4
-rw-r--r--test/buildtool/execution_api/execution_service/cas_server.test.cpp11
2 files changed, 13 insertions, 2 deletions
diff --git a/test/buildtool/execution_api/execution_service/TARGETS b/test/buildtool/execution_api/execution_service/TARGETS
index 5c585c12..c71380c4 100644
--- a/test/buildtool/execution_api/execution_service/TARGETS
+++ b/test/buildtool/execution_api/execution_service/TARGETS
@@ -4,10 +4,12 @@
, "srcs": ["cas_server.test.cpp"]
, "private-deps":
[ ["@", "catch2", "", "catch2"]
+ , ["@", "grpc", "", "grpc++"]
, ["@", "gsl", "", "gsl"]
, ["@", "src", "src/buildtool/common", "bazel_digest_factory"]
- , ["@", "src", "src/buildtool/common", "common"]
+ , ["@", "src", "src/buildtool/common", "bazel_types"]
, ["@", "src", "src/buildtool/common", "protocol_traits"]
+ , ["@", "src", "src/buildtool/crypto", "hash_function"]
, [ "@"
, "src"
, "src/buildtool/execution_api/execution_service"
diff --git a/test/buildtool/execution_api/execution_service/cas_server.test.cpp b/test/buildtool/execution_api/execution_service/cas_server.test.cpp
index af5a3d58..eb3665e9 100644
--- a/test/buildtool/execution_api/execution_service/cas_server.test.cpp
+++ b/test/buildtool/execution_api/execution_service/cas_server.test.cpp
@@ -14,13 +14,22 @@
#include "src/buildtool/execution_api/execution_service/cas_server.hpp"
+#include <functional>
+#include <optional>
#include <string>
+#include <utility>
+#include <vector>
+#include <grpcpp/support/status.h>
+
+// Don't include "proto"
+// IWYU pragma: no_include "build/bazel/remote/execution/v2/remote_execution.grpc.pb.h"
#include "catch2/catch_test_macros.hpp"
#include "gsl/gsl"
-#include "src/buildtool/common/artifact_digest.hpp"
#include "src/buildtool/common/bazel_digest_factory.hpp"
+#include "src/buildtool/common/bazel_types.hpp"
#include "src/buildtool/common/protocol_traits.hpp"
+#include "src/buildtool/crypto/hash_function.hpp"
#include "src/buildtool/execution_api/local/config.hpp"
#include "src/buildtool/execution_api/local/context.hpp"
#include "src/buildtool/file_system/git_repo.hpp"