From b0e16ec9cb353150355580aa544e4284fe11b8fe Mon Sep 17 00:00:00 2001 From: Juha Alanen Date: Tue, 14 Jan 2020 15:25:36 +0200 Subject: [test] Switch to C++ HTTP server --- test/include/mbgl/test/util.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/include') diff --git a/test/include/mbgl/test/util.hpp b/test/include/mbgl/test/util.hpp index 9f56841dcc..b499b5750c 100644 --- a/test/include/mbgl/test/util.hpp +++ b/test/include/mbgl/test/util.hpp @@ -54,9 +54,14 @@ #include #include +#include #include +namespace httplib { +class Server; +} + namespace mbgl { namespace test { @@ -69,6 +74,16 @@ private: int fd = -1; }; +class HttpServer { +public: + HttpServer(); + ~HttpServer(); + +private: + std::unique_ptr server; + std::thread serverThread; +}; + void checkImage(const std::string& base, const PremultipliedImage& actual, double imageThreshold = 0, -- cgit v1.2.1