| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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() |
| OLD | NEW |