about summary refs log tree commit diff stats
path: root/tests/unittests
diff options
context:
space:
mode:
authorPaul Fariello <paul@fariello.eu>2018-04-11 22:17:50 +0520
committerPaul Fariello <paul@fariello.eu>2018-09-05 13:51:00 +0200
commita952776b899dd29056ad6779b14dab75a4125924 (patch)
tree305ff2a8375459633b5bbeb79f856c9564c136a6 /tests/unittests
parent7123e94e82e1408b9abab1a9043617f58d396849 (diff)
downloadprofani-tty-a952776b899dd29056ad6779b14dab75a4125924.tar.gz
Rename mucconf wins into conf wins
Configuration windows are now being used by both muc and cmd.
Diffstat (limited to 'tests/unittests')
-rw-r--r--tests/unittests/test_cmd_pgp.c4
-rw-r--r--tests/unittests/test_cmd_pgp.h2
-rw-r--r--tests/unittests/ui/stub_ui.c12
-rw-r--r--tests/unittests/unittests.c2
4 files changed, 10 insertions, 10 deletions
diff --git a/tests/unittests/test_cmd_pgp.c b/tests/unittests/test_cmd_pgp.c
index b2a1aa7e..0754773a 100644
--- a/tests/unittests/test_cmd_pgp.c
+++ b/tests/unittests/test_cmd_pgp.c
@@ -79,9 +79,9 @@ void cmd_pgp_start_shows_message_when_no_arg_in_muc(void **state)
     cmd_pgp_start_shows_message_when_no_arg_in_wintype(WIN_MUC);
 }
 
-void cmd_pgp_start_shows_message_when_no_arg_in_mucconf(void **state)
+void cmd_pgp_start_shows_message_when_no_arg_in_conf(void **state)
 {
-    cmd_pgp_start_shows_message_when_no_arg_in_wintype(WIN_MUC_CONFIG);
+    cmd_pgp_start_shows_message_when_no_arg_in_wintype(WIN_CONFIG);
 }
 
 void cmd_pgp_start_shows_message_when_no_arg_in_private(void **state)
diff --git a/tests/unittests/test_cmd_pgp.h b/tests/unittests/test_cmd_pgp.h
index 0d681a4a..d6082ecb 100644
--- a/tests/unittests/test_cmd_pgp.h
+++ b/tests/unittests/test_cmd_pgp.h
@@ -8,7 +8,7 @@ void cmd_pgp_start_shows_message_when_connecting(void **state);
 void cmd_pgp_start_shows_message_when_undefined(void **state);
 void cmd_pgp_start_shows_message_when_no_arg_in_console(void **state);
 void cmd_pgp_start_shows_message_when_no_arg_in_muc(void **state);
-void cmd_pgp_start_shows_message_when_no_arg_in_mucconf(void **state);
+void cmd_pgp_start_shows_message_when_no_arg_in_conf(void **state);
 void cmd_pgp_start_shows_message_when_no_arg_in_private(void **state);
 void cmd_pgp_start_shows_message_when_no_arg_in_xmlconsole(void **state);
 #else
diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c
index 420653e1..cee0ddd9 100644
--- a/tests/unittests/ui/stub_ui.c
+++ b/tests/unittests/ui/stub_ui.c
@@ -250,7 +250,7 @@ void ui_handle_error(const char * const err_msg)
 
 void ui_clear_win_title(void) {}
 void ui_goodbye_title(void) {}
-void mucconfwin_handle_configuration(ProfMucConfWin *confwin, DataForm *form) {}
+void confwin_handle_configuration(ProfConfWin *confwin, DataForm *form) {}
 void ui_handle_room_configuration_form_error(const char * const roomjid, const char * const message) {}
 void ui_handle_room_config_submit_result(const char * const roomjid) {}
 void ui_handle_room_config_submit_result_error(const char * const roomjid, const char * const message) {}
@@ -263,10 +263,10 @@ void mucwin_role_set_error(ProfMucWin *mucwin, const char * const nick, const ch
 void mucwin_role_list_error(ProfMucWin *mucwin, const char * const role, const char * const error) {}
 void mucwin_handle_role_list(ProfMucWin *mucwin, const char * const role, GSList *nicks) {}
 void mucwin_kick_error(ProfMucWin *mucwin, const char * const nick, const char * const error) {}
-void mucconfwin_show_form(ProfMucConfWin *confwin) {}
-void mucconfwin_show_form_field(ProfMucConfWin *confwin, DataForm *form, char *tag) {}
-void mucconfwin_form_help(ProfMucConfWin *confwin) {}
-void mucconfwin_field_help(ProfMucConfWin *confwin, char *tag) {}
+void confwin_show_form(ProfConfWin *confwin) {}
+void confwin_show_form_field(ProfConfWin *confwin, DataForm *form, char *tag) {}
+void confwin_form_help(ProfConfWin *confwin) {}
+void confwin_field_help(ProfConfWin *confwin, char *tag) {}
 void ui_show_lines(ProfWin *window, gchar** lines) {}
 void ui_redraw_all_room_rosters(void) {}
 void ui_show_all_room_rosters(void) {}
@@ -494,7 +494,7 @@ ProfWin* win_create_muc(const char * const roomjid)
 {
     return NULL;
 }
-ProfWin* win_create_muc_config(const char * const title, DataForm *form)
+ProfWin* win_create_config(const char * const title, DataForm *form)
 {
     return NULL;
 }
diff --git a/tests/unittests/unittests.c b/tests/unittests/unittests.c
index 4e3e149e..a2da1c2a 100644
--- a/tests/unittests/unittests.c
+++ b/tests/unittests/unittests.c
@@ -557,7 +557,7 @@ int main(int argc, char* argv[]) {
         unit_test(cmd_pgp_start_shows_message_when_connecting),
         unit_test(cmd_pgp_start_shows_message_when_no_arg_in_console),
         unit_test(cmd_pgp_start_shows_message_when_no_arg_in_muc),
-        unit_test(cmd_pgp_start_shows_message_when_no_arg_in_mucconf),
+        unit_test(cmd_pgp_start_shows_message_when_no_arg_in_conf),
         unit_test(cmd_pgp_start_shows_message_when_no_arg_in_private),
         unit_test(cmd_pgp_start_shows_message_when_no_arg_in_xmlconsole),
 #else