aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpclient.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-09-20 10:28:38 +0200
committerPer Larsson <[email protected]>2021-09-20 10:28:38 +0200
commitd7e8b3f1435ba50f50393692763508f3224aa9b1 (patch)
treeee4357d70cdb9ea1fbcc3836d859cf39fe8e2f42 /zenhttp/httpclient.cpp
parentAdded support for skipping package attachments. (diff)
parenttrivial: include cleanup (diff)
downloadzen-d7e8b3f1435ba50f50393692763508f3224aa9b1.tar.xz
zen-d7e8b3f1435ba50f50393692763508f3224aa9b1.zip
Merge branch 'main' of https://github.com/EpicGames/zen
Diffstat (limited to 'zenhttp/httpclient.cpp')
-rw-r--r--zenhttp/httpclient.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/zenhttp/httpclient.cpp b/zenhttp/httpclient.cpp
index fb1df30b2..20550b0c9 100644
--- a/zenhttp/httpclient.cpp
+++ b/zenhttp/httpclient.cpp
@@ -10,10 +10,9 @@
#include <zencore/session.h>
#include <zencore/sharedbuffer.h>
#include <zencore/stream.h>
+#include <zencore/testing.h>
#include <zenhttp/httpshared.h>
-#include <doctest/doctest.h>
-
static std::atomic<uint32_t> HttpClientRequestIdCounter{0};
namespace zen {
@@ -159,6 +158,8 @@ HttpClient::Delete(std::string_view Url)
//////////////////////////////////////////////////////////////////////////
+#if ZEN_WITH_TESTS
+
TEST_CASE("httpclient")
{
using namespace std::literals;
@@ -171,4 +172,6 @@ httpclient_forcelink()
{
}
+#endif
+
} // namespace zen