From 57388e7624c71762e6aac30f16809c467f96ca58 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 8 Jul 2024 15:56:38 +0200 Subject: Store HashFunction in StorageConfig --- test/buildtool/build_engine/target_map/target_map.test.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/buildtool/build_engine/target_map/target_map.test.cpp') 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 0880422f..c64bb306 100644 --- a/test/buildtool/build_engine/target_map/target_map.test.cpp +++ b/test/buildtool/build_engine/target_map/target_map.test.cpp @@ -961,10 +961,14 @@ TEST_CASE("built-in rules", "[target_map]") { CHECK(error_msg == "NONE"); CHECK(bar_result->Artifacts()->ToJson()["foo.txt."]["type"] == "KNOWN"); CHECK(bar_result->Artifacts()->ToJson()["foo.txt."]["data"]["id"] == - HashFunction::Instance().ComputeBlobHash("bar").HexString()); + storage_config.Get() + .hash_function.ComputeBlobHash("bar") + .HexString()); CHECK(baz_result->Artifacts()->ToJson()["foo.txt."]["type"] == "KNOWN"); CHECK(baz_result->Artifacts()->ToJson()["foo.txt."]["data"]["id"] == - HashFunction::Instance().ComputeBlobHash("baz").HexString()); + storage_config.Get() + .hash_function.ComputeBlobHash("baz") + .HexString()); } } -- cgit v1.2.3