blob: 81f906502d7a393be450294df4d9655b18635c89 [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));
22
23 friend class TestUserMgr;
24};
25
26} // namespace user
27} // namespace phosphor