2020-04-04 06:32:26 +00:00
|
|
|
#include "webfuse/mocks/mock_jsonrpc_proxy.hpp"
|
|
|
|
#include "webfuse/utils/wrap.hpp"
|
|
|
|
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
static webfuse_test::MockJsonRpcProxy * webfuse_test_MockJsonRpcProxy = nullptr;
|
|
|
|
|
2020-04-04 10:49:02 +00:00
|
|
|
WF_WRAP_VFUNC5(webfuse_test_MockJsonRpcProxy, void, wf_jsonrpc_proxy_vinvoke,
|
2020-04-04 06:32:26 +00:00
|
|
|
struct wf_jsonrpc_proxy *,
|
|
|
|
wf_jsonrpc_proxy_finished_fn *,
|
|
|
|
void *,
|
|
|
|
char const *,
|
2020-04-04 10:49:02 +00:00
|
|
|
char const *);
|
2020-04-04 06:55:59 +00:00
|
|
|
|
2020-04-04 10:49:02 +00:00
|
|
|
WF_WRAP_VFUNC3(webfuse_test_MockJsonRpcProxy, void, wf_jsonrpc_proxy_vnotify,
|
2020-04-04 06:55:59 +00:00
|
|
|
struct wf_jsonrpc_proxy *,
|
|
|
|
char const *,
|
2020-04-04 10:49:02 +00:00
|
|
|
char const *);
|
2020-04-04 06:32:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace webfuse_test
|
|
|
|
{
|
|
|
|
|
|
|
|
MockJsonRpcProxy::MockJsonRpcProxy()
|
|
|
|
{
|
|
|
|
webfuse_test_MockJsonRpcProxy = this;
|
|
|
|
}
|
|
|
|
|
|
|
|
MockJsonRpcProxy::~MockJsonRpcProxy()
|
|
|
|
{
|
|
|
|
webfuse_test_MockJsonRpcProxy = nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|