From a5cf83d2595c41fda72f67284b101f509524e659 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 30 May 2015 22:44:41 +0100 Subject: Added presence received test --- functionaltests/test_presence.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'functionaltests/test_presence.c') diff --git a/functionaltests/test_presence.c b/functionaltests/test_presence.c index 210cdaaf..6129339d 100644 --- a/functionaltests/test_presence.c +++ b/functionaltests/test_presence.c @@ -226,3 +226,28 @@ presence_includes_priority(void **state) )); assert_true(prof_output_exact("Status set to chat (priority 25), \"Free to talk\".")); } + +void +presence_received(void **state) +{ + stbbr_for("roster", + "" + "" + "" + "" + "" + "" + ); + + prof_connect("stabber@localhost", "password"); + stbbr_wait_for("prof_presence_1"); + + stbbr_send( + "" + "10" + "I'm here" + "" + ); + + assert_true(prof_output_exact("Buddy1 (mobile) is online, \"I'm here\"")); +} -- cgit 1.4.1-2-gfad0