2014-01-19 12:20:31 -05:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
2020-07-07 07:53:30 -04:00
|
|
|
#include <setjmp.h>
|
|
|
|
#include <cmocka.h>
|
2014-01-19 12:20:31 -05:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2020-07-07 07:53:30 -04:00
|
|
|
#include <glib.h>
|
2014-01-19 12:20:31 -05:00
|
|
|
|
|
|
|
#include "config/preferences.h"
|
|
|
|
|
2020-07-07 08:18:57 -04:00
|
|
|
void
|
|
|
|
statuses_console_defaults_to_all(void** state)
|
2014-01-19 12:20:31 -05:00
|
|
|
{
|
2020-07-07 08:18:57 -04:00
|
|
|
char* setting = prefs_get_string(PREF_STATUSES_CONSOLE);
|
2014-01-19 12:20:31 -05:00
|
|
|
|
|
|
|
assert_non_null(setting);
|
|
|
|
assert_string_equal("all", setting);
|
2020-07-02 05:31:54 -04:00
|
|
|
g_free(setting);
|
2014-01-19 12:20:31 -05:00
|
|
|
}
|
|
|
|
|
2020-07-07 08:18:57 -04:00
|
|
|
void
|
|
|
|
statuses_chat_defaults_to_all(void** state)
|
2014-01-19 12:20:31 -05:00
|
|
|
{
|
2020-07-07 08:18:57 -04:00
|
|
|
char* setting = prefs_get_string(PREF_STATUSES_CHAT);
|
2014-01-19 12:20:31 -05:00
|
|
|
|
|
|
|
assert_non_null(setting);
|
|
|
|
assert_string_equal("all", setting);
|
2020-07-02 05:31:54 -04:00
|
|
|
g_free(setting);
|
2014-01-19 12:20:31 -05:00
|
|
|
}
|
|
|
|
|
2020-07-07 08:18:57 -04:00
|
|
|
void
|
|
|
|
statuses_muc_defaults_to_all(void** state)
|
2014-01-19 12:20:31 -05:00
|
|
|
{
|
2020-07-07 08:18:57 -04:00
|
|
|
char* setting = prefs_get_string(PREF_STATUSES_MUC);
|
2014-01-19 12:20:31 -05:00
|
|
|
|
2014-03-15 18:25:15 -04:00
|
|
|
assert_non_null(setting);
|
|
|
|
assert_string_equal("all", setting);
|
2020-07-02 05:31:54 -04:00
|
|
|
g_free(setting);
|
2014-01-19 12:20:31 -05:00
|
|
|
}
|