]> git.0d.be Git - empathy.git/blob - tests/check-empathy-chatroom-manager.c
add remove_account_from_gconf to check-helpers
[empathy.git] / tests / check-empathy-chatroom-manager.c
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include <string.h>
4 #include <glib/gstdio.h>
5
6 #include <check.h>
7 #include "check-helpers.h"
8 #include "check-libempathy.h"
9
10 #include <libempathy/empathy-chatroom-manager.h>
11
12 #define CHATROOM_SAMPLE "chatrooms-sample.xml"
13 #define CHATROOM_FILE "chatrooms.xml"
14
15 START_TEST (test_empathy_chatroom_manager_new)
16 {
17   EmpathyChatroomManager *mgr;
18   gchar *file;
19
20   copy_xml_file (CHATROOM_SAMPLE, CHATROOM_FILE);
21   file = get_xml_file (CHATROOM_FILE);
22   mgr = empathy_chatroom_manager_new (file);
23
24   g_free (file);
25   g_object_unref (mgr);
26 }
27 END_TEST
28
29 TCase *
30 make_empathy_chatroom_manager_tcase (void)
31 {
32     TCase *tc = tcase_create ("empathy-chatroom-manager");
33     tcase_add_test (tc, test_empathy_chatroom_manager_new);
34     return tc;
35 }