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

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: 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
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 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after
1551 1551
1552 "SessionLengthLimit": { 1552 "SessionLengthLimit": {
1553 "os": ["chromeos"], 1553 "os": ["chromeos"],
1554 "test_policy": { "SessionLengthLimit": 3600000 }, 1554 "test_policy": { "SessionLengthLimit": 3600000 },
1555 "pref_mappings": [ 1555 "pref_mappings": [
1556 { "pref": "session.length_limit", 1556 { "pref": "session.length_limit",
1557 "local_state": true } 1557 "local_state": true }
1558 ] 1558 ]
1559 }, 1559 },
1560 1560
1561 "ScreenDimDelayAC": {
1562 "os": ["chromeos"],
1563 "test_policy": { "ScreenDimDelayAC": 420000 },
1564 "pref_mappings": [
1565 { "pref": "session.length_limit" }
1566 ]
1567 },
1568
1569 "ScreenOffDelayAC": {
1570 "os": ["chromeos"],
1571 "test_policy": { "ScreenOffDelayAC": 480000 },
1572 "pref_mappings": [
1573 { "pref": "power.ac_screen_dim_delay_ms" }
1574 ]
1575 },
1576
1577 "ScreenLockDelayAC": {
1578 "os": ["chromeos"],
1579 "test_policy": { "ScreenLockDelayAC": 600000 },
1580 "pref_mappings": [
1581 { "pref": "power.ac_screen_off_delay_ms" }
1582 ]
1583 },
1584
1585 "IdleDelayAC": {
1586 "os": ["chromeos"],
1587 "test_policy": { "IdleDelayAC": 1800000 },
1588 "pref_mappings": [
1589 { "pref": "power.ac_screen_lock_delay_ms" }
1590 ]
1591 },
1592
1593 "ScreenDimDelayBattery": {
1594 "os": ["chromeos"],
1595 "test_policy": { "ScreenDimDelayBattery": 300000 },
1596 "pref_mappings": [
1597 { "pref": "power.ac_idle_delay_ms" }
1598 ]
1599 },
1600
1601 "ScreenOffDelayBattery": {
1602 "os": ["chromeos"],
1603 "test_policy": { "ScreenOffDelayBattery": 360000 },
1604 "pref_mappings": [
1605 { "pref": "power.battery_screen_dim_delay_ms" }
1606 ]
1607 },
1608
1609 "ScreenLockDelayBattery": {
1610 "os": ["chromeos"],
1611 "test_policy": { "ScreenLockDelayBattery": 600000 },
1612 "pref_mappings": [
1613 { "pref": "power.battery_screen_lock_delay_ms" }
1614 ]
1615 },
1616
1617 "IdleDelayBattery": {
1618 "os": ["chromeos"],
1619 "test_policy": { "IdleDelayBattery": 600000 },
1620 "pref_mappings": [
1621 { "pref": "power.battery_idle_delay_ms" }
1622 ]
1623 },
1624
1625 "IdleAction": {
1626 "os": ["chromeos"],
1627 "test_policy": { "IdleAction": 0 },
1628 "pref_mappings": [
1629 { "pref": "power.idle_action" }
1630 ]
1631 },
1632
1633 "LidCloseAction": {
1634 "os": ["chromeos"],
1635 "test_policy": { "LidCloseAction": 0 },
1636 "pref_mappings": [
1637 { "pref": "power.lid_closed_action" }
1638 ]
1639 },
1640
1641 "PowerManagementUsesAudioActivity": {
1642 "os": ["chromeos"],
1643 "test_policy": { "PowerManagementUsesAudioActivity": true },
1644 "pref_mappings": [
1645 { "pref": "power.use_audio_activity" }
1646 ]
1647 },
1648
1649 "PowerManagementUsesVideoActivity": {
1650 "os": ["chromeos"],
1651 "test_policy": { "PowerManagementUsesVideoActivity": true },
1652 "pref_mappings": [
1653 { "pref": "power.use_video_activity" }
1654 ]
1655 },
1656
1657 "PresentationIdleDelayScale": {
1658 "os": ["chromeos"],
1659 "test_policy": { "PresentationIdleDelayScale": 200 },
1660 "pref_mappings": [
1661 { "pref": "power.presentation_idle_delay_factor" }
1662 ]
1663 },
1664
1561 "----- Chrome OS device policies ---------------------------------------": {}, 1665 "----- Chrome OS device policies ---------------------------------------": {},
1562 1666
1563 "DevicePolicyRefreshRate": { 1667 "DevicePolicyRefreshRate": {
1564 "os": ["chromeos"], 1668 "os": ["chromeos"],
1565 "test_policy": { "DevicePolicyRefreshRate": 300000 }, 1669 "test_policy": { "DevicePolicyRefreshRate": 300000 },
1566 "pref_mappings": [ 1670 "pref_mappings": [
1567 { "pref": "policy.device_refresh_rate", 1671 { "pref": "policy.device_refresh_rate",
1568 "local_state": true } 1672 "local_state": true }
1569 ] 1673 ]
1570 }, 1674 },
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1673 1777
1674 "ChromeFrameContentTypes": { 1778 "ChromeFrameContentTypes": {
1675 }, 1779 },
1676 1780
1677 "GCFUserDataDir": { 1781 "GCFUserDataDir": {
1678 }, 1782 },
1679 1783
1680 "AdditionalLaunchParameters": { 1784 "AdditionalLaunchParameters": {
1681 } 1785 }
1682 } 1786 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698