mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-27 17:21:51 +00:00
commit
95ac6bb9f6
@ -267,6 +267,7 @@ HWTEST_F(VSyncDistributorTest, SetHighPriorityVSyncRate002, Function | MediumTes
|
||||
*/
|
||||
HWTEST_F(VSyncDistributorTest, SetFrameIsRender001, Function | MediumTest| Level3)
|
||||
{
|
||||
ASSERT_EQ(VSyncDistributorTest::vsyncDistributor->IsDVsyncOn(), false);
|
||||
VSyncDistributorTest::vsyncDistributor->SetFrameIsRender(true);
|
||||
}
|
||||
|
||||
@ -279,6 +280,7 @@ HWTEST_F(VSyncDistributorTest, SetFrameIsRender001, Function | MediumTest| Level
|
||||
*/
|
||||
HWTEST_F(VSyncDistributorTest, SetFrameIsRender002, Function | MediumTest| Level3)
|
||||
{
|
||||
ASSERT_EQ(VSyncDistributorTest::vsyncDistributor->IsDVsyncOn(), false);
|
||||
VSyncDistributorTest::vsyncDistributor->SetFrameIsRender(false);
|
||||
}
|
||||
|
||||
@ -305,6 +307,9 @@ HWTEST_F(VSyncDistributorTest, GetRealTimeOffsetOfDvsync001, Function | MediumTe
|
||||
*/
|
||||
HWTEST_F(VSyncDistributorTest, MarkRSAnimate001, Function | MediumTest| Level3)
|
||||
{
|
||||
sptr<VSyncConnection> conn = new VSyncConnection(vsyncDistributor, "VSyncDistributorTest");
|
||||
auto res = VSyncDistributorTest::vsyncDistributor->SetUiDvsyncSwitch(true, conn);
|
||||
ASSERT_EQ(res, VSYNC_ERROR_OK);
|
||||
VSyncDistributorTest::vsyncDistributor->MarkRSAnimate();
|
||||
}
|
||||
|
||||
@ -317,6 +322,9 @@ HWTEST_F(VSyncDistributorTest, MarkRSAnimate001, Function | MediumTest| Level3)
|
||||
*/
|
||||
HWTEST_F(VSyncDistributorTest, UnmarkRSAnimate001, Function | MediumTest| Level3)
|
||||
{
|
||||
sptr<VSyncConnection> conn = new VSyncConnection(vsyncDistributor, "VSyncDistributorTest");
|
||||
auto res = VSyncDistributorTest::vsyncDistributor->SetUiDvsyncSwitch(false, conn);
|
||||
ASSERT_EQ(res, VSYNC_ERROR_OK);
|
||||
VSyncDistributorTest::vsyncDistributor->UnmarkRSAnimate();
|
||||
}
|
||||
|
||||
@ -344,7 +352,8 @@ HWTEST_F(VSyncDistributorTest, UpdatePendingReferenceTime001, Function | MediumT
|
||||
{
|
||||
int64_t timeStamp = 0;
|
||||
sptr<VSyncConnection> conn = new VSyncConnection(vsyncDistributor, "VSyncDistributorTest");
|
||||
VSyncDistributorTest::vsyncDistributor->SetUiDvsyncSwitch(true, conn);
|
||||
auto res = VSyncDistributorTest::vsyncDistributor->SetUiDvsyncSwitch(true, conn);
|
||||
ASSERT_EQ(res, VSYNC_ERROR_OK);
|
||||
VSyncDistributorTest::vsyncDistributor->UpdatePendingReferenceTime(timeStamp);
|
||||
}
|
||||
|
||||
@ -359,7 +368,8 @@ HWTEST_F(VSyncDistributorTest, SetHardwareTaskNum001, Function | MediumTest| Lev
|
||||
{
|
||||
uint32_t num = 0;
|
||||
sptr<VSyncConnection> conn = new VSyncConnection(vsyncDistributor, "VSyncDistributorTest");
|
||||
VSyncDistributorTest::vsyncDistributor->SetUiDvsyncSwitch(true, conn);
|
||||
auto res = VSyncDistributorTest::vsyncDistributor->SetUiDvsyncSwitch(true, conn);
|
||||
ASSERT_EQ(res, VSYNC_ERROR_OK);
|
||||
VSyncDistributorTest::vsyncDistributor->SetHardwareTaskNum(num);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user