Home
last modified time | relevance | path

Searched refs:g_batteryNotify (Results 1 - 2 of 2) sorted by relevance

/base/powermgr/battery_manager/test/unittest/src/
H A Dbattery_event_test.cpp39 shared_ptr<BatteryNotify> g_batteryNotify = nullptr; member
44 if (g_batteryNotify == nullptr) { in SetUpTestCase()
45 g_batteryNotify = make_shared<BatteryNotify>(); in SetUpTestCase()
51 if (g_batteryNotify != nullptr) { in TearDownTestCase()
52 g_batteryNotify.reset(); in TearDownTestCase()
53 g_batteryNotify = nullptr; in TearDownTestCase()
65 bool ret = g_batteryNotify->PublishLowEvent(info); in HWTEST_F()
79 bool ret = g_batteryNotify->PublishCustomEvent(info, "test.battery.custom.event"); in HWTEST_F()
/base/powermgr/battery_manager/test/unittest/src/scenario_test/
H A Dbattery_notify_test.cpp27 std::shared_ptr<BatteryNotify> g_batteryNotify; member
31 g_batteryNotify = std::make_shared<BatteryNotify>(); in SetUpTestCase()
85 auto ret = g_batteryNotify->PublishEvents(*g_batteryInfo); in HWTEST_F()
101 auto ret = g_batteryNotify->PublishEvents(*g_batteryInfo); in HWTEST_F()
117 auto ret = g_batteryNotify->PublishEvents(*g_batteryInfo); in HWTEST_F()
133 auto ret = g_batteryNotify->PublishEvents(*g_batteryInfo); in HWTEST_F()
149 auto ret = g_batteryNotify->PublishEvents(*g_batteryInfo); in HWTEST_F()
165 auto ret = g_batteryNotify->PublishEvents(*g_batteryInfo); in HWTEST_F()
181 auto ret = g_batteryNotify->PublishEvents(*g_batteryInfo); in HWTEST_F()
197 auto ret = g_batteryNotify in HWTEST_F()
[all...]

Completed in 1 milliseconds