#include #include #include #include #include #include #include #include #include #include "proftest.h" void message_send(void **state) { prof_connect(); prof_input("/msg somejid@someserver.com Hi there"); assert_true(stbbr_received( "" "Hi there" "" )); assert_true(prof_output_glob("me: *Hi there")); } void message_receive(void **state) { prof_connect(); stbbr_send( "" "How are you?" "" ); assert_true(prof_output_exact("<< incoming from someuser@chatserv.org/laptop (2)")); }