| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 import json | 4 import json |
| 5 import logging | 5 import logging |
| 6 import os | 6 import os |
| 7 import unittest | 7 import unittest |
| 8 | 8 |
| 9 from telemetry.core.backends.chrome import cros_interface |
| 9 from telemetry.core import browser_finder | 10 from telemetry.core import browser_finder |
| 10 from telemetry.core import exceptions | 11 from telemetry.core import exceptions |
| 11 from telemetry.core import extension_to_load | 12 from telemetry.core import extension_to_load |
| 12 from telemetry.core import util | 13 from telemetry.core import util |
| 13 from telemetry.core.backends.chrome import cros_interface | |
| 14 from telemetry.unittest import options_for_unittests | 14 from telemetry.unittest import options_for_unittests |
| 15 | 15 |
| 16 class CrOSAutoTest(unittest.TestCase): | 16 class CrOSAutoTest(unittest.TestCase): |
| 17 def setUp(self): | 17 def setUp(self): |
| 18 options = options_for_unittests.GetCopy() | 18 options = options_for_unittests.GetCopy() |
| 19 self._cri = cros_interface.CrOSInterface(options.cros_remote, | 19 self._cri = cros_interface.CrOSInterface(options.cros_remote, |
| 20 options.cros_ssh_identity) | 20 options.cros_ssh_identity) |
| 21 self._is_guest = options.browser_type == 'cros-chrome-guest' | 21 self._is_guest = options.browser_type == 'cros-chrome-guest' |
| 22 self._username = '' if self._is_guest else options.browser_options.username | 22 self._username = '' if self._is_guest else options.browser_options.username |
| 23 self._password = options.browser_options.password | 23 self._password = options.browser_options.password |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 'countries.')), | 315 'countries.')), |
| 316 Region('se', 'xkb:se::swe', 'Europe/Stockholm', 'sv', _KML.ISO, 'Sweden', | 316 Region('se', 'xkb:se::swe', 'Europe/Stockholm', 'sv', _KML.ISO, 'Sweden', |
| 317 ("Use this if there separate SKUs for Nordic countries (Sweden, " | 317 ("Use this if there separate SKUs for Nordic countries (Sweden, " |
| 318 "Norway, and Denmark), or the device is only shipping to Sweden. " | 318 "Norway, and Denmark), or the device is only shipping to Sweden. " |
| 319 "If there is a single unified SKU, use 'nordic' instead.")), | 319 "If there is a single unified SKU, use 'nordic' instead.")), |
| 320 Region('sg', 'xkb:us::eng', 'Asia/Singapore', 'en-GB', _KML.ANSI, | 320 Region('sg', 'xkb:us::eng', 'Asia/Singapore', 'en-GB', _KML.ANSI, |
| 321 'Singapore'), | 321 'Singapore'), |
| 322 Region('us', 'xkb:us::eng', 'America/Los_Angeles', 'en-US', _KML.ANSI, | 322 Region('us', 'xkb:us::eng', 'America/Los_Angeles', 'en-US', _KML.ANSI, |
| 323 'United States'), | 323 'United States'), |
| 324 ] | 324 ] |
| OLD | NEW |