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

Side by Side Diff: tools/chrome_remote_control/chrome_remote_control/options_for_unittests.py

Issue 11361165: [chrome_remote_control] Rename chrome_remote_control to telemetry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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
(Empty)
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 """This module provides the global variable options_for_unittests.
6
7 This is set to a BrowserOptions object by the test harness, or None
8 if unit tests are not running.
9
10 This allows multiple unit tests to use a specific
11 browser, in face of multiple options."""
12 _options = None
13 _browser_type = None
14 def Set(options, browser_type):
15 global _options
16 global _browser_type
17
18 _options = options
19 _browser_type = browser_type
20
21 def Get():
22 if not _options:
23 return None
24
25 return _options.Copy()
26
27 def GetBrowserType():
28 return _browser_type
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698