summaryrefslogtreecommitdiff
path: root/Tests/LibTLS
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-12-11 18:27:30 +0100
committerAndreas Kling <kling@serenityos.org>2022-12-12 14:16:42 +0100
commit6c7c5a6786f5f168b9e228f9d4b41ed1e64bc8f3 (patch)
tree327b04fb4820758e4d8cc60d30bd849d7b3511eb /Tests/LibTLS
parented4c2f2f8ea59295edceca77bf308df5de6872d6 (diff)
downloadserenity-6c7c5a6786f5f168b9e228f9d4b41ed1e64bc8f3.zip
LibCore: Rename `Stream::*_or_error` to `*_entire_buffer`
All of our functions are `_or_error` (or are about to be), and maybe making it less reminiscient of AK::Stream will make people use it more.
Diffstat (limited to 'Tests/LibTLS')
-rw-r--r--Tests/LibTLS/TestTLSHandshake.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/LibTLS/TestTLSHandshake.cpp b/Tests/LibTLS/TestTLSHandshake.cpp
index 861efae70e..f9b47d657f 100644
--- a/Tests/LibTLS/TestTLSHandshake.cpp
+++ b/Tests/LibTLS/TestTLSHandshake.cpp
@@ -96,17 +96,17 @@ TEST_CASE(test_TLS_hello_handshake)
loop.quit(0);
};
- if (!tls->write_or_error("GET / HTTP/1.1\r\nHost: "_b)) {
+ if (!tls->write_entire_buffer("GET / HTTP/1.1\r\nHost: "_b)) {
FAIL("write(0) failed");
return;
}
auto the_server = DEFAULT_SERVER;
- if (!tls->write_or_error(the_server.bytes())) {
+ if (!tls->write_entire_buffer(the_server.bytes())) {
FAIL("write(1) failed");
return;
}
- if (!tls->write_or_error("\r\nConnection : close\r\n\r\n"_b)) {
+ if (!tls->write_entire_buffer("\r\nConnection : close\r\n\r\n"_b)) {
FAIL("write(2) failed");
return;
}