mirror of
https://gitee.com/openharmony/window_window_manager
synced 2025-02-15 05:08:35 +00:00
!11803 修复TDD失败用例:sessionStubTest02
Merge pull request !11803 from 白钰胜/fix_tdd_sessionStubTest02
This commit is contained in:
commit
f317a1d358
@ -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
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user