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

Side by Side Diff: tools/telemetry/examples/list_available_browsers

Issue 128653005: [telemetry] Update examples so they work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit tests that were broken earlier. Created 6 years, 11 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5
5 import os 6 import os
6 import sys 7 import sys
7 8
8 9 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir))
9 sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
10 10
11 from telemetry.core import browser_options 11 from telemetry.core import browser_options
12 12
13
13 def Main(args): 14 def Main(args):
14 options = browser_options.BrowserOptions() 15 options = browser_options.BrowserFinderOptions()
15 options.browser_type = 'list'; 16 options.browser_type = 'list'
16 parser = options.CreateParser('list_available_browsers') 17 parser = options.CreateParser('list_available_browsers')
17 parser.parse_args() 18 parser.parse_args()
18 return 0 19 return 0
19 20
21
20 if __name__ == '__main__': 22 if __name__ == '__main__':
21 sys.exit(Main(sys.argv[1:])) 23 sys.exit(Main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/presubmit_unittest.py ('k') | tools/telemetry/examples/telemetry_perf_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698