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

Unified Diff: tools/telemetry/telemetry/unittest/options_for_unittests.py

Issue 228073002: [telemetry] Refactor run_tests to remove old cruft. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/telemetry/unittest/options_for_unittests.py
diff --git a/tools/telemetry/telemetry/unittest/options_for_unittests.py b/tools/telemetry/telemetry/unittest/options_for_unittests.py
index fd87bdaf1fbe44d19b9aab989adfd0dada067a6d..331e25017d5752f98b6f2fcf065bbf890a3b62ed 100644
--- a/tools/telemetry/telemetry/unittest/options_for_unittests.py
+++ b/tools/telemetry/telemetry/unittest/options_for_unittests.py
@@ -9,14 +9,16 @@ if unit tests are not running.
This allows multiple unit tests to use a specific
browser, in face of multiple options."""
+
+
_options = None
-_browser_type = None
-def Set(options, browser_type):
+
+
+def Set(options):
global _options
- global _browser_type
_options = options
- _browser_type = browser_type
+
def GetCopy():
if not _options:
@@ -24,10 +26,8 @@ def GetCopy():
return _options.Copy()
+
def AreSet():
if _options:
return True
return False
-
-def GetBrowserType():
- return _browser_type
« no previous file with comments | « tools/telemetry/telemetry/unittest/gtest_unittest_results.py ('k') | tools/telemetry/telemetry/unittest/run_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698