From 608448539e5290dde062aa3f1291de6d85732315 Mon Sep 17 00:00:00 2001 From: metabeyond Date: Mon, 18 Nov 2024 18:25:28 +0800 Subject: [PATCH] Added unit tests for crypto. Fixed issues in chunk_processor_base64.cpp --- test/crypto_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/crypto_test.cpp b/test/crypto_test.cpp index f13980b..966dc6e 100644 --- a/test/crypto_test.cpp +++ b/test/crypto_test.cpp @@ -117,7 +117,7 @@ MAKE_TEST(digest) { } MAKE_TEST(base64) { - static const abi::vector binary{std::byte{0}, std::byte{1}, std::byte{2}, std::byte{3}}; + static const essence::abi::vector binary{std::byte{0}, std::byte{1}, std::byte{2}, std::byte{3}}; static constexpr zstring_view str{U8("Something like that!!!")}; static constexpr zstring_view base64_binary{U8("AAECAw==")}; static constexpr zstring_view base64_str{U8("U29tZXRoaW5nIGxpa2UgdGhhdCEhIQ==")}; @@ -129,7 +129,7 @@ MAKE_TEST(base64) { } MAKE_TEST(hex) { - static const abi::vector binary{std::byte{0}, std::byte{1}, std::byte{2}, std::byte{3}}; + static const essence::abi::vector binary{std::byte{0}, std::byte{1}, std::byte{2}, std::byte{3}}; static constexpr zstring_view str{U8("Something like that!!!")}; static constexpr zstring_view hex_binary{U8("00010203")}; static constexpr zstring_view hex_str{U8("536F6D657468696E67206C696B652074686174212121")};