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": false }, |
1564 "settings_pages": [] | 1574 "settings_pages": [], |
| 1575 "pref_mappings": [ |
| 1576 { "pref": "gdata.disabled" } |
| 1577 ] |
1565 }, | 1578 }, |
1566 | 1579 |
1567 "DriveDisabledOverCellular": { | 1580 "DriveDisabledOverCellular": { |
1568 "os": ["chromeos"], | 1581 "os": ["chromeos"], |
1569 "test_policy": { "DriveDisabledOverCellular": true }, | 1582 "test_policy": { "DriveDisabledOverCellular": true }, |
1570 "settings_pages": [] | 1583 "settings_pages": [], |
| 1584 "pref_mappings": [ |
| 1585 { "pref": "gdata.cellular.disabled" } |
| 1586 ] |
1571 }, | 1587 }, |
1572 | 1588 |
1573 "PinnedLauncherApps": { | 1589 "PinnedLauncherApps": { |
1574 "os": ["chromeos"], | 1590 "os": ["chromeos"], |
| 1591 "can_be_recommended": true, |
1575 "test_policy": { "PinnedLauncherApps": [] }, | 1592 "test_policy": { "PinnedLauncherApps": [] }, |
1576 "settings_pages": [] | 1593 "settings_pages": [], |
| 1594 "pref_mappings": [ |
| 1595 { "pref": "pinned_launcher_apps" } |
| 1596 ] |
1577 }, | 1597 }, |
1578 | 1598 |
1579 "ExternalStorageDisabled": { | 1599 "ExternalStorageDisabled": { |
1580 "os": ["chromeos"], | 1600 "os": ["chromeos"], |
1581 "test_policy": { "ExternalStorageDisabled": true }, | 1601 "test_policy": { "ExternalStorageDisabled": true }, |
1582 "settings_pages": [] | 1602 "settings_pages": [], |
| 1603 "pref_mappings": [ |
| 1604 { "pref": "hardware.external_storage_disabled" } |
| 1605 ] |
1583 }, | 1606 }, |
1584 | 1607 |
1585 "AudioOutputAllowed": { | 1608 "AudioOutputAllowed": { |
1586 "os": ["chromeos"], | 1609 "os": ["chromeos"], |
1587 "test_policy": { "AudioOutputAllowed": true }, | 1610 "test_policy": { "AudioOutputAllowed": true }, |
1588 "settings_pages": [] | 1611 "settings_pages": [], |
| 1612 "pref_mappings": [ |
| 1613 { "pref": "hardware.audio_output_enabled", |
| 1614 "local_state": true } |
| 1615 ] |
1589 }, | 1616 }, |
1590 | 1617 |
1591 "AudioCaptureAllowed": { | 1618 "AudioCaptureAllowed": { |
1592 "os": ["chromeos"], | 1619 "os": ["chromeos"], |
1593 "test_policy": { "AudioCaptureAllowed": true }, | 1620 "test_policy": { "AudioCaptureAllowed": true }, |
1594 "settings_pages": [] | 1621 "settings_pages": [], |
| 1622 "pref_mappings": [ |
| 1623 { "pref": "hardware.audio_capture_enabled", |
| 1624 "local_state": true } |
| 1625 ] |
1595 }, | 1626 }, |
1596 | 1627 |
1597 "----- Chrome OS device policies ---------------------------------------": {}, | 1628 "----- Chrome OS device policies ---------------------------------------": {}, |
1598 | 1629 |
1599 "DevicePolicyRefreshRate": { | 1630 "DevicePolicyRefreshRate": { |
1600 "os": ["chromeos"], | 1631 "os": ["chromeos"], |
1601 "test_policy": { "DevicePolicyRefreshRate": 300000 }, | 1632 "test_policy": { "DevicePolicyRefreshRate": 300000 }, |
1602 "settings_pages": [] | 1633 "settings_pages": [], |
| 1634 "pref_mappings": [ |
| 1635 { "pref": "policy.device_refresh_rate", |
| 1636 "local_state": true } |
| 1637 ] |
1603 }, | 1638 }, |
1604 | 1639 |
1605 "ChromeOsReleaseChannel": { | 1640 "ChromeOsReleaseChannel": { |
1606 "os": ["chromeos"], | 1641 "os": ["chromeos"], |
1607 "test_policy": { "ChromeOsReleaseChannel": "stable-channel" }, | 1642 "test_policy": { "ChromeOsReleaseChannel": "stable-channel" }, |
1608 "settings_pages": [] | 1643 "settings_pages": [] |
1609 }, | 1644 }, |
1610 | 1645 |
1611 "ChromeOsReleaseChannelDelegated": { | 1646 "ChromeOsReleaseChannelDelegated": { |
1612 "os": ["chromeos"], | 1647 "os": ["chromeos"], |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1663 }, | 1698 }, |
1664 | 1699 |
1665 "DeviceDataRoamingEnabled": { | 1700 "DeviceDataRoamingEnabled": { |
1666 "os": ["chromeos"], | 1701 "os": ["chromeos"], |
1667 "test_policy": { "DeviceDataRoamingEnabled": true }, | 1702 "test_policy": { "DeviceDataRoamingEnabled": true }, |
1668 "settings_pages": [] | 1703 "settings_pages": [] |
1669 }, | 1704 }, |
1670 | 1705 |
1671 "DeviceMetricsReportingEnabled": { | 1706 "DeviceMetricsReportingEnabled": { |
1672 "os": ["chromeos"], | 1707 "os": ["chromeos"], |
| 1708 "official_only": true, |
1673 "test_policy": { "DeviceMetricsReportingEnabled": true }, | 1709 "test_policy": { "DeviceMetricsReportingEnabled": true }, |
1674 "settings_pages": [] | 1710 "settings_pages": [], |
| 1711 "pref_mappings": [ |
| 1712 { "pref": "cros.metrics.reportingEnabled", |
| 1713 "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}]); });", |
| 1714 "indicator_tests": [ |
| 1715 { "policy": { "AlternateErrorPagesEnabled": true } } |
| 1716 ] |
| 1717 } |
| 1718 ], |
| 1719 |
| 1720 "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 }, | 1721 }, |
1676 | 1722 |
1677 "DeviceEphemeralUsersEnabled": { | 1723 "DeviceEphemeralUsersEnabled": { |
1678 "os": ["chromeos"], | 1724 "os": ["chromeos"], |
1679 "test_policy": { "DeviceEphemeralUsersEnabled": true }, | 1725 "test_policy": { "DeviceEphemeralUsersEnabled": true }, |
1680 "settings_pages": [] | 1726 "settings_pages": [] |
1681 }, | 1727 }, |
1682 | 1728 |
1683 "DeviceIdleLogoutTimeout": { | 1729 "DeviceIdleLogoutTimeout": { |
1684 "os": ["chromeos"], | 1730 "os": ["chromeos"], |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1783 "test_policy": { "GCFUserDataDir": "${user_name}/test-frame" }, | 1829 "test_policy": { "GCFUserDataDir": "${user_name}/test-frame" }, |
1784 "settings_pages": [] | 1830 "settings_pages": [] |
1785 }, | 1831 }, |
1786 | 1832 |
1787 "AdditionalLaunchParameters": { | 1833 "AdditionalLaunchParameters": { |
1788 "os": [], | 1834 "os": [], |
1789 "test_policy": { "AdditionalLaunchParameters": "--enable-media-stream" }, | 1835 "test_policy": { "AdditionalLaunchParameters": "--enable-media-stream" }, |
1790 "settings_pages": [] | 1836 "settings_pages": [] |
1791 } | 1837 } |
1792 } | 1838 } |
OLD | NEW |