!11803 修复TDD失败用例:sessionStubTest02

Merge pull request !11803 from 白钰胜/fix_tdd_sessionStubTest02
This commit is contained in:
openharmony_ci 2024-12-28 06:22:19 +00:00 committed by Gitee
commit f317a1d358
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 17 additions and 2 deletions

View File

@ -123,6 +123,23 @@ HWTEST_F(SessionStubLayoutTest, HandleUpdateClientRect01, Function | SmallTest |
res = session_->HandleUpdateClientRect(data, reply);
ASSERT_EQ(ERR_NONE, res);
}
/**
* @tc.name: HandleSetSystemEnableDrag_TestReadBool
* @tc.desc: Check whether the enableDrag is read successfully.
* @tc.type: FUNC
*/
HWTEST_F(SessionStubLayoutTest, HandleSetSystemEnableDrag_TestReadBool, Function | SmallTest | Level2)
{
MessageParcel data;
MessageParcel reply;
auto res = session_->HandleSetSystemEnableDrag(data, reply);
ASSERT_EQ(ERR_INVALID_DATA, res);
data.WriteBool(true);
res = session_->HandleSetSystemEnableDrag(data, reply);
ASSERT_EQ(ERR_NONE, res);
}
}
} // namespace Rosen
} // namespace OHOS

View File

@ -435,8 +435,6 @@ HWTEST_F(SessionStubTest, sessionStubTest02, Function | SmallTest | Level2)
ASSERT_EQ(ERR_NONE, res);
res = session_->HandleGetStatusBarHeight(data, reply);
ASSERT_EQ(ERR_NONE, res);
res = session_->HandleSetSystemEnableDrag(data, reply);
ASSERT_EQ(ERR_NONE, res);
}
/**