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

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

Issue 333933003: [Android] Switch to DeviceUtils version of RunShellCommand. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 6 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
« no previous file with comments | « build/android/pylib/perf/perf_control.py ('k') | build/android/pylib/perf/surface_stats_collector.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bd30a4eea7af9e0472dc4ddd91f390aec27abdf3..a83b482f6f847c9531ff44c1880e94e45d0a044e 100644
--- a/build/android/pylib/perf/perf_control_unittest.py
+++ b/build/android/pylib/perf/perf_control_unittest.py
@@ -25,20 +25,20 @@ class TestPerfControl(unittest.TestCase):
def testForceAllCpusOnline(self):
perf = perf_control.PerfControl(self._device)
- cpu_online_files = self._device.old_interface.RunShellCommand(
+ cpu_online_files = self._device.RunShellCommand(
'ls -d /sys/devices/system/cpu/cpu[0-9]*/online')
try:
perf.ForceAllCpusOnline(True)
for path in cpu_online_files:
self.assertEquals('1',
self._device.old_interface.GetFileContents(path)[0])
- mode = self._device.old_interface.RunShellCommand('ls -l %s' % path)[0]
+ mode = self._device.RunShellCommand('ls -l %s' % path)[0]
self.assertEquals('-r--r--r--', mode[:10])
finally:
perf.ForceAllCpusOnline(False)
for path in cpu_online_files:
- mode = self._device.old_interface.RunShellCommand('ls -l %s' % path)[0]
+ mode = self._device.RunShellCommand('ls -l %s' % path)[0]
self.assertEquals('-rw-r--r--', mode[:10])
« no previous file with comments | « build/android/pylib/perf/perf_control.py ('k') | build/android/pylib/perf/surface_stats_collector.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698