summaryrefslogtreecommitdiff
path: root/test/other_tools/git_operations
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/other_tools/git_operations
parent506ffd3bd96da9bac18f377822ca4f2954f75f71 (diff)
downloadjustbuild-9c3d4539b820b34ca112dedbaf2ed5262c003ace.tar.gz
tests: Implement IWYU suggestions
Diffstat (limited to 'test/other_tools/git_operations')
-rw-r--r--test/other_tools/git_operations/TARGETS6
-rw-r--r--test/other_tools/git_operations/critical_git_ops.test.cpp5
-rw-r--r--test/other_tools/git_operations/git_config_run.test.cpp1
-rw-r--r--test/other_tools/git_operations/git_repo_remote.test.cpp5
4 files changed, 10 insertions, 7 deletions
diff --git a/test/other_tools/git_operations/TARGETS b/test/other_tools/git_operations/TARGETS
index f63258b5..77b1ee2f 100644
--- a/test/other_tools/git_operations/TARGETS
+++ b/test/other_tools/git_operations/TARGETS
@@ -6,9 +6,10 @@
, "private-deps":
[ ["@", "catch2", "", "catch2"]
, ["@", "fmt", "", "fmt"]
- , ["@", "json", "", "json"]
, ["@", "src", "src/buildtool/execution_api/common", "common"]
, ["@", "src", "src/buildtool/file_system", "file_system_manager"]
+ , ["@", "src", "src/buildtool/multithreading", "task_system"]
+ , ["@", "src", "src/other_tools/git_operations", "git_ops_types"]
, ["@", "src", "src/other_tools/ops_maps", "critical_git_op_map"]
, ["", "catch-main"]
, ["utils", "shell_quoting"]
@@ -30,11 +31,10 @@
, "private-deps":
[ ["@", "catch2", "", "catch2"]
, ["@", "fmt", "", "fmt"]
- , ["@", "json", "", "json"]
, ["@", "src", "src/buildtool/file_system", "file_system_manager"]
+ , ["@", "src", "src/buildtool/file_system", "git_cas"]
, ["@", "src", "src/buildtool/logging", "log_level"]
, ["@", "src", "src/buildtool/logging", "logging"]
- , ["@", "src", "src/buildtool/storage", "config"]
, ["@", "src", "src/other_tools/git_operations", "git_repo_remote"]
, ["@", "src", "src/utils/cpp", "atomic"]
, ["", "catch-main"]
diff --git a/test/other_tools/git_operations/critical_git_ops.test.cpp b/test/other_tools/git_operations/critical_git_ops.test.cpp
index aa93b391..d36dadef 100644
--- a/test/other_tools/git_operations/critical_git_ops.test.cpp
+++ b/test/other_tools/git_operations/critical_git_ops.test.cpp
@@ -17,17 +17,18 @@
#include <cstddef>
#include <cstdlib> // std::system
#include <filesystem>
+#include <memory>
#include <numeric>
#include <optional>
#include <string>
-#include <thread>
#include <vector>
#include "catch2/catch_test_macros.hpp"
#include "fmt/core.h"
-#include "nlohmann/json.hpp"
#include "src/buildtool/execution_api/common/execution_common.hpp"
#include "src/buildtool/file_system/file_system_manager.hpp"
+#include "src/buildtool/multithreading/task_system.hpp"
+#include "src/other_tools/git_operations/git_ops_types.hpp"
#include "src/other_tools/ops_maps/critical_git_op_map.hpp"
#include "test/utils/shell_quoting.hpp"
diff --git a/test/other_tools/git_operations/git_config_run.test.cpp b/test/other_tools/git_operations/git_config_run.test.cpp
index 34d625cd..324f6ca9 100644
--- a/test/other_tools/git_operations/git_config_run.test.cpp
+++ b/test/other_tools/git_operations/git_config_run.test.cpp
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include <cstddef>
#include <exception>
#include <filesystem>
#include <functional>
diff --git a/test/other_tools/git_operations/git_repo_remote.test.cpp b/test/other_tools/git_operations/git_repo_remote.test.cpp
index 39f0bd8a..15912670 100644
--- a/test/other_tools/git_operations/git_repo_remote.test.cpp
+++ b/test/other_tools/git_operations/git_repo_remote.test.cpp
@@ -17,18 +17,19 @@
#include <atomic>
#include <cstdlib>
#include <filesystem>
+#include <functional>
#include <memory>
#include <optional>
#include <string>
#include <thread>
+#include <vector>
#include "catch2/catch_test_macros.hpp"
#include "fmt/core.h"
-#include "nlohmann/json.hpp"
#include "src/buildtool/file_system/file_system_manager.hpp"
+#include "src/buildtool/file_system/git_cas.hpp"
#include "src/buildtool/logging/log_level.hpp"
#include "src/buildtool/logging/logger.hpp"
-#include "src/buildtool/storage/config.hpp"
#include "src/utils/cpp/atomic.hpp"
#include "test/utils/hermeticity/test_storage_config.hpp"
#include "test/utils/shell_quoting.hpp"