blob: ec47909b44081867271516af9a372aaee68f7dd3 [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:
15 MockManager(sdbusplus::bus::bus& bus, const char* path) :
16 UserMgr(bus, objpath)
Patrick Williams9638afb2021-02-22 17:16:24 -060017 {}
raviteja-b8cc44052019-02-27 23:29:36 -060018
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