/external/autotest/client/site_tests/policy_RestoreOnStartupURLs/ |
policy_RestoreOnStartupURLs.py | 40 def _test_startup_urls(self, policy_value, policies_json): 48 @param policies_json: policy JSON data to send to the fake DM server. 51 self.setup_case(self.POLICY_NAME, policy_value, policies_json) 53 policy_value, policies_json) 76 Set the expected |policy_value| string and |policies_json| data based 79 the |policies_json|. 86 # to the given value, and setup |policies_json| to None. 88 policies_json = None 92 policies_json = {'RestoreOnStartup': None} 95 policies_json = {'RestoreOnStartup': 4 [all...] |
/external/autotest/client/site_tests/policy_EditBookmarksEnabled/ |
policy_EditBookmarksEnabled.py | 56 def _test_edit_bookmarks_enabled(self, policy_value, policies_json): 70 @param policies_json: policy JSON data to send to the fake DM server. 74 policy_value, policies_json) 75 self.setup_case(self.POLICY_NAME, policy_value, policies_json) 109 Set the expected |policy_value| and |policies_json| data based on the 111 set the |policy_value| and blank out |policies_json|. 118 # to the given value, and setup |policies_json| to None. 120 policies_json = None 122 # Otherwise, set expected |policy_value| and setup |policies_json| 126 policies_json = self.SUPPORTING_POLICIES.copy( [all...] |
/external/autotest/client/site_tests/policy_CookiesAllowedForUrls/ |
policy_CookiesAllowedForUrls.py | 73 def _test_CookiesAllowedForUrls(self, policy_value, policies_json): 82 @param policies_json: policy JSON data to send to the fake DM server. 88 policy_value, policies_json) 89 self.setup_case(POLICY_NAME, policy_value, policies_json) 104 Set the expected |policy_value| and |policies_json| data based on the 107 |policies_json|. 113 policies_json = None 117 # |policy_value| to the given value, and |policies_json| to None. 119 policies_json = None 121 # Otherwise, set expected |policy_value| and setup |policies_json| [all...] |
/external/autotest/client/site_tests/policy_CookiesBlockedForUrls/ |
policy_CookiesBlockedForUrls.py | 72 def _test_CookiesBlockedForUrls(self, policy_value, policies_json): 82 @param policies_json: policy JSON data to send to the fake DM server. 88 policy_value, policies_json) 89 self.setup_case(POLICY_NAME, policy_value, policies_json) 104 Set the expected |policy_value| and |policies_json| data based on the 107 |policies_json|. 113 policies_json = None 117 # |policy_value| to the given value, and |policies_json| to None. 119 policies_json = None 121 # Otherwise, set expected |policy_value| and setup |policies_json| [all...] |
/external/autotest/client/site_tests/policy_PopupsAllowedForUrls/ |
policy_PopupsAllowedForUrls.py | 74 def _test_popups_allowed_for_urls(self, policy_value, policies_json): 83 @param policies_json: policy JSON data to send to the fake DM server. 86 self.setup_case(self.POLICY_NAME, policy_value, policies_json) 88 policy_value, policies_json) 108 Set the expected |policy_value| and |policies_json| data based on the 111 |policies_json|. 118 # to the given value, and setup |policies_json| data to None. 120 policies_json = None 122 # Otherwise, set expected |policy_value| and setup |policies_json| 126 policies_json = self.SUPPORTING_POLICIES.copy( [all...] |
/external/autotest/client/site_tests/policy_PopupsBlockedForUrls/ |
policy_PopupsBlockedForUrls.py | 74 def _test_popups_blocked_for_urls(self, policy_value, policies_json): 83 @param policies_json: policy JSON data to send to the fake DM server. 86 self.setup_case(self.POLICY_NAME, policy_value, policies_json) 88 policy_value, policies_json) 108 Set the expected |policy_value| and |policies_json| data based on the 111 |policies_json|. 118 # to the given value, and setup |policies_json| data to None. 120 policies_json = None 122 # Otherwise, set expected |policy_value| and setup |policies_json| 126 policies_json = self.SUPPORTING_POLICIES.copy( [all...] |
/external/autotest/client/site_tests/policy_JavaScriptAllowedForUrls/ |
policy_JavaScriptAllowedForUrls.py | 89 def _test_javascript_allowed_for_urls(self, policy_value, policies_json): 98 @param policies_json: policy JSON data to send to the fake DM server. 101 self.setup_case(self.POLICY_NAME, policy_value, policies_json) 103 policy_value, policies_json) 128 Set the expected |policy_value| string and |policies_json| data based 131 the |policies_json|. 138 # |policy_value| to the given value, and |policies_json| to None. 140 policies_json = None 142 # Otherwise, set expected |policy_value| and setup |policies_json| 149 policies_json = self.SUPPORTING_POLICIES.copy( [all...] |
/external/autotest/client/site_tests/policy_JavaScriptBlockedForUrls/ |
policy_JavaScriptBlockedForUrls.py | 91 def _test_javascript_blocked_for_urls(self, policy_value, policies_json): 100 @param policies_json: policy JSON data to send to the fake DM server. 103 self.setup_case(self.POLICY_NAME, policy_value, policies_json) 105 policy_value, policies_json) 129 Set the expected |policy_value| string and |policies_json| data based 132 the |policies_json|. 139 # |policy_value| to the given value, and |policies_json| to None. 141 policies_json = None 143 # Otherwise, set expected |policy_value| and setup |policies_json| 150 policies_json = self.SUPPORTING_POLICIES.copy( [all...] |
/external/autotest/client/site_tests/policy_ManagedBookmarks/ |
policy_ManagedBookmarks.py | 62 def _test_managed_bookmarks(self, policy_value, policies_json): 70 @param policies_json: policy JSON data to send to the fake DM server. 73 self.setup_case(self.POLICY_NAME, policy_value, policies_json) 75 'policies_json=%s)', policy_value, policies_json) 153 Set the expected |policy_value| string and |policies_json| data based 156 the |policies_json|. 163 # to the given value, and setup |policies_json| to None. 165 policies_json = None 167 # Otherwise, set expected |policy_value| and setup |policies_json| [all...] |
/external/autotest/client/site_tests/policy_URLBlacklist/ |
policy_URLBlacklist.py | 123 def _test_URLBlacklist(self, policy_value, policies_json): 132 @param policies_json: policy JSON data to send to the fake DM server. 138 self.setup_case(POLICY_NAME, policy_value, policies_json) 140 policy_value, policies_json) 156 Set the expected |policy_value| and |policies_json| data based on the 159 |policies_json|. 165 policies_json = None 173 # |policy_value| to the given value, and |policies_json| to None. 175 policies_json = None 177 # Otherwise, set expected |policy_value| and setup |policies_json| [all...] |
/external/autotest/client/site_tests/policy_URLWhitelist/ |
policy_URLWhitelist.py | 128 def _test_URLWhitelist(self, policy_value, policies_json): 138 @param policies_json: policy JSON data to send to the fake DM server. 145 policy_value, policies_json) 146 self.setup_case(POLICY_NAME, policy_value, policies_json) 166 Set the expected |policy_value| and |policies_json| data based on the 169 |policies_json|. 175 policies_json = None 179 # |policy_value| to the given value, and |policies_json| to None. 181 policies_json = None 183 # Otherwise, set expected |policy_value| and setup |policies_json| [all...] |
/external/autotest/client/site_tests/policy_ImagesAllowedForUrls/ |
policy_ImagesAllowedForUrls.py | 81 def _test_images_allowed_for_urls(self, policy_value, policies_json): 91 @param policies_json: policy JSON data to send to the fake DM server. 94 self.setup_case(self.POLICY_NAME, policy_value, policies_json) 96 policy_value, policies_json) 120 Set the expected |policy_value| and |policies_json| data based on the 123 |policies_json|. 134 # |policy_value| to the given value, and |policies_json| to None. 136 policies_json = None 138 # Otherwise, set expected |policy_value| and setup |policies_json| 140 policies_json = self.SUPPORTING_POLICIES.copy( [all...] |
/external/autotest/client/site_tests/policy_ImagesBlockedForUrls/ |
policy_ImagesBlockedForUrls.py | 82 def _test_images_blocked_for_urls(self, policy_value, policies_json): 92 @param policies_json: policy JSON data to send to the fake DM server. 95 self.setup_case(self.POLICY_NAME, policy_value, policies_json) 97 policy_value, policies_json) 121 Set the expected |policy_value| and |policies_json| data based on the 124 |policies_json|. 135 # |policy_value| to the given value, and |policies_json| to None. 137 policies_json = None 139 # Otherwise, set expected |policy_value| and setup |policies_json| 141 policies_json = self.SUPPORTING_POLICIES.copy( [all...] |
/external/autotest/client/cros/ |
enterprise_policy_base.py | 207 def setup_case(self, policy_name, policy_value, policies_json): 211 from |policies_json|, and upload it to the fake server. 221 @param policies_json: JSON string to set up the fake DMS policy value. 230 self.setup_policy(self._make_json_blob(policies_json)) 286 @param policies_json: JSON string to set up the fake DMS policy value. 304 def _make_json_blob(self, policies_json): 307 @param policies_json: Policies JSON object (name-value pairs). 311 policies_json = self._move_modeless_to_mandatory(policies_json) 312 policies_json = self._remove_null_policies(policies_json [all...] |
/external/autotest/client/site_tests/policy_ProxySettings/ |
policy_ProxySettings.py | 148 def _test_proxy_configuration(self, policy_value, policies_json): 152 @param policies_json: policy JSON data to send to the fake DM server. 155 policy_value, policies_json) 156 self.setup_case(POLICY_NAME, policy_value, policies_json) 183 Set the expected |policy_value| and |policies_json| data based on the 185 then set |policy_value| to |value|, and |policies_json| to None. 192 # |policy_value| to the given value, and |policies_json| to None. 194 policies_json = None 196 # Otherwise, set expected |policy_value| and setup |policies_json| 199 policies_json = {POLICY_NAME: self.TEST_CASES[case] [all...] |