11.22TDD修复

Signed-off-by: 张有康 <zhangyoukang1@h-partners.com>
This commit is contained in:
张有康 2024-11-22 11:50:52 +08:00
parent 493608a15e
commit 670e5c3a1a
2 changed files with 4 additions and 2 deletions

View File

@ -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
}

View File

@ -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);
};