Always update UI in event loop, removed updates from rest of code
This commit is contained in:
@@ -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 };
|
||||
|
||||
|
||||
@@ -132,11 +132,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, ...)
|
||||
{
|
||||
@@ -271,12 +266,6 @@ stub_ui_handle_recipient_error(void)
|
||||
ui_handle_recipient_error = _stub_ui_handle_recipient_error;
|
||||
}
|
||||
|
||||
void
|
||||
stub_ui_current_update_virtual(void)
|
||||
{
|
||||
ui_current_update_virtual = _stub_ui_current_update_virtual;
|
||||
}
|
||||
|
||||
void
|
||||
mock_ui_current_print_formatted_line(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user