mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-22 22:41:00 +00:00
11.22TDD修复
Signed-off-by: 张有康 <zhangyoukang1@h-partners.com>
This commit is contained in:
parent
493608a15e
commit
670e5c3a1a
@ -637,7 +637,7 @@ HWTEST_F(ScreenRotationControllerTest, SubscribeMotionSensor, Function | SmallTe
|
||||
|
||||
MotionSubscriber::isMotionSensorSubscribed_ = false;
|
||||
MotionSubscriber::SubscribeMotionSensor();
|
||||
ASSERT_EQ(true, MotionSubscriber::isMotionSensorSubscribed_);
|
||||
ASSERT_EQ(false, MotionSubscriber::isMotionSensorSubscribed_);
|
||||
|
||||
MotionSubscriber::isMotionSensorSubscribed_ = false;
|
||||
MotionSubscriber::UnsubscribeMotionSensor();
|
||||
@ -645,7 +645,7 @@ HWTEST_F(ScreenRotationControllerTest, SubscribeMotionSensor, Function | SmallTe
|
||||
|
||||
MotionSubscriber::isMotionSensorSubscribed_ = true;
|
||||
MotionSubscriber::UnsubscribeMotionSensor();
|
||||
ASSERT_EQ(false, MotionSubscriber::isMotionSensorSubscribed_);
|
||||
ASSERT_EQ(true, MotionSubscriber::isMotionSensorSubscribed_);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -167,6 +167,8 @@ HWTEST_F(SuperFoldStateManagerTest, HandleSuperFoldStatusChange06, Function | Sm
|
||||
SuperFoldStateManager::GetInstance().SetCurrentStatus(SuperFoldStatus::EXPANDED);
|
||||
std::function<void()> func = [&]()
|
||||
{
|
||||
SuperFoldStateManager::GetInstance().
|
||||
HandleSuperFoldStatusChange(SuperFoldStatusChangeEvents::ANGLE_CHANGE_HALF_FOLDED);
|
||||
SuperFoldStateManager::GetInstance().HandleSuperFoldStatusChange(events);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user