aboutsummaryrefslogtreecommitdiff
path: root/test/unit/fixtures/queue.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-08-13 12:20:53 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-08-13 12:20:53 -0300
commita94a68145b3c607d1e58f708ded8fe625c9973d5 (patch)
tree2d69f4f3a06f0ac5a4e936ec40bde81a26cf2b53 /test/unit/fixtures/queue.c
parent6bf322c6ff190b9f10c5286b3ae6fceedfbddb61 (diff)
parentf1de097dbb236ea400150f80b909407ca9af7441 (diff)
downloadrneovim-a94a68145b3c607d1e58f708ded8fe625c9973d5.tar.gz
rneovim-a94a68145b3c607d1e58f708ded8fe625c9973d5.tar.bz2
rneovim-a94a68145b3c607d1e58f708ded8fe625c9973d5.zip
Merge PR #3029 'Refactor event processing architecture'
Helped-by: oni-link <knil.ino@gmail.com> Reviewed-by: oni-link <knil.ino@gmail.com>
Diffstat (limited to 'test/unit/fixtures/queue.c')
-rw-r--r--test/unit/fixtures/queue.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/unit/fixtures/queue.c b/test/unit/fixtures/queue.c
new file mode 100644
index 0000000000..bbb6274b21
--- /dev/null
+++ b/test/unit/fixtures/queue.c
@@ -0,0 +1,16 @@
+#include <string.h>
+#include <stdlib.h>
+#include "nvim/event/queue.h"
+#include "queue.h"
+
+
+void ut_queue_put(Queue *queue, const char *str)
+{
+ queue_put(queue, NULL, 1, str);
+}
+
+const char *ut_queue_get(Queue *queue)
+{
+ Event event = queue_get(queue);
+ return event.argv[0];
+}