Home
last modified time | relevance | path

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

/external/chromium_org/content/browser/battery_status/
Dbattery_status_browsertest.cc95 FakeBatteryManager* battery_manager() { in battery_manager() function in content::__anon423405210111::BatteryStatusBrowserTest
111 battery_manager()->set_battery_status_available(false); in IN_PROC_BROWSER_TEST_F()
116 EXPECT_TRUE(battery_manager()->started()); in IN_PROC_BROWSER_TEST_F()
128 battery_manager()->set_battery_status(status); in IN_PROC_BROWSER_TEST_F()
134 EXPECT_TRUE(battery_manager()->started()); in IN_PROC_BROWSER_TEST_F()
145 battery_manager()->set_battery_status(status); in IN_PROC_BROWSER_TEST_F()
156 battery_manager()->set_battery_status(status); in IN_PROC_BROWSER_TEST_F()
157 battery_manager()->InvokeUpdateCallback(); in IN_PROC_BROWSER_TEST_F()
160 EXPECT_TRUE(battery_manager()->started()); in IN_PROC_BROWSER_TEST_F()
Dbattery_status_service_unittest.cc78 FakeBatteryManager* battery_manager() { in battery_manager() function in content::__anon2e05b0ed0111::BatteryStatusServiceTest
132 EXPECT_EQ(1, battery_manager()->start_invoked_count()); in TEST_F()
133 EXPECT_EQ(0, battery_manager()->stop_invoked_count()); in TEST_F()
135 EXPECT_EQ(1, battery_manager()->start_invoked_count()); in TEST_F()
136 EXPECT_EQ(1, battery_manager()->stop_invoked_count()); in TEST_F()
142 battery_manager()->InvokeUpdateCallback(status); in TEST_F()
161 battery_manager()->InvokeUpdateCallback(status); in TEST_F()
177 battery_manager()->InvokeUpdateCallback(status); in TEST_F()
183 battery_manager()->InvokeUpdateCallback(status); in TEST_F()