diff --git a/interfaces/innerkits/ipc_core/include/message_parcel.h b/interfaces/innerkits/ipc_core/include/message_parcel.h index 9a8390b7ed54faceef69c2466fd26247f3f6a29a..7a941afc028cf8167e9de7d8a3b3d6b129270aef 100644 --- a/interfaces/innerkits/ipc_core/include/message_parcel.h +++ b/interfaces/innerkits/ipc_core/include/message_parcel.h @@ -50,7 +50,6 @@ public: { needCloseFd_ = true; }; - bool MessageParcelAppend(MessageParcel &data); private: #ifndef CONFIG_IPC_SINGLE diff --git a/ipc/test/auxiliary/native/src/test_service_skeleton.cpp b/ipc/test/auxiliary/native/src/test_service_skeleton.cpp index cf02e96fafd0e0d73aef46965d77871861c8c2fa..e3da09bc672c0f5d0419a723b2b6d0421cea1a71 100644 --- a/ipc/test/auxiliary/native/src/test_service_skeleton.cpp +++ b/ipc/test/auxiliary/native/src/test_service_skeleton.cpp @@ -428,7 +428,7 @@ int TestServiceProxy::TestAccessTokenID(int32_t ftoken_expected) int TestServiceProxy::TestMessageParcelAppend(MessageParcel &dst, MessageParcel &src) { - bool res = dst.MessageParcelAppend(src); + bool res = dst.ParcelAppend(src); if (!res) { ZLOGE(LABEL, "TestMessageParcelAppend without ipc failed"); return -1; @@ -439,7 +439,7 @@ int TestServiceProxy::TestMessageParcelAppend(MessageParcel &dst, MessageParcel int TestServiceProxy::TestMessageParcelAppendWithIpc(MessageParcel &dst, MessageParcel &src, MessageParcel &reply, bool withObject) { - bool res = dst.MessageParcelAppend(src); + bool res = dst.ParcelAppend(src); if (!res) { ZLOGE(LABEL, "TestMessageParcelAppend with ipc failed"); return -1; @@ -685,6 +685,7 @@ int TestServiceStub::OnRemoteRequest(uint32_t code, reply.WriteInt32(data.ReadInt32()); reply.WriteString(data.ReadString()); reply.WriteRemoteObject(data.ReadRemoteObject()); + reply.WriteFileDescriptor(data.ReadFileDescriptor()); break; } default: