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

Side by Side Diff: chrome/test/functional/policy_prefs_ui.py

Issue 8596008: Added new policies to policy_prefs_ui.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # If this test is failing, please check these steps. 6 # If this test is failing, please check these steps.
7 # 7 #
8 # - You introduced a new policy: 8 # - You introduced a new policy:
9 # Cool! Edit |policies| below and add an entry for it. See the comment above 9 # Cool! Edit |policies| below and add an entry for it. See the comment above
10 # it for the format. 10 # it for the format.
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 [ 'win', 'mac', 'linux' ]), 185 [ 'win', 'mac', 'linux' ]),
186 'ImportBookmarks': (False, [], [ 'win', 'mac', 'linux' ]), 186 'ImportBookmarks': (False, [], [ 'win', 'mac', 'linux' ]),
187 'ImportHistory': (False, [], [ 'win', 'mac', 'linux' ]), 187 'ImportHistory': (False, [], [ 'win', 'mac', 'linux' ]),
188 'ImportHomepage': (False, [], [ 'win', 'mac', 'linux' ]), 188 'ImportHomepage': (False, [], [ 'win', 'mac', 'linux' ]),
189 'ImportSearchEngine': (False, [], [ 'win', 'mac', 'linux' ]), 189 'ImportSearchEngine': (False, [], [ 'win', 'mac', 'linux' ]),
190 'ImportSavedPasswords': (False, [], [ 'win', 'mac', 'linux' ]), 190 'ImportSavedPasswords': (False, [], [ 'win', 'mac', 'linux' ]),
191 'MaxConnectionsPerProxy': (32, []), 191 'MaxConnectionsPerProxy': (32, []),
192 'HideWebStorePromo': (True, []), 192 'HideWebStorePromo': (True, []),
193 'URLBlacklist': ([ 'google.com' ], []), 193 'URLBlacklist': ([ 'google.com' ], []),
194 'URLWhitelist': ([ 'google.com' ], []), 194 'URLWhitelist': ([ 'google.com' ], []),
195 'EnterpriseWebStoreURL': ('', []),
196 'EnterpriseWebStoreName': ('', []),
195 197
196 # ChromeOS-only policies: 198 # ChromeOS-only policies:
197 'ChromeOsLockOnIdleSuspend': (True, [ PERSONAL ], [ 'chromeos' ]), 199 'ChromeOsLockOnIdleSuspend': (True, [ PERSONAL ], [ 'chromeos' ]),
198 'PolicyRefreshRate': (300000, [], [ 'chromeos' ]), 200 'PolicyRefreshRate': (300000, [], [ 'chromeos' ]),
199 'OpenNetworkConfiguration': ('', [], [ 'chromeos' ]), 201 'OpenNetworkConfiguration': ('', [], [ 'chromeos' ]),
200 202
201 # ChromeOS Device policies: 203 # ChromeOS Device policies:
202 'DevicePolicyRefreshRate': (300000, [], []), 204 'DevicePolicyRefreshRate': (300000, [], []),
203 'ChromeOsReleaseChannel': ('stable-channel', [], []), 205 'ChromeOsReleaseChannel': ('stable-channel', [], []),
204 'DeviceOpenNetworkConfiguration': ('', [], []), 206 'DeviceOpenNetworkConfiguration': ('', [], []),
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 330
329 self.SetPolicies(policy_dict) 331 self.SetPolicies(policy_dict)
330 self.assertTrue(self.IsBannerVisible()) 332 self.assertTrue(self.IsBannerVisible())
331 333
332 self.SetPolicies({}) 334 self.SetPolicies({})
333 self.assertFalse(self.IsBannerVisible()) 335 self.assertFalse(self.IsBannerVisible())
334 336
335 337
336 if __name__ == '__main__': 338 if __name__ == '__main__':
337 pyauto_functional.Main() 339 pyauto_functional.Main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698