parent
745d47bb30
commit
49469c73e3
@ -0,0 +1,27 @@
|
||||
#include "webfuse/mocks/mock_operation_context.hpp"
|
||||
#include "webfuse/utils/wrap.hpp"
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
#ifndef MOCK_OPERATIONS_CONTEXT_HPP
|
||||
#define MOCK_OPERATIONS_CONTEXT_HPP
|
||||
|
||||
#include "webfuse/adapter/impl/operation/context.h"
|
||||
#include <gmock/gmock.h>
|
||||
|
||||
namespace webfuse_test
|
||||
{
|
||||
|
||||
class MockOperationContext
|
||||
{
|
||||
public:
|
||||
MockOperationContext();
|
||||
virtual ~MockOperationContext();
|
||||
MOCK_METHOD1(wf_impl_operation_context_get_proxy, wf_jsonrpc_proxy * (
|
||||
struct wf_impl_operation_context * context));
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
@ -1,27 +0,0 @@
|
||||
#include "webfuse/mocks/mock_operations_context.hpp"
|
||||
#include "webfuse/utils/wrap.hpp"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
static webfuse_test::MockOperationsContext * webfuse_test_MockOperationsContext = nullptr;
|
||||
|
||||
WF_WRAP_FUNC1(webfuse_test_MockOperationsContext,
|
||||
struct wf_jsonrpc_proxy *, wf_impl_operations_context_get_proxy,
|
||||
struct wf_impl_operations_context *);
|
||||
|
||||
}
|
||||
|
||||
namespace webfuse_test
|
||||
{
|
||||
|
||||
MockOperationsContext::MockOperationsContext()
|
||||
{
|
||||
webfuse_test_MockOperationsContext = this;
|
||||
}
|
||||
|
||||
MockOperationsContext::~MockOperationsContext()
|
||||
{
|
||||
webfuse_test_MockOperationsContext = nullptr;
|
||||
}
|
||||
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
#ifndef MOCK_OPERATIONS_CONTEXT_HPP
|
||||
#define MOCK_OPERATIONS_CONTEXT_HPP
|
||||
|
||||
#include "webfuse/adapter/impl/operation/context.h"
|
||||
#include <gmock/gmock.h>
|
||||
|
||||
namespace webfuse_test
|
||||
{
|
||||
|
||||
class MockOperationsContext
|
||||
{
|
||||
public:
|
||||
MockOperationsContext();
|
||||
virtual ~MockOperationsContext();
|
||||
MOCK_METHOD1(wf_impl_operations_context_get_proxy, wf_jsonrpc_proxy * (
|
||||
struct wf_impl_operations_context * context));
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Reference in new issue