Renamed refresh functions to update_virtual

This commit is contained in:
James Booth
2014-04-01 21:52:04 +01:00
parent e8e5ab597a
commit 404dde2810
17 changed files with 136 additions and 136 deletions

View File

@@ -179,7 +179,7 @@ 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_refresh();
stub_ui_current_update_virtual();
CommandHelp *help = malloc(sizeof(CommandHelp));
help->usage = "Some usage";
gchar *args[] = { "warn", NULL };
@@ -195,7 +195,7 @@ 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_refresh();
stub_ui_current_update_virtual();
CommandHelp *help = malloc(sizeof(CommandHelp));
help->usage = "Some usage";
gchar *args[] = { "warn", "badarg", NULL };
@@ -211,7 +211,7 @@ 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_refresh();
stub_ui_current_update_virtual();
CommandHelp *help = malloc(sizeof(CommandHelp));
gchar *args[] = { "warn", "on", NULL };
@@ -230,7 +230,7 @@ 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_refresh();
stub_ui_current_update_virtual();
CommandHelp *help = malloc(sizeof(CommandHelp));
gchar *args[] = { "warn", "off", NULL };

View File

@@ -133,7 +133,7 @@ void _stub_ui_handle_recipient_not_found(const char * const recipient, const cha
}
static
void _stub_ui_current_refresh(void)
void _stub_ui_current_update_virtual(void)
{
}
@@ -265,9 +265,9 @@ stub_ui_handle_recipient_error(void)
}
void
stub_ui_current_refresh(void)
stub_ui_current_update_virtual(void)
{
ui_current_refresh = _stub_ui_current_refresh;
ui_current_update_virtual = _stub_ui_current_update_virtual;
}
void

View File

@@ -49,7 +49,7 @@ void mock_current_win_type(win_type_t type);
void mock_ui_current_recipient(void);
void ui_current_recipient_returns(char *jid);
void stub_ui_current_refresh(void);
void stub_ui_current_update_virtual(void);
void mock_ui_current_print_formatted_line(void);
void ui_current_print_formatted_line_expect(char show_char, int attrs, char *message);