summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_api/common
diff options
context:
space:
mode:
Diffstat (limited to 'test/buildtool/execution_api/common')
-rw-r--r--test/buildtool/execution_api/common/api_test.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/buildtool/execution_api/common/api_test.hpp b/test/buildtool/execution_api/common/api_test.hpp
index 81a11364..6d8e7928 100644
--- a/test/buildtool/execution_api/common/api_test.hpp
+++ b/test/buildtool/execution_api/common/api_test.hpp
@@ -132,8 +132,8 @@ using ExecProps = std::map<std::string, std::string>;
std::string test_content("test");
HashFunction const hash_function{Compatibility::IsCompatible()
- ? HashFunction::JustHash::Compatible
- : HashFunction::JustHash::Native};
+ ? HashFunction::Type::PlainSHA256
+ : HashFunction::Type::GitSHA1};
auto test_digest =
ArtifactDigest::Create<ObjectType::File>(hash_function, test_content);
@@ -215,8 +215,8 @@ using ExecProps = std::map<std::string, std::string>;
std::string test_content("test");
HashFunction const hash_function{Compatibility::IsCompatible()
- ? HashFunction::JustHash::Compatible
- : HashFunction::JustHash::Native};
+ ? HashFunction::Type::PlainSHA256
+ : HashFunction::Type::GitSHA1};
auto test_digest =
ArtifactDigest::Create<ObjectType::File>(hash_function, test_content);
@@ -305,8 +305,8 @@ using ExecProps = std::map<std::string, std::string>;
std::string test_content("test");
HashFunction const hash_function{Compatibility::IsCompatible()
- ? HashFunction::JustHash::Compatible
- : HashFunction::JustHash::Native};
+ ? HashFunction::Type::PlainSHA256
+ : HashFunction::Type::GitSHA1};
auto test_digest =
ArtifactDigest::Create<ObjectType::File>(hash_function, test_content);