diff options
author | James Booth <boothj5@gmail.com> | 2013-12-17 23:57:06 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-12-17 23:57:06 +0000 |
commit | f47bd58a1cde062e9f7ee5ef7b504bc543bed727 (patch) | |
tree | 06348c0501da11789c5b2765bb08d56ccd601ea6 /tests/config | |
parent | ba66d6b730737bd392027899010589a79e2777df (diff) | |
download | profani-tty-f47bd58a1cde062e9f7ee5ef7b504bc543bed727.tar.gz |
Added tests for setting presence priorities
Diffstat (limited to 'tests/config')
-rw-r--r-- | tests/config/mock_accounts.c | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/tests/config/mock_accounts.c b/tests/config/mock_accounts.c index de1d8b38..929a3b51 100644 --- a/tests/config/mock_accounts.c +++ b/tests/config/mock_accounts.c @@ -143,11 +143,36 @@ resource_presence_t accounts_get_last_presence(const char * const account_name) return (resource_presence_t)mock(); } -void accounts_set_priority_online(const char * const account_name, const gint value) {} -void accounts_set_priority_chat(const char * const account_name, const gint value) {} -void accounts_set_priority_away(const char * const account_name, const gint value) {} -void accounts_set_priority_xa(const char * const account_name, const gint value) {} -void accounts_set_priority_dnd(const char * const account_name, const gint value) {} +void accounts_set_priority_online(const char * const account_name, const gint value) +{ + check_expected(account_name); + check_expected(value); +} + +void accounts_set_priority_chat(const char * const account_name, const gint value) +{ + check_expected(account_name); + check_expected(value); +} + +void accounts_set_priority_away(const char * const account_name, const gint value) +{ + check_expected(account_name); + check_expected(value); +} + +void accounts_set_priority_xa(const char * const account_name, const gint value) +{ + check_expected(account_name); + check_expected(value); +} + +void accounts_set_priority_dnd(const char * const account_name, const gint value) +{ + check_expected(account_name); + check_expected(value); +} + void accounts_set_priority_all(const char * const account_name, const gint value) {} gint accounts_get_priority_for_presence_type(const char * const account_name, |