chromium/components/policy/test/data/pref_mapping/AutofillCreditCardEnabled.json

[
  {
    "can_be_recommended": true,
    "os": [
      "win",
      "linux",
      "mac",
      "chromeos_ash",
      "chromeos_lacros",
      "android",
      "fuchsia"
    ],
    "policy_pref_mapping_tests": [
      {
        "note": "Default value (no policies set).",
        "prefs": {
          "autofill.credit_card_enabled": {
            "default_value": true
          }
        }
      },
      {
        "note": "Disabling",
        "policies": {
          "AutofillCreditCardEnabled": false
        },
        "prefs": {
          "autofill.credit_card_enabled": {
            "value": false
          }
        }
      },
      {
        "note": "Enabling (ignored via policy handler, pref still has default value)",
        "policies": {
          "AutofillCreditCardEnabled": true
        },
        "prefs": {
          "autofill.credit_card_enabled": {
            "default_value": true
          }
        }
      }
    ]
  }
]