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

!676 IPC相关告警清理

Merge pull request !676 from 张泊远yg/master
......@@ -254,7 +254,6 @@ void IPCObjectProxy::WaitForInit()
}
#endif
}
}
#ifndef CONFIG_IPC_SINGLE
if (proto_ == IRemoteObject::IF_PROT_DATABUS) {
......
......@@ -314,7 +314,7 @@ void IPCObjectStub::OnLastStrongRef(const void *objectId)
#ifndef CONFIG_IPC_SINGLE
// we only need to erase stub index here, commAuth and appInfo
// has already been removed either in dbinder dec refcount case
// or OnSessionClosed, we also remove commAuth and appInfo in case of leak
// or OnSessionClosed, we also remove commAuth and appInfo in case of leak
current->DetachCommAuthInfoByStub(this);
uint64_t stubIndex = current->EraseStubIndex(this);
current->DetachAppInfoToStubIndex(stubIndex);
......
......@@ -493,7 +493,7 @@ int NAPIRemoteObject::OnJsRemoteRequest(CallbackParam *jsParam)
ZLOGD(LOG_LABEL, "call js onRemoteRequest done");
// Check whether return_val is Promise
bool returnIsPromise = false;//
bool returnIsPromise = false;
napi_is_promise(param->env, returnVal, &returnIsPromise);
if (!returnIsPromise) {
ZLOGD(LOG_LABEL, "onRemoteRequest is synchronous");
......
......@@ -423,7 +423,6 @@ HWTEST_F(IPCObjectStubTest, SendRequestTest016, TestSize.Level1)
EXPECT_CALL(*invoker, GetCallerUid())
.WillRepeatedly(testing::Return(ALLOWED_UID - 1));
int result = testStub->SendRequest(code, data, reply, option);
EXPECT_NE(result, IPC_STUB_INVALID_DATA_ERR);
current->invokers_.clear();
......
......@@ -163,7 +163,6 @@ HWTEST_F(DBinderServiceUnitTest, StartRemoteListener002, TestSize.Level1)
dBinderService->remoteListener_ = std::make_shared<DBinderRemoteListener>(dBinderService);
bool res = dBinderService->StartRemoteListener();
EXPECT_EQ(res, true);
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册