diff options
author | Frank Zschockelt <profanity@freakysoft.de> | 2019-05-08 21:52:16 +0200 |
---|---|---|
committer | Frank Zschockelt <profanity@freakysoft.de> | 2019-05-08 21:52:16 +0200 |
commit | 4683395aca05c396c5f8fa8ca56db3b761e16331 (patch) | |
tree | 7f9ea0051bffa86ea684de13083832c822d49726 /tests/unittests/config | |
parent | a5db791dc484bfde7df067911d8ee9f95968b88d (diff) | |
download | profani-tty-4683395aca05c396c5f8fa8ca56db3b761e16331.tar.gz |
Use mock_type() for casting mock()
Diffstat (limited to 'tests/unittests/config')
-rw-r--r-- | tests/unittests/config/stub_accounts.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unittests/config/stub_accounts.c b/tests/unittests/config/stub_accounts.c index e0489e0a..ddda2401 100644 --- a/tests/unittests/config/stub_accounts.c +++ b/tests/unittests/config/stub_accounts.c @@ -48,13 +48,13 @@ ProfAccount* accounts_get_account(const char * const name) gboolean accounts_enable(const char * const name) { check_expected(name); - return (gboolean)mock(); + return mock_type(gboolean); } gboolean accounts_disable(const char * const name) { check_expected(name); - return (gboolean)mock(); + return mock_type(gboolean); } gboolean accounts_rename(const char * const account_name, @@ -62,13 +62,13 @@ gboolean accounts_rename(const char * const account_name, { check_expected(account_name); check_expected(new_name); - return (gboolean)mock(); + return mock_type(gboolean); } gboolean accounts_account_exists(const char * const account_name) { check_expected(account_name); - return (gboolean)mock(); + return mock_type(gboolean); } void accounts_set_jid(const char * const account_name, const char * const value) @@ -148,7 +148,7 @@ char * accounts_get_last_status(const char * const account_name) resource_presence_t accounts_get_last_presence(const char * const account_name) { check_expected(account_name); - return (resource_presence_t)mock(); + return mock_type(resource_presence_t); } void accounts_set_priority_online(const char * const account_name, const gint value) |