提交 e0fb8d4c 编写于 作者: 1 18392170496

[master] dcts失败用例修复

Signed-off-by: N18392170496 <magentang4@huawei.com>
上级 dd0588b9
......@@ -530,9 +530,6 @@ int IPCObjectProxy::GetProtoInfo()
switch (reply.ReadUint32()) {
case IRemoteObject::IF_PROT_BINDER: {
remoteDescriptor_ = reply.ReadString16();
ZLOGD(LABEL, "it is normal binder, handle:%{public}u desc:%{public}s",
handle_, Str16ToStr8(remoteDescriptor_).c_str());
break;
}
case IRemoteObject::IF_PROT_DATABUS: {
......
......@@ -372,7 +372,7 @@ int32_t IPCObjectStub::ProcessProto(uint32_t code, MessageParcel &data, MessageP
{
int result = ERR_NONE;
ZLOGD(LABEL, "normal stub object, descriptor_=%{public}s", Str16ToStr8(descriptor_).c_str());
if (!reply.WriteUint32(IRemoteObject::IF_PROT_BINDER) || !reply.WriteString16(descriptor_)) {
if (!reply.WriteUint32(IRemoteObject::IF_PROT_BINDER)) {
ZLOGE(LABEL, "write to parcel fail");
result = IPC_STUB_WRITE_PARCEL_ERR;
}
......
......@@ -164,7 +164,7 @@ NAPIRemoteObject::NAPIRemoteObject(napi_env env, napi_ref jsObjectRef, const std
NAPIRemoteObject::~NAPIRemoteObject()
{
ZLOGI(LOG_LABEL, "NAPIRemoteObject destroyed, desc:%{public}s", Str16ToStr8(desc_).c_str());
ZLOGI(LOG_LABEL, "NAPIRemoteObject Destructor, desc:%{public}s", Str16ToStr8(desc_).c_str());
if (thisVarRef_ != nullptr) {
napi_status status = napi_delete_reference(env_, thisVarRef_);
NAPI_ASSERT_RETURN_VOID(env_, status == napi_ok, "failed to delete ref to js RemoteObject");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册