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

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

Issue 11946017: Remove old cloud policy code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nits. Created 7 years, 11 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
« no previous file with comments | « chrome/common/chrome_switches.cc ('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 9051f4d41c22e465b4d3a780d689679756f75a6b..dce9741ea025af71d62a3e028a09d3edcb26282a 100755
--- a/chrome/test/pyautolib/pyauto.py
+++ b/chrome/test/pyautolib/pyauto.py
@@ -5291,48 +5291,6 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
}
return self._GetResultFromJSONRequest(cmd_dict, windex=None)
- def IsEnterpriseDevice(self):
- """Check whether the device is managed by an enterprise.
-
- Returns:
- True if the device is managed by an enterprise, False otherwise.
-
- Raises:
- pyauto_errors.JSONInterfaceError if the automation call returns an error.
- """
- cmd_dict = {
- 'command': 'IsEnterpriseDevice',
- }
- result = self._GetResultFromJSONRequest(cmd_dict, windex=None)
- return result.get('enterprise')
-
- def GetEnterprisePolicyInfo(self):
- """Get details about enterprise policy on chromeos.
-
- Returns:
- A dictionary including information about the enterprise policy.
- Sample:
- {u'device_token_cache_loaded': True,
- u'device_cloud_policy_state': u'success',
- u'device_id': u'11111-222222222-33333333-4444444',
- u'device_mandatory_policies': {},
- u'device_recommended_policies': {},
- u'device_token': u'ABjmT7nqGWTHRLO',
- u'enterprise_domain': u'example.com',
- u'gaia_token': u'',
- u'machine_id': u'123456789',
- u'machine_model': u'COMPUTER',
- u'user_cache_loaded': True,
- u'user_cloud_policy_state': u'success',
- u'user_mandatory_policies': {u'AuthSchemes': u'',
- u'AutoFillEnabled': True,
- u'ChromeOsLockOnIdleSuspend': True}
- u'user_recommended_policies': {},
- u'user_name': u'user@example.com'}
- """
- cmd_dict = { 'command': 'GetEnterprisePolicyInfo' }
- return self._GetResultFromJSONRequest(cmd_dict, windex=None)
-
def EnableSpokenFeedback(self, enabled):
"""Enables or disables spoken feedback accessibility mode.
@@ -5403,29 +5361,6 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
}
self._GetResultFromJSONRequest(cmd_dict, windex=None)
- def EnrollEnterpriseDevice(self, user, password):
- """Enrolls an unenrolled device as an enterprise device.
-
- Expects the device to be unenrolled with the TPM unlocked. This is
- equivalent to pressing Ctrl-Alt-e to enroll the device from the login
- screen.
-
- Returns:
- An error string if the enrollment fails.
- None otherwise.
-
- Raises:
- pyauto_errors.JSONInterfaceError if the automation call returns an error.
- """
- cmd_dict = {
- 'command': 'EnrollEnterpriseDevice',
- 'user': user,
- 'password': password,
- }
- time.sleep(5) # TODO(craigdh): Block until Install Attributes is ready.
- result = self._GetResultFromJSONRequest(cmd_dict, windex=None)
- return result.get('error_string')
-
def GetUpdateInfo(self):
"""Gets the status of the ChromeOS updater.
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698