未验证 提交 a2f8c9f3 编写于 作者: O openharmony_ci 提交者: Gitee

!613 IPC单元测试用例修复与新增

Merge pull request !613 from 张泊远yg/master
......@@ -59,3 +59,28 @@ HWTEST_F(IRemoteObjectTest, CheckObjectLegalityTest001, TestSize.Level1)
auto ret = object.CheckObjectLegality();
ASSERT_FALSE(ret);
}
/**
* @tc.name: IsObjectDeadTest001
* @tc.desc: Verify the IRemoteObject::IsObjectDead function
* @tc.type: FUNC
*/
HWTEST_F(IRemoteObjectTest, IsObjectDeadTest001, TestSize.Level1)
{
sptr<IRemoteObject> object = new IPCObjectProxy(16);
auto ret = object->IsObjectDead();
ASSERT_FALSE(ret);
}
/**
* @tc.name: GetInterfaceDescriptorTest001
* @tc.desc: Verify the IRemoteObject::GetInterfaceDescriptor function
* @tc.type: FUNC
*/
HWTEST_F(IRemoteObjectTest, GetInterfaceDescriptorTest001, TestSize.Level1)
{
sptr<IRemoteObject> object = new IPCObjectProxy(0);
EXPECT_EQ(object->descriptor_, object->GetInterfaceDescriptor());
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册