summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_api/bazel/bazel_execution_client.test.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-07-22 16:41:52 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-22 17:02:34 +0200
commit21014f3be3e4f8ebf34243f4f10841f0fb0b3843 (patch)
tree1208031cead9f9ca78d0f13a273f8242c045f3fc /test/buildtool/execution_api/bazel/bazel_execution_client.test.cpp
parentb2f51059cc034f03c70df28a5597a591ed3e5c5d (diff)
downloadjustbuild-21014f3be3e4f8ebf34243f4f10841f0fb0b3843.tar.gz
Rename HashFunction methods and enums
Diffstat (limited to 'test/buildtool/execution_api/bazel/bazel_execution_client.test.cpp')
-rw-r--r--test/buildtool/execution_api/bazel/bazel_execution_client.test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/buildtool/execution_api/bazel/bazel_execution_client.test.cpp b/test/buildtool/execution_api/bazel/bazel_execution_client.test.cpp
index 87bf48cd..d569f884 100644
--- a/test/buildtool/execution_api/bazel/bazel_execution_client.test.cpp
+++ b/test/buildtool/execution_api/bazel/bazel_execution_client.test.cpp
@@ -31,8 +31,8 @@ TEST_CASE("Bazel internals: Execution Client", "[execution_api]") {
std::string content("test");
HashFunction const hash_function{Compatibility::IsCompatible()
- ? HashFunction::JustHash::Compatible
- : HashFunction::JustHash::Native};
+ ? HashFunction::Type::PlainSHA256
+ : HashFunction::Type::GitSHA1};
auto test_digest = static_cast<bazel_re::Digest>(
ArtifactDigest::Create<ObjectType::File>(hash_function, content));
@@ -115,8 +115,8 @@ TEST_CASE("Bazel internals: Execution Client using env variables",
std::string content("contents of env variable");
HashFunction const hash_function{Compatibility::IsCompatible()
- ? HashFunction::JustHash::Compatible
- : HashFunction::JustHash::Native};
+ ? HashFunction::Type::PlainSHA256
+ : HashFunction::Type::GitSHA1};
auto test_digest = static_cast<bazel_re::Digest>(
ArtifactDigest::Create<ObjectType::File>(hash_function, content));