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

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

Issue 10827195: Added policy test cases for the remote access policies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 months 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/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 # This data is in a separate file so that src/chrome/app/policy/PRESUBMIT.py 6 # This data is in a separate file so that src/chrome/app/policy/PRESUBMIT.py
7 # can load it too without having to load pyautolib. 7 # can load it too without having to load pyautolib.
8 8
9 # DO NOT import pyauto from here! This file is required to run a presubmit 9 # DO NOT import pyauto from here! This file is required to run a presubmit
10 # scripts that will always fail if pyautolib isn't available, which is common. 10 # scripts that will always fail if pyautolib isn't available, which is common.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 'DisabledSchemes': ('kDisabledSchemes', ['file'], [], OS_ALL), 59 'DisabledSchemes': ('kDisabledSchemes', ['file'], [], OS_ALL),
60 'JavascriptEnabled': (None, False, [CONTENT], OS_ALL), 60 'JavascriptEnabled': (None, False, [CONTENT], OS_ALL),
61 'IncognitoEnabled': (None, False, [], OS_ALL), 61 'IncognitoEnabled': (None, False, [], OS_ALL),
62 'IncognitoModeAvailability': (None, 1, [], OS_ALL), 62 'IncognitoModeAvailability': (None, 1, [], OS_ALL),
63 'SavingBrowserHistoryDisabled': 63 'SavingBrowserHistoryDisabled':
64 ('kSavingBrowserHistoryDisabled', True, [], OS_ALL), 64 ('kSavingBrowserHistoryDisabled', True, [], OS_ALL),
65 'RemoteAccessClientFirewallTraversal': (None, True, [], OS_ALL), 65 'RemoteAccessClientFirewallTraversal': (None, True, [], OS_ALL),
66 # TODO(frankf): Enable on all OS after crbug.com/121066 is fixed. 66 # TODO(frankf): Enable on all OS after crbug.com/121066 is fixed.
67 'RemoteAccessHostFirewallTraversal': 67 'RemoteAccessHostFirewallTraversal':
68 ('kRemoteAccessHostFirewallTraversal', True, [], []), 68 ('kRemoteAccessHostFirewallTraversal', True, [], []),
69 # 'RemoteAccessHostRequireTwoFactor': 69 'RemoteAccessHostRequireTwoFactor':
70 # ('kRemoteAccessHostRequireTwoFactor', False, [], 70 ('kRemoteAccessHostRequireTwoFactor', False, [], []),
71 # ['win', 'mac', 'linux']), 71 'RemoteAccessHostDomain': ('kRemoteAccessHostDomain', '', [], []),
72 # 'RemoteAccessHostDomain': 72 'RemoteAccessHostTalkGadgetPrefix':
73 # ('kRemoteAccessHostDomain', '', [], ['win', 'mac', 'linux']), 73 ('kRemoteAccessHostTalkGadgetPrefix', 'chromoting-host', [], []),
74 # 'RemoteAccessHostTalkGadgetPrefix':
75 # ('kRemoteAccessHostTalkGadgetPrefix', 'chromoting-host', [],
76 # ['win', 'mac', 'linux']),
77 'PrintingEnabled': ('kPrintingEnabled', False, [], OS_ALL), 74 'PrintingEnabled': ('kPrintingEnabled', False, [], OS_ALL),
78 # Note: supported_on is empty for this policy. 75 # Note: supported_on is empty for this policy.
79 'CloudPrintProxyEnabled': ('kCloudPrintProxyEnabled', True, [], []), 76 'CloudPrintProxyEnabled': ('kCloudPrintProxyEnabled', True, [], []),
80 'CloudPrintSubmitEnabled': 77 'CloudPrintSubmitEnabled':
81 ('kCloudPrintSubmitEnabled', False, [], ['win', 'mac', 'linux']), 78 ('kCloudPrintSubmitEnabled', False, [], ['win', 'mac', 'linux']),
82 'SafeBrowsingEnabled': ('kSafeBrowsingEnabled', False, [BROWSER], OS_ALL), 79 'SafeBrowsingEnabled': ('kSafeBrowsingEnabled', False, [BROWSER], OS_ALL),
83 # TODO(joaodasilva): This is only in place on official builds, but the 80 # TODO(joaodasilva): This is only in place on official builds, but the
84 # SetUserCloudPolicy call is a nop on official builds. Should be BROWSER. 81 # SetUserCloudPolicy call is a nop on official builds. Should be BROWSER.
85 'MetricsReportingEnabled': 82 'MetricsReportingEnabled':
86 ('kMetricsReportingEnabled', False, [], ['win', 'mac', 'linux']), 83 ('kMetricsReportingEnabled', False, [], ['win', 'mac', 'linux']),
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 'ReportDeviceLocation': (None, False, [], ['chromeos']), 298 'ReportDeviceLocation': (None, False, [], ['chromeos']),
302 299
303 # Chrome Frame policies: 300 # Chrome Frame policies:
304 'ChromeFrameRendererSettings': (None, 0, [], []), 301 'ChromeFrameRendererSettings': (None, 0, [], []),
305 'RenderInChromeFrameList': (None, ['google.com'], [], []), 302 'RenderInChromeFrameList': (None, ['google.com'], [], []),
306 'RenderInHostList': (None, ['google.com'], [], []), 303 'RenderInHostList': (None, ['google.com'], [], []),
307 'ChromeFrameContentTypes': (None, ['text/xml'], [], []), 304 'ChromeFrameContentTypes': (None, ['text/xml'], [], []),
308 'GCFUserDataDir': (None, '${user_name}/test-frame', [], []), 305 'GCFUserDataDir': (None, '${user_name}/test-frame', [], []),
309 'AdditionalLaunchParameters': (None, '--enable-media-stream', [], []), 306 'AdditionalLaunchParameters': (None, '--enable-media-stream', [], []),
310 } 307 }
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