diff options
| author | Per Larsson <[email protected]> | 2021-09-20 10:28:38 +0200 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2021-09-20 10:28:38 +0200 |
| commit | d7e8b3f1435ba50f50393692763508f3224aa9b1 (patch) | |
| tree | ee4357d70cdb9ea1fbcc3836d859cf39fe8e2f42 /zenhttp/httpclient.cpp | |
| parent | Added support for skipping package attachments. (diff) | |
| parent | trivial: include cleanup (diff) | |
| download | zen-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.cpp | 7 |
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 |