OLD | NEW |
---|---|
1 { | 1 { |
2 "-- Template --": { | 2 "-- Template --": { |
3 "intro": "Top-level entries map a policy name to its test parameters, descri bed below.", | 3 "intro": "Top-level entries map a policy name to its test parameters, descri bed below.", |
4 | 4 |
5 "os": ["List of operating systems that support this policy. Valid values:", "win", "linux", "mac", "chromeos"], | 5 "os": ["List of operating systems that support this policy. Valid values:", "win", "linux", "mac", "chromeos"], |
6 "official_only": "Whether this policy exists in official builds only. Defaul ts to |false| if not specified.", | 6 "official_only": "Whether this policy exists in official builds only. Defaul ts to |false| if not specified.", |
7 "can_be_recommended": "Whether a recommended value may be set for the policy . Defaults to |false| if not specified.", | 7 "can_be_recommended": "Whether a recommended value may be set for the policy . Defaults to |false| if not specified.", |
8 "test_policy": "A policy dictionary that should trigger the managed banner i n the settings UI. Usually just sets the current policy.", | 8 "test_policy": "A policy dictionary that should trigger the managed banner i n the settings UI. Usually just sets the current policy.", |
9 "settings_pages": ["A list of settings pages where the banner should be visi ble when this policy is set."], | 9 "settings_pages": ["A list of settings pages where the banner should be visi ble when this policy is set."], |
10 "note": "If the policy affects any preferences, the following array should b e specified with one entry per such preference.", | 10 "note": "If the policy affects any preferences, the following array should b e specified with one entry per such preference.", |
(...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1528 | 1528 |
1529 "DisableScreenshots": { | 1529 "DisableScreenshots": { |
1530 "os": ["win", "linux", "mac", "chromeos"], | 1530 "os": ["win", "linux", "mac", "chromeos"], |
1531 "test_policy": { "DisableScreenshots": true }, | 1531 "test_policy": { "DisableScreenshots": true }, |
1532 "settings_pages": [], | 1532 "settings_pages": [], |
1533 "pref_mappings": [ | 1533 "pref_mappings": [ |
1534 { "pref": "disable_screenshots" } | 1534 { "pref": "disable_screenshots" } |
1535 ] | 1535 ] |
1536 }, | 1536 }, |
1537 | 1537 |
1538 "----- Chrome OS policies ------------------------------------------------": { | 1538 "----- Chrome OS policies ------------------------------------------------": { }, |
1539 "note": "TODO(frankf): Add prefs for these after crosbug.com/28756 is fixed. ", | |
1540 "note 2": "TODO(joaodasilva): that bug is now obsolete and these tests can b e expanded to chromeos." | |
1541 }, | |
1542 | 1539 |
1543 "ChromeOsLockOnIdleSuspend": { | 1540 "ChromeOsLockOnIdleSuspend": { |
1544 "os": ["chromeos"], | 1541 "os": ["chromeos"], |
1542 "can_be_recommended": true, | |
1545 "test_policy": { "ChromeOsLockOnIdleSuspend": true }, | 1543 "test_policy": { "ChromeOsLockOnIdleSuspend": true }, |
1546 "settings_pages": ["chrome://settings-frame"] | 1544 "settings_pages": ["chrome://settings-frame"], |
1545 "pref_mappings": [ | |
1546 { "pref": "settings.enable_screen_lock", | |
1547 "indicator_tests": [ | |
1548 { "policy": { "ChromeOsLockOnIdleSuspend": true } } | |
1549 ] | |
1550 } | |
1551 ] | |
1547 }, | 1552 }, |
1548 | 1553 |
1549 "PolicyRefreshRate": { | 1554 "PolicyRefreshRate": { |
1550 "os": ["chromeos"], | 1555 "os": ["chromeos"], |
1551 "test_policy": { "PolicyRefreshRate": 300000 }, | 1556 "test_policy": { "PolicyRefreshRate": 300000 }, |
1552 "settings_pages": [] | 1557 "settings_pages": [], |
1558 "pref_mappings": [ | |
1559 { "pref": "policy.user_refresh_rate", | |
1560 "local_state": true | |
1561 } | |
1562 ] | |
1553 }, | 1563 }, |
1554 | 1564 |
1555 "OpenNetworkConfiguration": { | 1565 "OpenNetworkConfiguration": { |
1556 "os": ["chromeos"], | 1566 "os": ["chromeos"], |
1557 "test_policy": { "OpenNetworkConfiguration": "" }, | 1567 "test_policy": { "OpenNetworkConfiguration": "" }, |
1558 "settings_pages": [] | 1568 "settings_pages": [] |
1559 }, | 1569 }, |
1560 | 1570 |
1561 "DriveDisabled": { | 1571 "DriveDisabled": { |
1562 "os": ["chromeos"], | 1572 "os": ["chromeos"], |
1563 "test_policy": { "DriveDisabled": true }, | 1573 "test_policy": { "DriveDisabled": true }, |
1564 "settings_pages": [] | 1574 "settings_pages": [], |
1575 | |
1576 "note": "TODO(bartfab) This actually maps to |gdata.disabled|. However, sett ing the policy in order to test its pref mapping spins up FileBrowserEventRouter which is then unable to shut down cleanly in the browser test environment." | |
Joao da Silva
2012/10/24 16:26:17
Can't that be fixed? :-)
bartfab (slow)
2012/10/24 17:33:51
I worked around the issue and filed crbug.com/1576
| |
1565 }, | 1577 }, |
1566 | 1578 |
1567 "DriveDisabledOverCellular": { | 1579 "DriveDisabledOverCellular": { |
1568 "os": ["chromeos"], | 1580 "os": ["chromeos"], |
1569 "test_policy": { "DriveDisabledOverCellular": true }, | 1581 "test_policy": { "DriveDisabledOverCellular": true }, |
1570 "settings_pages": [] | 1582 "settings_pages": [], |
1583 "pref_mappings": [ | |
1584 { "pref": "gdata.cellular.disabled" } | |
1585 ] | |
1571 }, | 1586 }, |
1572 | 1587 |
1573 "PinnedLauncherApps": { | 1588 "PinnedLauncherApps": { |
1574 "os": ["chromeos"], | 1589 "os": ["chromeos"], |
1590 "can_be_recommended": true, | |
1575 "test_policy": { "PinnedLauncherApps": [] }, | 1591 "test_policy": { "PinnedLauncherApps": [] }, |
1576 "settings_pages": [] | 1592 "settings_pages": [], |
1593 "pref_mappings": [ | |
1594 { "pref": "pinned_launcher_apps" } | |
1595 ] | |
1577 }, | 1596 }, |
1578 | 1597 |
1579 "ExternalStorageDisabled": { | 1598 "ExternalStorageDisabled": { |
1580 "os": ["chromeos"], | 1599 "os": ["chromeos"], |
1581 "test_policy": { "ExternalStorageDisabled": true }, | 1600 "test_policy": { "ExternalStorageDisabled": true }, |
1582 "settings_pages": [] | 1601 "settings_pages": [], |
1602 "pref_mappings": [ | |
1603 { "pref": "hardware.external_storage_disabled" } | |
1604 ] | |
1583 }, | 1605 }, |
1584 | 1606 |
1585 "AudioOutputAllowed": { | 1607 "AudioOutputAllowed": { |
1586 "os": ["chromeos"], | 1608 "os": ["chromeos"], |
1587 "test_policy": { "AudioOutputAllowed": true }, | 1609 "test_policy": { "AudioOutputAllowed": true }, |
1588 "settings_pages": [] | 1610 "settings_pages": [], |
1611 "pref_mappings": [ | |
1612 { "pref": "hardware.audio_output_enabled", | |
1613 "local_state": true } | |
1614 ] | |
1589 }, | 1615 }, |
1590 | 1616 |
1591 "AudioCaptureAllowed": { | 1617 "AudioCaptureAllowed": { |
1592 "os": ["chromeos"], | 1618 "os": ["chromeos"], |
1593 "test_policy": { "AudioCaptureAllowed": true }, | 1619 "test_policy": { "AudioCaptureAllowed": true }, |
1594 "settings_pages": [] | 1620 "settings_pages": [], |
1621 "pref_mappings": [ | |
1622 { "pref": "hardware.audio_capture_enabled", | |
1623 "local_state": true } | |
1624 ] | |
1595 }, | 1625 }, |
1596 | 1626 |
1597 "----- Chrome OS device policies ---------------------------------------": {}, | 1627 "----- Chrome OS device policies ---------------------------------------": {}, |
1598 | 1628 |
1599 "DevicePolicyRefreshRate": { | 1629 "DevicePolicyRefreshRate": { |
1600 "os": ["chromeos"], | 1630 "os": ["chromeos"], |
1601 "test_policy": { "DevicePolicyRefreshRate": 300000 }, | 1631 "test_policy": { "DevicePolicyRefreshRate": 300000 }, |
1602 "settings_pages": [] | 1632 "settings_pages": [], |
1633 "pref_mappings": [ | |
1634 { "pref": "policy.device_refresh_rate", | |
1635 "local_state": true } | |
1636 ] | |
1603 }, | 1637 }, |
1604 | 1638 |
1605 "ChromeOsReleaseChannel": { | 1639 "ChromeOsReleaseChannel": { |
1606 "os": ["chromeos"], | 1640 "os": ["chromeos"], |
1607 "test_policy": { "ChromeOsReleaseChannel": "stable-channel" }, | 1641 "test_policy": { "ChromeOsReleaseChannel": "stable-channel" }, |
1608 "settings_pages": [] | 1642 "settings_pages": [] |
1609 }, | 1643 }, |
1610 | 1644 |
1611 "ChromeOsReleaseChannelDelegated": { | 1645 "ChromeOsReleaseChannelDelegated": { |
1612 "os": ["chromeos"], | 1646 "os": ["chromeos"], |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1664 | 1698 |
1665 "DeviceDataRoamingEnabled": { | 1699 "DeviceDataRoamingEnabled": { |
1666 "os": ["chromeos"], | 1700 "os": ["chromeos"], |
1667 "test_policy": { "DeviceDataRoamingEnabled": true }, | 1701 "test_policy": { "DeviceDataRoamingEnabled": true }, |
1668 "settings_pages": [] | 1702 "settings_pages": [] |
1669 }, | 1703 }, |
1670 | 1704 |
1671 "DeviceMetricsReportingEnabled": { | 1705 "DeviceMetricsReportingEnabled": { |
1672 "os": ["chromeos"], | 1706 "os": ["chromeos"], |
1673 "test_policy": { "DeviceMetricsReportingEnabled": true }, | 1707 "test_policy": { "DeviceMetricsReportingEnabled": true }, |
1674 "settings_pages": [] | 1708 "settings_pages": [], |
1709 "pref_mappings": [ | |
1710 { "pref": "cros.metrics.reportingEnabled", | |
1711 "indicator_test_setup_js": "Preferences.getInstance().addEventListener(' alternate_error_pages.enabled', function(event) { Preferences.prefsChangedCallba ck(['cros.metrics.reportingEnabled', {value: event.value.value, controlledBy: ev ent.value.controlledBy, disabled: event.value.disabled}]); });", | |
1712 "indicator_tests": [ | |
1713 { "policy": { "AlternateErrorPagesEnabled": true } } | |
1714 ] | |
1715 } | |
1716 ], | |
1717 | |
1718 "note": "TODO(bartfab): The |indicator_test_setup_js| above is a hack that m akes |cros.metrics.reportingEnabled| track the status of the entirely unrelated |alternate_error_pages.enabled| pref. This is because cros settings cannot curre ntly be made policy-controlled in browser tests. Remove this hack once that rest riction is lifted." | |
1675 }, | 1719 }, |
1676 | 1720 |
1677 "DeviceEphemeralUsersEnabled": { | 1721 "DeviceEphemeralUsersEnabled": { |
1678 "os": ["chromeos"], | 1722 "os": ["chromeos"], |
1679 "test_policy": { "DeviceEphemeralUsersEnabled": true }, | 1723 "test_policy": { "DeviceEphemeralUsersEnabled": true }, |
1680 "settings_pages": [] | 1724 "settings_pages": [] |
1681 }, | 1725 }, |
1682 | 1726 |
1683 "DeviceIdleLogoutTimeout": { | 1727 "DeviceIdleLogoutTimeout": { |
1684 "os": ["chromeos"], | 1728 "os": ["chromeos"], |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1783 "test_policy": { "GCFUserDataDir": "${user_name}/test-frame" }, | 1827 "test_policy": { "GCFUserDataDir": "${user_name}/test-frame" }, |
1784 "settings_pages": [] | 1828 "settings_pages": [] |
1785 }, | 1829 }, |
1786 | 1830 |
1787 "AdditionalLaunchParameters": { | 1831 "AdditionalLaunchParameters": { |
1788 "os": [], | 1832 "os": [], |
1789 "test_policy": { "AdditionalLaunchParameters": "--enable-media-stream" }, | 1833 "test_policy": { "AdditionalLaunchParameters": "--enable-media-stream" }, |
1790 "settings_pages": [] | 1834 "settings_pages": [] |
1791 } | 1835 } |
1792 } | 1836 } |
OLD | NEW |