mirror of
https://gitee.com/openharmony/communication_ipc
synced 2025-02-21 09:10:47 +00:00
test:Add null check verification
Signed-off-by: chenchong_666 <chenchong57@huawei.com>
This commit is contained in:
parent
eb6162b395
commit
f699fe98c5
@ -172,7 +172,9 @@ public:
|
||||
int32_t NoticeServiceDie();
|
||||
|
||||
/**
|
||||
* @brief Obtains the corresponding PID and UID.
|
||||
* @brief Obtains the corresponding PID and UID;
|
||||
* This interface is only provided for internal use by IPC/RPC and is not open to the public,
|
||||
* It may be taken down at any time.
|
||||
* @param reply Indicates the object returned by the peer process.
|
||||
* @return Returns {@link ERR_NONE} if the operation is successful; returns an error code
|
||||
* defined in {@link ipc_types.h} otherwise.
|
||||
|
@ -234,6 +234,7 @@ HWTEST_F(IpcCApiRemoteObjectUnitTest, SendRequestAsync_001, TestSize.Level1)
|
||||
bool res = helper.StartTestApp(IPCTestHelper::IPC_TEST_SERVER);
|
||||
ASSERT_TRUE(res);
|
||||
std::unique_ptr<TestServiceClient> testClient = std::make_unique<TestServiceClient>();
|
||||
ASSERT_NE(testClient, nullptr);
|
||||
res = testClient->ConnectService();
|
||||
ASSERT_TRUE(res);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user