Home
last modified time | relevance | path

Searched refs:MockPowerRemoteObject (Results 1 – 5 of 5) sorted by relevance

/base/powermgr/power_manager/test/unittest/mock/
Dmock_power_remote_object.cpp23 MockPowerRemoteObject::MockPowerRemoteObject(std::u16string descriptor) : IRemoteObject(descriptor)… in MockPowerRemoteObject() function in OHOS::PowerMgr::MockPowerRemoteObject
25 MockPowerRemoteObject::~MockPowerRemoteObject() {} in ~MockPowerRemoteObject()
27 void MockPowerRemoteObject::SetRequestValue(int32_t value) in SetRequestValue()
32 int32_t MockPowerRemoteObject::GetObjectRefCount() in GetObjectRefCount()
37 int MockPowerRemoteObject::Dump(int fd, const std::vector<std::u16string>& args) in Dump()
43 int MockPowerRemoteObject::SendRequest(uint32_t code, MessageParcel& data, MessageParcel& reply, Me… in SendRequest()
52 bool MockPowerRemoteObject::AddDeathRecipient(const sptr<DeathRecipient>& recipient) in AddDeathRecipient()
58 bool MockPowerRemoteObject::RemoveDeathRecipient(const sptr<DeathRecipient>& recipient) in RemoveDeathRecipient()
Dmock_power_remote_object.h23 class MockPowerRemoteObject : public IRemoteObject {
26 explicit MockPowerRemoteObject(std::u16string descriptor = std::u16string());
27 ~MockPowerRemoteObject();
/base/powermgr/power_manager/test/unittest/src/
Dpower_mgr_powerdialog_test.cpp91 sptr<IRemoteObject> sptrRemoteObj = new MockPowerRemoteObject();
92 MockPowerRemoteObject::SetRequestValue(ERR_OK);
109 sptr<IRemoteObject> sptrRemoteObj = new MockPowerRemoteObject();
110 MockPowerRemoteObject::SetRequestValue(ERR_NO_INIT);
142 sptr<IRemoteObject> sptrRemoteObj = new MockPowerRemoteObject();
143 MockPowerRemoteObject::SetRequestValue(ERR_OK);
Dpower_mgr_service_death_test.cpp60 sptr<IRemoteObject> sptrRemoteObj = new MockPowerRemoteObject();
/base/powermgr/power_manager/test/unittest/src/mock/
Dpower_mock_object_test.cpp56 sptr<MockPowerRemoteObject> remote = new MockPowerRemoteObject();
84 sptr<MockPowerRemoteObject> remote = new MockPowerRemoteObject();
113 sptr<MockPowerRemoteObject> remote = new MockPowerRemoteObject();