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

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

Issue 358993003: [Android] Switch to DeviceUtils versions of file functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/thermal_throttle.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 9333dbce85f9bebe2ff3dd9a9b20384c578518b7..aa31f68d010531ab2ff84fbfd1bd25e90f25b565 100644
--- a/build/android/pylib/perf/perf_control_unittest.py
+++ b/build/android/pylib/perf/perf_control_unittest.py
@@ -30,10 +30,10 @@ class TestPerfControl(unittest.TestCase):
for cpu in range(perf._num_cpu_cores):
path = perf_control.PerfControl._CPU_ONLINE_FMT % cpu
self.assertEquals('1',
- self._device.old_interface.GetFileContents(path)[0])
+ self._device.ReadFile(path)[0])
path = perf_control.PerfControl._SCALING_GOVERNOR_FMT % cpu
self.assertEquals('performance',
- self._device.old_interface.GetFileContents(path)[0])
+ self._device.ReadFile(path)[0])
finally:
perf.SetDefaultPerfMode()
« no previous file with comments | « build/android/pylib/perf/perf_control.py ('k') | build/android/pylib/perf/thermal_throttle.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698