mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-25 10:26:20 +00:00
Fixed tests
This commit is contained in:
@@ -93,6 +93,12 @@ win_type_t _mock_ui_current_win_type(void)
|
||||
return (win_type_t)mock();
|
||||
}
|
||||
|
||||
static
|
||||
ProfChatWin * _mock_ui_get_current_chat(void)
|
||||
{
|
||||
return (ProfChatWin*)mock();
|
||||
}
|
||||
|
||||
static
|
||||
void _mock_ui_handle_error(const char * const err_msg)
|
||||
{
|
||||
@@ -394,6 +400,13 @@ mock_current_win_type(win_type_t type)
|
||||
will_return(_mock_ui_current_win_type, type);
|
||||
}
|
||||
|
||||
void
|
||||
mock_ui_get_current_chat(ProfChatWin *chatwin)
|
||||
{
|
||||
ui_get_current_chat = _mock_ui_get_current_chat;
|
||||
will_return(_mock_ui_get_current_chat, chatwin);
|
||||
}
|
||||
|
||||
void
|
||||
ui_current_print_formatted_line_expect(char show_char, int attrs, char *message)
|
||||
{
|
||||
|
||||
@@ -47,6 +47,8 @@ void mock_ui_ask_password_returns(char *password);
|
||||
|
||||
void mock_current_win_type(win_type_t type);
|
||||
|
||||
void mock_ui_get_current_chat(ProfChatWin *chatwin);
|
||||
|
||||
void mock_ui_current_recipient(void);
|
||||
void ui_current_recipient_returns(char *jid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user