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

Side by Side Diff: tools/profile_chrome/perf_controller_unittest.py

Issue 402803005: Move adb_profile_chrome to profile_chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/profile_chrome/perf_controller.py ('k') | tools/profile_chrome/profiler.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import os 5 import os
6 import json 6 import json
7 7
8 from adb_profile_chrome import controllers_unittest 8 from profile_chrome import controllers_unittest
9 from adb_profile_chrome import perf_controller 9 from profile_chrome import perf_controller
10 from adb_profile_chrome import ui 10 from profile_chrome import ui
11 11
12 from pylib import constants 12 from pylib import constants
13 13
14 14
15 class PerfProfilerControllerTest(controllers_unittest.BaseControllerTest): 15 class PerfProfilerControllerTest(controllers_unittest.BaseControllerTest):
16 def testGetCategories(self): 16 def testGetCategories(self):
17 if not perf_controller.PerfProfilerController.IsSupported(): 17 if not perf_controller.PerfProfilerController.IsSupported():
18 return 18 return
19 categories = \ 19 categories = \
20 perf_controller.PerfProfilerController.GetCategories(self.device) 20 perf_controller.PerfProfilerController.GetCategories(self.device)
(...skipping 20 matching lines...) Expand all
41 'tools', 'telemetry', 'telemetry', 'core', 'platform', 'profiler', 41 'tools', 'telemetry', 'telemetry', 'core', 'platform', 'profiler',
42 'perf_vis', 'perf_to_tracing.py') 42 'perf_vis', 'perf_to_tracing.py')
43 assert not os.path.exists(perf_script_path) 43 assert not os.path.exists(perf_script_path)
44 return 44 return
45 45
46 try: 46 try:
47 with open(result) as f: 47 with open(result) as f:
48 json.loads(f.read()) 48 json.loads(f.read())
49 finally: 49 finally:
50 os.remove(result) 50 os.remove(result)
OLDNEW
« no previous file with comments | « tools/profile_chrome/perf_controller.py ('k') | tools/profile_chrome/profiler.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698