| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import logging | 5 import logging |
| 6 from autotest_lib.client.bin import test | 6 from autotest_lib.client.bin import test |
| 7 from autotest_lib.client.common_lib import site_power_status | 7 from autotest_lib.client.cros import power_status |
| 8 | 8 |
| 9 | 9 |
| 10 | 10 |
| 11 class power_Status(test.test): | 11 class power_Status(test.test): |
| 12 version = 1 | 12 version = 1 |
| 13 | 13 |
| 14 | 14 |
| 15 def run_once(self): | 15 def run_once(self): |
| 16 status = site_power_status.get_status() | 16 status = power_status.get_status() |
| 17 logging.info("battery_energy: %f" % status.battery[0].energy) | 17 logging.info("battery_energy: %f" % status.battery[0].energy) |
| 18 logging.info("linepower_online: %s" % status.linepower[0].online) | 18 logging.info("linepower_online: %s" % status.linepower[0].online) |
| OLD | NEW |