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

Unified Diff: chrome/test/functional/sync.py

Issue 4738004: Add facilities to fetch username/passwd credentials from private data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test_google_account Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/pyautolib/pyauto.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/sync.py
diff --git a/chrome/test/functional/sync.py b/chrome/test/functional/sync.py
index fc9dd074ed8e7cdb44d1a91c3e7882acff18fa5f..fb1a4c193bb9deec7b0cfa4456552a8b958a56cb 100644
--- a/chrome/test/functional/sync.py
+++ b/chrome/test/functional/sync.py
@@ -12,9 +12,9 @@ class SyncTest(pyauto.PyUITest):
def testSignInToSync(self):
"""Sign in to sync."""
- # Need to initialize username and password. See crbug.com/60970.
- username = '<username>@gmail.com'
- password = '<password>'
+ creds = self.GetPrivateInfo()['test_google_account']
+ username = creds['username']
+ password = creds['password']
self.assertTrue(self.GetSyncInfo()['summary'] == 'OFFLINE_UNUSABLE')
self.assertTrue(self.GetSyncInfo()['last synced'] == 'Never')
self.assertTrue(self.SignInToSync(username, password))
@@ -23,9 +23,9 @@ class SyncTest(pyauto.PyUITest):
def testDisableAndEnableDatatype(self):
"""Sign in, disable and then enable sync for a datatype."""
- # Need to initialize username and password. See crbug.com/60970.
- username = '<username>@gmail.com'
- password = '<password>'
+ creds = self.GetPrivateInfo()['test_google_account']
+ username = creds['username']
+ password = creds['password']
self.assertTrue(self.SignInToSync(username, password))
self.assertTrue(self.GetSyncInfo()['summary'] == 'READY')
self.assertTrue(self.GetSyncInfo()['last synced'] == 'Just now')
@@ -36,9 +36,9 @@ class SyncTest(pyauto.PyUITest):
def testRestartBrowser(self):
"""Sign in to sync and restart the browser."""
- # Need to initialize username and password. See crbug.com/60970.
- username = '<username>@gmail.com'
- password = '<password>'
+ creds = self.GetPrivateInfo()['test_google_account']
+ username = creds['username']
+ password = creds['password']
self.assertTrue(self.SignInToSync(username, password))
self.assertTrue(self.GetSyncInfo()['summary'] == 'READY')
self.assertTrue(self.GetSyncInfo()['last synced'] == 'Just now')
« no previous file with comments | « no previous file | chrome/test/pyautolib/pyauto.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698