about summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cmd_otr.c8
-rw-r--r--tests/ui/mock_ui.c6
-rw-r--r--tests/ui/mock_ui.h2
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_cmd_otr.c b/tests/test_cmd_otr.c
index 0d029d94..3bad3d8d 100644
--- a/tests/test_cmd_otr.c
+++ b/tests/test_cmd_otr.c
@@ -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 };
 
diff --git a/tests/ui/mock_ui.c b/tests/ui/mock_ui.c
index 8fcf277a..67eb51e8 100644
--- a/tests/ui/mock_ui.c
+++ b/tests/ui/mock_ui.c
@@ -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
diff --git a/tests/ui/mock_ui.h b/tests/ui/mock_ui.h
index fa56e2f6..55b036e6 100644
--- a/tests/ui/mock_ui.h
+++ b/tests/ui/mock_ui.h
@@ -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);