Added tests for clearing chat sessions on lost connection

This commit is contained in:
James Booth
2015-01-10 01:17:38 +00:00
parent ab7bd6fe5f
commit f180925c3b
6 changed files with 32 additions and 4 deletions

View File

@@ -31,6 +31,12 @@ expect_cons_show_error(char *expected)
expect_string(cons_show_error, output, expected);
}
void
expect_any_cons_show_error(void)
{
expect_any(cons_show_error, output);
}
void
expect_ui_current_print_line(char *message)
{

View File

@@ -1,5 +1,6 @@
void expect_cons_show(char *expected);
void expect_any_cons_show(void);
void expect_cons_show_error(char *expected);
void expect_any_cons_show_error(void);
void expect_ui_current_print_line(char *message);
void expect_ui_current_print_formatted_line(char show_char, int attrs, char *message);