mirror of
https://github.com/falk-werner/webfused
synced 2024-10-27 20:44:08 +00:00
30 lines
449 B
C++
30 lines
449 B
C++
|
#ifndef WFD_MOCK_AUTH_SETTINGS_HPP
|
||
|
#define WFD_MOCK_AUTH_SETTINGS_HPP
|
||
|
|
||
|
#include <gmock/gmock.h>
|
||
|
#include "webfused/config/settings.h"
|
||
|
|
||
|
namespace webfused_test
|
||
|
{
|
||
|
|
||
|
class ISettings
|
||
|
{
|
||
|
public:
|
||
|
virtual ~ISettings() = default;
|
||
|
virtual char const * get(char const * key) = 0;
|
||
|
};
|
||
|
|
||
|
class MockSettings: public ISettings
|
||
|
{
|
||
|
public:
|
||
|
MockSettings();
|
||
|
~MockSettings() override;
|
||
|
MOCK_METHOD1(get, char const * (char const * key));
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
#endif
|