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