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

Unified Diff: client/site_tests/power_LoadTest/power_LoadTest.py

Issue 6627029: Refactor site_power_status, power_strip modules into client/cros. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: client/site_tests/power_LoadTest/power_LoadTest.py
diff --git a/client/site_tests/power_LoadTest/power_LoadTest.py b/client/site_tests/power_LoadTest/power_LoadTest.py
index 93a9e1a73a9f025d878e2823bc07d82dc8e28c5f..5d0fe2722c1e742463d8c67ddb2bfa4d1bf900e5 100755
--- a/client/site_tests/power_LoadTest/power_LoadTest.py
+++ b/client/site_tests/power_LoadTest/power_LoadTest.py
@@ -4,10 +4,9 @@
import logging, os, shutil, time
from autotest_lib.client.bin import utils
-from autotest_lib.client.common_lib import error, site_power_status
+from autotest_lib.client.common_lib import error
from autotest_lib.client.cros import backchannel, cros_ui, cros_ui_test
-from autotest_lib.client.cros import httpd, login
-
+from autotest_lib.client.cros import httpd, login, power_status
from autotest_lib.client.cros import flimflam_test_path
import flimflam
@@ -64,7 +63,7 @@ class power_LoadTest(cros_ui_test.UITest):
self._scroll_interval_ms = scroll_interval_ms
self._scroll_by_pixels = scroll_by_pixels
self._tmp_keyvals = {}
- self._power_status = site_power_status.get_status()
+ self._power_status = power_status.get_status()
self._json_path = None
self._force_wifi = force_wifi
@@ -127,9 +126,9 @@ class power_LoadTest(cros_ui_test.UITest):
self._testServer.run()
# initialize various interesting power related stats
- self._usb_stats = site_power_status.USBSuspendStats()
- self._cpufreq_stats = site_power_status.CPUFreqStats()
- self._cpuidle_stats = site_power_status.CPUIdleStats()
+ self._usb_stats = power_status.USBSuspendStats()
+ self._cpufreq_stats = power_status.CPUFreqStats()
+ self._cpuidle_stats = power_status.CPUIdleStats()
self._usb_stats.refresh()
« no previous file with comments | « client/site_tests/power_Idle/power_Idle.py ('k') | client/site_tests/power_StatsCPUFreq/power_StatsCPUFreq.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698