diff options
author | sanine <sanine.not@pm.me> | 2022-06-16 22:27:08 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-06-16 22:27:08 -0500 |
commit | 2c566f629c3ddb0bee6e338ee6b691480c7dd280 (patch) | |
tree | 6610a42d3094a441edd101f712bd138bc0d41622 /src/test | |
parent | 2cdda7ca1276b7f8cc3c235262aa5d9a1204d954 (diff) |
add mock_**queue macros
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/honey-test.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/honey-test.h b/src/test/honey-test.h index a31bcff..5ac5b8f 100644 --- a/src/test/honey-test.h +++ b/src/test/honey-test.h @@ -7,6 +7,12 @@ lily_mock_t * name ## _data = NULL; \ void name +#define mock_enqueue(name, type, data) \ + lily_enqueue(name ## _data->values, type, data) + +#define mock_dequeue(name, type, data) \ + lily_dequeue(name ## _data->values, type, data) + #define CLEAN_MOCK(name) \ do { \ if (name ## _data != NULL) { \ |