diff options
| author | Stefan Boberg <[email protected]> | 2023-06-30 10:55:49 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2023-06-30 10:55:49 +0200 |
| commit | 912cd60c4cdfd6e0253ee1b9ed1abade09ac8b7c (patch) | |
| tree | ef0994084304dd5ce1fdd42621e36a9b34b191f7 /src/zenhttp/testing/httptest.cpp | |
| parent | added zen::ChunkResolver (diff) | |
| download | zen-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.cpp | 4 |
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 |