Searched refs:deviceStateAction (Results 1 – 1 of 1) sorted by relevance
47 auto deviceStateAction = std::make_shared<DeviceStateAction>(); variable49 deviceStateAction->RegisterCallback(sd);52 EXPECT_TRUE(deviceStateAction->SetDisplayState(state, reason) == ActionResult::SUCCESS);53 EXPECT_TRUE(deviceStateAction->GetDisplayState() == DisplayState::DISPLAY_OFF);55 EXPECT_TRUE(deviceStateAction->SetDisplayState(state, reason) == ActionResult::SUCCESS);56 EXPECT_TRUE(deviceStateAction->GetDisplayState() == DisplayState::DISPLAY_DIM);58 EXPECT_TRUE(deviceStateAction->SetDisplayState(state, reason) == ActionResult::SUCCESS);59 EXPECT_TRUE(deviceStateAction->GetDisplayState() == DisplayState::DISPLAY_ON);61 EXPECT_TRUE(deviceStateAction->SetDisplayState(state, reason) == ActionResult::SUCCESS);62 EXPECT_TRUE(deviceStateAction->GetDisplayState() == DisplayState::DISPLAY_SUSPEND);[all …]