2020-04-04 21:27:34 +00:00
|
|
|
#include "webfuse/mocks/mock_operation_context.hpp"
|
2020-06-28 18:09:09 +00:00
|
|
|
#include "webfuse/test_util/wrap.hpp"
|
2020-04-04 21:27:34 +00:00
|
|
|
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
static webfuse_test::MockOperationContext * webfuse_test_MockOperationContext = nullptr;
|
|
|
|
|
|
|
|
WF_WRAP_FUNC1(webfuse_test_MockOperationContext,
|
|
|
|
struct wf_jsonrpc_proxy *, wf_impl_operation_context_get_proxy,
|
|
|
|
struct wf_impl_operation_context *);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace webfuse_test
|
|
|
|
{
|
|
|
|
|
|
|
|
MockOperationContext::MockOperationContext()
|
|
|
|
{
|
|
|
|
webfuse_test_MockOperationContext = this;
|
|
|
|
}
|
|
|
|
|
|
|
|
MockOperationContext::~MockOperationContext()
|
|
|
|
{
|
|
|
|
webfuse_test_MockOperationContext = nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|