1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00
falk-werner_webfuse-provider/test/webfuse/mocks/mock_jsonrpc_proxy.cc
2020-04-04 12:49:02 +02:00

34 lines
697 B
C++

#include "webfuse/mocks/mock_jsonrpc_proxy.hpp"
#include "webfuse/utils/wrap.hpp"
extern "C"
{
static webfuse_test::MockJsonRpcProxy * webfuse_test_MockJsonRpcProxy = nullptr;
WF_WRAP_VFUNC5(webfuse_test_MockJsonRpcProxy, void, wf_jsonrpc_proxy_vinvoke,
struct wf_jsonrpc_proxy *,
wf_jsonrpc_proxy_finished_fn *,
void *,
char const *,
char const *);
WF_WRAP_VFUNC3(webfuse_test_MockJsonRpcProxy, void, wf_jsonrpc_proxy_vnotify,
struct wf_jsonrpc_proxy *,
char const *,
char const *);
}
namespace webfuse_test
{
MockJsonRpcProxy::MockJsonRpcProxy()
{
webfuse_test_MockJsonRpcProxy = this;
}
MockJsonRpcProxy::~MockJsonRpcProxy()
{
webfuse_test_MockJsonRpcProxy = nullptr;
}
}