mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 22:36:22 +00:00
Refactored all window recipients and types
Tests need fixing
This commit is contained in:
@@ -93,12 +93,6 @@ win_type_t _mock_ui_current_win_type(void)
|
||||
return (win_type_t)mock();
|
||||
}
|
||||
|
||||
static
|
||||
char * _mock_ui_current_recipeint(void)
|
||||
{
|
||||
return mock_ptr_type(char *);
|
||||
}
|
||||
|
||||
static
|
||||
void _mock_ui_handle_error(const char * const err_msg)
|
||||
{
|
||||
@@ -247,12 +241,6 @@ mock_ui_ask_password(void)
|
||||
ui_ask_password = _mock_ui_ask_password;
|
||||
}
|
||||
|
||||
void
|
||||
mock_ui_current_recipient(void)
|
||||
{
|
||||
ui_current_recipient = _mock_ui_current_recipeint;
|
||||
}
|
||||
|
||||
void
|
||||
stub_ui_ask_password(void)
|
||||
{
|
||||
@@ -406,12 +394,6 @@ mock_current_win_type(win_type_t type)
|
||||
will_return(_mock_ui_current_win_type, type);
|
||||
}
|
||||
|
||||
void
|
||||
ui_current_recipient_returns(char *jid)
|
||||
{
|
||||
will_return(_mock_ui_current_recipeint, jid);
|
||||
}
|
||||
|
||||
void
|
||||
ui_current_print_formatted_line_expect(char show_char, int attrs, char *message)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user