diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-02 10:50:48 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-09 13:07:13 +0200 |
commit | 7eafe5779703275d455558120efc754c2dcc3c01 (patch) | |
tree | e31168069ef2460f187652157fe3c03be698d9a8 /test/buildtool/file_system/object_cas.test.cpp | |
parent | 50bcabb0717dae7c8411db59115c41b7cc636cb3 (diff) | |
download | justbuild-7eafe5779703275d455558120efc754c2dcc3c01.tar.gz |
Replace ArtifactDigest::Create
...with ArtifactDigestFactory::HashDataAs
Diffstat (limited to 'test/buildtool/file_system/object_cas.test.cpp')
-rw-r--r-- | test/buildtool/file_system/object_cas.test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<ObjectType::File>( + auto test_digest = ArtifactDigestFactory::HashDataAs<ObjectType::File>( storage_config.Get().hash_function, test_content); SECTION("CAS for files") { |