| [ |
| { |
| "node": "platform-device", |
| "tests": [ |
| { |
| "name": "Match devicetree", |
| "expected": "match", |
| "device": { |
| "fuchsia.devicetree.FIRST_COMPATIBLE": "\"fuchsia,gpio-buttons\"" |
| } |
| } |
| ] |
| }, |
| { |
| "node": "mic-privacy", |
| "tests": [ |
| { |
| "name": "MatchMicPrivacy", |
| "expected": "match", |
| "device": { |
| "fuchsia.hardware.gpio.Service": "fuchsia.hardware.gpio.Service.ZirconTransport", |
| "fuchsia.gpio.FUNCTION": "fuchsia.gpio.FUNCTION.MIC_MUTE" |
| } |
| }, |
| { |
| "name": "MicWrongGpioFunction", |
| "expected": "abort", |
| "device": { |
| "fuchsia.hardware.gpio.Service": "fuchsia.hardware.gpio.Service.ZirconTransport", |
| "fuchsia.gpio.FUNCTION": "fuchsia.gpio.FUNCTION.NOT_A_KNOWN_FUNCTION" |
| } |
| } |
| ] |
| }, |
| { |
| "node": "volume-up", |
| "tests": [ |
| { |
| "name": "MatchVolUp", |
| "expected": "match", |
| "device": { |
| "fuchsia.hardware.gpio.Service": "fuchsia.hardware.gpio.Service.ZirconTransport", |
| "fuchsia.gpio.FUNCTION": "fuchsia.gpio.FUNCTION.VOLUME_UP" |
| } |
| }, |
| { |
| "name": "VolUpWrongGpioFunction", |
| "expected": "abort", |
| "device": { |
| "fuchsia.hardware.gpio.Service": "fuchsia.hardware.gpio.Service.ZirconTransport", |
| "fuchsia.gpio.FUNCTION": "fuchsia.gpio.FUNCTION.NOT_A_KNOWN_FUNCTION" |
| } |
| } |
| ] |
| }, |
| { |
| "node": "volume-down", |
| "tests": [ |
| { |
| "name": "MatchVolDown", |
| "expected": "match", |
| "device": { |
| "fuchsia.hardware.gpio.Service": "fuchsia.hardware.gpio.Service.ZirconTransport", |
| "fuchsia.gpio.FUNCTION": "fuchsia.gpio.FUNCTION.VOLUME_DOWN" |
| } |
| }, |
| { |
| "name": "VolDownWrongGpioFunction", |
| "expected": "abort", |
| "device": { |
| "fuchsia.hardware.gpio.Service": "fuchsia.hardware.gpio.Service.ZirconTransport", |
| "fuchsia.gpio.FUNCTION": "fuchsia.gpio.FUNCTION.NOT_A_KNOWN_FUNCTION" |
| } |
| } |
| ] |
| }, |
| { |
| "node": "volume-both", |
| "tests": [ |
| { |
| "name": "MatchVolBoth", |
| "expected": "match", |
| "device": { |
| "fuchsia.hardware.gpio.Service": "fuchsia.hardware.gpio.Service.ZirconTransport", |
| "fuchsia.gpio.FUNCTION": "fuchsia.gpio.FUNCTION.VOLUME_BOTH" |
| } |
| }, |
| { |
| "name": "VolBothWrongGpioFunction", |
| "expected": "abort", |
| "device": { |
| "fuchsia.hardware.gpio.Service": "fuchsia.hardware.gpio.Service.ZirconTransport", |
| "fuchsia.gpio.FUNCTION": "fuchsia.gpio.FUNCTION.NOT_A_KNOWN_FUNCTION" |
| } |
| } |
| ] |
| } |
| ] |