2020-04-04 06:32:26 +00:00
|
|
|
#ifndef MOCK_JSONRPC_PROXY_HPP
|
|
|
|
#define MOCK_JSONRPC_PROXY_HPP
|
|
|
|
|
2020-06-28 17:43:08 +00:00
|
|
|
#include "webfuse/impl/jsonrpc/proxy_intern.h"
|
2020-04-04 06:32:26 +00:00
|
|
|
#include <gmock/gmock.h>
|
|
|
|
|
|
|
|
namespace webfuse_test
|
|
|
|
{
|
|
|
|
|
|
|
|
class MockJsonRpcProxy
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
MockJsonRpcProxy();
|
|
|
|
virtual ~MockJsonRpcProxy();
|
2020-06-28 17:43:08 +00:00
|
|
|
MOCK_METHOD5(wf_impl_jsonrpc_proxy_vinvoke, void (
|
2020-04-04 06:32:26 +00:00
|
|
|
struct wf_jsonrpc_proxy * proxy,
|
|
|
|
wf_jsonrpc_proxy_finished_fn * finished,
|
|
|
|
void * user_data,
|
|
|
|
char const * method_name,
|
2020-04-04 10:49:02 +00:00
|
|
|
char const * param_info));
|
2020-06-28 17:43:08 +00:00
|
|
|
MOCK_METHOD3(wf_impl_jsonrpc_proxy_vnotify, void (
|
2020-04-04 06:55:59 +00:00
|
|
|
struct wf_jsonrpc_proxy * proxy,
|
|
|
|
char const * method_name,
|
2020-04-04 10:49:02 +00:00
|
|
|
char const * param_info));
|
2020-04-04 06:32:26 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|