Added statuses settings to prefs output

This commit is contained in:
James Booth
2014-01-21 00:16:37 +00:00
parent a8c356e191
commit 0e2fbeb350
4 changed files with 39 additions and 31 deletions

View File

@@ -20,7 +20,7 @@ void console_doesnt_show_online_presence_when_set_none(void **state)
roster_init();
roster_add("test1@server", "bob", NULL, "both", FALSE);
Resource *resource = resource_new("resource", RESOURCE_ONLINE, NULL, 10, "caps");
handle_contact_online("test1@server", resource, NULL);
roster_clear();
@@ -37,9 +37,9 @@ void console_shows_online_presence_when_set_online(void **state)
PContact contact = roster_get_contact("test1@server");
expect_cons_show_contact_online(contact, resource, NULL);
handle_contact_online("test1@server", resource, NULL);
roster_clear();
}
@@ -54,9 +54,9 @@ void console_shows_online_presence_when_set_all(void **state)
PContact contact = roster_get_contact("test1@server");
expect_cons_show_contact_online(contact, resource, NULL);
handle_contact_online("test1@server", resource, NULL);
roster_clear();
}
@@ -68,7 +68,7 @@ void console_doesnt_show_dnd_presence_when_set_none(void **state)
roster_init();
roster_add("test1@server", "bob", NULL, "both", FALSE);
Resource *resource = resource_new("resource", RESOURCE_DND, NULL, 10, "caps");
handle_contact_online("test1@server", resource, NULL);
roster_clear();
@@ -82,7 +82,7 @@ void console_doesnt_show_dnd_presence_when_set_online(void **state)
roster_init();
roster_add("test1@server", "bob", NULL, "both", FALSE);
Resource *resource = resource_new("resource", RESOURCE_DND, NULL, 10, "caps");
handle_contact_online("test1@server", resource, NULL);
roster_clear();
@@ -99,8 +99,8 @@ void console_shows_dnd_presence_when_set_all(void **state)
PContact contact = roster_get_contact("test1@server");
expect_cons_show_contact_online(contact, resource, NULL);
handle_contact_online("test1@server", resource, NULL);
roster_clear();
}

View File

@@ -414,7 +414,7 @@ int main(int argc, char* argv[]) {
PROF_RUN_TESTS(cmd_statuses_tests);
PROF_RUN_TESTS(preferences_tests);
PROF_RUN_TESTS(server_events_tests);
fflush(stdout);
dup2(bak, 1);
close(bak);