From 7eafe5779703275d455558120efc754c2dcc3c01 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 2 Sep 2024 10:50:48 +0200 Subject: Replace ArtifactDigest::Create ...with ArtifactDigestFactory::HashDataAs --- test/buildtool/file_system/TARGETS | 1 + test/buildtool/file_system/object_cas.test.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'test/buildtool/file_system') diff --git a/test/buildtool/file_system/TARGETS b/test/buildtool/file_system/TARGETS index a9632e48..8bc1dbe4 100644 --- a/test/buildtool/file_system/TARGETS +++ b/test/buildtool/file_system/TARGETS @@ -24,6 +24,7 @@ , ["@", "src", "src/buildtool/file_system", "object_cas"] , ["@", "src", "src/buildtool/file_system", "object_type"] , ["@", "src", "src/buildtool/common", "common"] + , ["@", "src", "src/buildtool/common", "artifact_digest_factory"] , ["@", "src", "src/buildtool/storage", "config"] , ["utils", "test_storage_config"] ] diff --git a/test/buildtool/file_system/object_cas.test.cpp b/test/buildtool/file_system/object_cas.test.cpp index 58e011a0..6f06eea4 100644 --- a/test/buildtool/file_system/object_cas.test.cpp +++ b/test/buildtool/file_system/object_cas.test.cpp @@ -19,6 +19,7 @@ #include "catch2/catch_test_macros.hpp" #include "src/buildtool/common/artifact_digest.hpp" +#include "src/buildtool/common/artifact_digest_factory.hpp" #include "src/buildtool/file_system/file_system_manager.hpp" #include "src/buildtool/file_system/object_type.hpp" #include "src/buildtool/storage/config.hpp" @@ -29,7 +30,7 @@ TEST_CASE("ObjectCAS", "[file_system]") { auto gen_config = storage_config.Get().CreateGenerationConfig(0); std::string test_content{"test"}; - auto test_digest = ArtifactDigest::Create( + auto test_digest = ArtifactDigestFactory::HashDataAs( storage_config.Get().hash_function, test_content); SECTION("CAS for files") { -- cgit v1.2.3