summaryrefslogtreecommitdiff
path: root/AK/Tests
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2020-07-27 14:16:33 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-27 19:58:09 +0200
commitabe925e4b08fca8eaac4d3e63508cbb9ff5c1733 (patch)
treedfd4e9bcc2edb1ced4542df0727dad39ae1f85e5 /AK/Tests
parent5fa0fdb2192cea73fb9e19c720693d91ef944101 (diff)
downloadserenity-abe925e4b08fca8eaac4d3e63508cbb9ff5c1733.zip
AK: Change the signature of AK::encode_base64() to use Span.
Diffstat (limited to 'AK/Tests')
-rw-r--r--AK/Tests/TestBase64.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/Tests/TestBase64.cpp b/AK/Tests/TestBase64.cpp
index 9e65c03a83..5b19bcd544 100644
--- a/AK/Tests/TestBase64.cpp
+++ b/AK/Tests/TestBase64.cpp
@@ -49,7 +49,7 @@ TEST_CASE(test_decode)
TEST_CASE(test_encode)
{
auto encode_equal = [&](const char* input, const char* expected) {
- auto encoded = encode_base64(ByteBuffer::wrap(input, strlen(input)));
+ auto encoded = encode_base64({ input, strlen(input) });
EXPECT(encoded == String(expected));
};