Home
last modified time | relevance | path

Searched refs:g_light (Results 1 – 1 of 1) sorted by relevance

/base/powermgr/battery_manager/test/unittest/src/
Dbattery_light_test.cpp28 BatteryLight g_light; variable
34 g_light.InitLight(); in SetUpTestCase()
35 g_light.TurnOff(); in SetUpTestCase()
36 GTEST_LOG_(INFO) << "The current device supports Light: " << g_light.isAvailable(); in SetUpTestCase()
41 g_light.TurnOff(); in TearDown()
52 RETURN_IF(!g_light.isAvailable());
53 g_light.TurnOff();
54 EXPECT_TRUE(g_light.GetLightColor() == 0U);
65 RETURN_IF(!g_light.isAvailable());
67 g_light.TurnOn(color);
[all …]