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

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

Issue 8572006: Add policies to control the disk cache size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: This time two more for realz. 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 | « chrome/common/pref_names.cc ('k') | 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 'PasswordManagerAllowShowPasswords': (False, [ PERSONAL ]), 99 'PasswordManagerAllowShowPasswords': (False, [ PERSONAL ]),
100 'AutoFillEnabled': (False, [ PERSONAL ]), 100 'AutoFillEnabled': (False, [ PERSONAL ]),
101 'DisabledPlugins': (['Flash'], []), 101 'DisabledPlugins': (['Flash'], []),
102 'EnabledPlugins': (['Flash'], []), 102 'EnabledPlugins': (['Flash'], []),
103 'DisabledPluginsExceptions': (['Flash'], []), 103 'DisabledPluginsExceptions': (['Flash'], []),
104 'DisablePluginFinder': (True, []), 104 'DisablePluginFinder': (True, []),
105 # TODO(joaodasilva): Should be PERSONAL. http://crbug.com/97749 105 # TODO(joaodasilva): Should be PERSONAL. http://crbug.com/97749
106 'SyncDisabled': (True, []), 106 'SyncDisabled': (True, []),
107 'UserDataDir': ('${users}/${user_name}/chrome-test', [], [ 'win', 'mac' ]), 107 'UserDataDir': ('${users}/${user_name}/chrome-test', [], [ 'win', 'mac' ]),
108 'DiskCacheDir': ('${user_home}/test-cache', [], [ 'win', 'mac', 'linux' ]), 108 'DiskCacheDir': ('${user_home}/test-cache', [], [ 'win', 'mac', 'linux' ]),
109 'DiskCacheSize': (100, [], [ 'win', 'mac', 'linux' ]),
110 'MediaCacheSize': (200, [], [ 'win', 'mac', 'linux' ]),
109 'DownloadDirectory': ('${user_home}/test-downloads', [ ADVANCED ], 111 'DownloadDirectory': ('${user_home}/test-downloads', [ ADVANCED ],
110 [ 'win', 'mac', 'linux' ]), 112 [ 'win', 'mac', 'linux' ]),
111 'ClearSiteDataOnExit': (True, [ CONTENT ]), 113 'ClearSiteDataOnExit': (True, [ CONTENT ]),
112 # TODO(joaodasilva): Should be ADVANCED. http://crbug.com/97749 114 # TODO(joaodasilva): Should be ADVANCED. http://crbug.com/97749
113 'ProxyMode': ('direct', [], [ 'win', 'mac', 'linux' ]), 115 'ProxyMode': ('direct', [], [ 'win', 'mac', 'linux' ]),
114 # TODO(joaodasilva): Should be ADVANCED. http://crbug.com/97749 116 # TODO(joaodasilva): Should be ADVANCED. http://crbug.com/97749
115 'ProxyServerMode': (0, [], [ 'win', 'mac', 'linux' ]), 117 'ProxyServerMode': (0, [], [ 'win', 'mac', 'linux' ]),
116 'ProxyServer': ('http://localhost:8080', [], [ 'win', 'mac', 'linux' ]), 118 'ProxyServer': ('http://localhost:8080', [], [ 'win', 'mac', 'linux' ]),
117 'ProxyPacUrl': ('http://localhost:8080/proxy.pac', [], 119 'ProxyPacUrl': ('http://localhost:8080/proxy.pac', [],
118 [ 'win', 'mac', 'linux' ]), 120 [ 'win', 'mac', 'linux' ]),
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 328
327 self.SetPolicies(policy_dict) 329 self.SetPolicies(policy_dict)
328 self.assertTrue(self.IsBannerVisible()) 330 self.assertTrue(self.IsBannerVisible())
329 331
330 self.SetPolicies({}) 332 self.SetPolicies({})
331 self.assertFalse(self.IsBannerVisible()) 333 self.assertFalse(self.IsBannerVisible())
332 334
333 335
334 if __name__ == '__main__': 336 if __name__ == '__main__':
335 pyauto_functional.Main() 337 pyauto_functional.Main()
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698