raviteja-b | 8cc4405 | 2019-02-27 23:29:36 -0600 | [diff] [blame] | 1 | #include "user_mgr.hpp" |
Patrick Williams | 9638afb | 2021-02-22 17:16:24 -0600 | [diff] [blame] | 2 | |
raviteja-b | 8cc4405 | 2019-02-27 23:29:36 -0600 | [diff] [blame] | 3 | #include <gmock/gmock.h> |
| 4 | |
| 5 | namespace phosphor |
| 6 | { |
| 7 | namespace user |
| 8 | { |
| 9 | |
| 10 | constexpr auto objpath = "/dummy/user"; |
| 11 | |
| 12 | class MockManager : public UserMgr |
| 13 | { |
| 14 | public: |
Patrick Williams | b3ef4e1 | 2022-07-22 19:26:55 -0500 | [diff] [blame^] | 15 | MockManager(sdbusplus::bus_t& bus, const char* path) : UserMgr(bus, path) |
Patrick Williams | 9638afb | 2021-02-22 17:16:24 -0600 | [diff] [blame] | 16 | {} |
raviteja-b | 8cc4405 | 2019-02-27 23:29:36 -0600 | [diff] [blame] | 17 | |
| 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 Reynolds | 3ab6cc2 | 2020-03-03 14:09:03 -0600 | [diff] [blame] | 21 | MOCK_METHOD1(userPasswordExpired, bool(const std::string& userName)); |
raviteja-b | 8cc4405 | 2019-02-27 23:29:36 -0600 | [diff] [blame] | 22 | |
| 23 | friend class TestUserMgr; |
| 24 | }; |
| 25 | |
| 26 | } // namespace user |
| 27 | } // namespace phosphor |