OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 'ImportHistory': (False, [], [ 'win', 'mac', 'linux' ]), | 189 'ImportHistory': (False, [], [ 'win', 'mac', 'linux' ]), |
190 'ImportHomepage': (False, [], [ 'win', 'mac', 'linux' ]), | 190 'ImportHomepage': (False, [], [ 'win', 'mac', 'linux' ]), |
191 'ImportSearchEngine': (False, [], [ 'win', 'mac', 'linux' ]), | 191 'ImportSearchEngine': (False, [], [ 'win', 'mac', 'linux' ]), |
192 'ImportSavedPasswords': (False, [], [ 'win', 'mac', 'linux' ]), | 192 'ImportSavedPasswords': (False, [], [ 'win', 'mac', 'linux' ]), |
193 'MaxConnectionsPerProxy': (32, []), | 193 'MaxConnectionsPerProxy': (32, []), |
194 'HideWebStorePromo': (True, []), | 194 'HideWebStorePromo': (True, []), |
195 'URLBlacklist': ([ 'google.com' ], []), | 195 'URLBlacklist': ([ 'google.com' ], []), |
196 'URLWhitelist': ([ 'google.com' ], []), | 196 'URLWhitelist': ([ 'google.com' ], []), |
197 'EnterpriseWebStoreURL': ('', []), | 197 'EnterpriseWebStoreURL': ('', []), |
198 'EnterpriseWebStoreName': ('', []), | 198 'EnterpriseWebStoreName': ('', []), |
| 199 'EnableMemoryInfo': (True, []), |
199 | 200 |
200 # ChromeOS-only policies: | 201 # ChromeOS-only policies: |
201 'ChromeOsLockOnIdleSuspend': (True, [ PERSONAL ], [ 'chromeos' ]), | 202 'ChromeOsLockOnIdleSuspend': (True, [ PERSONAL ], [ 'chromeos' ]), |
202 'PolicyRefreshRate': (300000, [], [ 'chromeos' ]), | 203 'PolicyRefreshRate': (300000, [], [ 'chromeos' ]), |
203 'OpenNetworkConfiguration': ('', [], [ 'chromeos' ]), | 204 'OpenNetworkConfiguration': ('', [], [ 'chromeos' ]), |
204 | 205 |
205 # ChromeOS Device policies: | 206 # ChromeOS Device policies: |
206 'DevicePolicyRefreshRate': (300000, [], []), | 207 'DevicePolicyRefreshRate': (300000, [], []), |
207 'ChromeOsReleaseChannel': ('stable-channel', [], []), | 208 'ChromeOsReleaseChannel': ('stable-channel', [], []), |
208 'DeviceOpenNetworkConfiguration': ('', [], []), | 209 'DeviceOpenNetworkConfiguration': ('', [], []), |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 | 338 |
338 self.SetPolicies(policy_dict) | 339 self.SetPolicies(policy_dict) |
339 self.assertTrue(self.IsBannerVisible()) | 340 self.assertTrue(self.IsBannerVisible()) |
340 | 341 |
341 self.SetPolicies({}) | 342 self.SetPolicies({}) |
342 self.assertFalse(self.IsBannerVisible()) | 343 self.assertFalse(self.IsBannerVisible()) |
343 | 344 |
344 | 345 |
345 if __name__ == '__main__': | 346 if __name__ == '__main__': |
346 pyauto_functional.Main() | 347 pyauto_functional.Main() |
OLD | NEW |