#include #include #include #include #include #include #include #include #include #include "proftest.h" void ping_multiple(void **state) { stbbr_for_id("prof_disco_info_onconnect_2", "" "" "" "" "" "" ); stbbr_for_id("prof_ping_4", "" ); stbbr_for_id("prof_ping_5", "" ); prof_connect(); prof_input("/ping"); assert_true(stbbr_received( "" "" "" )); assert_true(prof_output_exact("Ping response from server")); prof_input("/ping"); assert_true(stbbr_received( "" "" "" )); assert_true(prof_output_exact("Ping response from server")); } void ping_not_supported(void **state) { stbbr_for_id("prof_disco_info_onconnect_2", "" "" "" "" "" ); prof_connect(); prof_input("/ping"); assert_true(prof_output_exact("Server does not support ping requests.")); } void ping_responds(void **state) { prof_connect(); stbbr_send( "" "" "" ); assert_true(stbbr_received( "" )); }