blob: 9a0ecdd3ae4e3fc2097fa518469360e67146e652 [file] [log] [blame]
#include "user_mgr.hpp"
#include <gmock/gmock.h>
namespace phosphor
{
namespace user
{
constexpr auto objpath = "/dummy/user";
class MockManager : public UserMgr
{
public:
MockManager(sdbusplus::bus_t& bus, const char* path) : UserMgr(bus, path)
{}
MOCK_METHOD1(getLdapGroupName, std::string(const std::string& userName));
MOCK_METHOD0(getPrivilegeMapperObject, DbusUserObj());
MOCK_METHOD1(userLockedForFailedAttempt, bool(const std::string& userName));
MOCK_METHOD1(userPasswordExpired, bool(const std::string& userName));
friend class TestUserMgr;
};
} // namespace user
} // namespace phosphor