test:Add null check verification

Signed-off-by: chenchong_666 <chenchong57@huawei.com>
This commit is contained in:
chenchong_666 2024-11-18 19:36:52 +08:00
parent eb6162b395
commit f699fe98c5
2 changed files with 4 additions and 1 deletions

View File

@ -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.

View File

@ -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);