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

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

Issue 1332603002: [Android] Move perf utilities into devil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: redirections for v8 Created 5 years, 3 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
deleted file mode 100644
index 425a69be808b3ff25697e2c3f64b5733caed57c4..0000000000000000000000000000000000000000
--- a/build/android/pylib/perf/perf_control_unittest.py
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-# pylint: disable=W0212
-
-import os
-import sys
-import unittest
-
-sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir))
-
-from devil.android import device_utils
-from pylib.perf import perf_control
-
-class TestPerfControl(unittest.TestCase):
- def setUp(self):
- if not os.getenv('BUILDTYPE'):
- os.environ['BUILDTYPE'] = 'Debug'
-
- devices = device_utils.DeviceUtils.HealthyDevices(blacklist=None)
- self.assertGreater(len(devices), 0, 'No device attached!')
- self._device = devices[0]
-
- def testHighPerfMode(self):
- perf = perf_control.PerfControl(self._device)
- try:
- perf.SetPerfProfilingMode()
- cpu_info = perf.GetCpuInfo()
- self.assertEquals(len(perf._cpu_files), len(cpu_info))
- for _, online, governor in cpu_info:
- self.assertTrue(online)
- self.assertEquals('performance', governor)
- finally:
- perf.SetDefaultPerfMode()
-
-if __name__ == '__main__':
- unittest.main()
« 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