aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/testing/httptest.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-06-30 10:55:49 +0200
committerStefan Boberg <[email protected]>2023-06-30 10:55:49 +0200
commit912cd60c4cdfd6e0253ee1b9ed1abade09ac8b7c (patch)
treeef0994084304dd5ce1fdd42621e36a9b34b191f7 /src/zenhttp/testing/httptest.cpp
parentadded zen::ChunkResolver (diff)
downloadzen-912cd60c4cdfd6e0253ee1b9ed1abade09ac8b7c.tar.xz
zen-912cd60c4cdfd6e0253ee1b9ed1abade09ac8b7c.zip
various zenhttp fixes from sb/proto
* Made HttpHealthService use locks to serialize access to state * Added ToString(HttpResponseCode HttpCode) * Added support for JS source maps * Moved IHttpStatsProvider/IHttpStatsService * Enabled enumeration of stats providers * Disabled build of HttpTestingService unless ZEN_WITH_TESTS is defined
Diffstat (limited to 'src/zenhttp/testing/httptest.cpp')
-rw-r--r--src/zenhttp/testing/httptest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zenhttp/testing/httptest.cpp b/src/zenhttp/testing/httptest.cpp
index 3e77e9c8c..a02e36bcc 100644
--- a/src/zenhttp/testing/httptest.cpp
+++ b/src/zenhttp/testing/httptest.cpp
@@ -6,6 +6,8 @@
#include <zencore/compactbinarypackage.h>
#include <zencore/timer.h>
+#if ZEN_WITH_TESTS
+
namespace zen {
using namespace std::literals;
@@ -205,3 +207,5 @@ HttpTestingService::PackageHandler::CreateTarget(const IoHash& Cid, uint64_t Sto
}
} // namespace zen
+
+#endif