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

Unified Diff: tools/telemetry/telemetry/core/backends/chrome/cros_unittest.py

Issue 252643002: Additional debugging for gaia login. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 8 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/core/backends/chrome/cros_browser_backend.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/backends/chrome/cros_unittest.py
diff --git a/tools/telemetry/telemetry/core/backends/chrome/cros_unittest.py b/tools/telemetry/telemetry/core/backends/chrome/cros_unittest.py
index 6c0d2665f49661b77832e384d5f2f95a8e546dfd..d3d5a2109fd4ab195d0c29ce62278e092cf4fca9 100644
--- a/tools/telemetry/telemetry/core/backends/chrome/cros_unittest.py
+++ b/tools/telemetry/telemetry/core/backends/chrome/cros_unittest.py
@@ -24,7 +24,8 @@ class CrOSTest(unittest.TestCase):
self._password = options.browser_options.password
self._load_extension = None
- def _CreateBrowser(self, autotest_ext=False, auto_login=True):
+ def _CreateBrowser(self, autotest_ext=False, auto_login=True,
+ gaia_login=False, username=None, password=None):
"""Finds and creates a browser for tests. if autotest_ext is True,
also loads the autotest extension"""
options = options_for_unittests.GetCopy()
@@ -42,6 +43,12 @@ class CrOSTest(unittest.TestCase):
self.assertTrue(browser_to_create)
options.browser_options.create_browser_with_oobe = True
options.browser_options.auto_login = auto_login
+ options.browser_options.gaia_login = gaia_login
+ if username is not None:
+ options.browser_options.username = username
+ if password is not None:
+ options.browser_options.password = password
+
return browser_to_create.Create()
def _GetAutotestExtension(self, browser):
« no previous file with comments | « tools/telemetry/telemetry/core/backends/chrome/cros_browser_backend.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698