about summary refs log tree commit diff stats
path: root/tests/helpers.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-01-06 21:22:09 +0000
committerJames Booth <boothj5@gmail.com>2015-01-06 21:22:09 +0000
commitf7843def2f307286448fda166b425f48aaa6ddf0 (patch)
tree2e91bac7c056a91e88f40c97ca403360afbc3f45 /tests/helpers.c
parent8d759741e8b71f4bdb0dabcc4c6c453074f85960 (diff)
downloadprofani-tty-f7843def2f307286448fda166b425f48aaa6ddf0.tar.gz
Added chat session tests
Diffstat (limited to 'tests/helpers.c')
-rw-r--r--tests/helpers.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/helpers.c b/tests/helpers.c
index a6a473e4..bc0b8009 100644
--- a/tests/helpers.c
+++ b/tests/helpers.c
@@ -10,6 +10,7 @@
 #include "common.h"
 #include "helpers.h"
 #include "config/preferences.h"
+#include "chat_session.h"
 
 void create_config_dir(void **state)
 {
@@ -72,6 +73,16 @@ void close_preferences(void **state)
     rmdir("./tests/files");
 }
 
+void init_chat_sessions(void **state)
+{
+    chat_sessions_init();
+}
+
+void close_chat_sessions(void **state)
+{
+    chat_sessions_clear();
+}
+
 static GCompareFunc cmp_func;
 
 void