blob: ea7c5f62a96f0d20c19a81d8097e3a8fbac3da56 [file] [log] [blame]
raviteja-b8cc44052019-02-27 23:29:36 -06001#include "user_mgr.hpp"
2#include <gmock/gmock.h>
3
4namespace phosphor
5{
6namespace user
7{
8
9constexpr auto objpath = "/dummy/user";
10
11class MockManager : public UserMgr
12{
13 public:
14 MockManager(sdbusplus::bus::bus& bus, const char* path) :
15 UserMgr(bus, objpath)
16 {
17 }
18
19 MOCK_METHOD1(getLdapGroupName, std::string(const std::string& userName));
20 MOCK_METHOD0(getPrivilegeMapperObject, DbusUserObj());
21 MOCK_METHOD1(userLockedForFailedAttempt, bool(const std::string& userName));
Joseph Reynolds3ab6cc22020-03-03 14:09:03 -060022 MOCK_METHOD1(userPasswordExpired, bool(const std::string& userName));
raviteja-b8cc44052019-02-27 23:29:36 -060023
24 friend class TestUserMgr;
25};
26
27} // namespace user
28} // namespace phosphor