mirror of
https://github.com/falk-werner/webfuse-provider
synced 2026-03-02 04:09:18 +00:00
renamed operation_context
This commit is contained in:
27
test/webfuse/mocks/mock_operation_context.cc
Normal file
27
test/webfuse/mocks/mock_operation_context.cc
Normal file
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
22
test/webfuse/mocks/mock_operation_context.hpp
Normal file
22
test/webfuse/mocks/mock_operation_context.hpp
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user