Added contact tests

This commit is contained in:
James Booth
2014-01-05 01:17:11 +00:00
parent 80acfdae9a
commit 5898da963a
3 changed files with 326 additions and 1 deletions

View File

@@ -266,6 +266,23 @@ int main(int argc, char* argv[]) {
unit_test(contact_string_when_name_not_exists),
unit_test(contact_string_when_default_resource),
unit_test(contact_presence_offline),
unit_test(contact_presence_uses_highest_priority),
unit_test(contact_presence_chat_when_same_prioroty),
unit_test(contact_presence_online_when_same_prioroty),
unit_test(contact_presence_away_when_same_prioroty),
unit_test(contact_presence_xa_when_same_prioroty),
unit_test(contact_presence_dnd),
unit_test(contact_subscribed_when_to),
unit_test(contact_subscribed_when_both),
unit_test(contact_not_subscribed_when_from),
unit_test(contact_not_subscribed_when_no_subscription_value),
unit_test(contact_not_available),
unit_test(contact_not_available_when_highest_priority_away),
unit_test(contact_not_available_when_highest_priority_xa),
unit_test(contact_not_available_when_highest_priority_dnd),
unit_test(contact_available_when_highest_priority_online),
unit_test(contact_available_when_highest_priority_chat),
};
return run_tests(tests);
}