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