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

27 lines
540 B
C++
Raw Normal View History

2020-03-20 12:48:58 +00:00
#include "mock/credentials.hpp"
2020-03-20 13:26:41 +00:00
#include "util/wrap.hpp"
extern "C"
{
2020-03-20 13:26:41 +00:00
static webfused_test::ICredentials * wfd_MockCredentials = nullptr;
2020-03-20 13:26:41 +00:00
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()
{
2020-03-20 13:26:41 +00:00
wfd_MockCredentials = this;
}
MockCredentials::~MockCredentials()
{
2020-03-20 13:26:41 +00:00
wfd_MockCredentials = nullptr;
}
}