Added chat session tests

This commit is contained in:
James Booth
2015-01-06 21:22:09 +00:00
parent 8d759741e8
commit f7843def2f
7 changed files with 188 additions and 0 deletions

View File

@@ -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