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

Side by Side Diff: chrome/test/data/policy/policy_test_cases.json

Issue 12217068: Add policies to control Chrome OS power management (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 10 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 | « chrome/browser/policy/configuration_policy_handler_unittest.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 { 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", "Defaults to empty if not specified."], 5 "os": ["List of operating systems that support this policy. Valid values:", "win", "linux", "mac", "chromeos", "Defaults to empty if not specified."],
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 make the preferences affecte d by this policy become policy-controlled. Usually just sets the current policy. Defaults to an empty dictionary if not specified.", 8 "test_policy": "A policy dictionary that should make the preferences affecte d by this policy become policy-controlled. Usually just sets the current policy. Defaults to an empty dictionary if not specified.",
9 "note": "If the policy affects any preferences, the following array should b e specified with one entry per such preference.", 9 "note": "If the policy affects any preferences, the following array should b e specified with one entry per such preference.",
10 "pref_mappings": [ 10 "pref_mappings": [
(...skipping 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after
1559 }, 1559 },
1560 1560
1561 "TermsOfServiceURL": { 1561 "TermsOfServiceURL": {
1562 "os": ["chromeos"], 1562 "os": ["chromeos"],
1563 "test_policy": { "TermsOfServiceURL": "http://www.example.com/terms_of_servi ce.txt" }, 1563 "test_policy": { "TermsOfServiceURL": "http://www.example.com/terms_of_servi ce.txt" },
1564 "pref_mappings": [ 1564 "pref_mappings": [
1565 { "pref": "terms_of_service.url" } 1565 { "pref": "terms_of_service.url" }
1566 ] 1566 ]
1567 }, 1567 },
1568 1568
1569 "ScreenDimDelayAC": {
1570 "os": ["chromeos"],
1571 "test_policy": { "ScreenDimDelayAC": 420000 },
1572 "pref_mappings": [
1573 { "pref": "power.ac_screen_dim_delay_ms" }
1574 ]
1575 },
1576
1577 "ScreenOffDelayAC": {
1578 "os": ["chromeos"],
1579 "test_policy": { "ScreenOffDelayAC": 480000 },
1580 "pref_mappings": [
1581 { "pref": "power.ac_screen_off_delay_ms" }
1582 ]
1583 },
1584
1585 "ScreenLockDelayAC": {
1586 "os": ["chromeos"],
1587 "test_policy": { "ScreenLockDelayAC": 600000 },
1588 "pref_mappings": [
1589 { "pref": "power.ac_screen_lock_delay_ms" }
1590 ]
1591 },
1592
1593 "IdleDelayAC": {
1594 "os": ["chromeos"],
1595 "test_policy": { "IdleDelayAC": 1800000 },
1596 "pref_mappings": [
1597 { "pref": "power.ac_idle_delay_ms" }
1598 ]
1599 },
1600
1601 "ScreenDimDelayBattery": {
1602 "os": ["chromeos"],
1603 "test_policy": { "ScreenDimDelayBattery": 300000 },
1604 "pref_mappings": [
1605 { "pref": "power.battery_screen_dim_delay_ms" }
1606 ]
1607 },
1608
1609 "ScreenOffDelayBattery": {
1610 "os": ["chromeos"],
1611 "test_policy": { "ScreenOffDelayBattery": 360000 },
1612 "pref_mappings": [
1613 { "pref": "power.battery_screen_off_delay_ms" }
1614 ]
1615 },
1616
1617 "ScreenLockDelayBattery": {
1618 "os": ["chromeos"],
1619 "test_policy": { "ScreenLockDelayBattery": 600000 },
1620 "pref_mappings": [
1621 { "pref": "power.battery_screen_lock_delay_ms" }
1622 ]
1623 },
1624
1625 "IdleDelayBattery": {
1626 "os": ["chromeos"],
1627 "test_policy": { "IdleDelayBattery": 600000 },
1628 "pref_mappings": [
1629 { "pref": "power.battery_idle_delay_ms" }
1630 ]
1631 },
1632
1633 "IdleAction": {
1634 "os": ["chromeos"],
1635 "test_policy": { "IdleAction": 0 },
1636 "pref_mappings": [
1637 { "pref": "power.idle_action" }
1638 ]
1639 },
1640
1641 "LidCloseAction": {
1642 "os": ["chromeos"],
1643 "test_policy": { "LidCloseAction": 0 },
1644 "pref_mappings": [
1645 { "pref": "power.lid_closed_action" }
1646 ]
1647 },
1648
1649 "PowerManagementUsesAudioActivity": {
1650 "os": ["chromeos"],
1651 "test_policy": { "PowerManagementUsesAudioActivity": true },
1652 "pref_mappings": [
1653 { "pref": "power.use_audio_activity" }
1654 ]
1655 },
1656
1657 "PowerManagementUsesVideoActivity": {
1658 "os": ["chromeos"],
1659 "test_policy": { "PowerManagementUsesVideoActivity": true },
1660 "pref_mappings": [
1661 { "pref": "power.use_video_activity" }
1662 ]
1663 },
1664
1665 "PresentationIdleDelayScale": {
1666 "os": ["chromeos"],
1667 "test_policy": { "PresentationIdleDelayScale": 200 },
1668 "pref_mappings": [
1669 { "pref": "power.presentation_idle_delay_factor" }
1670 ]
1671 },
1672
1569 "----- Chrome OS device policies ---------------------------------------": {}, 1673 "----- Chrome OS device policies ---------------------------------------": {},
1570 1674
1571 "DevicePolicyRefreshRate": { 1675 "DevicePolicyRefreshRate": {
1572 "os": ["chromeos"], 1676 "os": ["chromeos"],
1573 "test_policy": { "DevicePolicyRefreshRate": 300000 }, 1677 "test_policy": { "DevicePolicyRefreshRate": 300000 },
1574 "pref_mappings": [ 1678 "pref_mappings": [
1575 { "pref": "policy.device_refresh_rate", 1679 { "pref": "policy.device_refresh_rate",
1576 "local_state": true } 1680 "local_state": true }
1577 ] 1681 ]
1578 }, 1682 },
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1681 1785
1682 "ChromeFrameContentTypes": { 1786 "ChromeFrameContentTypes": {
1683 }, 1787 },
1684 1788
1685 "GCFUserDataDir": { 1789 "GCFUserDataDir": {
1686 }, 1790 },
1687 1791
1688 "AdditionalLaunchParameters": { 1792 "AdditionalLaunchParameters": {
1689 } 1793 }
1690 } 1794 }
OLDNEW
« no previous file with comments | « chrome/browser/policy/configuration_policy_handler_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698