diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-10-13 15:55:25 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-10-13 15:55:25 +0800 |
commit | a5f068db869d99cd7b3423cc0110e2e69b6ec4f5 (patch) | |
tree | d2f5a465ad15e91208d16f5d629ef7b1df2e06eb /tests/check-empathy-chatroom-manager.c | |
parent | 063c6dbfe2fb57ab251fcd51060e4e326a96105f (diff) | |
download | gsoc2013-empathy-a5f068db869d99cd7b3423cc0110e2e69b6ec4f5.tar gsoc2013-empathy-a5f068db869d99cd7b3423cc0110e2e69b6ec4f5.tar.gz gsoc2013-empathy-a5f068db869d99cd7b3423cc0110e2e69b6ec4f5.tar.bz2 gsoc2013-empathy-a5f068db869d99cd7b3423cc0110e2e69b6ec4f5.tar.lz gsoc2013-empathy-a5f068db869d99cd7b3423cc0110e2e69b6ec4f5.tar.xz gsoc2013-empathy-a5f068db869d99cd7b3423cc0110e2e69b6ec4f5.tar.zst gsoc2013-empathy-a5f068db869d99cd7b3423cc0110e2e69b6ec4f5.zip |
reuse test account instead of creating one at each test to avoid to pollute gconf DB with loooooot of unremovable accounts
svn path=/trunk/; revision=1573
Diffstat (limited to 'tests/check-empathy-chatroom-manager.c')
-rw-r--r-- | tests/check-empathy-chatroom-manager.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/check-empathy-chatroom-manager.c b/tests/check-empathy-chatroom-manager.c index e59fe7020..73f164b15 100644 --- a/tests/check-empathy-chatroom-manager.c +++ b/tests/check-empathy-chatroom-manager.c @@ -92,7 +92,7 @@ START_TEST (test_empathy_chatroom_manager_new) { "name1", "room1", TRUE, TRUE }, { "name2", "room2", FALSE, TRUE }}; - account = create_test_account (); + account = get_test_account (); copy_xml_file (CHATROOM_SAMPLE, CHATROOM_FILE); @@ -108,7 +108,7 @@ START_TEST (test_empathy_chatroom_manager_new) g_free (file); g_object_unref (mgr); - destroy_test_account (account); + g_object_unref (account); } END_TEST @@ -125,7 +125,7 @@ START_TEST (test_empathy_chatroom_manager_add) { "name4", "room4", FALSE, FALSE }}; EmpathyChatroom *chatroom; - account = create_test_account (); + account = get_test_account (); copy_xml_file (CHATROOM_SAMPLE, CHATROOM_FILE); @@ -170,7 +170,7 @@ START_TEST (test_empathy_chatroom_manager_add) g_object_unref (mgr); g_free (file); - destroy_test_account (account); + g_object_unref (account); } END_TEST @@ -184,7 +184,7 @@ START_TEST (test_empathy_chatroom_manager_remove) { "name2", "room2", FALSE, TRUE }}; EmpathyChatroom *chatroom; - account = create_test_account (); + account = get_test_account (); copy_xml_file (CHATROOM_SAMPLE, CHATROOM_FILE); @@ -226,7 +226,7 @@ START_TEST (test_empathy_chatroom_manager_remove) g_object_unref (mgr); g_free (file); - destroy_test_account (account); + g_object_unref (account); } END_TEST @@ -241,7 +241,7 @@ START_TEST (test_empathy_chatroom_manager_change_favorite) { "name2", "room2", FALSE, FALSE }}; EmpathyChatroom *chatroom; - account = create_test_account (); + account = get_test_account (); copy_xml_file (CHATROOM_SAMPLE, CHATROOM_FILE); @@ -290,7 +290,7 @@ START_TEST (test_empathy_chatroom_manager_change_favorite) g_object_unref (mgr); g_object_unref (chatroom); g_free (file); - destroy_test_account (account); + g_object_unref (account); } END_TEST @@ -305,7 +305,7 @@ START_TEST (test_empathy_chatroom_manager_change_chatroom) { "name2", "room2", FALSE, TRUE }}; EmpathyChatroom *chatroom; - account = create_test_account (); + account = get_test_account (); /* copy_xml_file (CHATROOM_SAMPLE, CHATROOM_FILE); @@ -363,7 +363,7 @@ START_TEST (test_empathy_chatroom_manager_change_chatroom) g_object_unref (mgr); g_free (file); - destroy_test_account (account); + g_object_unref (account); } END_TEST |