1
0
mirror of https://github.com/falk-werner/webfused synced 2024-10-27 20:44:08 +00:00
falk-werner_webfused/test/mock/server.cc
2020-03-20 13:48:58 +01:00

25 lines
372 B
C++

#include "mock/server.hpp"
#include "util/wrap.hpp"
extern "C"
{
static webfused_test::IServer * wfd_MockServer = nullptr;
WFD_WRAP_FUNC1(wfd_MockServer, struct wf_server *, wf_server_create, struct wf_server_config *);
}
namespace webfused_test
{
MockServer::MockServer()
{
wfd_MockServer = this;
}
MockServer::~MockServer()
{
wfd_MockServer = nullptr;
}
}