2020-06-16 21:57:41 +00:00
|
|
|
#ifndef WFP_JSONRPC_MOCK_TIMERCALLBACK_HPP
|
|
|
|
#define WFP_JSONRPC_MOCK_TIMERCALLBACK_HPP
|
2020-03-22 19:09:40 +00:00
|
|
|
|
2020-06-16 21:39:45 +00:00
|
|
|
#include "webfuse_provider/impl/timer/on_timer_fn.h"
|
2020-03-22 19:09:40 +00:00
|
|
|
#include <gmock/gmock.h>
|
|
|
|
|
2020-06-16 21:57:41 +00:00
|
|
|
namespace wfp_jsonrpc_test
|
2020-03-22 19:09:40 +00:00
|
|
|
{
|
|
|
|
class MockTimerCallback
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
MockTimerCallback();
|
|
|
|
virtual ~MockTimerCallback();
|
2020-06-16 21:57:41 +00:00
|
|
|
wfp_timer_on_timer_fn * on_timer_fn();
|
2020-03-22 19:09:40 +00:00
|
|
|
void * user_data();
|
|
|
|
|
2020-06-16 21:57:41 +00:00
|
|
|
MOCK_METHOD2(on_timer, void (wfp_timer * timer, void * user_data));
|
2020-03-22 19:09:40 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|