1
0
mirror of https://github.com/falk-werner/webfused synced 2024-10-27 20:44:08 +00:00
falk-werner_webfused/test/mock/server.hpp

29 lines
490 B
C++
Raw Normal View History

2020-03-20 10:32:45 +00:00
#ifndef WFD_MOCK_SERVER_HPP
#define WFD_MOCK_SERVER_HPP
#include <webfuse/adapter/server.h>
#include <gmock/gmock.h>
namespace webfused_test
{
class IServer
{
public:
virtual ~IServer() = default;
virtual struct wf_server * wf_server_create(struct wf_server_config * config) = 0;
};
class MockServer: public IServer
{
public:
MockServer();
~MockServer() override;
MOCK_METHOD1(wf_server_create, struct wf_server * (struct wf_server_config * config));
};
}
#endif