#include #include #include #include #include #include #include #include #include #include "proftest.h" void sends_new_item(void **state) { prof_connect(); stbbr_for_query("jabber:iq:roster", "" "" "" "" "" ); prof_input("/roster add bob@localhost"); assert_true(stbbr_received( "" "" "" "" "" )); assert_true(prof_output_exact("Roster item added: bob@localhost")); } void sends_new_item_nick(void **state) { prof_connect(); stbbr_for_query("jabber:iq:roster", "" "" "" "" "" ); prof_input("/roster add bob@localhost Bobby"); assert_true(stbbr_received( "" "" "" "" "" )); assert_true(prof_output_exact("Roster item added: bob@localhost (Bobby)")); } void sends_remove_item(void **state) { prof_connect_with_roster( "" "" ); stbbr_for_query("jabber:iq:roster", "" "" "" "" "" ); prof_input("/roster remove buddy1@localhost"); assert_true(stbbr_received( "" "" "" "" "" )); assert_true(prof_output_exact("Roster item removed: buddy1@localhost")); } void sends_nick_change(void **state) { prof_connect_with_roster( "" ); prof_input("/roster nick buddy1@localhost Buddy1"); assert_true(prof_output_exact("Nickname for buddy1@localhost set to: Buddy1.")); assert_true(stbbr_received( "" "" "" "" "" )); }