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

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

Issue 9960074: Add a test for the "ephemeral_users_enabled" device policy (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comments addressed. Tests clearing of local state as well now. Created 8 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
Index: chrome/test/pyautolib/pyauto.py
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py
index ff7523289d9f0ea45c60558247dedae565fcb035..8606811224a7cd70892fefa0f632beac1c50b67f 100755
--- a/chrome/test/pyautolib/pyauto.py
+++ b/chrome/test/pyautolib/pyauto.py
@@ -448,6 +448,16 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
PyUITest.RunSuperuserActionOnChromeOS('RemoveAllCryptohomeVaults')
@staticmethod
+ def DisableLocalStateAutoClearingOnChromeOS():
+ """Disable clearing of the local state on session manager startup."""
+ PyUITest.RunSuperuserActionOnChromeOS('DisableLocalStateAutoClearing')
+
+ @staticmethod
+ def EnableLocalStateAutoClearingOnChromeOS():
+ """Enable clearing of the local state on session manager startup."""
+ PyUITest.RunSuperuserActionOnChromeOS('EnableLocalStateAutoClearing')
+
+ @staticmethod
def _IsInodeNew(path, old_inode):
"""Determine whether an inode has changed. POSIX only.
@@ -1292,7 +1302,7 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
an instance of prefs_info.PrefsInfo
"""
return prefs_info.PrefsInfo(
- self._SendJSONRequest(0,
+ self._SendJSONRequest(-1,
Nirnimesh 2012/04/12 01:46:24 I'm surprised that it worked with 0! Thanks for fi
bartfab (slow) 2012/04/12 12:49:31 It seemed to work with 0 when you are logged in. W
json.dumps({'command': 'GetLocalStatePrefsInfo'}),
self.action_max_timeout_ms()))

Powered by Google App Engine
This is Rietveld 408576698