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