diff options
author | James Booth <boothj5@gmail.com> | 2014-12-24 20:41:28 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-12-24 20:41:28 +0000 |
commit | 3487100c0f7ede4885d5c178faf3c3df5902efb8 (patch) | |
tree | f125c82082eb4755cfb4ed0d08bfbb75890625e6 /tests/ui | |
parent | 8b4c7e93b868366ca76cc630d39b71c28f1c0c9a (diff) | |
download | profani-tty-3487100c0f7ede4885d5c178faf3c3df5902efb8.tar.gz |
Added cmd_bookmark tests
Diffstat (limited to 'tests/ui')
-rw-r--r-- | tests/ui/stub_ui.c | 10 |
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, |