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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 [ 'win', 'mac', 'linux' ]), | 112 [ 'win', 'mac', 'linux' ]), |
113 'ClearSiteDataOnExit': (True, [ CONTENT ]), | 113 'ClearSiteDataOnExit': (True, [ CONTENT ]), |
114 # TODO(joaodasilva): Should be ADVANCED. http://crbug.com/97749 | 114 # TODO(joaodasilva): Should be ADVANCED. http://crbug.com/97749 |
115 'ProxyMode': ('direct', [], [ 'win', 'mac', 'linux' ]), | 115 'ProxyMode': ('direct', [], [ 'win', 'mac', 'linux' ]), |
116 # TODO(joaodasilva): Should be ADVANCED. http://crbug.com/97749 | 116 # TODO(joaodasilva): Should be ADVANCED. http://crbug.com/97749 |
117 'ProxyServerMode': (0, [], [ 'win', 'mac', 'linux' ]), | 117 'ProxyServerMode': (0, [], [ 'win', 'mac', 'linux' ]), |
118 'ProxyServer': ('http://localhost:8080', [], [ 'win', 'mac', 'linux' ]), | 118 'ProxyServer': ('http://localhost:8080', [], [ 'win', 'mac', 'linux' ]), |
119 'ProxyPacUrl': ('http://localhost:8080/proxy.pac', [], | 119 'ProxyPacUrl': ('http://localhost:8080/proxy.pac', [], |
120 [ 'win', 'mac', 'linux' ]), | 120 [ 'win', 'mac', 'linux' ]), |
121 'ProxyBypassList': ('localhost', [], [ 'win', 'mac', 'linux' ]), | 121 'ProxyBypassList': ('localhost', [], [ 'win', 'mac', 'linux' ]), |
| 122 'EnableOriginBoundCerts': (False, []), |
122 'AuthSchemes': ('AuthSchemes', []), | 123 'AuthSchemes': ('AuthSchemes', []), |
123 'DisableAuthNegotiateCnameLookup': (True, []), | 124 'DisableAuthNegotiateCnameLookup': (True, []), |
124 'EnableAuthNegotiatePort': (False, []), | 125 'EnableAuthNegotiatePort': (False, []), |
125 'AuthServerWhitelist': ('localhost', []), | 126 'AuthServerWhitelist': ('localhost', []), |
126 'AuthNegotiateDelegateWhitelist': ('localhost', []), | 127 'AuthNegotiateDelegateWhitelist': ('localhost', []), |
127 'GSSAPILibraryName': ('libwhatever.so', [], [ 'mac', 'linux' ]), | 128 'GSSAPILibraryName': ('libwhatever.so', [], [ 'mac', 'linux' ]), |
128 'AllowCrossOriginAuthPrompt': (False, [], [ 'win', 'mac', 'linux' ]), | 129 'AllowCrossOriginAuthPrompt': (False, [], [ 'win', 'mac', 'linux' ]), |
129 'ExtensionInstallBlacklist': ( ['*'], []), | 130 'ExtensionInstallBlacklist': ( ['*'], []), |
130 'ExtensionInstallWhitelist': ( ['lcncmkcnkcdbbanbjakcencbaoegdjlp' ], []), | 131 'ExtensionInstallWhitelist': ( ['lcncmkcnkcdbbanbjakcencbaoegdjlp' ], []), |
131 'ExtensionInstallForcelist': ( | 132 'ExtensionInstallForcelist': ( |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 | 331 |
331 self.SetPolicies(policy_dict) | 332 self.SetPolicies(policy_dict) |
332 self.assertTrue(self.IsBannerVisible()) | 333 self.assertTrue(self.IsBannerVisible()) |
333 | 334 |
334 self.SetPolicies({}) | 335 self.SetPolicies({}) |
335 self.assertFalse(self.IsBannerVisible()) | 336 self.assertFalse(self.IsBannerVisible()) |
336 | 337 |
337 | 338 |
338 if __name__ == '__main__': | 339 if __name__ == '__main__': |
339 pyauto_functional.Main() | 340 pyauto_functional.Main() |
OLD | NEW |