1
0
mirror of https://github.com/falk-werner/webfused synced 2024-10-27 20:44:08 +00:00
falk-werner_webfused/test/mock/credentials.cc
2020-03-20 14:26:41 +01:00

27 lines
540 B
C++

#include "mock/credentials.hpp"
#include "util/wrap.hpp"
extern "C"
{
static webfused_test::ICredentials * wfd_MockCredentials = nullptr;
WFD_WRAP_FUNC1(wfd_MockCredentials, char const *, wf_credentials_type, struct wf_credentials const *);
WFD_WRAP_FUNC2(wfd_MockCredentials, char const *, wf_credentials_get, struct wf_credentials const *, char const *);
}
namespace webfused_test
{
MockCredentials::MockCredentials()
{
wfd_MockCredentials = this;
}
MockCredentials::~MockCredentials()
{
wfd_MockCredentials = nullptr;
}
}