raviteja-b | 8cc4405 | 2019-02-27 23:29:36 -0600 | [diff] [blame] | 1 | #include "user_mgr.hpp" |
| 2 | #include <gmock/gmock.h> |
| 3 | |
| 4 | namespace phosphor |
| 5 | { |
| 6 | namespace user |
| 7 | { |
| 8 | |
| 9 | constexpr auto objpath = "/dummy/user"; |
| 10 | |
| 11 | class 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 Reynolds | 3ab6cc2 | 2020-03-03 14:09:03 -0600 | [diff] [blame^] | 22 | MOCK_METHOD1(userPasswordExpired, bool(const std::string& userName)); |
raviteja-b | 8cc4405 | 2019-02-27 23:29:36 -0600 | [diff] [blame] | 23 | |
| 24 | friend class TestUserMgr; |
| 25 | }; |
| 26 | |
| 27 | } // namespace user |
| 28 | } // namespace phosphor |