about summary refs log tree commit diff stats
path: root/tests/helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/helpers.c')
-rw-r--r--tests/helpers.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/helpers.c b/tests/helpers.c
index a6a473e4..10310886 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,18 @@ void close_preferences(void **state)
     rmdir("./tests/files");
 }
 
+void init_chat_sessions(void **state)
+{
+    load_preferences(NULL);
+    chat_sessions_init();
+}
+
+void close_chat_sessions(void **state)
+{
+    chat_sessions_clear();
+    close_preferences(NULL);
+}
+
 static GCompareFunc cmp_func;
 
 void