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.
5 """This module provides the global variable options_for_unittests.
7 This is set to a BrowserOptions object by the test harness, or None
8 if unit tests are not running.
10 This allows multiple unit tests to use a specific
11 browser, in face of multiple options."""
14 def Set(options, browser_type):
19 _browser_type = browser_type
25 return _options.Copy()