!10576 update TDD ut session_stub_test.cpp

Merge pull request !10576 from 闫瀚林0424/yhl1107
This commit is contained in:
openharmony_ci 2024-11-07 12:04:43 +00:00 committed by Gitee
commit 12d6db8916
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -322,6 +322,8 @@ HWTEST_F(SessionStubTest, ProcessRemoteRequestTest05, Function | SmallTest | Lev
res = session_->ProcessRemoteRequest(
static_cast<uint32_t>(SessionInterfaceCode::TRANS_ID_UPDATE_PIP_RECT), data, reply, option);
ASSERT_EQ(ERR_NONE, res);
ASSERT_EQ(data.WriteUint32(1), true);
ASSERT_EQ(data.WriteInt32(1), true);
res = session_->ProcessRemoteRequest(
static_cast<uint32_t>(SessionInterfaceCode::TRANS_ID_UPDATE_PIP_CONTROL_STATUS), data, reply, option);
ASSERT_EQ(ERR_NONE, res);
@ -738,6 +740,7 @@ HWTEST_F(SessionStubTest, HandleUpdateSessionRect, Function | SmallTest | Level2
data.WriteUint32(40);
data.WriteUint32(0);
data.WriteBool(true);
data.WriteBool(true);
auto res = session_->HandleUpdateSessionRect(data, reply);
ASSERT_EQ(ERR_NONE, res);
}