Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Issue 6760013: GetBatteryInfo() battery automation hook. (Closed)

Created:
9 years, 8 months ago by dtu
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

GetBatteryInfo() 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -0 lines) Patch
M chrome/browser/automation/testing_automation_provider.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider_chromeos.cc View 1 2 2 chunks +35 lines, -0 lines 0 comments Download
M chrome/test/functional/PYAUTO_TESTS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/functional/chromeos_power.py View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/test/pyautolib/pyauto.py View 1 2 3 4 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
dtu
9 years, 8 months ago (2011-03-29 00:55:23 UTC) #1
krisr
http://codereview.chromium.org/6760013/diff/1/chrome/test/pyautolib/pyauto.py File chrome/test/pyautolib/pyauto.py (right): http://codereview.chromium.org/6760013/diff/1/chrome/test/pyautolib/pyauto.py#newcode2388 chrome/test/pyautolib/pyauto.py:2388: I actually had to look at the device to ...
9 years, 8 months ago (2011-03-29 01:02:01 UTC) #2
Nirnimesh
http://codereview.chromium.org/6760013/diff/1/chrome/browser/automation/testing_automation_provider_chromeos.cc File chrome/browser/automation/testing_automation_provider_chromeos.cc (right): http://codereview.chromium.org/6760013/diff/1/chrome/browser/automation/testing_automation_provider_chromeos.cc#newcode139 chrome/browser/automation/testing_automation_provider_chromeos.cc:139: return_value->SetBoolean("battery", power_library->battery_is_present()); Match the key string with the function ...
9 years, 8 months ago (2011-03-29 01:29:38 UTC) #3
dtu
http://codereview.chromium.org/6760013/diff/1/chrome/browser/automation/testing_automation_provider_chromeos.cc File chrome/browser/automation/testing_automation_provider_chromeos.cc (right): http://codereview.chromium.org/6760013/diff/1/chrome/browser/automation/testing_automation_provider_chromeos.cc#newcode139 chrome/browser/automation/testing_automation_provider_chromeos.cc:139: return_value->SetBoolean("battery", power_library->battery_is_present()); On 2011/03/29 01:29:39, Nirnimesh wrote: > Match ...
9 years, 8 months ago (2011-03-29 02:21:22 UTC) #4
dennis_jeffrey
LGTM Two minor nits. http://codereview.chromium.org/6760013/diff/6008/chrome/test/functional/chromeos_power.py File chrome/test/functional/chromeos_power.py (right): http://codereview.chromium.org/6760013/diff/6008/chrome/test/functional/chromeos_power.py#newcode12 chrome/test/functional/chromeos_power.py:12: class ChromeosBasic(pyauto.PyUITest): Maybe change name ...
9 years, 8 months ago (2011-03-29 15:21:31 UTC) #5
Nirnimesh
9 years, 8 months ago (2011-03-29 17:30:01 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld 408576698