Lines Matching refs:ut_asserteq
24 ut_asserteq(-ENODEV, uclass_get_device(UCLASS_LED, 5, &dev)); in dm_test_led_base()
37 ut_asserteq(LEDST_ON, led_get_state(dev)); in dm_test_led_default_state()
40 ut_asserteq(LEDST_OFF, led_get_state(dev)); in dm_test_led_default_state()
58 ut_asserteq(0, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_gpio()
60 ut_asserteq(1, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_gpio()
61 ut_asserteq(LEDST_ON, led_get_state(dev)); in dm_test_led_gpio()
64 ut_asserteq(0, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_gpio()
65 ut_asserteq(LEDST_OFF, led_get_state(dev)); in dm_test_led_gpio()
83 ut_asserteq(0, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_toggle()
85 ut_asserteq(1, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_toggle()
86 ut_asserteq(LEDST_ON, led_get_state(dev)); in dm_test_led_toggle()
89 ut_asserteq(0, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_toggle()
90 ut_asserteq(LEDST_OFF, led_get_state(dev)); in dm_test_led_toggle()
102 ut_asserteq(1, device_active(dev)); in dm_test_led_label()
107 ut_asserteq(1, device_active(dev)); in dm_test_led_label()
111 ut_asserteq(-ENODEV, led_get_by_label("sandbox:blue", &dev)); in dm_test_led_label()
130 ut_asserteq(0, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_blink()
131 ut_asserteq(-ENOSYS, led_set_state(dev, LEDST_BLINK)); in dm_test_led_blink()
132 ut_asserteq(0, sandbox_gpio_get_value(gpio, offset)); in dm_test_led_blink()
133 ut_asserteq(LEDST_OFF, led_get_state(dev)); in dm_test_led_blink()
134 ut_asserteq(-ENOSYS, led_set_period(dev, 100)); in dm_test_led_blink()