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

Unified Diff: tools/telemetry/telemetry/__init__.py

Issue 17150002: [telemetry] Initial (autogenerated) documentation plus support scripts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update with nits Created 7 years, 6 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/telemetry/docs/telemetry.unittest.tab_test_case.html ('k') | tools/telemetry/update_docs » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/__init__.py
diff --git a/tools/telemetry/telemetry/__init__.py b/tools/telemetry/telemetry/__init__.py
index 19e6dbf5b32e5afe1420a89a811ed0ed5cbbe032..f3c162fcf10315ac2b1b98b39c6297431d11ce4e 100644
--- a/tools/telemetry/telemetry/__init__.py
+++ b/tools/telemetry/telemetry/__init__.py
@@ -1,4 +1,29 @@
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Copyright (c) 2013 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.
-"""A library for cross-platform browser tests."""
+"""
+A library for cross-platform browser tests.
+"""
+import inspect
+import sys
+
+from telemetry.core.browser import Browser
+from telemetry.core.browser_options import BrowserOptions
+from telemetry.core.tab import Tab
+
+from telemetry.page.page_measurement import PageMeasurement
+from telemetry.page.page_runner import Run as RunPage
+
+__all__ = []
+
+# Find all local vars that are classes or functions and make sure they're in the
+# __all__ array so they're included in docs.
+for x in dir():
+ if x.startswith('_'):
+ continue
+ if x in (inspect, sys):
+ continue
+ m = sys.modules[__name__]
+ if (inspect.isclass(getattr(m, x)) or
+ inspect.isfunction(getattr(m, x))):
+ __all__.append(x)
« no previous file with comments | « tools/telemetry/docs/telemetry.unittest.tab_test_case.html ('k') | tools/telemetry/update_docs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698