about summary refs log tree commit diff stats
path: root/tests/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-12-24 20:41:28 +0000
committerJames Booth <boothj5@gmail.com>2014-12-24 20:41:28 +0000
commit3487100c0f7ede4885d5c178faf3c3df5902efb8 (patch)
treef125c82082eb4755cfb4ed0d08bfbb75890625e6 /tests/ui
parent8b4c7e93b868366ca76cc630d39b71c28f1c0c9a (diff)
downloadprofani-tty-3487100c0f7ede4885d5c178faf3c3df5902efb8.tar.gz
Added cmd_bookmark tests
Diffstat (limited to 'tests/ui')
-rw-r--r--tests/ui/stub_ui.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/ui/stub_ui.c b/tests/ui/stub_ui.c
index dee743e3..7115d2c3 100644
--- a/tests/ui/stub_ui.c
+++ b/tests/ui/stub_ui.c
@@ -86,9 +86,10 @@ int ui_close_read_wins(void)
 
 // current window actions
 void ui_clear_current(void) {}
+
 win_type_t ui_current_win_type(void)
 {
-    return WIN_CONSOLE;
+    return (win_type_t)mock();
 }
 
 int ui_current_win_index(void)
@@ -330,7 +331,12 @@ void cons_show_account_list(gchar **accounts)
 }
 
 void cons_show_room_list(GSList *room, const char * const conference_node) {}
-void cons_show_bookmarks(const GList *list) {}
+
+void cons_show_bookmarks(const GList *list)
+{
+    check_expected(list);
+}
+
 void cons_show_disco_items(GSList *items, const char * const jid) {}
 void cons_show_disco_info(const char *from, GSList *identities, GSList *features) {}
 void cons_show_room_invite(const char * const invitor, const char * const room,