diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_cmd_otr.c | 4 | ||||
-rw-r--r-- | tests/ui/mock_ui.c | 11 |
2 files changed, 0 insertions, 15 deletions
diff --git a/tests/test_cmd_otr.c b/tests/test_cmd_otr.c index 1c00a057..38268dfc 100644 --- a/tests/test_cmd_otr.c +++ b/tests/test_cmd_otr.c @@ -179,7 +179,6 @@ void cmd_otr_log_redact_shows_warning_when_chlog_disabled(void **state) void cmd_otr_warn_shows_usage_when_no_args(void **state) { mock_cons_show(); - stub_ui_current_update_virtual(); CommandHelp *help = malloc(sizeof(CommandHelp)); help->usage = "Some usage"; gchar *args[] = { "warn", NULL }; @@ -195,7 +194,6 @@ void cmd_otr_warn_shows_usage_when_no_args(void **state) void cmd_otr_warn_shows_usage_when_invalid_arg(void **state) { mock_cons_show(); - stub_ui_current_update_virtual(); CommandHelp *help = malloc(sizeof(CommandHelp)); help->usage = "Some usage"; gchar *args[] = { "warn", "badarg", NULL }; @@ -211,7 +209,6 @@ void cmd_otr_warn_shows_usage_when_invalid_arg(void **state) void cmd_otr_warn_on_enables_unencrypted_warning(void **state) { mock_cons_show(); - stub_ui_current_update_virtual(); CommandHelp *help = malloc(sizeof(CommandHelp)); gchar *args[] = { "warn", "on", NULL }; @@ -230,7 +227,6 @@ void cmd_otr_warn_on_enables_unencrypted_warning(void **state) void cmd_otr_warn_off_disables_unencrypted_warning(void **state) { mock_cons_show(); - stub_ui_current_update_virtual(); CommandHelp *help = malloc(sizeof(CommandHelp)); gchar *args[] = { "warn", "off", NULL }; diff --git a/tests/ui/mock_ui.c b/tests/ui/mock_ui.c index 2cfde09a..7108df56 100644 --- a/tests/ui/mock_ui.c +++ b/tests/ui/mock_ui.c @@ -133,11 +133,6 @@ void _stub_ui_handle_recipient_not_found(const char * const recipient, const cha } static -void _stub_ui_current_update_virtual(void) -{ -} - -static void _mock_ui_current_print_formatted_line(const char show_char, int attrs, const char * const msg, ...) { check_expected(show_char); @@ -272,12 +267,6 @@ stub_ui_handle_recipient_error(void) } void -stub_ui_current_update_virtual(void) -{ - ui_current_update_virtual = _stub_ui_current_update_virtual; -} - -void mock_ui_current_print_formatted_line(void) { ui_current_print_formatted_line = _mock_ui_current_print_formatted_line; |