| # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| AUTHOR = "Chrome OS Team" |
| NAME = "power_BatteryCharge" |
| PURPOSE = "Measure the time required to charge the battery." |
| CRITERIA = "This test is a benchmark." |
| TIME = "LONG" |
| TEST_CATEGORY = "Benchmark" |
| TEST_CLASS = "power" |
| TEST_TYPE = "client" |
| |
| DOC = """ |
| This test enforces the following contraints: |
| - Initial battery charge < 5% |
| - Device should be plugged in to an AC outlet |
| - In 4 hours, the battery charge should increase by at least 94% of maximum |
| |
| This test depends on power_status.py, which is included in |
| client/cros/ in AutoTest. power_status.py has many status |
| initialization and parsing routines for battery status. |
| """ |
| |
| job.run_test('power_BatteryCharge') |