Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / build / android / pylib / perf / perf_control_unittest.py
index 7bdc962..aa31f68 100644 (file)
@@ -27,13 +27,13 @@ class TestPerfControl(unittest.TestCase):
     perf = perf_control.PerfControl(self._device)
     try:
       perf.SetPerfProfilingMode()
-      for cpu in range(perf._NumCpuCores):
+      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()