DescriptionGetBatteryInfo() battery automation hook.
Add a GetBatteryInfo() function accessible through PyAuto. GetBatteryInfo provides information on the state of the battery, including whether a battery is present, how much battery is left, and whether it is charging or discharging.
BUG=chromium-os:12524
TEST=testBatteryInfo included. Use python chromeos_basic.py
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=79774
Patch Set 1 #
Total comments: 8
Patch Set 2 : Change output dict format. Expand comment. #Patch Set 3 : Add chromeos_power.py #
Total comments: 2
Patch Set 4 : Nits. #Patch Set 5 : Merge. #
Messages
Total messages: 6 (0 generated)
|