Use will_return instead of mock values

This commit is contained in:
James Booth
2014-12-23 21:42:01 +00:00
parent 69fe6c4d21
commit 8c01021ab9
11 changed files with 30 additions and 125 deletions

View File

@@ -11,24 +11,6 @@
#include "helpers.h"
#include "config/preferences.h"
#include "ui/stub_ui.h"
#include "xmpp/stub_xmpp.h"
#include "config/stub_accounts.h"
void
pre_test(void **state)
{
reset_ui_mocks();
reset_xmpp_mocks();
reset_account_mocks();
}
void
post_test(void **state)
{
// nothing
}
void create_config_dir(void **state)
{
setenv("XDG_CONFIG_HOME", "./tests/files/xdg_config_home", 1);