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

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

Issue 9791023: Allow setting of user and device policies in functional tests (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Oops... turns out these constants are reference by other files after all. 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
« chrome/test/pyautolib/asn1der.py ('K') | « chrome/test/pyautolib/policy_base.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 e6580f2babe66a5ba5bb0507b8b79d2d26f53e8e..245d2b096d8c2dba459812b2f3a255e6a4228ade 100755
--- a/chrome/test/pyautolib/pyauto.py
+++ b/chrome/test/pyautolib/pyauto.py
@@ -442,6 +442,11 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
PyUITest.RunSuperuserActionOnChromeOS('CleanFlimflamDirs')
@staticmethod
+ def RemoveAllCryptohomeVaultsOnChromeOS():
+ """Remove any existing cryptohome vaults."""
+ PyUITest.RunSuperuserActionOnChromeOS('RemoveAllCryptohomeVaults')
+
+ @staticmethod
def _IsInodeNew(path, old_inode):
"""Determine whether an inode has changed. POSIX only.
@@ -3674,33 +3679,6 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
}
return self._GetResultFromJSONRequest(cmd_dict, windex=None)
- def SetPolicies(self, managed_platform=None, recommended_platform=None,
- managed_cloud=None, recommended_cloud=None):
- """Sets the policies on the browser. Always fails on official builds.
-
- Args:
- managed_platform: a dictionary with the policy values for the managed
- platform provider.
- recommended_platform: a dictionary with the policy values for the
- recommended platform provider.
- managed_cloud: a dictionary with the policy values for the managed
- cloud provider.
- recommended_cloud: a dictionary with the policy values for the recommended
- cloud provider.
-
- Leaving an argument to None will restore the default behavior for that
- provider.
- """
- assert not self.GetBrowserInfo()['properties']['is_official']
- cmd_dict = {
- 'command': 'SetPolicies',
- 'managed_cloud': managed_cloud,
- 'managed_platform': managed_platform,
- 'recommended_cloud': recommended_cloud,
- 'recommended_platform': recommended_platform
- }
- return self._GetResultFromJSONRequest(cmd_dict)
-
def GetPolicyDefinitionList(self):
"""Gets a dictionary of existing policies mapped to their definitions.
« chrome/test/pyautolib/asn1der.py ('K') | « chrome/test/pyautolib/policy_base.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698