summaryrefslogtreecommitdiff
path: root/test/buildtool/execution_api/bazel/bytestream_client.test.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2025-01-23 17:11:39 +0100
committerMaksim Denisov <denisov.maksim@huawei.com>2025-02-07 14:58:04 +0100
commit686a13142b816dfa334bb85f3ffdcc62a81a3bb4 (patch)
treef9296ee10f11b3528f5ef89f6bf544ff3182fdc4 /test/buildtool/execution_api/bazel/bytestream_client.test.cpp
parentb22ee0740857dad1f24999953864150a4f6bbcc8 (diff)
downloadjustbuild-686a13142b816dfa334bb85f3ffdcc62a81a3bb4.tar.gz
ByteStreamUtils: Use ArtifactDigest
Diffstat (limited to 'test/buildtool/execution_api/bazel/bytestream_client.test.cpp')
-rw-r--r--test/buildtool/execution_api/bazel/bytestream_client.test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/buildtool/execution_api/bazel/bytestream_client.test.cpp b/test/buildtool/execution_api/bazel/bytestream_client.test.cpp
index 3111d1ba..fa50eb0a 100644
--- a/test/buildtool/execution_api/bazel/bytestream_client.test.cpp
+++ b/test/buildtool/execution_api/bazel/bytestream_client.test.cpp
@@ -22,7 +22,7 @@
#include "catch2/catch_test_macros.hpp"
#include "gsl/gsl"
-#include "src/buildtool/common/bazel_digest_factory.hpp"
+#include "src/buildtool/common/artifact_digest_factory.hpp"
#include "src/buildtool/common/remote/remote_common.hpp"
#include "src/buildtool/crypto/hash_function.hpp"
#include "src/buildtool/execution_api/common/bytestream_utils.hpp"
@@ -53,7 +53,7 @@ TEST_CASE("ByteStream Client: Transfer single blob", "[execution_api]") {
std::string content("foobar");
// digest of "foobar"
- auto digest = BazelDigestFactory::HashDataAs<ObjectType::File>(
+ auto digest = ArtifactDigestFactory::HashDataAs<ObjectType::File>(
hash_function, content);
CHECK(stream.Write(
@@ -74,7 +74,7 @@ TEST_CASE("ByteStream Client: Transfer single blob", "[execution_api]") {
std::string other_content("This is a differnt string");
// Valid digest, but for a different string
- auto digest = BazelDigestFactory::HashDataAs<ObjectType::File>(
+ auto digest = ArtifactDigestFactory::HashDataAs<ObjectType::File>(
hash_function, other_content);
CHECK(not stream.Write(
@@ -93,7 +93,7 @@ TEST_CASE("ByteStream Client: Transfer single blob", "[execution_api]") {
}
// digest of "instance_nameinstance_nameinstance_..."
- auto digest = BazelDigestFactory::HashDataAs<ObjectType::File>(
+ auto digest = ArtifactDigestFactory::HashDataAs<ObjectType::File>(
hash_function, content);
CHECK(stream.Write(