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

Unified Diff: chrome/test/pyautolib/pyauto.py

Issue 10944014: Fix to enable the cached credentials login test (Closed) Base URL: https://git.chromium.org/git/chromium/src@master
Patch Set: Replaced hook with boolean switch v2 Created 8 years, 3 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
Index: chrome/test/pyautolib/pyauto.py
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py
index 010595d947d2262b8b5cb2b2390e0e81f5fa72d1..50080baca0cc1fd75601d6d976d355723d002a77 100755
--- a/chrome/test/pyautolib/pyauto.py
+++ b/chrome/test/pyautolib/pyauto.py
@@ -4602,7 +4602,7 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
'Chrome did not reopen the testing channel after login as guest.'
self.SetUp()
- def Login(self, username, password):
+ def Login(self, username, password, use_cached_credentials=False):
"""Login to chromeos.
Waits until logged in and browser is ready.
@@ -4625,12 +4625,11 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
'command': 'SubmitLoginForm',
'username': username,
'password': password,
+ 'use_cached_credentials': use_cached_credentials,
}
self._GetResultFromJSONRequest(cmd_dict, windex=None)
self.AddDomEventObserver('loginfail', automation_id=4444)
try:
- # TODO(craigdh): Add login failure events once PyAuto switches to mocked
- # GAIA authentication.
if self.GetNextEvent().get('name') == 'loginfail':
raise JSONInterfaceError('Login denied by auth server.')
except JSONInterfaceError as e:
« chrome/test/functional/chromeos_login.py ('K') | « chrome/test/functional/chromeos_login.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698