Added presence_error tests, added muc_close()
This commit is contained in:
@@ -108,6 +108,12 @@ void _mock_ui_handle_recipient_error(const char * const recipient,
|
||||
check_expected(err_msg);
|
||||
}
|
||||
|
||||
static
|
||||
void _stub_ui_handle_recipient_error(const char * const recipient,
|
||||
const char * const err_msg)
|
||||
{
|
||||
}
|
||||
|
||||
static
|
||||
void _mock_ui_handle_recipient_not_found(const char * const recipient,
|
||||
const char * const err_msg)
|
||||
@@ -195,6 +201,12 @@ stub_ui_handle_recipient_not_found(void)
|
||||
ui_handle_recipient_not_found = _stub_ui_handle_recipient_not_found;
|
||||
}
|
||||
|
||||
void
|
||||
stub_ui_handle_recipient_error(void)
|
||||
{
|
||||
ui_handle_recipient_error = _stub_ui_handle_recipient_error;
|
||||
}
|
||||
|
||||
// expectations
|
||||
|
||||
void
|
||||
|
||||
@@ -19,6 +19,7 @@ void mock_cons_show_error(void);
|
||||
void expect_cons_show_error(char *output);
|
||||
|
||||
void stub_ui_handle_recipient_not_found(void);
|
||||
void stub_ui_handle_recipient_error(void);
|
||||
void expect_ui_handle_error(char *err_msg);
|
||||
void expect_ui_handle_recipient_error(char *recipient, char *err_msg);
|
||||
void expect_ui_handle_recipient_not_found(char *recipient, char *err_msg);
|
||||
|
||||
Reference in New Issue
Block a user