1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2026-03-02 04:09:18 +00:00

switched prefix to wfp for old wf stuff

This commit is contained in:
Falk Werner
2020-06-16 23:57:41 +02:00
parent 2f80ebffcc
commit 83b76a1a5a
133 changed files with 1324 additions and 1324 deletions

View File

@@ -1,5 +1,5 @@
#ifndef WF_LOOKUP_MATCHER_HPP
#define WF_LOOKUP_MATCHER_HPP
#ifndef WFP_LOOKUP_MATCHER_HPP
#define WFP_LOOKUP_MATCHER_HPP
#include <gmock/gmock.h>
#include <jansson.h>

View File

@@ -1,5 +1,5 @@
#ifndef WF_MOCK_INVOKATION_HANDLER_HPP
#define WF_MOCK_INVOKATION_HANDLER_HPP
#ifndef WFP_MOCK_INVOKATION_HANDLER_HPP
#define WFP_MOCK_INVOKATION_HANDLER_HPP
#include "webfuse/utils/ws_server2.hpp"
#include <gtest/gtest.h>

View File

@@ -5,15 +5,15 @@ extern "C"
{
static webfuse_test::MockJsonRpcProxy * webfuse_test_MockJsonRpcProxy = nullptr;
WF_WRAP_VFUNC5(webfuse_test_MockJsonRpcProxy, void, wf_jsonrpc_proxy_vinvoke,
struct wf_jsonrpc_proxy *,
wf_jsonrpc_proxy_finished_fn *,
WFP_WRAP_VFUNC5(webfuse_test_MockJsonRpcProxy, void, wfp_jsonrpc_proxy_vinvoke,
struct wfp_jsonrpc_proxy *,
wfp_jsonrpc_proxy_finished_fn *,
void *,
char const *,
char const *);
WF_WRAP_VFUNC3(webfuse_test_MockJsonRpcProxy, void, wf_jsonrpc_proxy_vnotify,
struct wf_jsonrpc_proxy *,
WFP_WRAP_VFUNC3(webfuse_test_MockJsonRpcProxy, void, wfp_jsonrpc_proxy_vnotify,
struct wfp_jsonrpc_proxy *,
char const *,
char const *);
}

View File

@@ -12,14 +12,14 @@ class MockJsonRpcProxy
public:
MockJsonRpcProxy();
virtual ~MockJsonRpcProxy();
MOCK_METHOD5(wf_jsonrpc_proxy_vinvoke, void (
struct wf_jsonrpc_proxy * proxy,
wf_jsonrpc_proxy_finished_fn * finished,
MOCK_METHOD5(wfp_jsonrpc_proxy_vinvoke, void (
struct wfp_jsonrpc_proxy * proxy,
wfp_jsonrpc_proxy_finished_fn * finished,
void * user_data,
char const * method_name,
char const * param_info));
MOCK_METHOD3(wf_jsonrpc_proxy_vnotify, void (
struct wf_jsonrpc_proxy * proxy,
MOCK_METHOD3(wfp_jsonrpc_proxy_vnotify, void (
struct wfp_jsonrpc_proxy * proxy,
char const * method_name,
char const * param_info));

View File

@@ -5,9 +5,9 @@ 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 *);
WFP_WRAP_FUNC1(webfuse_test_MockOperationContext,
struct wfp_jsonrpc_proxy *, wfp_impl_operation_context_get_proxy,
struct wfp_impl_operation_context *);
}

View File

@@ -12,8 +12,8 @@ class MockOperationContext
public:
MockOperationContext();
virtual ~MockOperationContext();
MOCK_METHOD1(wf_impl_operation_context_get_proxy, wf_jsonrpc_proxy * (
struct wf_impl_operation_context * context));
MOCK_METHOD1(wfp_impl_operation_context_get_proxy, wfp_jsonrpc_proxy * (
struct wfp_impl_operation_context * context));
};

View File

@@ -1,5 +1,5 @@
#ifndef WF_MOCK_PROVIDER_HPP
#define WF_MOCK_PROVIDER_HPP
#ifndef WFP_MOCK_PROVIDER_HPP
#define WFP_MOCK_PROVIDER_HPP
#include "webfuse_provider/impl/provider.h"
#include <gmock/gmock.h>

View File

@@ -41,7 +41,7 @@ static void webfuse_test_iproviderclient_onlookup(
}
catch (...)
{
wfp_respond_error(request, WF_BAD);
wfp_respond_error(request, WFP_BAD);
}
}
@@ -65,7 +65,7 @@ static void webfuse_test_iproviderclient_ongetattr(
}
catch (...)
{
wfp_respond_error(request, WF_BAD);
wfp_respond_error(request, WFP_BAD);
}
}
@@ -89,7 +89,7 @@ static void webfuse_test_iproviderclient_onreaddir(
}
catch (...)
{
wfp_respond_error(request, WF_BAD);
wfp_respond_error(request, WFP_BAD);
}
wfp_dirbuffer_dispose(buffer);
@@ -116,7 +116,7 @@ static void webfuse_test_iproviderclient_onopen(
}
catch (...)
{
wfp_respond_error(request, WF_BAD);
wfp_respond_error(request, WFP_BAD);
}
}
@@ -154,7 +154,7 @@ static void webfuse_test_iproviderclient_onread(
}
catch (...)
{
wfp_respond_error(request, WF_BAD);
wfp_respond_error(request, WFP_BAD);
}
delete[] data;
@@ -181,14 +181,14 @@ static void webfuse_test_iproviderclient_get_credentials(
namespace webfuse_test
{
ProviderClientException::ProviderClientException(wf_status error_code)
ProviderClientException::ProviderClientException(wfp_status error_code)
: runtime_error("ProviderClientException")
, error_code_(error_code)
{
}
wf_status ProviderClientException::GetErrorCode()
wfp_status ProviderClientException::GetErrorCode()
{
return error_code_;
}

View File

@@ -1,5 +1,5 @@
#ifndef WF_MOCK_PROVIDER_CLIENT_HPP
#define WF_MOCK_PROVIDER_CLIENT_HPP
#ifndef WFP_MOCK_PROVIDER_CLIENT_HPP
#define WFP_MOCK_PROVIDER_CLIENT_HPP
#include <gmock/gmock.h>
#include "webfuse_provider/client_config.h"
@@ -11,10 +11,10 @@ namespace webfuse_test
class ProviderClientException: public std::runtime_error
{
public:
explicit ProviderClientException(wf_status error_code);
wf_status GetErrorCode();
explicit ProviderClientException(wfp_status error_code);
wfp_status GetErrorCode();
private:
wf_status error_code_;
wfp_status error_code_;
};
class IProviderClient

View File

@@ -1,5 +1,5 @@
#ifndef WF_MOCK_REQUEST_HPP
#define WF_MOCK_REQUEST_HPP
#ifndef WFP_MOCK_REQUEST_HPP
#define WFP_MOCK_REQUEST_HPP
#include <gmock/gmock.h>
#include <jansson.h>