Lines Matching refs:ut_asserteq
24 ut_asserteq(-ENODEV, uclass_get_device(UCLASS_LED, 5, &dev)); in dm_test_led_base()
40 ut_asserteq(LEDST_ON, led_get_state(dev)); in dm_test_led_default_state()
43 ut_asserteq(LEDST_OFF, led_get_state(dev)); in dm_test_led_default_state()
61 ut_asserteq(0, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_gpio()
63 ut_asserteq(1, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_gpio()
64 ut_asserteq(LEDST_ON, led_get_state(dev)); in dm_test_led_gpio()
67 ut_asserteq(0, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_gpio()
68 ut_asserteq(LEDST_OFF, led_get_state(dev)); in dm_test_led_gpio()
86 ut_asserteq(0, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_toggle()
88 ut_asserteq(1, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_toggle()
89 ut_asserteq(LEDST_ON, led_get_state(dev)); in dm_test_led_toggle()
92 ut_asserteq(0, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_toggle()
93 ut_asserteq(LEDST_OFF, led_get_state(dev)); in dm_test_led_toggle()
105 ut_asserteq(1, device_active(dev)); in dm_test_led_label()
110 ut_asserteq(1, device_active(dev)); in dm_test_led_label()
114 ut_asserteq(-ENODEV, led_get_by_label("sandbox:blue", &dev)); in dm_test_led_label()
133 ut_asserteq(0, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_blink()
134 ut_asserteq(-ENOSYS, led_set_state(dev, LEDST_BLINK)); in dm_test_led_blink()
135 ut_asserteq(0, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_blink()
136 ut_asserteq(LEDST_OFF, led_get_state(dev)); in dm_test_led_blink()
137 ut_asserteq(-ENOSYS, led_set_period(dev, 100)); in dm_test_led_blink()