summaryrefslogtreecommitdiff
path: root/test/buildtool/build_engine/target_map/target_map.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/buildtool/build_engine/target_map/target_map.test.cpp')
-rw-r--r--test/buildtool/build_engine/target_map/target_map.test.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/buildtool/build_engine/target_map/target_map.test.cpp b/test/buildtool/build_engine/target_map/target_map.test.cpp
index c64bb306..18927cf4 100644
--- a/test/buildtool/build_engine/target_map/target_map.test.cpp
+++ b/test/buildtool/build_engine/target_map/target_map.test.cpp
@@ -960,15 +960,13 @@ TEST_CASE("built-in rules", "[target_map]") {
CHECK(!error);
CHECK(error_msg == "NONE");
CHECK(bar_result->Artifacts()->ToJson()["foo.txt."]["type"] == "KNOWN");
- CHECK(bar_result->Artifacts()->ToJson()["foo.txt."]["data"]["id"] ==
- storage_config.Get()
- .hash_function.ComputeBlobHash("bar")
- .HexString());
+ CHECK(
+ bar_result->Artifacts()->ToJson()["foo.txt."]["data"]["id"] ==
+ storage_config.Get().hash_function.HashBlobData("bar").HexString());
CHECK(baz_result->Artifacts()->ToJson()["foo.txt."]["type"] == "KNOWN");
- CHECK(baz_result->Artifacts()->ToJson()["foo.txt."]["data"]["id"] ==
- storage_config.Get()
- .hash_function.ComputeBlobHash("baz")
- .HexString());
+ CHECK(
+ baz_result->Artifacts()->ToJson()["foo.txt."]["data"]["id"] ==
+ storage_config.Get().hash_function.HashBlobData("baz").HexString());
}
}