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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/examples/list_available_browsers
diff --git a/tools/telemetry/examples/list_available_browsers b/tools/telemetry/examples/list_available_browsers
index 58056fafdb3b2f24e0ff529964d1df3c27e1d87e..b745dbff8535b56c21eead42fd5d1238186c6678 100755
--- a/tools/telemetry/examples/list_available_browsers
+++ b/tools/telemetry/examples/list_available_browsers
@@ -2,20 +2,22 @@
# Copyright (c) 2012 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.
+
import os
import sys
-
-sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
+sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir))
from telemetry.core import browser_options
+
def Main(args):
- options = browser_options.BrowserOptions()
- options.browser_type = 'list';
+ options = browser_options.BrowserFinderOptions()
+ options.browser_type = 'list'
parser = options.CreateParser('list_available_browsers')
parser.parse_args()
return 0
+
if __name__ == '__main__':
sys.exit(Main(sys.argv[1:]))
« 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