未验证 提交 7e57ab5b 编写于 作者: 张泊远yg 提交者: Gitee

update ipc/native/test/unittest/common/iremote_object_unitest.cpp.

Signed-off-by: N张泊远yg <zhangboyuan1@huawei.com>
Signed-off-by: N张泊远yg <zhangboyuan1@huawei.com>
上级 8e5317a2
......@@ -67,9 +67,9 @@ HWTEST_F(IRemoteObjectTest, CheckObjectLegalityTest001, TestSize.Level1)
*/
HWTEST_F(IRemoteObjectTest, IsObjectDeadTest001, TestSize.Level1)
{
IPCObjectProxy object(1);
sptr<IRemoteObject> object = new IPCObjectProxy(16);
auto ret = object.IsObjectDead();
auto ret = object->IsObjectDead();
ASSERT_FALSE(ret);
}
......@@ -80,7 +80,7 @@ HWTEST_F(IRemoteObjectTest, IsObjectDeadTest001, TestSize.Level1)
*/
HWTEST_F(IRemoteObjectTest, GetInterfaceDescriptorTest001, TestSize.Level1)
{
IPCObjectProxy object(1);
sptr<IRemoteObject> object = new IPCObjectProxy(0);
EXPECT_NE(object.descriptor_, object.GetInterfaceDescriptor());
EXPECT_EQ(object->descriptor_, object->GetInterfaceDescriptor());
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册