#include #include #include #include #include #include #include #include #include #include "proftest.h" void connect_jid_requests_roster(void **state) { prof_connect(); assert_true(stbbr_received( "" )); } void connect_jid_sends_presence_after_receiving_roster(void **state) { prof_connect(); assert_true(stbbr_received( "" "" "" )); } void connect_jid_requests_bookmarks(void **state) { prof_connect(); assert_true(stbbr_received( "" "" "" "" "" )); } void connect_bad_password(void **state) { prof_input("/connect stabber@localhost server 127.0.0.1 port 5230 tls allow"); prof_input("badpassword"); assert_true(prof_output_exact("Login failed.")); } void connect_shows_presence_updates(void **state) { prof_connect(); stbbr_send( "" "dnd" "busy!" "" ); assert_true(prof_output_exact("Buddy1 (mobile) is dnd, \"busy!\"")); stbbr_send( "" "chat" "Talk to me!" "" ); assert_true(prof_output_exact("Buddy1 (laptop) is chat, \"Talk to me!\"")); stbbr_send( "" "away" "Out of office" "" ); assert_true(prof_output_exact("Buddy2 (work) is away, \"Out of office\"")); stbbr_send( "" "xa" "Gone :(" "" ); assert_true(prof_output_exact("Buddy1 (mobile) is xa, \"Gone :(\"")); }