Home
last modified time | relevance | path

Searched refs:ck_assert (Results 1 – 23 of 23) sorted by relevance

/third_party/libinput/test/
Dtest-gestures.c42 ck_assert(!libinput_device_has_capability(device, in START_TEST()
45 ck_assert(libinput_device_has_capability(device, in START_TEST()
55 ck_assert(!libinput_device_has_capability(device, in START_TEST()
102 ck_assert(dx == 0.0); in START_TEST()
103 ck_assert(dy == 0.0); in START_TEST()
114 ck_assert(dx == 0.0); in START_TEST()
116 ck_assert(dx < 0.0); in START_TEST()
118 ck_assert(dx > 0.0); in START_TEST()
121 ck_assert(dy == 0.0); in START_TEST()
123 ck_assert(dy < 0.0); in START_TEST()
[all …]
Dtest-misc.c126 ck_assert(event == base); in START_TEST()
134 ck_assert(libinput_event_get_pointer_event(event) == NULL); in START_TEST()
135 ck_assert(libinput_event_get_keyboard_event(event) == NULL); in START_TEST()
136 ck_assert(libinput_event_get_touch_event(event) == NULL); in START_TEST()
137 ck_assert(libinput_event_get_gesture_event(event) == NULL); in START_TEST()
138 ck_assert(libinput_event_get_tablet_tool_event(event) == NULL); in START_TEST()
139 ck_assert(libinput_event_get_tablet_pad_event(event) == NULL); in START_TEST()
140 ck_assert(libinput_event_get_switch_event(event) == NULL); in START_TEST()
184 ck_assert(event == base); in START_TEST()
192 ck_assert(libinput_event_get_device_notify_event(event) == NULL); in START_TEST()
[all …]
Dtest-quirks.c98 ck_assert(ctx == NULL); in START_TEST()
112 ck_assert(ctx == NULL); in START_TEST()
129 ck_assert(ctx == NULL); in START_TEST()
145 ck_assert(ctx == NULL); in START_TEST()
163 ck_assert(ctx == NULL); in START_TEST()
181 ck_assert(ctx == NULL); in START_TEST()
201 ck_assert(ctx == NULL); in START_TEST()
221 ck_assert(ctx == NULL); in START_TEST()
263 ck_assert(ctx == NULL); in START_TEST()
282 ck_assert(ctx == NULL); in START_TEST()
[all …]
Dtest-utils.c64 ck_assert(bit_is_set(read_bitfield, i)); in START_TEST()
68 ck_assert(!bit_is_set(read_bitfield, i)); in START_TEST()
96 ck_assert(matrix_is_identity(&m1)); in START_TEST()
116 ck_assert(matrix_is_identity(&m3)); in START_TEST()
331 ck_assert(success == tests[i].success); in START_TEST()
342 ck_assert(success == false); in START_TEST()
367 ck_assert(success == tests[i].success); in START_TEST()
375 ck_assert(success == true); in START_TEST()
379 ck_assert(success == false); in START_TEST()
428 ck_assert(success == false); in START_TEST()
[all …]
Dtest-pad.c45 ck_assert(libinput_device_has_capability(device, in START_TEST()
56 ck_assert(!libinput_device_has_capability(device, in START_TEST()
97 ck_assert(time != 0); in START_TEST()
98 ck_assert(time == time_usec/1000); in START_TEST()
118 ck_assert(time > oldtime); in START_TEST()
119 ck_assert(time != 0); in START_TEST()
120 ck_assert(time == time_usec/1000); in START_TEST()
199 ck_assert(!libevdev_has_event_code(dev->evdev, in START_TEST()
591 ck_assert(libinput_device_config_left_handed_is_available(device)); in START_TEST()
624 ck_assert(!libinput_device_config_left_handed_is_available(device)); in START_TEST()
[all …]
Dtest-udev.c60 ck_assert(li == NULL); in START_TEST()
63 ck_assert(li == NULL); in START_TEST()
66 ck_assert(li == NULL); in START_TEST()
125 ck_assert(event == NULL); in START_TEST()
169 ck_assert(libinput_get_user_data(li) == &data1); in START_TEST()
171 ck_assert(libinput_get_user_data(li) == &data2); in START_TEST()
217 ck_assert(default_seat_found); in START_TEST()
274 ck_assert(libinput_event_get_device(event) == device); in START_TEST()
280 ck_assert(libinput_event_get_device(event) != device); in START_TEST()
491 ck_assert(strchr(sysname, '/') == NULL); in START_TEST()
[all …]
Dtest-totem.c80 ck_assert(libinput_tablet_tool_has_rotation(tool)); in START_TEST()
81 ck_assert(libinput_tablet_tool_has_size(tool)); in START_TEST()
82 ck_assert(libinput_tablet_tool_has_button(tool, BTN_0)); in START_TEST()
258 ck_assert(libinput_event_tablet_tool_x_has_changed(t)); in START_TEST()
259 ck_assert(libinput_event_tablet_tool_y_has_changed(t)); in START_TEST()
302 ck_assert(!libinput_event_tablet_tool_x_has_changed(t)); in START_TEST()
303 ck_assert(!libinput_event_tablet_tool_y_has_changed(t)); in START_TEST()
304 ck_assert(libinput_event_tablet_tool_rotation_has_changed(t)); in START_TEST()
326 ck_assert(!libinput_event_tablet_tool_x_has_changed(t)); in START_TEST()
327 ck_assert(!libinput_event_tablet_tool_y_has_changed(t)); in START_TEST()
[all …]
Dtest-device.c451 ck_assert(libinput_event_get_device(event) != device1); in START_TEST()
782 ck_assert(dev->libinput == libinput_device_get_context(dev->libinput_device)); in START_TEST()
784 ck_assert(dev->libinput == libinput_seat_get_context(seat)); in START_TEST()
794 ck_assert(libinput_device_get_user_data(device) == NULL); in START_TEST()
798 ck_assert(libinput_device_get_user_data(device) == NULL); in START_TEST()
840 ck_assert(libinput_device_unref(device) == NULL); in START_TEST()
844 ck_assert(libinput_device_group_unref(group) == NULL); in START_TEST()
896 ck_assert(device == NULL); in START_TEST()
919 ck_assert(device == NULL); in START_TEST()
945 ck_assert(device == NULL); in START_TEST()
[all …]
Dtest-path.c95 ck_assert(li == NULL); in START_TEST()
121 ck_assert(device == NULL); in START_TEST()
148 ck_assert(device == NULL); in START_TEST()
182 ck_assert(device == NULL); in START_TEST()
211 ck_assert(device == NULL); in START_TEST()
247 ck_assert(libinput_get_user_data(li) == &counter); in START_TEST()
286 ck_assert(libinput_get_user_data(li) == &data1); in START_TEST()
288 ck_assert(libinput_get_user_data(li) == &data2); in START_TEST()
363 ck_assert(libinput_event_get_device(event) == device); in START_TEST()
370 ck_assert(libinput_event_get_device(event) != device); in START_TEST()
[all …]
Dtest-tablet.c557 ck_assert(libinput_event_tablet_tool_x_has_changed(tablet_event)); in START_TEST()
558 ck_assert(libinput_event_tablet_tool_y_has_changed(tablet_event)); in START_TEST()
613 ck_assert(libinput_event_tablet_tool_x_has_changed(tablet_event)); in START_TEST()
614 ck_assert(libinput_event_tablet_tool_y_has_changed(tablet_event)); in START_TEST()
685 ck_assert(libinput_event_tablet_tool_x_has_changed(tablet_event)); in START_TEST()
686 ck_assert(libinput_event_tablet_tool_y_has_changed(tablet_event)); in START_TEST()
965 ck_assert(!have_tool_update); in START_TEST()
973 ck_assert(have_tool_update); in START_TEST()
994 ck_assert(have_proximity_out); in START_TEST()
1168 ck_assert(libinput_event_tablet_tool_x_has_changed(tablet_event)); in START_TEST()
[all …]
Dtest-trackpoint.c184 ck_assert(device == trackpoint->libinput_device); in START_TEST()
194 ck_assert(device == trackpoint->libinput_device); in START_TEST()
225 ck_assert(device == trackpoint->libinput_device); in START_TEST()
235 ck_assert(device == trackpoint->libinput_device); in START_TEST()
271 ck_assert(device == trackpoint->libinput_device); in START_TEST()
281 ck_assert(device == trackpoint->libinput_device); in START_TEST()
Dtest-trackball.c41 ck_assert(libinput_device_config_rotation_is_available(device)); in START_TEST()
72 ck_assert(!libinput_device_config_rotation_is_available(device)); in START_TEST()
100 ck_assert(libinput_device_config_rotation_is_available(device)); in START_TEST()
117 ck_assert(libinput_device_config_rotation_is_available(device)); in START_TEST()
Dtest-touch.c130 ck_assert(tested); in START_TEST()
287 ck_assert(!got_down); in START_TEST()
291 ck_assert(got_down); in START_TEST()
292 ck_assert(!got_up); in START_TEST()
303 ck_assert(got_down); in START_TEST()
304 ck_assert(got_up); in START_TEST()
649 ck_assert(!libinput_device_has_capability(device, in START_TEST()
654 ck_assert(libinput_device_has_capability(device, in START_TEST()
693 ck_assert(libinput_device_has_capability(device, in START_TEST()
964 ck_assert(safe_atoi(prop, &fuzz)); in START_TEST()
[all …]
Dtest-touchpad-buttons.c68 ck_assert(methods & LIBINPUT_CONFIG_CLICK_METHOD_BUTTON_AREAS); in START_TEST()
69 ck_assert(methods & LIBINPUT_CONFIG_CLICK_METHOD_CLICKFINGER); in START_TEST()
95 ck_assert(methods & LIBINPUT_CONFIG_CLICK_METHOD_CLICKFINGER); in START_TEST()
96 ck_assert(methods & LIBINPUT_CONFIG_CLICK_METHOD_BUTTON_AREAS); in START_TEST()
864 ck_assert(!(methods & LIBINPUT_CONFIG_CLICK_METHOD_BUTTON_AREAS)); in START_TEST()
865 ck_assert(methods & LIBINPUT_CONFIG_CLICK_METHOD_CLICKFINGER); in START_TEST()
1411 ck_assert(x/nevents < 0); in START_TEST()
1412 ck_assert(y/nevents > 0); in START_TEST()
1471 ck_assert(x > 0); in START_TEST()
1472 ck_assert(y == 0); in START_TEST()
[all …]
Dtest-pointer.c216 ck_assert((evx == 0.0) == (dx == 0)); in START_TEST()
217 ck_assert((evy == 0.0) == (dy == 0)); in START_TEST()
220 ck_assert(fabs(len) >= 0.3); in START_TEST()
503 ck_assert(!libinput_device_has_capability(device, in START_TEST()
657 ck_assert(libevdev_has_event_code(dev->evdev, EV_REL, REL_WHEEL) || in START_TEST()
725 ck_assert(libevdev_has_event_code(dev->evdev, EV_REL, REL_WHEEL) || in START_TEST()
1753 ck_assert(libinput_device_config_accel_is_available(device)); in START_TEST()
1795 ck_assert(libinput_device_config_accel_is_available(device)); in START_TEST()
1813 ck_assert(!libinput_device_config_accel_is_available(device)); in START_TEST()
1839 ck_assert(libinput_device_config_accel_is_available(device)); in START_TEST()
[all …]
Dtest-touchpad.c218 ck_assert(!libinput_event_pointer_has_axis(ptrev, in START_TEST()
262 ck_assert(has_on_axis); in is_single_axis_2fg_scroll()
263 ck_assert(!has_off_axis); in is_single_axis_2fg_scroll()
295 ck_assert(is_single_axis_2fg_scroll(dev, axis)); in START_TEST()
302 ck_assert(is_single_axis_2fg_scroll(dev, axis)); in START_TEST()
331 ck_assert(is_single_axis_2fg_scroll(dev, axis)); in START_TEST()
356 ck_assert(is_single_axis_2fg_scroll(dev, axis)); in START_TEST()
367 ck_assert(!is_single_axis_2fg_scroll(dev, axis)); in START_TEST()
416 ck_assert(axisval > 0.0); in START_TEST()
421 ck_assert(axisval < 5.0); in START_TEST()
[all …]
Dtest-switch.c54 ck_assert(!libinput_device_has_capability(dev->libinput_device, in START_TEST()
59 ck_assert(libinput_device_has_capability(dev->libinput_device, in START_TEST()
995 ck_assert(have_switch_toggle); in START_TEST()
1194 ck_assert(have_switch_toggle); in START_TEST()
Dtest-keyboard.c272 ck_assert(libinput_device_has_capability( in START_TEST()
/third_party/gstreamer/gstplugins_bad/tests/check/elements/
Dvapostproc.c41 ck_assert (h); in GST_START_TEST()
50 ck_assert (buf); in GST_START_TEST()
55 ck_assert (ret); in GST_START_TEST()
73 ck_assert (h); in GST_START_TEST()
82 ck_assert (buf); in GST_START_TEST()
89 ck_assert (ret == TRUE); in GST_START_TEST()
/third_party/pulseaudio/src/tests/
Dcore-util-test.c165 ck_assert(value > 100000 - epsilon); in START_TEST()
166 ck_assert(value < 100000 + epsilon); in START_TEST()
168 ck_assert(value > -100000 - epsilon); in START_TEST()
169 ck_assert(value < -100000 + epsilon); in START_TEST()
171 ck_assert(value > 3.14 - epsilon); in START_TEST()
172 ck_assert(value < 3.14 + epsilon); in START_TEST()
/third_party/gstreamer/gstreamer/libs/gst/check/
Dinternal-check.h439 #define ck_assert(expr) ck_assert_msg(expr, NULL) macro
/third_party/gstreamer/gstreamer/libs/gst/check/libcheck/
Dcheck.h439 #define ck_assert(expr) ck_assert_msg(expr, NULL) macro
Dcheck.h.in439 #define ck_assert(expr) ck_assert_msg(expr, NULL) macro
478 /* Signed and unsigned integer comparison macros with improved output compared to ck_assert(). */
651 /* String comparison macros with improved output compared to ck_assert() */
739 /* Pointer comparison macros with improved output compared to ck_assert(). */
778 * failure is the last location of a ck_assert*() or ck_abort() call.