diff options
author | James Booth <boothj5@gmail.com> | 2014-01-30 23:15:39 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-01-30 23:15:39 +0000 |
commit | 0338d136e03fea2301b3386cfff346f852e5baef (patch) | |
tree | b588da8d14eb29849c1fd52d48aacc7c35da774c /tests/ui | |
parent | 12666b41e671b3daa98f66afc3127b3c718cde18 (diff) | |
download | profani-tty-0338d136e03fea2301b3386cfff346f852e5baef.tar.gz |
Added presence_error tests, added muc_close()
Diffstat (limited to 'tests/ui')
-rw-r--r-- | tests/ui/mock_ui.c | 12 | ||||
-rw-r--r-- | tests/ui/mock_ui.h | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/mock_ui.c b/tests/ui/mock_ui.c index feeed9db..a82ad1e7 100644 --- a/tests/ui/mock_ui.c +++ b/tests/ui/mock_ui.c @@ -109,6 +109,12 @@ void _mock_ui_handle_recipient_error(const char * const recipient, } 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 diff --git a/tests/ui/mock_ui.h b/tests/ui/mock_ui.h index 258cb10c..30bec25e 100644 --- a/tests/ui/mock_ui.h +++ b/tests/ui/mock_ui.h @@ -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); |