diff options
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.cpp | 8 |
1 files changed, 6 insertions, 2 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 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()); } } |