diff options
author | James Booth <boothj5@gmail.com> | 2015-01-06 23:19:56 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-01-06 23:19:56 +0000 |
commit | 95ad5643725d1cc857454d47460091ca18cbb807 (patch) | |
tree | 424b86f34e596324feaeef3248fd873ae26ac8a8 /tests/testsuite.c | |
parent | 36790dc26bbd4d00702a75469980e7c9fbf1282d (diff) | |
download | profani-tty-95ad5643725d1cc857454d47460091ca18cbb807.tar.gz |
Added offline handler for chat sessions
Diffstat (limited to 'tests/testsuite.c')
-rw-r--r-- | tests/testsuite.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/testsuite.c b/tests/testsuite.c index db05639d..3b86d5ed 100644 --- a/tests/testsuite.c +++ b/tests/testsuite.c @@ -239,6 +239,15 @@ int main(int argc, char* argv[]) { unit_test_setup_teardown(removes_chat_session_on_cancel_for_fulljid, init_chat_sessions, close_chat_sessions), + unit_test_setup_teardown(removes_chat_session_on_offline_matching_resource, + init_chat_sessions, + close_chat_sessions), + unit_test_setup_teardown(does_not_remove_chat_session_on_offline_different_resource, + init_chat_sessions, + close_chat_sessions), + unit_test_setup_teardown(does_not_remove_chat_session_on_offline_null_resource, + init_chat_sessions, + close_chat_sessions), unit_test_setup_teardown(cmd_connect_shows_message_when_disconnecting, load_preferences, @@ -475,6 +484,7 @@ int main(int argc, char* argv[]) { unit_test(handle_message_error_when_recipient_and_no_type), unit_test(handle_presence_error_when_no_recipient), unit_test(handle_presence_error_when_from_recipient), + unit_test(handle_offline_removes_chat_session), unit_test(cmd_alias_add_shows_usage_when_no_args), unit_test(cmd_alias_add_shows_usage_when_no_value), |