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

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

Issue 12278015: [Telemetry] Reorganize everything. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-add shebangs. Created 7 years, 10 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/telemetry/multi_page_benchmark_unittest_base.py ('k') | tools/telemetry/telemetry/page.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/options_for_unittests.py
diff --git a/tools/telemetry/telemetry/options_for_unittests.py b/tools/telemetry/telemetry/options_for_unittests.py
deleted file mode 100644
index 766a6413b94573f599af430737f4dedfa405d3f0..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/options_for_unittests.py
+++ /dev/null
@@ -1,33 +0,0 @@
-# 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.
-
-"""This module provides the global variable options_for_unittests.
-
-This is set to a BrowserOptions object by the test harness, or None
-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):
- global _options
- global _browser_type
-
- _options = options
- _browser_type = browser_type
-
-def GetCopy():
- if not _options:
- return None
-
- return _options.Copy()
-
-def AreSet():
- if _options:
- return True
- return False
-
-def GetBrowserType():
- return _browser_type
« no previous file with comments | « tools/telemetry/telemetry/multi_page_benchmark_unittest_base.py ('k') | tools/telemetry/telemetry/page.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698