diff options
Diffstat (limited to 'test/include/mbgl/test/util.hpp')
-rw-r--r-- | test/include/mbgl/test/util.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
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 <cstdint> #include <memory> +#include <thread> #include <gtest/gtest.h> +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<httplib::Server> server; + std::thread serverThread; +}; + void checkImage(const std::string& base, const PremultipliedImage& actual, double imageThreshold = 0, |