mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 09:36:21 +00:00
Added cmd_roster test
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -61,4 +61,7 @@ void ui_current_win_is_otr_returns(gboolean result);
|
||||
|
||||
void ui_room_join_expect(char *room);
|
||||
|
||||
void mock_cons_show_roster(void);
|
||||
void cons_show_roster_expect(GSList *list);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user