You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
952 B
31 lines
952 B
4 years ago
|
#include "webfuse/jsonrpc/mock_timer.hpp"
|
||
4 years ago
|
#include "webfuse/test_util/wrap.hpp"
|
||
5 years ago
|
|
||
|
extern "C"
|
||
|
{
|
||
|
static wf_jsonrpc_test::ITimer * wf_jsonrpc_MockTimer = nullptr;
|
||
|
|
||
4 years ago
|
WF_WRAP_FUNC0(wf_jsonrpc_MockTimer, wf_timer_manager *, wf_impl_timer_manager_create);
|
||
|
WF_WRAP_FUNC1(wf_jsonrpc_MockTimer, void, wf_impl_timer_manager_dispose, wf_timer_manager *);
|
||
|
WF_WRAP_FUNC1(wf_jsonrpc_MockTimer, void, wf_impl_timer_manager_check, wf_timer_manager *);
|
||
5 years ago
|
|
||
4 years ago
|
WF_WRAP_FUNC3(wf_jsonrpc_MockTimer, wf_timer *, wf_impl_timer_create, wf_timer_manager *, wf_timer_on_timer_fn *, void *);
|
||
|
WF_WRAP_FUNC1(wf_jsonrpc_MockTimer, void, wf_impl_timer_dispose, wf_timer *);
|
||
|
WF_WRAP_FUNC2(wf_jsonrpc_MockTimer, void, wf_impl_timer_start, wf_timer *, int);
|
||
|
WF_WRAP_FUNC1(wf_jsonrpc_MockTimer, void, wf_impl_timer_cancel, wf_timer *);
|
||
5 years ago
|
|
||
|
}
|
||
|
|
||
|
namespace wf_jsonrpc_test
|
||
|
{
|
||
|
MockTimer::MockTimer()
|
||
|
{
|
||
|
wf_jsonrpc_MockTimer = this;
|
||
|
}
|
||
|
|
||
|
MockTimer::~MockTimer()
|
||
|
{
|
||
|
wf_jsonrpc_MockTimer = nullptr;
|
||
|
}
|
||
|
|
||
|
}
|