diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2025-02-14 15:16:10 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2025-02-19 17:50:30 +0100 |
commit | 8ab573ef1c624e2ed81b2032178c25451176d2f1 (patch) | |
tree | b3e41ee30eed3240bcd18502b7972903e7c2a53e /test/utils/executor/test_api_bundle.hpp | |
parent | dfa481bd5f97d92c444dc31a4a051cb890494d1d (diff) | |
download | justbuild-8ab573ef1c624e2ed81b2032178c25451176d2f1.tar.gz |
ApiBundle: Remove HashFunction.
And ensure every user obtains HashFunction from corresponding IExecutionApi
Diffstat (limited to 'test/utils/executor/test_api_bundle.hpp')
-rw-r--r-- | test/utils/executor/test_api_bundle.hpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/utils/executor/test_api_bundle.hpp b/test/utils/executor/test_api_bundle.hpp index 1661b8bf..97f917c4 100644 --- a/test/utils/executor/test_api_bundle.hpp +++ b/test/utils/executor/test_api_bundle.hpp @@ -16,18 +16,14 @@ #define INCLUDED_SRC_TEST_UTILS_EXECUTOR_TEST_API_BUNDLE_HPP #include "gsl/gsl" -#include "src/buildtool/crypto/hash_function.hpp" #include "src/buildtool/execution_api/common/api_bundle.hpp" #include "src/buildtool/execution_api/common/execution_api.hpp" /// \brief Creates an ApiBundle that contains a given IExecutionApi -/// implementation. As only the hash_function field is actually needed, the -/// remote_context and repo_config are not needed to be provided. +/// implementation. [[nodiscard]] static auto CreateTestApiBundle( - HashFunction hash_function, gsl::not_null<IExecutionApi::Ptr> const& api) noexcept -> ApiBundle { - return ApiBundle{ - .hash_function = hash_function, .local = api, .remote = api}; + return ApiBundle{.local = api, .remote = api}; } #endif // INCLUDED_SRC_TEST_UTILS_EXECUTOR_TEST_API_BUNDLE_HPP |