summaryrefslogtreecommitdiff
path: root/test/buildtool/crypto
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-07-17 09:20:48 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-22 17:02:34 +0200
commit0b80611163ffedb87dc2305320906f27e502cbcd (patch)
treeb80639687445a174fe4ac31b63725bb685bced8f /test/buildtool/crypto
parented8e56fa64bec6cb055b3d69022690a8a13d92ff (diff)
downloadjustbuild-0b80611163ffedb87dc2305320906f27e502cbcd.tar.gz
Unify tagging logic in HashFunction
Diffstat (limited to 'test/buildtool/crypto')
-rw-r--r--test/buildtool/crypto/hash_function.test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/buildtool/crypto/hash_function.test.cpp b/test/buildtool/crypto/hash_function.test.cpp
index 4a85e327..209f16a6 100644
--- a/test/buildtool/crypto/hash_function.test.cpp
+++ b/test/buildtool/crypto/hash_function.test.cpp
@@ -34,7 +34,7 @@ TEST_CASE("Hash Function", "[crypto]") {
CHECK(hash_function.ComputeTreeHash(bytes).HexString() ==
"5f0ecc1a989593005e80f457446133250fcc43cc");
- auto hasher = hash_function.Hasher();
+ auto hasher = hash_function.MakeHasher();
hasher.Update(bytes);
CHECK(std::move(hasher).Finalize().HexString() == // NOLINT
"a94a8fe5ccb19ba61c4c0873d391e987982fbbd3");
@@ -54,7 +54,7 @@ TEST_CASE("Hash Function", "[crypto]") {
hash_function.ComputeTreeHash(bytes).HexString() ==
"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08");
- auto hasher = hash_function.Hasher();
+ auto hasher = hash_function.MakeHasher();
hasher.Update(bytes);
CHECK(
std::move(hasher).Finalize().HexString() == // NOLINT