about summary refs log tree commit diff stats
path: root/tests/ui/mock_ui.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-03-16 01:23:12 +0000
committerJames Booth <boothj5@gmail.com>2014-03-16 01:23:12 +0000
commit93397e4581e1c294972c4b262deb65f6d1a0d9d0 (patch)
treed09e536ceef7e428451c8064a815e6ffd14e2d28 /tests/ui/mock_ui.c
parent05952e8337a947b30fd196520c185d38ae1b03c0 (diff)
downloadprofani-tty-93397e4581e1c294972c4b262deb65f6d1a0d9d0.tar.gz
Added cmd_roster test
Diffstat (limited to 'tests/ui/mock_ui.c')
-rw-r--r--tests/ui/mock_ui.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/mock_ui.c b/tests/ui/mock_ui.c
index 5cf48cb9..cbdbd486 100644
--- a/tests/ui/mock_ui.c
+++ b/tests/ui/mock_ui.c
@@ -171,6 +171,12 @@ void _mock_ui_room_join(char *room)
     check_expected(room);
 }
 
+static
+void _mock_cons_show_roster(GSList *list)
+{
+    check_expected(list);
+}
+
 // bind mocks and stubs
 
 void
@@ -276,6 +282,12 @@ mock_ui_current_print_line(void)
     ui_current_print_line = _mock_ui_current_print_line;
 }
 
+void
+mock_cons_show_roster(void)
+{
+    cons_show_roster = _mock_cons_show_roster;
+}
+
 // expectations
 
 void
@@ -420,3 +432,9 @@ ui_room_join_expect(char *room)
     ui_room_join = _mock_ui_room_join;
     expect_string(_mock_ui_room_join, room, room);
 }
+
+void
+cons_show_roster_expect(GSList *list)
+{
+    expect_any(_mock_cons_show_roster, list);
+}