mirror of
https://github.com/falk-werner/webfuse
synced 2024-10-27 20:34:10 +00:00
36 lines
715 B
C++
36 lines
715 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_FUNC6(webfuse_test_MockJsonRpcProxy, void, wf_jsonrpc_proxy_vinvoke,
|
|
struct wf_jsonrpc_proxy *,
|
|
wf_jsonrpc_proxy_finished_fn *,
|
|
void *,
|
|
char const *,
|
|
char const *,
|
|
va_list);
|
|
|
|
WF_WRAP_FUNC4(webfuse_test_MockJsonRpcProxy, void, wf_jsonrpc_proxy_vnotify,
|
|
struct wf_jsonrpc_proxy *,
|
|
char const *,
|
|
char const *,
|
|
va_list);
|
|
}
|
|
|
|
namespace webfuse_test
|
|
{
|
|
|
|
MockJsonRpcProxy::MockJsonRpcProxy()
|
|
{
|
|
webfuse_test_MockJsonRpcProxy = this;
|
|
}
|
|
|
|
MockJsonRpcProxy::~MockJsonRpcProxy()
|
|
{
|
|
webfuse_test_MockJsonRpcProxy = nullptr;
|
|
}
|
|
|
|
} |