wlmaker
Toggle main menu visibility
Loading...
Searching...
No Matches
include
toolkit
test.h
Go to the documentation of this file.
1
/* ========================================================================= */
21
#ifndef __WLMTK_TEST_H__
22
#define __WLMTK_TEST_H__
23
24
#include <libbase/libbase.h>
// IWYU pragma: keep
25
#include <stdbool.h>
26
28
struct
wlr_output;
29
30
#ifdef __cplusplus
31
extern
"C"
{
32
#endif
// __cplusplus
33
35
#define WLMTK_TEST_VERIFY_WLRBOX_EQ(_test, _x, _y, _width, _height, _box) \
36
do { \
37
struct wlr_box __box = (_box); \
38
int __x = (_x), __y = (_y), __width = (_width), __height = (_height); \
39
if (__x != __box.x || __y != __box.y || \
40
__height != __box.height || __width != __box.width) { \
41
bs_test_fail_at( \
42
(_test), __FILE__, __LINE__, \
43
"Expecting {%d, %d, %d, %d}, got '%s' {%d, %d, %d, %d}", \
44
__x, __y, __width, __height, \
45
#_box, __box.x, __box.y, __box.width, __box.height); \
46
} \
47
} while (false)
48
50
void
wlmtk_test_wlr_output_init
(
struct
wlr_output *wlr_output_ptr);
51
52
#ifdef __cplusplus
53
}
// extern "C"
54
#endif
// __cplusplus
55
56
#endif
/* __WLMTK_TEST_H__ */
57
/* == End of test.h ================================================== */
wlmtk_test_wlr_output_init
void wlmtk_test_wlr_output_init(struct wlr_output *wlr_output_ptr)
Definition
test.c:35
Generated by
1.17.0