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

Unified Diff: build/android/pylib/perf/perf_control_unittest.py

Issue 1112843002: [Android] Remove more uses of android_commands from build/android/pylib. (RELAND) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@detriplicated
Patch Set: fixes for host-driven tests & specific device Created 5 years, 8 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: build/android/pylib/perf/perf_control_unittest.py
diff --git a/build/android/pylib/perf/perf_control_unittest.py b/build/android/pylib/perf/perf_control_unittest.py
index dd7cb88002cbd73c2ead71bcfa9a16383231f1c0..69b8b469bfcdd0511e8840dd76fe0e6f1fcfca5f 100644
--- a/build/android/pylib/perf/perf_control_unittest.py
+++ b/build/android/pylib/perf/perf_control_unittest.py
@@ -9,7 +9,6 @@ import unittest
sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir))
-from pylib import android_commands
from pylib.device import device_utils
from pylib.perf import perf_control
@@ -18,10 +17,9 @@ class TestPerfControl(unittest.TestCase):
if not os.getenv('BUILDTYPE'):
os.environ['BUILDTYPE'] = 'Debug'
- devices = android_commands.GetAttachedDevices()
+ devices = device_utils.DeviceUtils.HealthyDevices()
self.assertGreater(len(devices), 0, 'No device attached!')
- self._device = device_utils.DeviceUtils(
- android_commands.AndroidCommands(device=devices[0]))
+ self._device = devices[0]
def testHighPerfMode(self):
perf = perf_control.PerfControl(self._device)

Powered by Google App Engine
This is Rietveld 408576698