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