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

Unified Diff: chrome/test/pyautolib/pyauto.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 | « chrome/test/functional/sync.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/pyauto.py
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py
index 815415a1252f344ef744944f4fc2f98a5e44613d..a0a7c47fb9f58463f020704059571d6684cdf04d 100644
--- a/chrome/test/pyautolib/pyauto.py
+++ b/chrome/test/pyautolib/pyauto.py
@@ -259,6 +259,17 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
else:
os.kill(pid, signal.SIGTERM)
+ def GetPrivateInfo(self):
+ """Fetch info from private_tests_info.txt in private dir.
+
+ Returns:
+ a dictionary of items from private_tests_info.txt
+ """
+ private_file = os.path.join(
+ self.DataDir(), 'private', 'private_tests_info.txt')
+ assert os.path.exists(private_file), '%s missing' % private_file
+ return self.EvalDataFrom(private_file)
+
def WaitUntil(self, function, timeout=-1, retry_sleep=0.25, args=[],
expect_retval=None):
"""Poll on a condition until timeout.
« no previous file with comments | « chrome/test/functional/sync.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698