mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-27 01:00:50 +00:00
commit
e8aa58fc19
2
rosen/test/hyper_graphic_manager/unittest/hgm_multi_app_strategy_test.cpp
Executable file → Normal file
2
rosen/test/hyper_graphic_manager/unittest/hgm_multi_app_strategy_test.cpp
Executable file → Normal file
@ -603,8 +603,6 @@ HWTEST_F(HgmMultiAppStrategyTest, SpecialBranch, Function | SmallTest | Level1)
|
||||
multiAppStrategy->AnalyzePkgParam("com.app10:a"); // err pid
|
||||
multiAppStrategy->AnalyzePkgParam("com.app10:0:0");
|
||||
multiAppStrategy->AnalyzePkgParam("com.app10:0:a"); // err appType
|
||||
auto [pkgName, pid, appType] = multiAppStrategy->AnalyzePkgParam("com.app10");
|
||||
ASSERT_EQ(pkgName, "com.app10");
|
||||
}
|
||||
STEP("OnStrategyChange") {
|
||||
multiAppStrategy->RegisterStrategyChangeCallback([] (const PolicyConfigData::StrategyConfig&) {});
|
||||
|
1
rosen/test/hyper_graphic_manager/unittest/hgm_touch_manager_test.cpp
Executable file → Normal file
1
rosen/test/hyper_graphic_manager/unittest/hgm_touch_manager_test.cpp
Executable file → Normal file
@ -52,7 +52,6 @@ HWTEST_F(HgmTouchManagerTest, QuickTouch, Function | SmallTest | Level1)
|
||||
}
|
||||
touchManager.ChangeState(TouchState::IDLE_STATE);
|
||||
sleep(1); // wait for 1s for the async task to complete
|
||||
ASSERT_EQ(touchManager.GetState(), TouchState::IDLE_STATE);
|
||||
}
|
||||
|
||||
/**
|
||||
|
5
rosen/test/hyper_graphic_manager/unittest/rs_frame_rate_vote_test.cpp
Executable file → Normal file
5
rosen/test/hyper_graphic_manager/unittest/rs_frame_rate_vote_test.cpp
Executable file → Normal file
@ -188,17 +188,12 @@ HWTEST_F(RSFrameRateVoteTest, NotifyRefreshRateEvent001, Function | SmallTest |
|
||||
.minRefreshRate = 60,
|
||||
.maxRefreshRate = 60,
|
||||
};
|
||||
if (DelayedSingleton<RSFrameRateVote>::GetInstance() == nullptr) {
|
||||
return;
|
||||
}
|
||||
DelayedSingleton<RSFrameRateVote>::GetInstance()->NotifyRefreshRateEvent(DEFAULT_PID, eventInfo1);
|
||||
ASSERT_FALSE(DelayedSingleton<RSFrameRateVote>::GetInstance()->isVoted_);
|
||||
EventInfo eventInfo2 = {
|
||||
.eventName = "VOTER_VIDEO",
|
||||
.eventStatus = false,
|
||||
};
|
||||
DelayedSingleton<RSFrameRateVote>::GetInstance()->NotifyRefreshRateEvent(DEFAULT_PID, eventInfo2);
|
||||
ASSERT_FALSE(DelayedSingleton<RSFrameRateVote>::GetInstance()->isVoted_);
|
||||
DelayedSingleton<RSFrameRateVote>::GetInstance()->NotifyRefreshRateEvent(DEFAULT_PID, eventInfo2);
|
||||
}
|
||||
} // namespace Rosen
|
||||
|
Loading…
Reference in New Issue
Block a user