Searched refs:g_mockPowerAction (Results 1 – 3 of 3) sorted by relevance
/base/powermgr/power_manager/test/apitest/inner_api/shutdown/ |
D | takeover_shutdown_callback_test.cpp | 33 MockPowerAction* g_mockPowerAction; variable 61 g_mockPowerAction = new MockPowerAction(); in SetUp() 64 shutdownController->EnableMock(g_mockPowerAction, g_mockStateAction); in SetUp() 110 EXPECT_CALL(*g_mockPowerAction, Reboot(std::string("test_reboot"))).Times(0); 114 EXPECT_CALL(*g_mockPowerAction, Shutdown(std::string("test_shutdown"))).Times(0); 199 EXPECT_CALL(*g_mockPowerAction, Reboot(std::string("test_reboot"))).Times(1); 202 EXPECT_CALL(*g_mockPowerAction, Shutdown(std::string("test_shutdown"))).Times(1);
|
D | sync_shutdown_callback_test.cpp | 33 MockPowerAction* g_mockPowerAction = nullptr; variable 59 g_mockPowerAction = new MockPowerAction(); in SetUp() 62 shutdownController->EnableMock(g_mockPowerAction, g_mockStateAction); in SetUp() 174 EXPECT_CALL(*g_mockPowerAction, Reboot(std::string("test_reboot"))).Times(1); 177 EXPECT_CALL(*g_mockPowerAction, Shutdown(std::string("test_shutdown"))).Times(1);
|
D | async_shutdown_callback_test.cpp | 34 MockPowerAction* g_mockPowerAction = nullptr; variable 63 g_mockPowerAction = new MockPowerAction(); in SetUp() 66 shutdownController->EnableMock(g_mockPowerAction, g_mockStateAction); in SetUp() 200 EXPECT_CALL(*g_mockPowerAction, Reboot(std::string("test_reboot"))).Times(1); 203 EXPECT_CALL(*g_mockPowerAction, Shutdown(std::string("test_shutdown"))).Times(1);
|