提交 c1b336d0 编写于 作者: W wanderer-dl122

update ut

Signed-off-by: Nwanderer-dl122 <dengliang21@huawei.com>
上级 040501e4
......@@ -1625,16 +1625,16 @@ HWTEST_F(IPCDbinderDataBusInvokerTest, JoinProcessThread001, TestSize.Level1)
DBinderDatabusInvoker testInvoker;
std::thread::id threadId = std::this_thread::get_id();
std::thread([&testInvoker, threadId](){
std::thread([&testInvoker, threadId]() {
std::this_thread::sleep_for(std::chrono::seconds(2));
testInvoker.StopWorkThread();
IPCProcessSkeleton *current = IPCProcessSkeleton::GetCurrent();
current->WakeUpDataThread(threadId);
current->dataInfoQueue_.clear();
}).detach();
}).detach();
testInvoker.JoinProcessThread(true);
ASSERT_TRUE(testInvoker.stopWorkThread_ == true);
testInvoker.JoinProcessThread(true);
ASSERT_TRUE(testInvoker.stopWorkThread_ == true);
}
/**
......@@ -1750,7 +1750,7 @@ HWTEST_F(IPCDbinderDataBusInvokerTest, OnDatabusSessionServerSideClosed001, Test
IPCProcessSkeleton *current = IPCProcessSkeleton::GetCurrent();
std::string appInfo =
std::string appInfo =
deviceId + current->UIntToString(pid) +
current->UIntToString(uid) + current->UIntToString(tokenId);
......
......@@ -278,7 +278,7 @@ HWTEST_F(IPCObjectProxyTest, GetInterfaceDescriptorTest006, TestSize.Level1)
}
int SendRequestMock(int handle, uint32_t code, MessageParcel &data, MessageParcel &reply,
MessageOption &option)
MessageOption &option)
{
reply.WriteUint32(IRemoteObject::IF_PROT_DEFAULT);
return ERR_NONE;
......@@ -764,7 +764,7 @@ HWTEST_F(IPCObjectProxyTest, GetProtoInfoTest002, TestSize.Level1)
int SendRequestPortMock(int handle, uint32_t code, MessageParcel &data, MessageParcel &reply,
MessageOption &option)
MessageOption &option)
{
reply.WriteUint32(IRemoteObject::IF_PROT_DATABUS);
return ERR_NONE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册