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

Side by Side Diff: tools/profile_chrome/chrome_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/chrome_controller.py ('k') | tools/profile_chrome/controllers.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 chrome_controller 8 from profile_chrome import chrome_controller
9 from adb_profile_chrome import controllers_unittest 9 from profile_chrome import controllers_unittest
10 10
11 11
12 class ChromeControllerTest(controllers_unittest.BaseControllerTest): 12 class ChromeControllerTest(controllers_unittest.BaseControllerTest):
13 def testGetCategories(self): 13 def testGetCategories(self):
14 # Not supported on stable yet. 14 # Not supported on stable yet.
15 # TODO(skyostil): Remove this once category queries roll into stable. 15 # TODO(skyostil): Remove this once category queries roll into stable.
16 if self.browser == 'stable': 16 if self.browser == 'stable':
17 return 17 return
18 18
19 categories = \ 19 categories = \
(...skipping 17 matching lines...) Expand all
37 controller.StartTracing(interval) 37 controller.StartTracing(interval)
38 finally: 38 finally:
39 controller.StopTracing() 39 controller.StopTracing()
40 40
41 result = controller.PullTrace() 41 result = controller.PullTrace()
42 try: 42 try:
43 with open(result) as f: 43 with open(result) as f:
44 json.loads(f.read()) 44 json.loads(f.read())
45 finally: 45 finally:
46 os.remove(result) 46 os.remove(result)
OLDNEW
« no previous file with comments | « tools/profile_chrome/chrome_controller.py ('k') | tools/profile_chrome/controllers.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698