]> git.0d.be Git - empathy.git/blob - tests/check-empathy-chatroom-manager.c
rename check-empathy-irc-chatroom-manager.c to check-empathy-chatroom-manager.c
[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 static gchar *
13 get_xml_file (const gchar *filename)
14 {
15   return g_build_filename (g_getenv ("EMPATHY_SRCDIR"), "tests", "xml",
16       filename, NULL);
17 }
18
19 START_TEST (test_empathy_chatroom_manager_new)
20 {
21   EmpathyChatroomManager *mgr;
22   gchar *file;
23
24   file = get_xml_file ("chatrooms.xml");
25   mgr = empathy_chatroom_manager_new (file);
26
27   g_free (file);
28   g_object_unref (mgr);
29 }
30 END_TEST
31
32 TCase *
33 make_empathy_chatroom_manager_tcase (void)
34 {
35     TCase *tc = tcase_create ("empathy-chatroom-manager");
36     tcase_add_test (tc, test_empathy_chatroom_manager_new);
37     return tc;
38 }