/* rygel-user-config-test.c generated by valac 0.32.1, the Vala compiler
 * generated from rygel-user-config-test.vala, do not modify */

/*
 * Copyright (C) 2012 Intel Corporation
 *
 * Author: Krzesimir Nowak <krnowak@openismus.com>
 *
 * This file is part of Rygel.
 *
 * Rygel is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * Rygel is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

#include <glib.h>
#include <glib-object.h>
#include <gee.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gstdio.h>
#include <gobject/gvaluecollector.h>


#define RYGEL_TYPE_USER_CONFIG_TEST (rygel_user_config_test_get_type ())
#define RYGEL_USER_CONFIG_TEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_USER_CONFIG_TEST, RygelUserConfigTest))
#define RYGEL_USER_CONFIG_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_USER_CONFIG_TEST, RygelUserConfigTestClass))
#define RYGEL_IS_USER_CONFIG_TEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_USER_CONFIG_TEST))
#define RYGEL_IS_USER_CONFIG_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_USER_CONFIG_TEST))
#define RYGEL_USER_CONFIG_TEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_USER_CONFIG_TEST, RygelUserConfigTestClass))

typedef struct _RygelUserConfigTest RygelUserConfigTest;
typedef struct _RygelUserConfigTestClass RygelUserConfigTestClass;
typedef struct _RygelUserConfigTestPrivate RygelUserConfigTestPrivate;

#define RYGEL_TYPE_USER_CONFIG (rygel_user_config_get_type ())
#define RYGEL_USER_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_USER_CONFIG, RygelUserConfig))
#define RYGEL_USER_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_USER_CONFIG, RygelUserConfigClass))
#define RYGEL_IS_USER_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_USER_CONFIG))
#define RYGEL_IS_USER_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_USER_CONFIG))
#define RYGEL_USER_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_USER_CONFIG, RygelUserConfigClass))

typedef struct _RygelUserConfig RygelUserConfig;
typedef struct _RygelUserConfigClass RygelUserConfigClass;

#define RYGEL_USER_CONFIG_TEST_TYPE_WATCH_DATA (rygel_user_config_test_watch_data_get_type ())
#define RYGEL_USER_CONFIG_TEST_WATCH_DATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_USER_CONFIG_TEST_TYPE_WATCH_DATA, RygelUserConfigTestWatchData))
#define RYGEL_USER_CONFIG_TEST_WATCH_DATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_USER_CONFIG_TEST_TYPE_WATCH_DATA, RygelUserConfigTestWatchDataClass))
#define RYGEL_USER_CONFIG_TEST_IS_WATCH_DATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_USER_CONFIG_TEST_TYPE_WATCH_DATA))
#define RYGEL_USER_CONFIG_TEST_IS_WATCH_DATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_USER_CONFIG_TEST_TYPE_WATCH_DATA))
#define RYGEL_USER_CONFIG_TEST_WATCH_DATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_USER_CONFIG_TEST_TYPE_WATCH_DATA, RygelUserConfigTestWatchDataClass))

typedef struct _RygelUserConfigTestWatchData RygelUserConfigTestWatchData;
typedef struct _RygelUserConfigTestWatchDataClass RygelUserConfigTestWatchDataClass;

#define RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS (rygel_user_config_test_settings_get_type ())
#define RYGEL_USER_CONFIG_TEST_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS, RygelUserConfigTestSettings))
#define RYGEL_USER_CONFIG_TEST_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS, RygelUserConfigTestSettingsClass))
#define RYGEL_USER_CONFIG_TEST_IS_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS))
#define RYGEL_USER_CONFIG_TEST_IS_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS))
#define RYGEL_USER_CONFIG_TEST_SETTINGS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS, RygelUserConfigTestSettingsClass))

typedef struct _RygelUserConfigTestSettings RygelUserConfigTestSettings;
typedef struct _RygelUserConfigTestSettingsClass RygelUserConfigTestSettingsClass;
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _RygelUserConfigTestSettingsPrivate RygelUserConfigTestSettingsPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_key_file_unref0(var) ((var == NULL) ? NULL : (var = (g_key_file_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

#define RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_REMOVER (rygel_user_config_test_config_remover_get_type ())
#define RYGEL_USER_CONFIG_TEST_CONFIG_REMOVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_REMOVER, RygelUserConfigTestConfigRemover))
#define RYGEL_USER_CONFIG_TEST_CONFIG_REMOVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_REMOVER, RygelUserConfigTestConfigRemoverClass))
#define RYGEL_USER_CONFIG_TEST_IS_CONFIG_REMOVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_REMOVER))
#define RYGEL_USER_CONFIG_TEST_IS_CONFIG_REMOVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_REMOVER))
#define RYGEL_USER_CONFIG_TEST_CONFIG_REMOVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_REMOVER, RygelUserConfigTestConfigRemoverClass))

typedef struct _RygelUserConfigTestConfigRemover RygelUserConfigTestConfigRemover;
typedef struct _RygelUserConfigTestConfigRemoverClass RygelUserConfigTestConfigRemoverClass;
#define _rygel_user_config_test_config_remover_unref0(var) ((var == NULL) ? NULL : (var = (rygel_user_config_test_config_remover_unref (var), NULL)))

#define RYGEL_TYPE_CONFIGURATION (rygel_configuration_get_type ())
#define RYGEL_CONFIGURATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_CONFIGURATION, RygelConfiguration))
#define RYGEL_IS_CONFIGURATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_CONFIGURATION))
#define RYGEL_CONFIGURATION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), RYGEL_TYPE_CONFIGURATION, RygelConfigurationIface))

typedef struct _RygelConfiguration RygelConfiguration;
typedef struct _RygelConfigurationIface RygelConfigurationIface;

#define RYGEL_TYPE_CONFIGURATION_ENTRY (rygel_configuration_entry_get_type ())
typedef struct _RygelUserConfigTestWatchDataPrivate RygelUserConfigTestWatchDataPrivate;

#define RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_ACTION (rygel_user_config_test_settings_action_get_type ())
#define RYGEL_USER_CONFIG_TEST_SETTINGS_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_ACTION, RygelUserConfigTestSettingsAction))
#define RYGEL_USER_CONFIG_TEST_SETTINGS_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_ACTION, RygelUserConfigTestSettingsActionClass))
#define RYGEL_USER_CONFIG_TEST_IS_SETTINGS_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_ACTION))
#define RYGEL_USER_CONFIG_TEST_IS_SETTINGS_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_ACTION))
#define RYGEL_USER_CONFIG_TEST_SETTINGS_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_ACTION, RygelUserConfigTestSettingsActionClass))

typedef struct _RygelUserConfigTestSettingsAction RygelUserConfigTestSettingsAction;
typedef struct _RygelUserConfigTestSettingsActionClass RygelUserConfigTestSettingsActionClass;

#define RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_SET (rygel_user_config_test_config_set_get_type ())
#define RYGEL_USER_CONFIG_TEST_CONFIG_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_SET, RygelUserConfigTestConfigSet))
#define RYGEL_USER_CONFIG_TEST_CONFIG_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_SET, RygelUserConfigTestConfigSetClass))
#define RYGEL_USER_CONFIG_TEST_IS_CONFIG_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_SET))
#define RYGEL_USER_CONFIG_TEST_IS_CONFIG_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_SET))
#define RYGEL_USER_CONFIG_TEST_CONFIG_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_SET, RygelUserConfigTestConfigSetClass))

typedef struct _RygelUserConfigTestConfigSet RygelUserConfigTestConfigSet;
typedef struct _RygelUserConfigTestConfigSetClass RygelUserConfigTestConfigSetClass;

#define RYGEL_USER_CONFIG_TEST_TYPE_SECTION_MAP (rygel_user_config_test_section_map_get_type ())
#define RYGEL_USER_CONFIG_TEST_SECTION_MAP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SECTION_MAP, RygelUserConfigTestSectionMap))
#define RYGEL_USER_CONFIG_TEST_SECTION_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_USER_CONFIG_TEST_TYPE_SECTION_MAP, RygelUserConfigTestSectionMapClass))
#define RYGEL_USER_CONFIG_TEST_IS_SECTION_MAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SECTION_MAP))
#define RYGEL_USER_CONFIG_TEST_IS_SECTION_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_USER_CONFIG_TEST_TYPE_SECTION_MAP))
#define RYGEL_USER_CONFIG_TEST_SECTION_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SECTION_MAP, RygelUserConfigTestSectionMapClass))

typedef struct _RygelUserConfigTestSectionMap RygelUserConfigTestSectionMap;
typedef struct _RygelUserConfigTestSectionMapClass RygelUserConfigTestSectionMapClass;

#define RYGEL_USER_CONFIG_TEST_TYPE_SETTING_MAP (rygel_user_config_test_setting_map_get_type ())
#define RYGEL_USER_CONFIG_TEST_SETTING_MAP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SETTING_MAP, RygelUserConfigTestSettingMap))
#define RYGEL_USER_CONFIG_TEST_SETTING_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_USER_CONFIG_TEST_TYPE_SETTING_MAP, RygelUserConfigTestSettingMapClass))
#define RYGEL_USER_CONFIG_TEST_IS_SETTING_MAP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SETTING_MAP))
#define RYGEL_USER_CONFIG_TEST_IS_SETTING_MAP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_USER_CONFIG_TEST_TYPE_SETTING_MAP))
#define RYGEL_USER_CONFIG_TEST_SETTING_MAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SETTING_MAP, RygelUserConfigTestSettingMapClass))

typedef struct _RygelUserConfigTestSettingMap RygelUserConfigTestSettingMap;
typedef struct _RygelUserConfigTestSettingMapClass RygelUserConfigTestSettingMapClass;
typedef struct _RygelUserConfigTestConfigSetPrivate RygelUserConfigTestConfigSetPrivate;

#define RYGEL_TYPE_SECTION_ENTRY (rygel_section_entry_get_type ())
typedef struct _RygelUserConfigTestSectionMapPrivate RygelUserConfigTestSectionMapPrivate;
typedef struct _RygelUserConfigTestSettingMapPrivate RygelUserConfigTestSettingMapPrivate;

#define RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_DO_NOTHING (rygel_user_config_test_settings_do_nothing_get_type ())
#define RYGEL_USER_CONFIG_TEST_SETTINGS_DO_NOTHING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_DO_NOTHING, RygelUserConfigTestSettingsDoNothing))
#define RYGEL_USER_CONFIG_TEST_SETTINGS_DO_NOTHING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_DO_NOTHING, RygelUserConfigTestSettingsDoNothingClass))
#define RYGEL_USER_CONFIG_TEST_IS_SETTINGS_DO_NOTHING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_DO_NOTHING))
#define RYGEL_USER_CONFIG_TEST_IS_SETTINGS_DO_NOTHING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_DO_NOTHING))
#define RYGEL_USER_CONFIG_TEST_SETTINGS_DO_NOTHING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_DO_NOTHING, RygelUserConfigTestSettingsDoNothingClass))

typedef struct _RygelUserConfigTestSettingsDoNothing RygelUserConfigTestSettingsDoNothing;
typedef struct _RygelUserConfigTestSettingsDoNothingClass RygelUserConfigTestSettingsDoNothingClass;

#define RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_REPLACE (rygel_user_config_test_settings_replace_get_type ())
#define RYGEL_USER_CONFIG_TEST_SETTINGS_REPLACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_REPLACE, RygelUserConfigTestSettingsReplace))
#define RYGEL_USER_CONFIG_TEST_SETTINGS_REPLACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_REPLACE, RygelUserConfigTestSettingsReplaceClass))
#define RYGEL_USER_CONFIG_TEST_IS_SETTINGS_REPLACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_REPLACE))
#define RYGEL_USER_CONFIG_TEST_IS_SETTINGS_REPLACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_REPLACE))
#define RYGEL_USER_CONFIG_TEST_SETTINGS_REPLACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_REPLACE, RygelUserConfigTestSettingsReplaceClass))

typedef struct _RygelUserConfigTestSettingsReplace RygelUserConfigTestSettingsReplace;
typedef struct _RygelUserConfigTestSettingsReplaceClass RygelUserConfigTestSettingsReplaceClass;

#define RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_REMOVE (rygel_user_config_test_settings_remove_get_type ())
#define RYGEL_USER_CONFIG_TEST_SETTINGS_REMOVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_REMOVE, RygelUserConfigTestSettingsRemove))
#define RYGEL_USER_CONFIG_TEST_SETTINGS_REMOVE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_REMOVE, RygelUserConfigTestSettingsRemoveClass))
#define RYGEL_USER_CONFIG_TEST_IS_SETTINGS_REMOVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_REMOVE))
#define RYGEL_USER_CONFIG_TEST_IS_SETTINGS_REMOVE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_REMOVE))
#define RYGEL_USER_CONFIG_TEST_SETTINGS_REMOVE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_REMOVE, RygelUserConfigTestSettingsRemoveClass))

typedef struct _RygelUserConfigTestSettingsRemove RygelUserConfigTestSettingsRemove;
typedef struct _RygelUserConfigTestSettingsRemoveClass RygelUserConfigTestSettingsRemoveClass;
typedef struct _RygelUserConfigTestSettingsActionPrivate RygelUserConfigTestSettingsActionPrivate;
typedef struct _RygelUserConfigTestSettingsDoNothingPrivate RygelUserConfigTestSettingsDoNothingPrivate;
typedef struct _RygelUserConfigTestSettingsReplacePrivate RygelUserConfigTestSettingsReplacePrivate;
typedef struct _RygelUserConfigTestSettingsRemovePrivate RygelUserConfigTestSettingsRemovePrivate;
typedef struct _RygelUserConfigTestConfigRemoverPrivate RygelUserConfigTestConfigRemoverPrivate;
typedef struct _RygelUserConfigTestParamSpecConfigRemover RygelUserConfigTestParamSpecConfigRemover;
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

struct _RygelUserConfigTest {
	GObject parent_instance;
	RygelUserConfigTestPrivate * priv;
};

struct _RygelUserConfigTestClass {
	GObjectClass parent_class;
};

struct _RygelUserConfigTestPrivate {
	GMainLoop* main_loop;
	RygelUserConfig* config;
	gboolean fail;
	RygelUserConfigTestWatchData* current_watch_data;
	guint timeout_id;
	GeeHashMap* last_settings;
};

struct _RygelUserConfigTestSettings {
	GObject parent_instance;
	RygelUserConfigTestSettingsPrivate * priv;
	gchar* general_title;
	gboolean* general_enabled;
	gchar* general_iface;
	gint* general_port;
	gchar* foo_title;
	gboolean* foo_enabled;
	gboolean* foo_setting;
};

struct _RygelUserConfigTestSettingsClass {
	GObjectClass parent_class;
};

struct _RygelConfigurationIface {
	GTypeInterface parent_iface;
	gchar* (*get_interface) (RygelConfiguration* self, GError** error);
	gchar** (*get_interfaces) (RygelConfiguration* self, GError** error);
	gint (*get_port) (RygelConfiguration* self, GError** error);
	gboolean (*get_transcoding) (RygelConfiguration* self, GError** error);
	gboolean (*get_allow_upload) (RygelConfiguration* self, GError** error);
	gboolean (*get_allow_deletion) (RygelConfiguration* self, GError** error);
	gchar* (*get_log_levels) (RygelConfiguration* self, GError** error);
	gchar* (*get_plugin_path) (RygelConfiguration* self, GError** error);
	gchar* (*get_engine_path) (RygelConfiguration* self, GError** error);
	gchar* (*get_media_engine) (RygelConfiguration* self, GError** error);
	gchar* (*get_video_upload_folder) (RygelConfiguration* self, GError** error);
	gchar* (*get_music_upload_folder) (RygelConfiguration* self, GError** error);
	gchar* (*get_picture_upload_folder) (RygelConfiguration* self, GError** error);
	gboolean (*get_enabled) (RygelConfiguration* self, const gchar* section, GError** error);
	gchar* (*get_title) (RygelConfiguration* self, const gchar* section, GError** error);
	gchar* (*get_string) (RygelConfiguration* self, const gchar* section, const gchar* key, GError** error);
	GeeArrayList* (*get_string_list) (RygelConfiguration* self, const gchar* section, const gchar* key, GError** error);
	gint (*get_int) (RygelConfiguration* self, const gchar* section, const gchar* key, gint min, gint max, GError** error);
	GeeArrayList* (*get_int_list) (RygelConfiguration* self, const gchar* section, const gchar* key, GError** error);
	gboolean (*get_bool) (RygelConfiguration* self, const gchar* section, const gchar* key, GError** error);
};

typedef enum  {
	RYGEL_CONFIGURATION_ENTRY_INTERFACE,
	RYGEL_CONFIGURATION_ENTRY_PORT,
	RYGEL_CONFIGURATION_ENTRY_TRANSCODING,
	RYGEL_CONFIGURATION_ENTRY_ALLOW_UPLOAD,
	RYGEL_CONFIGURATION_ENTRY_ALLOW_DELETION,
	RYGEL_CONFIGURATION_ENTRY_LOG_LEVELS,
	RYGEL_CONFIGURATION_ENTRY_PLUGIN_PATH,
	RYGEL_CONFIGURATION_ENTRY_VIDEO_UPLOAD_FOLDER,
	RYGEL_CONFIGURATION_ENTRY_MUSIC_UPLOAD_FOLDER,
	RYGEL_CONFIGURATION_ENTRY_PICTURE_UPLOAD_FOLDER
} RygelConfigurationEntry;

struct _RygelUserConfigTestWatchData {
	GObject parent_instance;
	RygelUserConfigTestWatchDataPrivate * priv;
	gchar* description;
	RygelUserConfigTestSettingsAction* local_action;
	RygelUserConfigTestSettingsAction* system_action;
	RygelUserConfigTestConfigSet* expected_config_changes;
	RygelUserConfigTestSectionMap* expected_section_changes;
	RygelUserConfigTestSettingMap* expected_setting_changes;
};

struct _RygelUserConfigTestWatchDataClass {
	GObjectClass parent_class;
};

struct _RygelUserConfigTestConfigSet {
	GObject parent_instance;
	RygelUserConfigTestConfigSetPrivate * priv;
	GeeHashSet* gee;
};

struct _RygelUserConfigTestConfigSetClass {
	GObjectClass parent_class;
};

typedef enum  {
	RYGEL_SECTION_ENTRY_TITLE,
	RYGEL_SECTION_ENTRY_ENABLED
} RygelSectionEntry;

struct _RygelUserConfigTestSectionMap {
	GObject parent_instance;
	RygelUserConfigTestSectionMapPrivate * priv;
	GeeHashMap* gee;
};

struct _RygelUserConfigTestSectionMapClass {
	GObjectClass parent_class;
};

struct _RygelUserConfigTestSettingMap {
	GObject parent_instance;
	RygelUserConfigTestSettingMapPrivate * priv;
	GeeHashMap* gee;
};

struct _RygelUserConfigTestSettingMapClass {
	GObjectClass parent_class;
};

struct _RygelUserConfigTestSettingsAction {
	GObject parent_instance;
	RygelUserConfigTestSettingsActionPrivate * priv;
	RygelUserConfigTest* test;
};

struct _RygelUserConfigTestSettingsActionClass {
	GObjectClass parent_class;
	void (*perform) (RygelUserConfigTestSettingsAction* self, const gchar* config);
};

struct _RygelUserConfigTestSettingsDoNothing {
	RygelUserConfigTestSettingsAction parent_instance;
	RygelUserConfigTestSettingsDoNothingPrivate * priv;
};

struct _RygelUserConfigTestSettingsDoNothingClass {
	RygelUserConfigTestSettingsActionClass parent_class;
};

struct _RygelUserConfigTestSettingsReplace {
	RygelUserConfigTestSettingsAction parent_instance;
	RygelUserConfigTestSettingsReplacePrivate * priv;
};

struct _RygelUserConfigTestSettingsReplaceClass {
	RygelUserConfigTestSettingsActionClass parent_class;
};

struct _RygelUserConfigTestSettingsReplacePrivate {
	RygelUserConfigTestSettings* settings;
};

struct _RygelUserConfigTestSettingsRemove {
	RygelUserConfigTestSettingsAction parent_instance;
	RygelUserConfigTestSettingsRemovePrivate * priv;
};

struct _RygelUserConfigTestSettingsRemoveClass {
	RygelUserConfigTestSettingsActionClass parent_class;
};

struct _RygelUserConfigTestWatchDataPrivate {
	gboolean description_printed;
};

struct _RygelUserConfigTestConfigRemover {
	GTypeInstance parent_instance;
	volatile int ref_count;
	RygelUserConfigTestConfigRemoverPrivate * priv;
};

struct _RygelUserConfigTestConfigRemoverClass {
	GTypeClass parent_class;
	void (*finalize) (RygelUserConfigTestConfigRemover *self);
};

struct _RygelUserConfigTestConfigRemoverPrivate {
	RygelUserConfigTest* test;
};

struct _RygelUserConfigTestParamSpecConfigRemover {
	GParamSpec parent_instance;
};


static gpointer rygel_user_config_test_parent_class = NULL;
static gchar* rygel_user_config_test_LOCAL_CONFIG;
static gchar* rygel_user_config_test_LOCAL_CONFIG = NULL;
static gchar* rygel_user_config_test_SYSTEM_CONFIG;
static gchar* rygel_user_config_test_SYSTEM_CONFIG = NULL;
static gchar* rygel_user_config_test_GENERAL;
static gchar* rygel_user_config_test_GENERAL = NULL;
static gchar* rygel_user_config_test_FOO;
static gchar* rygel_user_config_test_FOO = NULL;
static gpointer rygel_user_config_test_config_set_parent_class = NULL;
static gpointer rygel_user_config_test_section_map_parent_class = NULL;
static gpointer rygel_user_config_test_setting_map_parent_class = NULL;
static gpointer rygel_user_config_test_settings_parent_class = NULL;
static gpointer rygel_user_config_test_settings_action_parent_class = NULL;
static gpointer rygel_user_config_test_settings_do_nothing_parent_class = NULL;
static gpointer rygel_user_config_test_settings_replace_parent_class = NULL;
static gpointer rygel_user_config_test_settings_remove_parent_class = NULL;
static gpointer rygel_user_config_test_watch_data_parent_class = NULL;
static gpointer rygel_user_config_test_config_remover_parent_class = NULL;

GType rygel_user_config_test_get_type (void) G_GNUC_CONST;
GType rygel_user_config_get_type (void) G_GNUC_CONST;
static GType rygel_user_config_test_watch_data_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static GType rygel_user_config_test_settings_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
#define RYGEL_USER_CONFIG_TEST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), RYGEL_TYPE_USER_CONFIG_TEST, RygelUserConfigTestPrivate))
enum  {
	RYGEL_USER_CONFIG_TEST_DUMMY_PROPERTY
};
static void rygel_user_config_test_set_config (RygelUserConfigTest* self, const gchar* path, RygelUserConfigTestSettings* settings, GError** error);
static void rygel_user_config_test_remove_config (RygelUserConfigTest* self, const gchar* path);
static RygelUserConfigTestSettings* rygel_user_config_test_settings_new (const gchar* general_title, gboolean* general_enabled, const gchar* general_iface, gint* general_port, const gchar* foo_title, gboolean* foo_enabled, gboolean* foo_setting);
static RygelUserConfigTestSettings* rygel_user_config_test_settings_construct (GType object_type, const gchar* general_title, gboolean* general_enabled, const gchar* general_iface, gint* general_port, const gchar* foo_title, gboolean* foo_enabled, gboolean* foo_setting);
RygelUserConfigTest* rygel_user_config_test_new (void);
RygelUserConfigTest* rygel_user_config_test_construct (GType object_type);
static void rygel_user_config_test_try_load (RygelUserConfigTest* self, gboolean expect_failure);
RygelUserConfig* rygel_user_config_new_with_paths (const gchar* local_path, const gchar* system_path, GError** error);
RygelUserConfig* rygel_user_config_construct_with_paths (GType object_type, const gchar* local_path, const gchar* system_path, GError** error);
static void rygel_user_config_test_test_loading (RygelUserConfigTest* self);
static gpointer rygel_user_config_test_config_remover_ref (gpointer instance);
static void rygel_user_config_test_config_remover_unref (gpointer instance);
static GParamSpec* rygel_user_config_test_param_spec_config_remover (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) G_GNUC_UNUSED;
static void rygel_user_config_test_value_set_config_remover (GValue* value, gpointer v_object) G_GNUC_UNUSED;
static void rygel_user_config_test_value_take_config_remover (GValue* value, gpointer v_object) G_GNUC_UNUSED;
static gpointer rygel_user_config_test_value_get_config_remover (const GValue* value) G_GNUC_UNUSED;
static GType rygel_user_config_test_config_remover_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static RygelUserConfigTestConfigRemover* rygel_user_config_test_config_remover_new (RygelUserConfigTest* test);
static RygelUserConfigTestConfigRemover* rygel_user_config_test_config_remover_construct (GType object_type, RygelUserConfigTest* test);
static void rygel_user_config_test_data_check (RygelUserConfigTest* self);
static gboolean rygel_user_config_test_watch_data_empty (RygelUserConfigTestWatchData* self);
GType rygel_configuration_get_type (void) G_GNUC_CONST;
GType rygel_configuration_entry_get_type (void) G_GNUC_CONST;
static void rygel_user_config_test_on_configuration_changed (RygelUserConfigTest* self, RygelConfiguration* config, RygelConfigurationEntry entry);
static GType rygel_user_config_test_settings_action_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
GType rygel_user_config_test_config_set_get_type (void) G_GNUC_CONST;
GType rygel_user_config_test_section_map_get_type (void) G_GNUC_CONST;
GType rygel_user_config_test_setting_map_get_type (void) G_GNUC_CONST;
static void rygel_user_config_test_watch_data_print_description (RygelUserConfigTestWatchData* self);
const gchar* rygel_configuration_entry_to_string (RygelConfigurationEntry self);
GType rygel_section_entry_get_type (void) G_GNUC_CONST;
static void rygel_user_config_test_on_section_changed (RygelUserConfigTest* self, RygelConfiguration* config, const gchar* section, RygelSectionEntry entry);
const gchar* rygel_section_entry_to_string (RygelSectionEntry self);
static void rygel_user_config_test_on_setting_changed (RygelUserConfigTest* self, RygelConfiguration* config, const gchar* section, const gchar* key);
static GeeArrayList* rygel_user_config_test_prepare_watch_data (RygelUserConfigTest* self);
static GType rygel_user_config_test_settings_do_nothing_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static RygelUserConfigTestSettingsDoNothing* rygel_user_config_test_settings_do_nothing_new (RygelUserConfigTest* test);
static RygelUserConfigTestSettingsDoNothing* rygel_user_config_test_settings_do_nothing_construct (GType object_type, RygelUserConfigTest* test);
static RygelUserConfigTestWatchData* rygel_user_config_test_watch_data_new_no_changes (const gchar* description, RygelUserConfigTestSettingsAction* local_action, RygelUserConfigTestSettingsAction* system_action);
static RygelUserConfigTestWatchData* rygel_user_config_test_watch_data_construct_no_changes (GType object_type, const gchar* description, RygelUserConfigTestSettingsAction* local_action, RygelUserConfigTestSettingsAction* system_action);
static GType rygel_user_config_test_settings_replace_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static RygelUserConfigTestSettingsReplace* rygel_user_config_test_settings_replace_new (RygelUserConfigTest* test, RygelUserConfigTestSettings* settings);
static RygelUserConfigTestSettingsReplace* rygel_user_config_test_settings_replace_construct (GType object_type, RygelUserConfigTest* test, RygelUserConfigTestSettings* settings);
RygelUserConfigTestConfigSet* rygel_user_config_test_config_set_new (void);
RygelUserConfigTestConfigSet* rygel_user_config_test_config_set_construct (GType object_type);
RygelUserConfigTestSectionMap* rygel_user_config_test_section_map_new (void);
RygelUserConfigTestSectionMap* rygel_user_config_test_section_map_construct (GType object_type);
GeeHashSet* rygel_user_config_test_section_map_new_values (RygelUserConfigTestSectionMap* self, const gchar* section);
RygelUserConfigTestSettingMap* rygel_user_config_test_setting_map_new (void);
RygelUserConfigTestSettingMap* rygel_user_config_test_setting_map_construct (GType object_type);
GeeHashSet* rygel_user_config_test_setting_map_new_values (RygelUserConfigTestSettingMap* self, const gchar* section);
static RygelUserConfigTestWatchData* rygel_user_config_test_watch_data_new (const gchar* description, RygelUserConfigTestSettingsAction* local_action, RygelUserConfigTestSettingsAction* system_action, RygelUserConfigTestConfigSet* expected_config_changes, RygelUserConfigTestSectionMap* expected_section_changes, RygelUserConfigTestSettingMap* expected_setting_changes);
static RygelUserConfigTestWatchData* rygel_user_config_test_watch_data_construct (GType object_type, const gchar* description, RygelUserConfigTestSettingsAction* local_action, RygelUserConfigTestSettingsAction* system_action, RygelUserConfigTestConfigSet* expected_config_changes, RygelUserConfigTestSectionMap* expected_section_changes, RygelUserConfigTestSettingMap* expected_setting_changes);
static RygelUserConfigTestSettings* rygel_user_config_test_settings_new_default (void);
static RygelUserConfigTestSettings* rygel_user_config_test_settings_construct_default (GType object_type);
static RygelUserConfigTestSettingsRemove* rygel_user_config_test_settings_remove_new (RygelUserConfigTest* test);
static RygelUserConfigTestSettingsRemove* rygel_user_config_test_settings_remove_construct (GType object_type, RygelUserConfigTest* test);
static GType rygel_user_config_test_settings_remove_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static void rygel_user_config_test_test_watching (RygelUserConfigTest* self);
static void _rygel_user_config_test_on_configuration_changed_rygel_configuration_configuration_changed (RygelConfiguration* _sender, RygelConfigurationEntry entry, gpointer self);
static void _rygel_user_config_test_on_section_changed_rygel_configuration_section_changed (RygelConfiguration* _sender, const gchar* section, RygelSectionEntry entry, gpointer self);
static void _rygel_user_config_test_on_setting_changed_rygel_configuration_setting_changed (RygelConfiguration* _sender, const gchar* section, const gchar* key, gpointer self);
static gboolean ____lambda6_ (RygelUserConfigTest* self);
static void rygel_user_config_test_watch_data_print_expectations (RygelUserConfigTestWatchData* self);
static gboolean _____lambda6__gsource_func (gpointer self);
static void rygel_user_config_test_watch_data_prepare_setup (RygelUserConfigTestWatchData* self);
gint rygel_user_config_test_run (RygelUserConfigTest* self, GError** error);
gint rygel_user_config_test_main (gchar** args, int args_length1);
enum  {
	RYGEL_USER_CONFIG_TEST_CONFIG_SET_DUMMY_PROPERTY
};
static void rygel_user_config_test_config_set_finalize (GObject* obj);
enum  {
	RYGEL_USER_CONFIG_TEST_SECTION_MAP_DUMMY_PROPERTY
};
static void rygel_user_config_test_section_map_finalize (GObject* obj);
enum  {
	RYGEL_USER_CONFIG_TEST_SETTING_MAP_DUMMY_PROPERTY
};
static void rygel_user_config_test_setting_map_finalize (GObject* obj);
enum  {
	RYGEL_USER_CONFIG_TEST_SETTINGS_DUMMY_PROPERTY
};
static void rygel_user_config_test_settings_initialize (RygelUserConfigTestSettings* self, const gchar* general_title, gboolean* general_enabled, const gchar* general_iface, gint* general_port, const gchar* foo_title, gboolean* foo_enabled, gboolean* foo_setting);
static gboolean* _bool_dup (gboolean* self);
static gint* _int_dup (gint* self);
static void rygel_user_config_test_settings_finalize (GObject* obj);
enum  {
	RYGEL_USER_CONFIG_TEST_SETTINGS_ACTION_DUMMY_PROPERTY
};
static RygelUserConfigTestSettingsAction* rygel_user_config_test_settings_action_construct (GType object_type, RygelUserConfigTest* test);
static void rygel_user_config_test_settings_action_perform (RygelUserConfigTestSettingsAction* self, const gchar* config);
static void rygel_user_config_test_settings_action_real_perform (RygelUserConfigTestSettingsAction* self, const gchar* config);
static void rygel_user_config_test_settings_action_finalize (GObject* obj);
enum  {
	RYGEL_USER_CONFIG_TEST_SETTINGS_DO_NOTHING_DUMMY_PROPERTY
};
static void rygel_user_config_test_settings_do_nothing_real_perform (RygelUserConfigTestSettingsAction* base, const gchar* config);
#define RYGEL_USER_CONFIG_TEST_SETTINGS_REPLACE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_REPLACE, RygelUserConfigTestSettingsReplacePrivate))
enum  {
	RYGEL_USER_CONFIG_TEST_SETTINGS_REPLACE_DUMMY_PROPERTY
};
static void rygel_user_config_test_settings_replace_real_perform (RygelUserConfigTestSettingsAction* base, const gchar* config);
static void rygel_user_config_test_settings_replace_finalize (GObject* obj);
enum  {
	RYGEL_USER_CONFIG_TEST_SETTINGS_REMOVE_DUMMY_PROPERTY
};
static void rygel_user_config_test_settings_remove_real_perform (RygelUserConfigTestSettingsAction* base, const gchar* config);
#define RYGEL_USER_CONFIG_TEST_WATCH_DATA_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), RYGEL_USER_CONFIG_TEST_TYPE_WATCH_DATA, RygelUserConfigTestWatchDataPrivate))
enum  {
	RYGEL_USER_CONFIG_TEST_WATCH_DATA_DUMMY_PROPERTY
};
static void rygel_user_config_test_watch_data_initialize (RygelUserConfigTestWatchData* self, const gchar* description, RygelUserConfigTestSettingsAction* local_action, RygelUserConfigTestSettingsAction* system_action, RygelUserConfigTestConfigSet* expected_config_changes, RygelUserConfigTestSectionMap* expected_section_changes, RygelUserConfigTestSettingMap* expected_setting_changes);
static void rygel_user_config_test_watch_data_finalize (GObject* obj);
#define RYGEL_USER_CONFIG_TEST_CONFIG_REMOVER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_REMOVER, RygelUserConfigTestConfigRemoverPrivate))
enum  {
	RYGEL_USER_CONFIG_TEST_CONFIG_REMOVER_DUMMY_PROPERTY
};
static void rygel_user_config_test_config_remover_finalize (RygelUserConfigTestConfigRemover* obj);
static void rygel_user_config_test_finalize (GObject* obj);


static void rygel_user_config_test_set_config (RygelUserConfigTest* self, const gchar* path, RygelUserConfigTestSettings* settings, GError** error) {
	GKeyFile* key_file = NULL;
	GKeyFile* _tmp0_ = NULL;
	GeeHashMap* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	RygelUserConfigTestSettings* _tmp3_ = NULL;
	RygelUserConfigTestSettings* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	RygelUserConfigTestSettings* _tmp10_ = NULL;
	gboolean* _tmp11_ = NULL;
	RygelUserConfigTestSettings* _tmp16_ = NULL;
	const gchar* _tmp17_ = NULL;
	RygelUserConfigTestSettings* _tmp22_ = NULL;
	gint* _tmp23_ = NULL;
	RygelUserConfigTestSettings* _tmp28_ = NULL;
	const gchar* _tmp29_ = NULL;
	RygelUserConfigTestSettings* _tmp34_ = NULL;
	gboolean* _tmp35_ = NULL;
	RygelUserConfigTestSettings* _tmp40_ = NULL;
	gboolean* _tmp41_ = NULL;
	gchar* tmp_path = NULL;
	const gchar* _tmp46_ = NULL;
	gchar* _tmp47_ = NULL;
	gsize size = 0UL;
	gchar* data = NULL;
	GKeyFile* _tmp48_ = NULL;
	gsize _tmp49_ = 0UL;
	gchar* _tmp50_ = NULL;
	const gchar* _tmp51_ = NULL;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (path != NULL);
	g_return_if_fail (settings != NULL);
	_tmp0_ = g_key_file_new ();
	key_file = _tmp0_;
	_tmp1_ = self->priv->last_settings;
	_tmp2_ = path;
	_tmp3_ = settings;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp1_, _tmp2_, _tmp3_);
	_tmp4_ = settings;
	_tmp5_ = _tmp4_->general_title;
	if (_tmp5_ != NULL) {
		GKeyFile* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		RygelUserConfigTestSettings* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
		_tmp6_ = key_file;
		_tmp7_ = rygel_user_config_test_GENERAL;
		_tmp8_ = settings;
		_tmp9_ = _tmp8_->general_title;
		g_key_file_set_string (_tmp6_, _tmp7_, "title", _tmp9_);
	}
	_tmp10_ = settings;
	_tmp11_ = _tmp10_->general_enabled;
	if (_tmp11_ != NULL) {
		GKeyFile* _tmp12_ = NULL;
		const gchar* _tmp13_ = NULL;
		RygelUserConfigTestSettings* _tmp14_ = NULL;
		gboolean* _tmp15_ = NULL;
		_tmp12_ = key_file;
		_tmp13_ = rygel_user_config_test_GENERAL;
		_tmp14_ = settings;
		_tmp15_ = _tmp14_->general_enabled;
		g_key_file_set_boolean (_tmp12_, _tmp13_, "enabled", *_tmp15_);
	}
	_tmp16_ = settings;
	_tmp17_ = _tmp16_->general_iface;
	if (_tmp17_ != NULL) {
		GKeyFile* _tmp18_ = NULL;
		const gchar* _tmp19_ = NULL;
		RygelUserConfigTestSettings* _tmp20_ = NULL;
		const gchar* _tmp21_ = NULL;
		_tmp18_ = key_file;
		_tmp19_ = rygel_user_config_test_GENERAL;
		_tmp20_ = settings;
		_tmp21_ = _tmp20_->general_iface;
		g_key_file_set_string (_tmp18_, _tmp19_, "interface", _tmp21_);
	}
	_tmp22_ = settings;
	_tmp23_ = _tmp22_->general_port;
	if (_tmp23_ != NULL) {
		GKeyFile* _tmp24_ = NULL;
		const gchar* _tmp25_ = NULL;
		RygelUserConfigTestSettings* _tmp26_ = NULL;
		gint* _tmp27_ = NULL;
		_tmp24_ = key_file;
		_tmp25_ = rygel_user_config_test_GENERAL;
		_tmp26_ = settings;
		_tmp27_ = _tmp26_->general_port;
		g_key_file_set_integer (_tmp24_, _tmp25_, "port", *_tmp27_);
	}
	_tmp28_ = settings;
	_tmp29_ = _tmp28_->foo_title;
	if (_tmp29_ != NULL) {
		GKeyFile* _tmp30_ = NULL;
		const gchar* _tmp31_ = NULL;
		RygelUserConfigTestSettings* _tmp32_ = NULL;
		const gchar* _tmp33_ = NULL;
		_tmp30_ = key_file;
		_tmp31_ = rygel_user_config_test_FOO;
		_tmp32_ = settings;
		_tmp33_ = _tmp32_->foo_title;
		g_key_file_set_string (_tmp30_, _tmp31_, "title", _tmp33_);
	}
	_tmp34_ = settings;
	_tmp35_ = _tmp34_->foo_enabled;
	if (_tmp35_ != NULL) {
		GKeyFile* _tmp36_ = NULL;
		const gchar* _tmp37_ = NULL;
		RygelUserConfigTestSettings* _tmp38_ = NULL;
		gboolean* _tmp39_ = NULL;
		_tmp36_ = key_file;
		_tmp37_ = rygel_user_config_test_FOO;
		_tmp38_ = settings;
		_tmp39_ = _tmp38_->foo_enabled;
		g_key_file_set_boolean (_tmp36_, _tmp37_, "enabled", *_tmp39_);
	}
	_tmp40_ = settings;
	_tmp41_ = _tmp40_->foo_setting;
	if (_tmp41_ != NULL) {
		GKeyFile* _tmp42_ = NULL;
		const gchar* _tmp43_ = NULL;
		RygelUserConfigTestSettings* _tmp44_ = NULL;
		gboolean* _tmp45_ = NULL;
		_tmp42_ = key_file;
		_tmp43_ = rygel_user_config_test_FOO;
		_tmp44_ = settings;
		_tmp45_ = _tmp44_->foo_setting;
		g_key_file_set_boolean (_tmp42_, _tmp43_, "setting", *_tmp45_);
	}
	_tmp46_ = path;
	_tmp47_ = g_strconcat (_tmp46_, ".tmp", NULL);
	tmp_path = _tmp47_;
	_tmp48_ = key_file;
	_tmp50_ = g_key_file_to_data (_tmp48_, &_tmp49_, NULL);
	size = _tmp49_;
	data = _tmp50_;
	g_file_set_contents (tmp_path, data, (gssize) size, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_propagate_error (error, _inner_error_);
		_g_free0 (data);
		_g_free0 (tmp_path);
		_g_key_file_unref0 (key_file);
		return;
	}
	_tmp51_ = path;
	g_rename (tmp_path, _tmp51_);
	_g_free0 (data);
	_g_free0 (tmp_path);
	_g_key_file_unref0 (key_file);
}


static void rygel_user_config_test_remove_config (RygelUserConfigTest* self, const gchar* path) {
	const gchar* _tmp0_ = NULL;
	GeeHashMap* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	RygelUserConfigTestSettings* _tmp3_ = NULL;
	RygelUserConfigTestSettings* _tmp4_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (path != NULL);
	_tmp0_ = path;
	g_unlink (_tmp0_);
	_tmp1_ = self->priv->last_settings;
	_tmp2_ = path;
	_tmp3_ = rygel_user_config_test_settings_new (NULL, NULL, NULL, NULL, NULL, NULL, NULL);
	_tmp4_ = _tmp3_;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp1_, _tmp2_, _tmp4_);
	_g_object_unref0 (_tmp4_);
}


RygelUserConfigTest* rygel_user_config_test_construct (GType object_type) {
	RygelUserConfigTest * self = NULL;
	GMainLoop* _tmp0_ = NULL;
	GeeHashMap* _tmp1_ = NULL;
	GeeHashMap* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	RygelUserConfigTestSettings* _tmp4_ = NULL;
	RygelUserConfigTestSettings* _tmp5_ = NULL;
	GeeHashMap* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	RygelUserConfigTestSettings* _tmp8_ = NULL;
	RygelUserConfigTestSettings* _tmp9_ = NULL;
	self = (RygelUserConfigTest*) g_object_new (object_type, NULL);
	_tmp0_ = g_main_loop_new (NULL, FALSE);
	_g_main_loop_unref0 (self->priv->main_loop);
	self->priv->main_loop = _tmp0_;
	self->priv->fail = FALSE;
	self->priv->timeout_id = (guint) 0;
	_tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
	_g_object_unref0 (self->priv->last_settings);
	self->priv->last_settings = _tmp1_;
	_tmp2_ = self->priv->last_settings;
	_tmp3_ = rygel_user_config_test_LOCAL_CONFIG;
	_tmp4_ = rygel_user_config_test_settings_new (NULL, NULL, NULL, NULL, NULL, NULL, NULL);
	_tmp5_ = _tmp4_;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp2_, _tmp3_, _tmp5_);
	_g_object_unref0 (_tmp5_);
	_tmp6_ = self->priv->last_settings;
	_tmp7_ = rygel_user_config_test_SYSTEM_CONFIG;
	_tmp8_ = rygel_user_config_test_settings_new (NULL, NULL, NULL, NULL, NULL, NULL, NULL);
	_tmp9_ = _tmp8_;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp6_, _tmp7_, _tmp9_);
	_g_object_unref0 (_tmp9_);
	return self;
}


RygelUserConfigTest* rygel_user_config_test_new (void) {
	return rygel_user_config_test_construct (RYGEL_TYPE_USER_CONFIG_TEST);
}


static void rygel_user_config_test_try_load (RygelUserConfigTest* self, gboolean expect_failure) {
	gboolean failed = FALSE;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	failed = FALSE;
	{
		RygelUserConfig* config = NULL;
		const gchar* _tmp0_ = NULL;
		const gchar* _tmp1_ = NULL;
		RygelUserConfig* _tmp2_ = NULL;
		_tmp0_ = rygel_user_config_test_LOCAL_CONFIG;
		_tmp1_ = rygel_user_config_test_SYSTEM_CONFIG;
		_tmp2_ = rygel_user_config_new_with_paths (_tmp0_, _tmp1_, &_inner_error_);
		config = _tmp2_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			goto __catch13_g_error;
		}
		_vala_assert (config != NULL, "config != null");
		_g_object_unref0 (config);
	}
	goto __finally13;
	__catch13_g_error:
	{
		GError* e = NULL;
		e = _inner_error_;
		_inner_error_ = NULL;
		failed = TRUE;
		_g_error_free0 (e);
	}
	__finally13:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return;
	}
	_tmp3_ = expect_failure;
	_tmp4_ = failed;
	if (_tmp3_ != _tmp4_) {
		const gchar* _tmp5_ = NULL;
		gboolean _tmp6_ = FALSE;
		_tmp6_ = expect_failure;
		if (_tmp6_) {
			_tmp5_ = "success";
		} else {
			_tmp5_ = "failure";
		}
		g_warning ("rygel-user-config-test.vala:351: Unexpected %s of UserConfig creation.", _tmp5_);
		self->priv->fail = TRUE;
	}
}


static void rygel_user_config_test_test_loading (RygelUserConfigTest* self) {
	RygelUserConfigTestConfigRemover* remover = NULL;
	RygelUserConfigTestConfigRemover* _tmp0_ = NULL;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = rygel_user_config_test_config_remover_new (self);
	remover = _tmp0_;
	_vala_assert (remover != NULL, "remover != null");
	{
		const gchar* _tmp1_ = NULL;
		RygelUserConfigTestSettings* _tmp2_ = NULL;
		RygelUserConfigTestSettings* _tmp3_ = NULL;
		_tmp1_ = rygel_user_config_test_LOCAL_CONFIG;
		_tmp2_ = rygel_user_config_test_settings_new (NULL, NULL, NULL, NULL, NULL, NULL, NULL);
		_tmp3_ = _tmp2_;
		rygel_user_config_test_set_config (self, _tmp1_, _tmp3_, &_inner_error_);
		_g_object_unref0 (_tmp3_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			goto __catch14_g_error;
		}
	}
	goto __finally14;
	__catch14_g_error:
	{
		GError* _error_ = NULL;
		_error_ = _inner_error_;
		_inner_error_ = NULL;
		g_assert_not_reached ();
		_g_error_free0 (_error_);
	}
	__finally14:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		_rygel_user_config_test_config_remover_unref0 (remover);
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return;
	}
	{
		const gchar* _tmp4_ = NULL;
		RygelUserConfigTestSettings* _tmp5_ = NULL;
		RygelUserConfigTestSettings* _tmp6_ = NULL;
		_tmp4_ = rygel_user_config_test_SYSTEM_CONFIG;
		_tmp5_ = rygel_user_config_test_settings_new (NULL, NULL, NULL, NULL, NULL, NULL, NULL);
		_tmp6_ = _tmp5_;
		rygel_user_config_test_set_config (self, _tmp4_, _tmp6_, &_inner_error_);
		_g_object_unref0 (_tmp6_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			goto __catch15_g_error;
		}
	}
	goto __finally15;
	__catch15_g_error:
	{
		GError* _error_ = NULL;
		_error_ = _inner_error_;
		_inner_error_ = NULL;
		g_assert_not_reached ();
		_g_error_free0 (_error_);
	}
	__finally15:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		_rygel_user_config_test_config_remover_unref0 (remover);
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return;
	}
	rygel_user_config_test_try_load (self, FALSE);
	_tmp7_ = rygel_user_config_test_LOCAL_CONFIG;
	rygel_user_config_test_remove_config (self, _tmp7_);
	rygel_user_config_test_try_load (self, FALSE);
	_tmp8_ = rygel_user_config_test_SYSTEM_CONFIG;
	rygel_user_config_test_remove_config (self, _tmp8_);
	rygel_user_config_test_try_load (self, TRUE);
	_rygel_user_config_test_config_remover_unref0 (remover);
}


static void rygel_user_config_test_data_check (RygelUserConfigTest* self) {
	RygelUserConfigTestWatchData* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->current_watch_data;
	_tmp1_ = rygel_user_config_test_watch_data_empty (_tmp0_);
	if (_tmp1_) {
		guint _tmp2_ = 0U;
		GMainLoop* _tmp4_ = NULL;
		_tmp2_ = self->priv->timeout_id;
		if (_tmp2_ != ((guint) 0)) {
			guint _tmp3_ = 0U;
			_tmp3_ = self->priv->timeout_id;
			g_source_remove (_tmp3_);
			self->priv->timeout_id = (guint) 0;
		}
		_tmp4_ = self->priv->main_loop;
		g_main_loop_quit (_tmp4_);
	}
}


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


static void rygel_user_config_test_on_configuration_changed (RygelUserConfigTest* self, RygelConfiguration* config, RygelConfigurationEntry entry) {
	GeeHashSet* changes = NULL;
	RygelUserConfigTestWatchData* _tmp0_ = NULL;
	RygelUserConfigTestConfigSet* _tmp1_ = NULL;
	GeeHashSet* _tmp2_ = NULL;
	GeeHashSet* _tmp3_ = NULL;
	GeeHashSet* _tmp4_ = NULL;
	RygelConfigurationEntry _tmp5_ = 0;
	gboolean _tmp6_ = FALSE;
	g_return_if_fail (self != NULL);
	g_return_if_fail (config != NULL);
	_tmp0_ = self->priv->current_watch_data;
	_tmp1_ = _tmp0_->expected_config_changes;
	_tmp2_ = _tmp1_->gee;
	_tmp3_ = _g_object_ref0 (_tmp2_);
	changes = _tmp3_;
	_tmp4_ = changes;
	_tmp5_ = entry;
	_tmp6_ = gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp4_, (gpointer) ((gintptr) _tmp5_));
	if (_tmp6_) {
		rygel_user_config_test_data_check (self);
	} else {
		RygelUserConfigTestWatchData* _tmp7_ = NULL;
		RygelConfigurationEntry _tmp8_ = 0;
		GEnumValue* _tmp9_;
		_tmp7_ = self->priv->current_watch_data;
		rygel_user_config_test_watch_data_print_description (_tmp7_);
		_tmp8_ = entry;
		_tmp9_ = g_enum_get_value (g_type_class_ref (RYGEL_TYPE_CONFIGURATION_ENTRY), _tmp8_);
		g_warning ("rygel-user-config-test.vala:416: Unexpected change of configuration en" \
"try: %s", (_tmp9_ != NULL) ? _tmp9_->value_name : NULL);
		self->priv->fail = TRUE;
	}
	_g_object_unref0 (changes);
}


static void rygel_user_config_test_on_section_changed (RygelUserConfigTest* self, RygelConfiguration* config, const gchar* section, RygelSectionEntry entry) {
	GeeHashMap* changes = NULL;
	RygelUserConfigTestWatchData* _tmp0_ = NULL;
	RygelUserConfigTestSectionMap* _tmp1_ = NULL;
	GeeHashMap* _tmp2_ = NULL;
	GeeHashMap* _tmp3_ = NULL;
	GeeHashMap* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
	g_return_if_fail (self != NULL);
	g_return_if_fail (config != NULL);
	g_return_if_fail (section != NULL);
	_tmp0_ = self->priv->current_watch_data;
	_tmp1_ = _tmp0_->expected_section_changes;
	_tmp2_ = _tmp1_->gee;
	_tmp3_ = _g_object_ref0 (_tmp2_);
	changes = _tmp3_;
	_tmp4_ = changes;
	_tmp5_ = section;
	_tmp6_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp4_, _tmp5_);
	if (_tmp6_) {
		GeeHashSet* entries = NULL;
		GeeHashMap* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
		gpointer _tmp9_ = NULL;
		GeeHashSet* _tmp10_ = NULL;
		RygelSectionEntry _tmp11_ = 0;
		gboolean _tmp12_ = FALSE;
		_tmp7_ = changes;
		_tmp8_ = section;
		_tmp9_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp7_, _tmp8_);
		entries = (GeeHashSet*) _tmp9_;
		_tmp10_ = entries;
		_tmp11_ = entry;
		_tmp12_ = gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp10_, (gpointer) ((gintptr) _tmp11_));
		if (_tmp12_) {
			GeeHashSet* _tmp13_ = NULL;
			gint _tmp14_ = 0;
			gint _tmp15_ = 0;
			_tmp13_ = entries;
			_tmp14_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp13_);
			_tmp15_ = _tmp14_;
			if (_tmp15_ == 0) {
				GeeHashMap* _tmp16_ = NULL;
				const gchar* _tmp17_ = NULL;
				_tmp16_ = changes;
				_tmp17_ = section;
				gee_abstract_map_unset ((GeeAbstractMap*) _tmp16_, _tmp17_, NULL);
			}
			rygel_user_config_test_data_check (self);
		} else {
			RygelUserConfigTestWatchData* _tmp18_ = NULL;
			const gchar* _tmp19_ = NULL;
			RygelSectionEntry _tmp20_ = 0;
			GEnumValue* _tmp21_;
			_tmp18_ = self->priv->current_watch_data;
			rygel_user_config_test_watch_data_print_description (_tmp18_);
			_tmp19_ = section;
			_tmp20_ = entry;
			_tmp21_ = g_enum_get_value (g_type_class_ref (RYGEL_TYPE_SECTION_ENTRY), _tmp20_);
			g_warning ("Unexpected change in expected section: %s, " "unexpected entry: %s.", _tmp19_, (_tmp21_ != NULL) ? _tmp21_->value_name : NULL);
			self->priv->fail = TRUE;
		}
		_g_object_unref0 (entries);
	} else {
		RygelUserConfigTestWatchData* _tmp22_ = NULL;
		const gchar* _tmp23_ = NULL;
		RygelSectionEntry _tmp24_ = 0;
		GEnumValue* _tmp25_;
		_tmp22_ = self->priv->current_watch_data;
		rygel_user_config_test_watch_data_print_description (_tmp22_);
		_tmp23_ = section;
		_tmp24_ = entry;
		_tmp25_ = g_enum_get_value (g_type_class_ref (RYGEL_TYPE_SECTION_ENTRY), _tmp24_);
		g_warning ("rygel-user-config-test.vala:445: Unexpected change in unexpected secti" \
"on: %s, entry %s.", _tmp23_, (_tmp25_ != NULL) ? _tmp25_->value_name : NULL);
		self->priv->fail = TRUE;
	}
	_g_object_unref0 (changes);
}


static void rygel_user_config_test_on_setting_changed (RygelUserConfigTest* self, RygelConfiguration* config, const gchar* section, const gchar* key) {
	GeeHashMap* changes = NULL;
	RygelUserConfigTestWatchData* _tmp0_ = NULL;
	RygelUserConfigTestSettingMap* _tmp1_ = NULL;
	GeeHashMap* _tmp2_ = NULL;
	GeeHashMap* _tmp3_ = NULL;
	GeeHashMap* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
	g_return_if_fail (self != NULL);
	g_return_if_fail (config != NULL);
	g_return_if_fail (section != NULL);
	g_return_if_fail (key != NULL);
	_tmp0_ = self->priv->current_watch_data;
	_tmp1_ = _tmp0_->expected_setting_changes;
	_tmp2_ = _tmp1_->gee;
	_tmp3_ = _g_object_ref0 (_tmp2_);
	changes = _tmp3_;
	_tmp4_ = changes;
	_tmp5_ = section;
	_tmp6_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp4_, _tmp5_);
	if (_tmp6_) {
		GeeHashSet* keys = NULL;
		GeeHashMap* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
		gpointer _tmp9_ = NULL;
		GeeHashSet* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
		gboolean _tmp12_ = FALSE;
		_tmp7_ = changes;
		_tmp8_ = section;
		_tmp9_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp7_, _tmp8_);
		keys = (GeeHashSet*) _tmp9_;
		_tmp10_ = keys;
		_tmp11_ = key;
		_tmp12_ = gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp10_, _tmp11_);
		if (_tmp12_) {
			GeeHashSet* _tmp13_ = NULL;
			gint _tmp14_ = 0;
			gint _tmp15_ = 0;
			_tmp13_ = keys;
			_tmp14_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp13_);
			_tmp15_ = _tmp14_;
			if (_tmp15_ == 0) {
				GeeHashMap* _tmp16_ = NULL;
				const gchar* _tmp17_ = NULL;
				_tmp16_ = changes;
				_tmp17_ = section;
				gee_abstract_map_unset ((GeeAbstractMap*) _tmp16_, _tmp17_, NULL);
			}
			rygel_user_config_test_data_check (self);
		} else {
			RygelUserConfigTestWatchData* _tmp18_ = NULL;
			const gchar* _tmp19_ = NULL;
			const gchar* _tmp20_ = NULL;
			_tmp18_ = self->priv->current_watch_data;
			rygel_user_config_test_watch_data_print_description (_tmp18_);
			_tmp19_ = section;
			_tmp20_ = key;
			g_warning ("Unexpected change in expected setting section: %s, " "unexpected setting key: %s.", _tmp19_, _tmp20_);
			self->priv->fail = TRUE;
		}
		_g_object_unref0 (keys);
	} else {
		RygelUserConfigTestWatchData* _tmp21_ = NULL;
		const gchar* _tmp22_ = NULL;
		const gchar* _tmp23_ = NULL;
		_tmp21_ = self->priv->current_watch_data;
		rygel_user_config_test_watch_data_print_description (_tmp21_);
		_tmp22_ = section;
		_tmp23_ = key;
		g_warning ("Unexpected change in unexpected setting section: %s, " "setting key: %s", _tmp22_, _tmp23_);
		self->priv->fail = TRUE;
	}
	_g_object_unref0 (changes);
}


static GeeArrayList* rygel_user_config_test_prepare_watch_data (RygelUserConfigTest* self) {
	GeeArrayList* result = NULL;
	GeeArrayList* data = NULL;
	GeeArrayList* _tmp0_ = NULL;
	RygelUserConfigTestSettingsDoNothing* do_nothing = NULL;
	RygelUserConfigTestSettingsDoNothing* _tmp1_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = gee_array_list_new (RYGEL_USER_CONFIG_TEST_TYPE_WATCH_DATA, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
	data = _tmp0_;
	_tmp1_ = rygel_user_config_test_settings_do_nothing_new (self);
	do_nothing = _tmp1_;
	{
		gchar* desc = NULL;
		gchar* _tmp2_ = NULL;
		RygelUserConfigTestWatchData* _tmp3_ = NULL;
		RygelUserConfigTestWatchData* _tmp4_ = NULL;
		_tmp2_ = g_strdup ("change nothing, expect no changes");
		desc = _tmp2_;
		_tmp3_ = rygel_user_config_test_watch_data_new_no_changes (desc, (RygelUserConfigTestSettingsAction*) do_nothing, (RygelUserConfigTestSettingsAction*) do_nothing);
		_tmp4_ = _tmp3_;
		gee_abstract_collection_add ((GeeAbstractCollection*) data, _tmp4_);
		_g_object_unref0 (_tmp4_);
		_g_free0 (desc);
	}
	{
		gchar* desc = NULL;
		gchar* _tmp5_ = NULL;
		RygelUserConfigTestSettingsReplace* last_local = NULL;
		GeeHashMap* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gpointer _tmp8_ = NULL;
		RygelUserConfigTestSettings* _tmp9_ = NULL;
		RygelUserConfigTestSettingsReplace* _tmp10_ = NULL;
		RygelUserConfigTestSettingsReplace* _tmp11_ = NULL;
		RygelUserConfigTestSettingsReplace* last_system = NULL;
		GeeHashMap* _tmp12_ = NULL;
		const gchar* _tmp13_ = NULL;
		gpointer _tmp14_ = NULL;
		RygelUserConfigTestSettings* _tmp15_ = NULL;
		RygelUserConfigTestSettingsReplace* _tmp16_ = NULL;
		RygelUserConfigTestSettingsReplace* _tmp17_ = NULL;
		RygelUserConfigTestWatchData* _tmp18_ = NULL;
		RygelUserConfigTestWatchData* _tmp19_ = NULL;
		_tmp5_ = g_strdup ("set new config but with the same contents as before, " "expect no changes");
		desc = _tmp5_;
		_tmp6_ = self->priv->last_settings;
		_tmp7_ = rygel_user_config_test_LOCAL_CONFIG;
		_tmp8_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp6_, _tmp7_);
		_tmp9_ = (RygelUserConfigTestSettings*) _tmp8_;
		_tmp10_ = rygel_user_config_test_settings_replace_new (self, _tmp9_);
		_tmp11_ = _tmp10_;
		_g_object_unref0 (_tmp9_);
		last_local = _tmp11_;
		_tmp12_ = self->priv->last_settings;
		_tmp13_ = rygel_user_config_test_SYSTEM_CONFIG;
		_tmp14_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp12_, _tmp13_);
		_tmp15_ = (RygelUserConfigTestSettings*) _tmp14_;
		_tmp16_ = rygel_user_config_test_settings_replace_new (self, _tmp15_);
		_tmp17_ = _tmp16_;
		_g_object_unref0 (_tmp15_);
		last_system = _tmp17_;
		_tmp18_ = rygel_user_config_test_watch_data_new_no_changes (desc, (RygelUserConfigTestSettingsAction*) last_local, (RygelUserConfigTestSettingsAction*) last_system);
		_tmp19_ = _tmp18_;
		gee_abstract_collection_add ((GeeAbstractCollection*) data, _tmp19_);
		_g_object_unref0 (_tmp19_);
		_g_object_unref0 (last_system);
		_g_object_unref0 (last_local);
		_g_free0 (desc);
	}
	{
		gchar* desc = NULL;
		gchar* _tmp20_ = NULL;
		RygelUserConfigTestSettingsReplace* empty = NULL;
		RygelUserConfigTestSettings* _tmp21_ = NULL;
		RygelUserConfigTestSettings* _tmp22_ = NULL;
		RygelUserConfigTestSettingsReplace* _tmp23_ = NULL;
		RygelUserConfigTestSettingsReplace* _tmp24_ = NULL;
		RygelUserConfigTestWatchData* _tmp25_ = NULL;
		RygelUserConfigTestWatchData* _tmp26_ = NULL;
		_tmp20_ = g_strdup ("set empty system config, expect no changes");
		desc = _tmp20_;
		_tmp21_ = rygel_user_config_test_settings_new (NULL, NULL, NULL, NULL, NULL, NULL, NULL);
		_tmp22_ = _tmp21_;
		_tmp23_ = rygel_user_config_test_settings_replace_new (self, _tmp22_);
		_tmp24_ = _tmp23_;
		_g_object_unref0 (_tmp22_);
		empty = _tmp24_;
		_tmp25_ = rygel_user_config_test_watch_data_new_no_changes (desc, (RygelUserConfigTestSettingsAction*) do_nothing, (RygelUserConfigTestSettingsAction*) empty);
		_tmp26_ = _tmp25_;
		gee_abstract_collection_add ((GeeAbstractCollection*) data, _tmp26_);
		_g_object_unref0 (_tmp26_);
		_g_object_unref0 (empty);
		_g_free0 (desc);
	}
	{
		gchar* desc = NULL;
		gchar* _tmp27_ = NULL;
		RygelUserConfigTestConfigSet* config = NULL;
		RygelUserConfigTestConfigSet* _tmp28_ = NULL;
		GeeHashSet* _tmp29_ = NULL;
		GeeHashSet* _tmp30_ = NULL;
		RygelUserConfigTestSectionMap* section = NULL;
		RygelUserConfigTestSectionMap* _tmp31_ = NULL;
		GeeHashSet* general_section = NULL;
		const gchar* _tmp32_ = NULL;
		GeeHashSet* _tmp33_ = NULL;
		GeeHashSet* foo_section = NULL;
		const gchar* _tmp34_ = NULL;
		GeeHashSet* _tmp35_ = NULL;
		RygelUserConfigTestSettingMap* setting = NULL;
		RygelUserConfigTestSettingMap* _tmp36_ = NULL;
		GeeHashSet* foo_setting = NULL;
		const gchar* _tmp37_ = NULL;
		GeeHashSet* _tmp38_ = NULL;
		RygelUserConfigTestSettingsReplace* new_local = NULL;
		gboolean _tmp39_ = FALSE;
		gint _tmp40_ = 0;
		gboolean _tmp41_ = FALSE;
		gboolean _tmp42_ = FALSE;
		RygelUserConfigTestSettings* _tmp43_ = NULL;
		RygelUserConfigTestSettings* _tmp44_ = NULL;
		RygelUserConfigTestSettingsReplace* _tmp45_ = NULL;
		RygelUserConfigTestSettingsReplace* _tmp46_ = NULL;
		RygelUserConfigTestWatchData* _tmp47_ = NULL;
		RygelUserConfigTestWatchData* _tmp48_ = NULL;
		_tmp27_ = g_strdup ("change all possible values in local config, expect " "lots of changes");
		desc = _tmp27_;
		_tmp28_ = rygel_user_config_test_config_set_new ();
		config = _tmp28_;
		_tmp29_ = config->gee;
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp29_, (gpointer) ((gintptr) RYGEL_CONFIGURATION_ENTRY_INTERFACE));
		_tmp30_ = config->gee;
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp30_, (gpointer) ((gintptr) RYGEL_CONFIGURATION_ENTRY_PORT));
		_tmp31_ = rygel_user_config_test_section_map_new ();
		section = _tmp31_;
		_tmp32_ = rygel_user_config_test_GENERAL;
		_tmp33_ = rygel_user_config_test_section_map_new_values (section, _tmp32_);
		general_section = _tmp33_;
		_tmp34_ = rygel_user_config_test_FOO;
		_tmp35_ = rygel_user_config_test_section_map_new_values (section, _tmp34_);
		foo_section = _tmp35_;
		gee_abstract_collection_add ((GeeAbstractCollection*) general_section, (gpointer) ((gintptr) RYGEL_SECTION_ENTRY_TITLE));
		gee_abstract_collection_add ((GeeAbstractCollection*) general_section, (gpointer) ((gintptr) RYGEL_SECTION_ENTRY_ENABLED));
		gee_abstract_collection_add ((GeeAbstractCollection*) foo_section, (gpointer) ((gintptr) RYGEL_SECTION_ENTRY_TITLE));
		gee_abstract_collection_add ((GeeAbstractCollection*) foo_section, (gpointer) ((gintptr) RYGEL_SECTION_ENTRY_ENABLED));
		_tmp36_ = rygel_user_config_test_setting_map_new ();
		setting = _tmp36_;
		_tmp37_ = rygel_user_config_test_FOO;
		_tmp38_ = rygel_user_config_test_setting_map_new_values (setting, _tmp37_);
		foo_setting = _tmp38_;
		gee_abstract_collection_add ((GeeAbstractCollection*) foo_setting, "setting");
		_tmp39_ = FALSE;
		_tmp40_ = 13;
		_tmp41_ = FALSE;
		_tmp42_ = FALSE;
		_tmp43_ = rygel_user_config_test_settings_new ("Changed!", &_tmp39_, "Changed!", &_tmp40_, "Changed!", &_tmp41_, &_tmp42_);
		_tmp44_ = _tmp43_;
		_tmp45_ = rygel_user_config_test_settings_replace_new (self, _tmp44_);
		_tmp46_ = _tmp45_;
		_g_object_unref0 (_tmp44_);
		new_local = _tmp46_;
		_tmp47_ = rygel_user_config_test_watch_data_new (desc, (RygelUserConfigTestSettingsAction*) new_local, (RygelUserConfigTestSettingsAction*) do_nothing, config, section, setting);
		_tmp48_ = _tmp47_;
		gee_abstract_collection_add ((GeeAbstractCollection*) data, _tmp48_);
		_g_object_unref0 (_tmp48_);
		_g_object_unref0 (new_local);
		_g_object_unref0 (foo_setting);
		_g_object_unref0 (setting);
		_g_object_unref0 (foo_section);
		_g_object_unref0 (general_section);
		_g_object_unref0 (section);
		_g_object_unref0 (config);
		_g_free0 (desc);
	}
	{
		gchar* desc = NULL;
		gchar* _tmp49_ = NULL;
		RygelUserConfigTestSettingsReplace* system_default = NULL;
		RygelUserConfigTestSettings* _tmp50_ = NULL;
		RygelUserConfigTestSettings* _tmp51_ = NULL;
		RygelUserConfigTestSettingsReplace* _tmp52_ = NULL;
		RygelUserConfigTestSettingsReplace* _tmp53_ = NULL;
		RygelUserConfigTestWatchData* _tmp54_ = NULL;
		RygelUserConfigTestWatchData* _tmp55_ = NULL;
		_tmp49_ = g_strdup ("add system config back, expect no changes");
		desc = _tmp49_;
		_tmp50_ = rygel_user_config_test_settings_new_default ();
		_tmp51_ = _tmp50_;
		_tmp52_ = rygel_user_config_test_settings_replace_new (self, _tmp51_);
		_tmp53_ = _tmp52_;
		_g_object_unref0 (_tmp51_);
		system_default = _tmp53_;
		_tmp54_ = rygel_user_config_test_watch_data_new_no_changes (desc, (RygelUserConfigTestSettingsAction*) do_nothing, (RygelUserConfigTestSettingsAction*) system_default);
		_tmp55_ = _tmp54_;
		gee_abstract_collection_add ((GeeAbstractCollection*) data, _tmp55_);
		_g_object_unref0 (_tmp55_);
		_g_object_unref0 (system_default);
		_g_free0 (desc);
	}
	{
		gchar* desc = NULL;
		gchar* _tmp56_ = NULL;
		RygelUserConfigTestConfigSet* config = NULL;
		RygelUserConfigTestConfigSet* _tmp57_ = NULL;
		GeeHashSet* _tmp58_ = NULL;
		RygelUserConfigTestSectionMap* section = NULL;
		RygelUserConfigTestSectionMap* _tmp59_ = NULL;
		GeeHashSet* general_section = NULL;
		const gchar* _tmp60_ = NULL;
		GeeHashSet* _tmp61_ = NULL;
		GeeHashSet* foo_section = NULL;
		const gchar* _tmp62_ = NULL;
		GeeHashSet* _tmp63_ = NULL;
		RygelUserConfigTestSettingMap* setting = NULL;
		RygelUserConfigTestSettingMap* _tmp64_ = NULL;
		GeeHashSet* foo_setting = NULL;
		const gchar* _tmp65_ = NULL;
		GeeHashSet* _tmp66_ = NULL;
		RygelUserConfigTestSettingsReplace* new_local = NULL;
		gboolean _tmp67_ = FALSE;
		gint _tmp68_ = 0;
		RygelUserConfigTestSettings* _tmp69_ = NULL;
		RygelUserConfigTestSettings* _tmp70_ = NULL;
		RygelUserConfigTestSettingsReplace* _tmp71_ = NULL;
		RygelUserConfigTestSettingsReplace* _tmp72_ = NULL;
		RygelUserConfigTestWatchData* _tmp73_ = NULL;
		RygelUserConfigTestWatchData* _tmp74_ = NULL;
		_tmp56_ = g_strdup ("remove several keys from local config, expect changes" " for those");
		desc = _tmp56_;
		_tmp57_ = rygel_user_config_test_config_set_new ();
		config = _tmp57_;
		_tmp58_ = config->gee;
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp58_, (gpointer) ((gintptr) RYGEL_CONFIGURATION_ENTRY_INTERFACE));
		_tmp59_ = rygel_user_config_test_section_map_new ();
		section = _tmp59_;
		_tmp60_ = rygel_user_config_test_GENERAL;
		_tmp61_ = rygel_user_config_test_section_map_new_values (section, _tmp60_);
		general_section = _tmp61_;
		_tmp62_ = rygel_user_config_test_FOO;
		_tmp63_ = rygel_user_config_test_section_map_new_values (section, _tmp62_);
		foo_section = _tmp63_;
		gee_abstract_collection_add ((GeeAbstractCollection*) general_section, (gpointer) ((gintptr) RYGEL_SECTION_ENTRY_TITLE));
		gee_abstract_collection_add ((GeeAbstractCollection*) foo_section, (gpointer) ((gintptr) RYGEL_SECTION_ENTRY_ENABLED));
		_tmp64_ = rygel_user_config_test_setting_map_new ();
		setting = _tmp64_;
		_tmp65_ = rygel_user_config_test_FOO;
		_tmp66_ = rygel_user_config_test_setting_map_new_values (setting, _tmp65_);
		foo_setting = _tmp66_;
		gee_abstract_collection_add ((GeeAbstractCollection*) foo_setting, "setting");
		_tmp67_ = FALSE;
		_tmp68_ = 13;
		_tmp69_ = rygel_user_config_test_settings_new (NULL, &_tmp67_, NULL, &_tmp68_, "Changed!", NULL, NULL);
		_tmp70_ = _tmp69_;
		_tmp71_ = rygel_user_config_test_settings_replace_new (self, _tmp70_);
		_tmp72_ = _tmp71_;
		_g_object_unref0 (_tmp70_);
		new_local = _tmp72_;
		_tmp73_ = rygel_user_config_test_watch_data_new (desc, (RygelUserConfigTestSettingsAction*) new_local, (RygelUserConfigTestSettingsAction*) do_nothing, config, section, setting);
		_tmp74_ = _tmp73_;
		gee_abstract_collection_add ((GeeAbstractCollection*) data, _tmp74_);
		_g_object_unref0 (_tmp74_);
		_g_object_unref0 (new_local);
		_g_object_unref0 (foo_setting);
		_g_object_unref0 (setting);
		_g_object_unref0 (foo_section);
		_g_object_unref0 (general_section);
		_g_object_unref0 (section);
		_g_object_unref0 (config);
		_g_free0 (desc);
	}
	{
		gchar* desc = NULL;
		gchar* _tmp75_ = NULL;
		RygelUserConfigTestConfigSet* config = NULL;
		RygelUserConfigTestConfigSet* _tmp76_ = NULL;
		GeeHashSet* _tmp77_ = NULL;
		RygelUserConfigTestSectionMap* section = NULL;
		RygelUserConfigTestSectionMap* _tmp78_ = NULL;
		GeeHashSet* general_section = NULL;
		const gchar* _tmp79_ = NULL;
		GeeHashSet* _tmp80_ = NULL;
		GeeHashSet* foo_section = NULL;
		const gchar* _tmp81_ = NULL;
		GeeHashSet* _tmp82_ = NULL;
		RygelUserConfigTestSettingMap* setting = NULL;
		RygelUserConfigTestSettingMap* _tmp83_ = NULL;
		RygelUserConfigTestSettingsRemove* _tmp84_ = NULL;
		RygelUserConfigTestSettingsRemove* _tmp85_ = NULL;
		RygelUserConfigTestWatchData* _tmp86_ = NULL;
		RygelUserConfigTestWatchData* _tmp87_ = NULL;
		_tmp75_ = g_strdup ("remove local config, expect changes for the rest of " "settings");
		desc = _tmp75_;
		_tmp76_ = rygel_user_config_test_config_set_new ();
		config = _tmp76_;
		_tmp77_ = config->gee;
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp77_, (gpointer) ((gintptr) RYGEL_CONFIGURATION_ENTRY_PORT));
		_tmp78_ = rygel_user_config_test_section_map_new ();
		section = _tmp78_;
		_tmp79_ = rygel_user_config_test_GENERAL;
		_tmp80_ = rygel_user_config_test_section_map_new_values (section, _tmp79_);
		general_section = _tmp80_;
		_tmp81_ = rygel_user_config_test_FOO;
		_tmp82_ = rygel_user_config_test_section_map_new_values (section, _tmp81_);
		foo_section = _tmp82_;
		gee_abstract_collection_add ((GeeAbstractCollection*) general_section, (gpointer) ((gintptr) RYGEL_SECTION_ENTRY_ENABLED));
		gee_abstract_collection_add ((GeeAbstractCollection*) foo_section, (gpointer) ((gintptr) RYGEL_SECTION_ENTRY_TITLE));
		_tmp83_ = rygel_user_config_test_setting_map_new ();
		setting = _tmp83_;
		_tmp84_ = rygel_user_config_test_settings_remove_new (self);
		_tmp85_ = _tmp84_;
		_tmp86_ = rygel_user_config_test_watch_data_new (desc, (RygelUserConfigTestSettingsAction*) _tmp85_, (RygelUserConfigTestSettingsAction*) do_nothing, config, section, setting);
		_tmp87_ = _tmp86_;
		gee_abstract_collection_add ((GeeAbstractCollection*) data, _tmp87_);
		_g_object_unref0 (_tmp87_);
		_g_object_unref0 (_tmp85_);
		_g_object_unref0 (setting);
		_g_object_unref0 (foo_section);
		_g_object_unref0 (general_section);
		_g_object_unref0 (section);
		_g_object_unref0 (config);
		_g_free0 (desc);
	}
	result = data;
	_g_object_unref0 (do_nothing);
	return result;
}


static void _rygel_user_config_test_on_configuration_changed_rygel_configuration_configuration_changed (RygelConfiguration* _sender, RygelConfigurationEntry entry, gpointer self) {
	rygel_user_config_test_on_configuration_changed ((RygelUserConfigTest*) self, _sender, entry);
}


static void _rygel_user_config_test_on_section_changed_rygel_configuration_section_changed (RygelConfiguration* _sender, const gchar* section, RygelSectionEntry entry, gpointer self) {
	rygel_user_config_test_on_section_changed ((RygelUserConfigTest*) self, _sender, section, entry);
}


static void _rygel_user_config_test_on_setting_changed_rygel_configuration_setting_changed (RygelConfiguration* _sender, const gchar* section, const gchar* key, gpointer self) {
	rygel_user_config_test_on_setting_changed ((RygelUserConfigTest*) self, _sender, section, key);
}


static gboolean ____lambda6_ (RygelUserConfigTest* self) {
	gboolean result = FALSE;
	RygelUserConfigTestWatchData* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	GMainLoop* _tmp4_ = NULL;
	_tmp0_ = self->priv->current_watch_data;
	_tmp1_ = rygel_user_config_test_watch_data_empty (_tmp0_);
	if (!_tmp1_) {
		RygelUserConfigTestWatchData* _tmp2_ = NULL;
		RygelUserConfigTestWatchData* _tmp3_ = NULL;
		_tmp2_ = self->priv->current_watch_data;
		rygel_user_config_test_watch_data_print_description (_tmp2_);
		g_warning ("rygel-user-config-test.vala:678: %s", "Test timed out and not all expected changes " "happened.");
		_tmp3_ = self->priv->current_watch_data;
		rygel_user_config_test_watch_data_print_expectations (_tmp3_);
		self->priv->fail = TRUE;
	}
	self->priv->timeout_id = (guint) 0;
	_tmp4_ = self->priv->main_loop;
	g_main_loop_quit (_tmp4_);
	result = FALSE;
	return result;
}


static gboolean _____lambda6__gsource_func (gpointer self) {
	gboolean result;
	result = ____lambda6_ ((RygelUserConfigTest*) self);
	return result;
}


static void rygel_user_config_test_test_watching (RygelUserConfigTest* self) {
	RygelUserConfigTestConfigRemover* remover = NULL;
	RygelUserConfigTestConfigRemover* _tmp0_ = NULL;
	RygelUserConfigTestConfigRemover* _tmp1_ = NULL;
	RygelUserConfigTestSettings* full_settings = NULL;
	RygelUserConfigTestSettings* _tmp2_ = NULL;
	RygelUserConfigTestSettings* _tmp3_ = NULL;
	RygelUserConfig* _tmp13_ = NULL;
	RygelUserConfig* _tmp14_ = NULL;
	RygelUserConfig* _tmp15_ = NULL;
	RygelUserConfig* _tmp16_ = NULL;
	GeeArrayList* watch_data_array = NULL;
	GeeArrayList* _tmp17_ = NULL;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = rygel_user_config_test_config_remover_new (self);
	remover = _tmp0_;
	_tmp1_ = remover;
	_vala_assert (_tmp1_ != NULL, "remover != null");
	_tmp2_ = rygel_user_config_test_settings_new_default ();
	full_settings = _tmp2_;
	_tmp3_ = full_settings;
	_vala_assert (_tmp3_ != NULL, "full_settings != null");
	{
		const gchar* _tmp4_ = NULL;
		RygelUserConfigTestSettings* _tmp5_ = NULL;
		_tmp4_ = rygel_user_config_test_LOCAL_CONFIG;
		_tmp5_ = full_settings;
		rygel_user_config_test_set_config (self, _tmp4_, _tmp5_, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			goto __catch16_g_error;
		}
	}
	goto __finally16;
	__catch16_g_error:
	{
		GError* _error_ = NULL;
		_error_ = _inner_error_;
		_inner_error_ = NULL;
		g_assert_not_reached ();
		_g_error_free0 (_error_);
	}
	__finally16:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		_g_object_unref0 (full_settings);
		_rygel_user_config_test_config_remover_unref0 (remover);
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return;
	}
	{
		const gchar* _tmp6_ = NULL;
		RygelUserConfigTestSettings* _tmp7_ = NULL;
		_tmp6_ = rygel_user_config_test_SYSTEM_CONFIG;
		_tmp7_ = full_settings;
		rygel_user_config_test_set_config (self, _tmp6_, _tmp7_, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			goto __catch17_g_error;
		}
	}
	goto __finally17;
	__catch17_g_error:
	{
		GError* _error_ = NULL;
		_error_ = _inner_error_;
		_inner_error_ = NULL;
		g_assert_not_reached ();
		_g_error_free0 (_error_);
	}
	__finally17:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		_g_object_unref0 (full_settings);
		_rygel_user_config_test_config_remover_unref0 (remover);
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return;
	}
	{
		RygelUserConfig* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
		const gchar* _tmp10_ = NULL;
		RygelUserConfig* _tmp11_ = NULL;
		RygelUserConfig* _tmp12_ = NULL;
		_tmp9_ = rygel_user_config_test_LOCAL_CONFIG;
		_tmp10_ = rygel_user_config_test_SYSTEM_CONFIG;
		_tmp11_ = rygel_user_config_new_with_paths (_tmp9_, _tmp10_, &_inner_error_);
		_tmp8_ = _tmp11_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			goto __catch18_g_error;
		}
		_tmp12_ = _tmp8_;
		_tmp8_ = NULL;
		_g_object_unref0 (self->priv->config);
		self->priv->config = _tmp12_;
		_g_object_unref0 (_tmp8_);
	}
	goto __finally18;
	__catch18_g_error:
	{
		GError* _error_ = NULL;
		_error_ = _inner_error_;
		_inner_error_ = NULL;
		g_assert_not_reached ();
		_g_error_free0 (_error_);
	}
	__finally18:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		_g_object_unref0 (full_settings);
		_rygel_user_config_test_config_remover_unref0 (remover);
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return;
	}
	_tmp13_ = self->priv->config;
	_vala_assert (_tmp13_ != NULL, "this.config != null");
	_tmp14_ = self->priv->config;
	g_signal_connect_object ((RygelConfiguration*) _tmp14_, "configuration-changed", (GCallback) _rygel_user_config_test_on_configuration_changed_rygel_configuration_configuration_changed, self, 0);
	_tmp15_ = self->priv->config;
	g_signal_connect_object ((RygelConfiguration*) _tmp15_, "section-changed", (GCallback) _rygel_user_config_test_on_section_changed_rygel_configuration_section_changed, self, 0);
	_tmp16_ = self->priv->config;
	g_signal_connect_object ((RygelConfiguration*) _tmp16_, "setting-changed", (GCallback) _rygel_user_config_test_on_setting_changed_rygel_configuration_setting_changed, self, 0);
	_tmp17_ = rygel_user_config_test_prepare_watch_data (self);
	watch_data_array = _tmp17_;
	{
		GeeArrayList* _watch_data_list = NULL;
		GeeArrayList* _tmp18_ = NULL;
		GeeArrayList* _tmp19_ = NULL;
		gint _watch_data_size = 0;
		GeeArrayList* _tmp20_ = NULL;
		gint _tmp21_ = 0;
		gint _tmp22_ = 0;
		gint _watch_data_index = 0;
		_tmp18_ = watch_data_array;
		_tmp19_ = _g_object_ref0 (_tmp18_);
		_watch_data_list = _tmp19_;
		_tmp20_ = _watch_data_list;
		_tmp21_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp20_);
		_tmp22_ = _tmp21_;
		_watch_data_size = _tmp22_;
		_watch_data_index = -1;
		while (TRUE) {
			gint _tmp23_ = 0;
			gint _tmp24_ = 0;
			gint _tmp25_ = 0;
			RygelUserConfigTestWatchData* watch_data = NULL;
			GeeArrayList* _tmp26_ = NULL;
			gint _tmp27_ = 0;
			gpointer _tmp28_ = NULL;
			RygelUserConfigTestWatchData* _tmp29_ = NULL;
			RygelUserConfigTestWatchData* _tmp30_ = NULL;
			guint _tmp31_ = 0U;
			RygelUserConfigTestWatchData* _tmp32_ = NULL;
			GMainLoop* _tmp33_ = NULL;
			gboolean _tmp34_ = FALSE;
			_tmp23_ = _watch_data_index;
			_watch_data_index = _tmp23_ + 1;
			_tmp24_ = _watch_data_index;
			_tmp25_ = _watch_data_size;
			if (!(_tmp24_ < _tmp25_)) {
				break;
			}
			_tmp26_ = _watch_data_list;
			_tmp27_ = _watch_data_index;
			_tmp28_ = gee_abstract_list_get ((GeeAbstractList*) _tmp26_, _tmp27_);
			watch_data = (RygelUserConfigTestWatchData*) _tmp28_;
			_tmp29_ = watch_data;
			_tmp30_ = _g_object_ref0 (_tmp29_);
			_g_object_unref0 (self->priv->current_watch_data);
			self->priv->current_watch_data = _tmp30_;
			_tmp31_ = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 10, _____lambda6__gsource_func, g_object_ref (self), g_object_unref);
			self->priv->timeout_id = _tmp31_;
			_tmp32_ = watch_data;
			rygel_user_config_test_watch_data_prepare_setup (_tmp32_);
			_tmp33_ = self->priv->main_loop;
			g_main_loop_run (_tmp33_);
			_tmp34_ = self->priv->fail;
			if (_tmp34_) {
				_g_object_unref0 (watch_data);
				_g_object_unref0 (_watch_data_list);
				_g_object_unref0 (watch_data_array);
				_g_object_unref0 (full_settings);
				_rygel_user_config_test_config_remover_unref0 (remover);
				return;
			}
			_g_object_unref0 (watch_data);
		}
		_g_object_unref0 (_watch_data_list);
	}
	_g_object_unref0 (watch_data_array);
	_g_object_unref0 (full_settings);
	_rygel_user_config_test_config_remover_unref0 (remover);
}


gint rygel_user_config_test_run (RygelUserConfigTest* self, GError** error) {
	gint result = 0;
	gboolean _tmp0_ = FALSE;
	g_return_val_if_fail (self != NULL, 0);
	rygel_user_config_test_test_loading (self);
	rygel_user_config_test_test_watching (self);
	_tmp0_ = self->priv->fail;
	if (_tmp0_) {
		result = 1;
		return result;
	}
	result = 0;
	return result;
}


gint rygel_user_config_test_main (gchar** args, int args_length1) {
	gint result = 0;
	RygelUserConfigTest* test = NULL;
	RygelUserConfigTest* _tmp0_ = NULL;
	GError * _inner_error_ = NULL;
	_tmp0_ = rygel_user_config_test_new ();
	test = _tmp0_;
	{
		gint _tmp1_ = 0;
		gint _tmp2_ = 0;
		_tmp2_ = rygel_user_config_test_run (test, &_inner_error_);
		_tmp1_ = _tmp2_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			goto __catch19_g_error;
		}
		result = _tmp1_;
		_g_object_unref0 (test);
		return result;
	}
	goto __finally19;
	__catch19_g_error:
	{
		GError* e = NULL;
		e = _inner_error_;
		_inner_error_ = NULL;
		result = 1;
		_g_error_free0 (e);
		_g_object_unref0 (test);
		return result;
	}
	__finally19:
	_g_object_unref0 (test);
	g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
	g_clear_error (&_inner_error_);
	return 0;
}


int main (int argc, char ** argv) {
#if !GLIB_CHECK_VERSION (2,35,0)
	g_type_init ();
#endif
	return rygel_user_config_test_main (argv, argc);
}


RygelUserConfigTestConfigSet* rygel_user_config_test_config_set_construct (GType object_type) {
	RygelUserConfigTestConfigSet * self = NULL;
	GeeHashSet* _tmp0_ = NULL;
	self = (RygelUserConfigTestConfigSet*) g_object_new (object_type, NULL);
	_tmp0_ = gee_hash_set_new (RYGEL_TYPE_CONFIGURATION_ENTRY, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
	_g_object_unref0 (self->gee);
	self->gee = _tmp0_;
	return self;
}


RygelUserConfigTestConfigSet* rygel_user_config_test_config_set_new (void) {
	return rygel_user_config_test_config_set_construct (RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_SET);
}


static void rygel_user_config_test_config_set_class_init (RygelUserConfigTestConfigSetClass * klass) {
	rygel_user_config_test_config_set_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->finalize = rygel_user_config_test_config_set_finalize;
}


static void rygel_user_config_test_config_set_instance_init (RygelUserConfigTestConfigSet * self) {
}


static void rygel_user_config_test_config_set_finalize (GObject* obj) {
	RygelUserConfigTestConfigSet * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_SET, RygelUserConfigTestConfigSet);
	_g_object_unref0 (self->gee);
	G_OBJECT_CLASS (rygel_user_config_test_config_set_parent_class)->finalize (obj);
}


GType rygel_user_config_test_config_set_get_type (void) {
	static volatile gsize rygel_user_config_test_config_set_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_user_config_test_config_set_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelUserConfigTestConfigSetClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_user_config_test_config_set_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelUserConfigTestConfigSet), 0, (GInstanceInitFunc) rygel_user_config_test_config_set_instance_init, NULL };
		GType rygel_user_config_test_config_set_type_id;
		rygel_user_config_test_config_set_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelUserConfigTestConfigSet", &g_define_type_info, 0);
		g_once_init_leave (&rygel_user_config_test_config_set_type_id__volatile, rygel_user_config_test_config_set_type_id);
	}
	return rygel_user_config_test_config_set_type_id__volatile;
}


RygelUserConfigTestSectionMap* rygel_user_config_test_section_map_construct (GType object_type) {
	RygelUserConfigTestSectionMap * self = NULL;
	GeeHashMap* _tmp0_ = NULL;
	self = (RygelUserConfigTestSectionMap*) g_object_new (object_type, NULL);
	_tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, GEE_TYPE_HASH_SET, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
	_g_object_unref0 (self->gee);
	self->gee = _tmp0_;
	return self;
}


RygelUserConfigTestSectionMap* rygel_user_config_test_section_map_new (void) {
	return rygel_user_config_test_section_map_construct (RYGEL_USER_CONFIG_TEST_TYPE_SECTION_MAP);
}


GeeHashSet* rygel_user_config_test_section_map_new_values (RygelUserConfigTestSectionMap* self, const gchar* section) {
	GeeHashSet* result = NULL;
	GeeHashSet* values = NULL;
	GeeHashSet* _tmp0_ = NULL;
	GeeHashMap* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (section != NULL, NULL);
	_tmp0_ = gee_hash_set_new (RYGEL_TYPE_SECTION_ENTRY, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
	values = _tmp0_;
	_tmp1_ = self->gee;
	_tmp2_ = section;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp1_, _tmp2_, values);
	result = values;
	return result;
}


static void rygel_user_config_test_section_map_class_init (RygelUserConfigTestSectionMapClass * klass) {
	rygel_user_config_test_section_map_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->finalize = rygel_user_config_test_section_map_finalize;
}


static void rygel_user_config_test_section_map_instance_init (RygelUserConfigTestSectionMap * self) {
}


static void rygel_user_config_test_section_map_finalize (GObject* obj) {
	RygelUserConfigTestSectionMap * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_USER_CONFIG_TEST_TYPE_SECTION_MAP, RygelUserConfigTestSectionMap);
	_g_object_unref0 (self->gee);
	G_OBJECT_CLASS (rygel_user_config_test_section_map_parent_class)->finalize (obj);
}


GType rygel_user_config_test_section_map_get_type (void) {
	static volatile gsize rygel_user_config_test_section_map_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_user_config_test_section_map_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelUserConfigTestSectionMapClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_user_config_test_section_map_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelUserConfigTestSectionMap), 0, (GInstanceInitFunc) rygel_user_config_test_section_map_instance_init, NULL };
		GType rygel_user_config_test_section_map_type_id;
		rygel_user_config_test_section_map_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelUserConfigTestSectionMap", &g_define_type_info, 0);
		g_once_init_leave (&rygel_user_config_test_section_map_type_id__volatile, rygel_user_config_test_section_map_type_id);
	}
	return rygel_user_config_test_section_map_type_id__volatile;
}


RygelUserConfigTestSettingMap* rygel_user_config_test_setting_map_construct (GType object_type) {
	RygelUserConfigTestSettingMap * self = NULL;
	GeeHashMap* _tmp0_ = NULL;
	self = (RygelUserConfigTestSettingMap*) g_object_new (object_type, NULL);
	_tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, GEE_TYPE_HASH_SET, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
	_g_object_unref0 (self->gee);
	self->gee = _tmp0_;
	return self;
}


RygelUserConfigTestSettingMap* rygel_user_config_test_setting_map_new (void) {
	return rygel_user_config_test_setting_map_construct (RYGEL_USER_CONFIG_TEST_TYPE_SETTING_MAP);
}


GeeHashSet* rygel_user_config_test_setting_map_new_values (RygelUserConfigTestSettingMap* self, const gchar* section) {
	GeeHashSet* result = NULL;
	GeeHashSet* values = NULL;
	GeeHashSet* _tmp0_ = NULL;
	GeeHashMap* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (section != NULL, NULL);
	_tmp0_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL, NULL, NULL, NULL);
	values = _tmp0_;
	_tmp1_ = self->gee;
	_tmp2_ = section;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp1_, _tmp2_, values);
	result = values;
	return result;
}


static void rygel_user_config_test_setting_map_class_init (RygelUserConfigTestSettingMapClass * klass) {
	rygel_user_config_test_setting_map_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->finalize = rygel_user_config_test_setting_map_finalize;
}


static void rygel_user_config_test_setting_map_instance_init (RygelUserConfigTestSettingMap * self) {
}


static void rygel_user_config_test_setting_map_finalize (GObject* obj) {
	RygelUserConfigTestSettingMap * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_USER_CONFIG_TEST_TYPE_SETTING_MAP, RygelUserConfigTestSettingMap);
	_g_object_unref0 (self->gee);
	G_OBJECT_CLASS (rygel_user_config_test_setting_map_parent_class)->finalize (obj);
}


GType rygel_user_config_test_setting_map_get_type (void) {
	static volatile gsize rygel_user_config_test_setting_map_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_user_config_test_setting_map_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelUserConfigTestSettingMapClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_user_config_test_setting_map_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelUserConfigTestSettingMap), 0, (GInstanceInitFunc) rygel_user_config_test_setting_map_instance_init, NULL };
		GType rygel_user_config_test_setting_map_type_id;
		rygel_user_config_test_setting_map_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelUserConfigTestSettingMap", &g_define_type_info, 0);
		g_once_init_leave (&rygel_user_config_test_setting_map_type_id__volatile, rygel_user_config_test_setting_map_type_id);
	}
	return rygel_user_config_test_setting_map_type_id__volatile;
}


static gboolean* _bool_dup (gboolean* self) {
	gboolean* dup;
	dup = g_new0 (gboolean, 1);
	memcpy (dup, self, sizeof (gboolean));
	return dup;
}


static gpointer __bool_dup0 (gpointer self) {
	return self ? _bool_dup (self) : NULL;
}


static gint* _int_dup (gint* self) {
	gint* dup;
	dup = g_new0 (gint, 1);
	memcpy (dup, self, sizeof (gint));
	return dup;
}


static gpointer __int_dup0 (gpointer self) {
	return self ? _int_dup (self) : NULL;
}


static void rygel_user_config_test_settings_initialize (RygelUserConfigTestSettings* self, const gchar* general_title, gboolean* general_enabled, const gchar* general_iface, gint* general_port, const gchar* foo_title, gboolean* foo_enabled, gboolean* foo_setting) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gboolean* _tmp2_ = NULL;
	gboolean* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gint* _tmp6_ = NULL;
	gint* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gboolean* _tmp10_ = NULL;
	gboolean* _tmp11_ = NULL;
	gboolean* _tmp12_ = NULL;
	gboolean* _tmp13_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = general_title;
	_tmp1_ = g_strdup (_tmp0_);
	_g_free0 (self->general_title);
	self->general_title = _tmp1_;
	_tmp2_ = general_enabled;
	_tmp3_ = __bool_dup0 (_tmp2_);
	_g_free0 (self->general_enabled);
	self->general_enabled = _tmp3_;
	_tmp4_ = general_iface;
	_tmp5_ = g_strdup (_tmp4_);
	_g_free0 (self->general_iface);
	self->general_iface = _tmp5_;
	_tmp6_ = general_port;
	_tmp7_ = __int_dup0 (_tmp6_);
	_g_free0 (self->general_port);
	self->general_port = _tmp7_;
	_tmp8_ = foo_title;
	_tmp9_ = g_strdup (_tmp8_);
	_g_free0 (self->foo_title);
	self->foo_title = _tmp9_;
	_tmp10_ = foo_enabled;
	_tmp11_ = __bool_dup0 (_tmp10_);
	_g_free0 (self->foo_enabled);
	self->foo_enabled = _tmp11_;
	_tmp12_ = foo_setting;
	_tmp13_ = __bool_dup0 (_tmp12_);
	_g_free0 (self->foo_setting);
	self->foo_setting = _tmp13_;
}


static RygelUserConfigTestSettings* rygel_user_config_test_settings_construct (GType object_type, const gchar* general_title, gboolean* general_enabled, const gchar* general_iface, gint* general_port, const gchar* foo_title, gboolean* foo_enabled, gboolean* foo_setting) {
	RygelUserConfigTestSettings * self = NULL;
	const gchar* _tmp0_ = NULL;
	gboolean* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gint* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gboolean* _tmp5_ = NULL;
	gboolean* _tmp6_ = NULL;
	self = (RygelUserConfigTestSettings*) g_object_new (object_type, NULL);
	_tmp0_ = general_title;
	_tmp1_ = general_enabled;
	_tmp2_ = general_iface;
	_tmp3_ = general_port;
	_tmp4_ = foo_title;
	_tmp5_ = foo_enabled;
	_tmp6_ = foo_setting;
	rygel_user_config_test_settings_initialize (self, _tmp0_, _tmp1_, _tmp2_, _tmp3_, _tmp4_, _tmp5_, _tmp6_);
	return self;
}


static RygelUserConfigTestSettings* rygel_user_config_test_settings_new (const gchar* general_title, gboolean* general_enabled, const gchar* general_iface, gint* general_port, const gchar* foo_title, gboolean* foo_enabled, gboolean* foo_setting) {
	return rygel_user_config_test_settings_construct (RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS, general_title, general_enabled, general_iface, general_port, foo_title, foo_enabled, foo_setting);
}


static RygelUserConfigTestSettings* rygel_user_config_test_settings_construct_default (GType object_type) {
	RygelUserConfigTestSettings * self = NULL;
	gboolean _tmp0_ = FALSE;
	gint _tmp1_ = 0;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_ = FALSE;
	self = (RygelUserConfigTestSettings*) g_object_new (object_type, NULL);
	_tmp0_ = TRUE;
	_tmp1_ = 42;
	_tmp2_ = TRUE;
	_tmp3_ = TRUE;
	rygel_user_config_test_settings_initialize (self, "General", &_tmp0_, "eth0", &_tmp1_, "Foo", &_tmp2_, &_tmp3_);
	return self;
}


static RygelUserConfigTestSettings* rygel_user_config_test_settings_new_default (void) {
	return rygel_user_config_test_settings_construct_default (RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS);
}


static void rygel_user_config_test_settings_class_init (RygelUserConfigTestSettingsClass * klass) {
	rygel_user_config_test_settings_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->finalize = rygel_user_config_test_settings_finalize;
}


static void rygel_user_config_test_settings_instance_init (RygelUserConfigTestSettings * self) {
}


static void rygel_user_config_test_settings_finalize (GObject* obj) {
	RygelUserConfigTestSettings * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS, RygelUserConfigTestSettings);
	_g_free0 (self->general_title);
	_g_free0 (self->general_enabled);
	_g_free0 (self->general_iface);
	_g_free0 (self->general_port);
	_g_free0 (self->foo_title);
	_g_free0 (self->foo_enabled);
	_g_free0 (self->foo_setting);
	G_OBJECT_CLASS (rygel_user_config_test_settings_parent_class)->finalize (obj);
}


static GType rygel_user_config_test_settings_get_type (void) {
	static volatile gsize rygel_user_config_test_settings_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_user_config_test_settings_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelUserConfigTestSettingsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_user_config_test_settings_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelUserConfigTestSettings), 0, (GInstanceInitFunc) rygel_user_config_test_settings_instance_init, NULL };
		GType rygel_user_config_test_settings_type_id;
		rygel_user_config_test_settings_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelUserConfigTestSettings", &g_define_type_info, 0);
		g_once_init_leave (&rygel_user_config_test_settings_type_id__volatile, rygel_user_config_test_settings_type_id);
	}
	return rygel_user_config_test_settings_type_id__volatile;
}


static RygelUserConfigTestSettingsAction* rygel_user_config_test_settings_action_construct (GType object_type, RygelUserConfigTest* test) {
	RygelUserConfigTestSettingsAction * self = NULL;
	RygelUserConfigTest* _tmp0_ = NULL;
	RygelUserConfigTest* _tmp1_ = NULL;
	g_return_val_if_fail (test != NULL, NULL);
	self = (RygelUserConfigTestSettingsAction*) g_object_new (object_type, NULL);
	_tmp0_ = test;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	_g_object_unref0 (self->test);
	self->test = _tmp1_;
	return self;
}


static void rygel_user_config_test_settings_action_real_perform (RygelUserConfigTestSettingsAction* self, const gchar* config) {
	g_critical ("Type `%s' does not implement abstract method `rygel_user_config_test_settings_action_perform'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
	return;
}


void rygel_user_config_test_settings_action_perform (RygelUserConfigTestSettingsAction* self, const gchar* config) {
	g_return_if_fail (self != NULL);
	RYGEL_USER_CONFIG_TEST_SETTINGS_ACTION_GET_CLASS (self)->perform (self, config);
}


static void rygel_user_config_test_settings_action_class_init (RygelUserConfigTestSettingsActionClass * klass) {
	rygel_user_config_test_settings_action_parent_class = g_type_class_peek_parent (klass);
	((RygelUserConfigTestSettingsActionClass *) klass)->perform = rygel_user_config_test_settings_action_real_perform;
	G_OBJECT_CLASS (klass)->finalize = rygel_user_config_test_settings_action_finalize;
}


static void rygel_user_config_test_settings_action_instance_init (RygelUserConfigTestSettingsAction * self) {
}


static void rygel_user_config_test_settings_action_finalize (GObject* obj) {
	RygelUserConfigTestSettingsAction * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_ACTION, RygelUserConfigTestSettingsAction);
	_g_object_unref0 (self->test);
	G_OBJECT_CLASS (rygel_user_config_test_settings_action_parent_class)->finalize (obj);
}


static GType rygel_user_config_test_settings_action_get_type (void) {
	static volatile gsize rygel_user_config_test_settings_action_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_user_config_test_settings_action_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelUserConfigTestSettingsActionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_user_config_test_settings_action_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelUserConfigTestSettingsAction), 0, (GInstanceInitFunc) rygel_user_config_test_settings_action_instance_init, NULL };
		GType rygel_user_config_test_settings_action_type_id;
		rygel_user_config_test_settings_action_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelUserConfigTestSettingsAction", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
		g_once_init_leave (&rygel_user_config_test_settings_action_type_id__volatile, rygel_user_config_test_settings_action_type_id);
	}
	return rygel_user_config_test_settings_action_type_id__volatile;
}


static RygelUserConfigTestSettingsDoNothing* rygel_user_config_test_settings_do_nothing_construct (GType object_type, RygelUserConfigTest* test) {
	RygelUserConfigTestSettingsDoNothing * self = NULL;
	RygelUserConfigTest* _tmp0_ = NULL;
	g_return_val_if_fail (test != NULL, NULL);
	_tmp0_ = test;
	self = (RygelUserConfigTestSettingsDoNothing*) rygel_user_config_test_settings_action_construct (object_type, _tmp0_);
	return self;
}


static RygelUserConfigTestSettingsDoNothing* rygel_user_config_test_settings_do_nothing_new (RygelUserConfigTest* test) {
	return rygel_user_config_test_settings_do_nothing_construct (RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_DO_NOTHING, test);
}


static void rygel_user_config_test_settings_do_nothing_real_perform (RygelUserConfigTestSettingsAction* base, const gchar* config) {
	RygelUserConfigTestSettingsDoNothing * self;
	self = (RygelUserConfigTestSettingsDoNothing*) base;
	g_return_if_fail (config != NULL);
}


static void rygel_user_config_test_settings_do_nothing_class_init (RygelUserConfigTestSettingsDoNothingClass * klass) {
	rygel_user_config_test_settings_do_nothing_parent_class = g_type_class_peek_parent (klass);
	((RygelUserConfigTestSettingsActionClass *) klass)->perform = rygel_user_config_test_settings_do_nothing_real_perform;
}


static void rygel_user_config_test_settings_do_nothing_instance_init (RygelUserConfigTestSettingsDoNothing * self) {
}


static GType rygel_user_config_test_settings_do_nothing_get_type (void) {
	static volatile gsize rygel_user_config_test_settings_do_nothing_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_user_config_test_settings_do_nothing_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelUserConfigTestSettingsDoNothingClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_user_config_test_settings_do_nothing_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelUserConfigTestSettingsDoNothing), 0, (GInstanceInitFunc) rygel_user_config_test_settings_do_nothing_instance_init, NULL };
		GType rygel_user_config_test_settings_do_nothing_type_id;
		rygel_user_config_test_settings_do_nothing_type_id = g_type_register_static (RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_ACTION, "RygelUserConfigTestSettingsDoNothing", &g_define_type_info, 0);
		g_once_init_leave (&rygel_user_config_test_settings_do_nothing_type_id__volatile, rygel_user_config_test_settings_do_nothing_type_id);
	}
	return rygel_user_config_test_settings_do_nothing_type_id__volatile;
}


static RygelUserConfigTestSettingsReplace* rygel_user_config_test_settings_replace_construct (GType object_type, RygelUserConfigTest* test, RygelUserConfigTestSettings* settings) {
	RygelUserConfigTestSettingsReplace * self = NULL;
	RygelUserConfigTest* _tmp0_ = NULL;
	RygelUserConfigTestSettings* _tmp1_ = NULL;
	RygelUserConfigTestSettings* _tmp2_ = NULL;
	g_return_val_if_fail (test != NULL, NULL);
	g_return_val_if_fail (settings != NULL, NULL);
	_tmp0_ = test;
	self = (RygelUserConfigTestSettingsReplace*) rygel_user_config_test_settings_action_construct (object_type, _tmp0_);
	_tmp1_ = settings;
	_tmp2_ = _g_object_ref0 (_tmp1_);
	_g_object_unref0 (self->priv->settings);
	self->priv->settings = _tmp2_;
	return self;
}


static RygelUserConfigTestSettingsReplace* rygel_user_config_test_settings_replace_new (RygelUserConfigTest* test, RygelUserConfigTestSettings* settings) {
	return rygel_user_config_test_settings_replace_construct (RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_REPLACE, test, settings);
}


static void rygel_user_config_test_settings_replace_real_perform (RygelUserConfigTestSettingsAction* base, const gchar* config) {
	RygelUserConfigTestSettingsReplace * self;
	GError * _inner_error_ = NULL;
	self = (RygelUserConfigTestSettingsReplace*) base;
	g_return_if_fail (config != NULL);
	{
		RygelUserConfigTest* _tmp0_ = NULL;
		const gchar* _tmp1_ = NULL;
		RygelUserConfigTestSettings* _tmp2_ = NULL;
		_tmp0_ = ((RygelUserConfigTestSettingsAction*) self)->test;
		_tmp1_ = config;
		_tmp2_ = self->priv->settings;
		rygel_user_config_test_set_config (_tmp0_, _tmp1_, _tmp2_, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			goto __catch20_g_error;
		}
	}
	goto __finally20;
	__catch20_g_error:
	{
		GError* _error_ = NULL;
		_error_ = _inner_error_;
		_inner_error_ = NULL;
		g_assert_not_reached ();
		_g_error_free0 (_error_);
	}
	__finally20:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return;
	}
}


static void rygel_user_config_test_settings_replace_class_init (RygelUserConfigTestSettingsReplaceClass * klass) {
	rygel_user_config_test_settings_replace_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (RygelUserConfigTestSettingsReplacePrivate));
	((RygelUserConfigTestSettingsActionClass *) klass)->perform = rygel_user_config_test_settings_replace_real_perform;
	G_OBJECT_CLASS (klass)->finalize = rygel_user_config_test_settings_replace_finalize;
}


static void rygel_user_config_test_settings_replace_instance_init (RygelUserConfigTestSettingsReplace * self) {
	self->priv = RYGEL_USER_CONFIG_TEST_SETTINGS_REPLACE_GET_PRIVATE (self);
}


static void rygel_user_config_test_settings_replace_finalize (GObject* obj) {
	RygelUserConfigTestSettingsReplace * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_REPLACE, RygelUserConfigTestSettingsReplace);
	_g_object_unref0 (self->priv->settings);
	G_OBJECT_CLASS (rygel_user_config_test_settings_replace_parent_class)->finalize (obj);
}


static GType rygel_user_config_test_settings_replace_get_type (void) {
	static volatile gsize rygel_user_config_test_settings_replace_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_user_config_test_settings_replace_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelUserConfigTestSettingsReplaceClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_user_config_test_settings_replace_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelUserConfigTestSettingsReplace), 0, (GInstanceInitFunc) rygel_user_config_test_settings_replace_instance_init, NULL };
		GType rygel_user_config_test_settings_replace_type_id;
		rygel_user_config_test_settings_replace_type_id = g_type_register_static (RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_ACTION, "RygelUserConfigTestSettingsReplace", &g_define_type_info, 0);
		g_once_init_leave (&rygel_user_config_test_settings_replace_type_id__volatile, rygel_user_config_test_settings_replace_type_id);
	}
	return rygel_user_config_test_settings_replace_type_id__volatile;
}


static RygelUserConfigTestSettingsRemove* rygel_user_config_test_settings_remove_construct (GType object_type, RygelUserConfigTest* test) {
	RygelUserConfigTestSettingsRemove * self = NULL;
	RygelUserConfigTest* _tmp0_ = NULL;
	g_return_val_if_fail (test != NULL, NULL);
	_tmp0_ = test;
	self = (RygelUserConfigTestSettingsRemove*) rygel_user_config_test_settings_action_construct (object_type, _tmp0_);
	return self;
}


static RygelUserConfigTestSettingsRemove* rygel_user_config_test_settings_remove_new (RygelUserConfigTest* test) {
	return rygel_user_config_test_settings_remove_construct (RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_REMOVE, test);
}


static void rygel_user_config_test_settings_remove_real_perform (RygelUserConfigTestSettingsAction* base, const gchar* config) {
	RygelUserConfigTestSettingsRemove * self;
	RygelUserConfigTest* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	self = (RygelUserConfigTestSettingsRemove*) base;
	g_return_if_fail (config != NULL);
	_tmp0_ = ((RygelUserConfigTestSettingsAction*) self)->test;
	_tmp1_ = config;
	rygel_user_config_test_remove_config (_tmp0_, _tmp1_);
}


static void rygel_user_config_test_settings_remove_class_init (RygelUserConfigTestSettingsRemoveClass * klass) {
	rygel_user_config_test_settings_remove_parent_class = g_type_class_peek_parent (klass);
	((RygelUserConfigTestSettingsActionClass *) klass)->perform = rygel_user_config_test_settings_remove_real_perform;
}


static void rygel_user_config_test_settings_remove_instance_init (RygelUserConfigTestSettingsRemove * self) {
}


static GType rygel_user_config_test_settings_remove_get_type (void) {
	static volatile gsize rygel_user_config_test_settings_remove_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_user_config_test_settings_remove_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelUserConfigTestSettingsRemoveClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_user_config_test_settings_remove_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelUserConfigTestSettingsRemove), 0, (GInstanceInitFunc) rygel_user_config_test_settings_remove_instance_init, NULL };
		GType rygel_user_config_test_settings_remove_type_id;
		rygel_user_config_test_settings_remove_type_id = g_type_register_static (RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS_ACTION, "RygelUserConfigTestSettingsRemove", &g_define_type_info, 0);
		g_once_init_leave (&rygel_user_config_test_settings_remove_type_id__volatile, rygel_user_config_test_settings_remove_type_id);
	}
	return rygel_user_config_test_settings_remove_type_id__volatile;
}


static void rygel_user_config_test_watch_data_initialize (RygelUserConfigTestWatchData* self, const gchar* description, RygelUserConfigTestSettingsAction* local_action, RygelUserConfigTestSettingsAction* system_action, RygelUserConfigTestConfigSet* expected_config_changes, RygelUserConfigTestSectionMap* expected_section_changes, RygelUserConfigTestSettingMap* expected_setting_changes) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	RygelUserConfigTestSettingsAction* _tmp2_ = NULL;
	RygelUserConfigTestSettingsAction* _tmp3_ = NULL;
	RygelUserConfigTestSettingsAction* _tmp4_ = NULL;
	RygelUserConfigTestSettingsAction* _tmp5_ = NULL;
	RygelUserConfigTestConfigSet* _tmp6_ = NULL;
	RygelUserConfigTestConfigSet* _tmp7_ = NULL;
	RygelUserConfigTestSectionMap* _tmp8_ = NULL;
	RygelUserConfigTestSectionMap* _tmp9_ = NULL;
	RygelUserConfigTestSettingMap* _tmp10_ = NULL;
	RygelUserConfigTestSettingMap* _tmp11_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (description != NULL);
	g_return_if_fail (local_action != NULL);
	g_return_if_fail (system_action != NULL);
	g_return_if_fail (expected_config_changes != NULL);
	g_return_if_fail (expected_section_changes != NULL);
	g_return_if_fail (expected_setting_changes != NULL);
	_tmp0_ = description;
	_tmp1_ = g_strdup (_tmp0_);
	_g_free0 (self->description);
	self->description = _tmp1_;
	_tmp2_ = local_action;
	_tmp3_ = _g_object_ref0 (_tmp2_);
	_g_object_unref0 (self->local_action);
	self->local_action = _tmp3_;
	_tmp4_ = system_action;
	_tmp5_ = _g_object_ref0 (_tmp4_);
	_g_object_unref0 (self->system_action);
	self->system_action = _tmp5_;
	_tmp6_ = expected_config_changes;
	_tmp7_ = _g_object_ref0 (_tmp6_);
	_g_object_unref0 (self->expected_config_changes);
	self->expected_config_changes = _tmp7_;
	_tmp8_ = expected_section_changes;
	_tmp9_ = _g_object_ref0 (_tmp8_);
	_g_object_unref0 (self->expected_section_changes);
	self->expected_section_changes = _tmp9_;
	_tmp10_ = expected_setting_changes;
	_tmp11_ = _g_object_ref0 (_tmp10_);
	_g_object_unref0 (self->expected_setting_changes);
	self->expected_setting_changes = _tmp11_;
	self->priv->description_printed = FALSE;
}


static RygelUserConfigTestWatchData* rygel_user_config_test_watch_data_construct (GType object_type, const gchar* description, RygelUserConfigTestSettingsAction* local_action, RygelUserConfigTestSettingsAction* system_action, RygelUserConfigTestConfigSet* expected_config_changes, RygelUserConfigTestSectionMap* expected_section_changes, RygelUserConfigTestSettingMap* expected_setting_changes) {
	RygelUserConfigTestWatchData * self = NULL;
	const gchar* _tmp0_ = NULL;
	RygelUserConfigTestSettingsAction* _tmp1_ = NULL;
	RygelUserConfigTestSettingsAction* _tmp2_ = NULL;
	RygelUserConfigTestConfigSet* _tmp3_ = NULL;
	RygelUserConfigTestSectionMap* _tmp4_ = NULL;
	RygelUserConfigTestSettingMap* _tmp5_ = NULL;
	g_return_val_if_fail (description != NULL, NULL);
	g_return_val_if_fail (local_action != NULL, NULL);
	g_return_val_if_fail (system_action != NULL, NULL);
	g_return_val_if_fail (expected_config_changes != NULL, NULL);
	g_return_val_if_fail (expected_section_changes != NULL, NULL);
	g_return_val_if_fail (expected_setting_changes != NULL, NULL);
	self = (RygelUserConfigTestWatchData*) g_object_new (object_type, NULL);
	_tmp0_ = description;
	_tmp1_ = local_action;
	_tmp2_ = system_action;
	_tmp3_ = expected_config_changes;
	_tmp4_ = expected_section_changes;
	_tmp5_ = expected_setting_changes;
	rygel_user_config_test_watch_data_initialize (self, _tmp0_, _tmp1_, _tmp2_, _tmp3_, _tmp4_, _tmp5_);
	return self;
}


static RygelUserConfigTestWatchData* rygel_user_config_test_watch_data_new (const gchar* description, RygelUserConfigTestSettingsAction* local_action, RygelUserConfigTestSettingsAction* system_action, RygelUserConfigTestConfigSet* expected_config_changes, RygelUserConfigTestSectionMap* expected_section_changes, RygelUserConfigTestSettingMap* expected_setting_changes) {
	return rygel_user_config_test_watch_data_construct (RYGEL_USER_CONFIG_TEST_TYPE_WATCH_DATA, description, local_action, system_action, expected_config_changes, expected_section_changes, expected_setting_changes);
}


static RygelUserConfigTestWatchData* rygel_user_config_test_watch_data_construct_no_changes (GType object_type, const gchar* description, RygelUserConfigTestSettingsAction* local_action, RygelUserConfigTestSettingsAction* system_action) {
	RygelUserConfigTestWatchData * self = NULL;
	const gchar* _tmp0_ = NULL;
	RygelUserConfigTestSettingsAction* _tmp1_ = NULL;
	RygelUserConfigTestSettingsAction* _tmp2_ = NULL;
	RygelUserConfigTestConfigSet* _tmp3_ = NULL;
	RygelUserConfigTestConfigSet* _tmp4_ = NULL;
	RygelUserConfigTestSectionMap* _tmp5_ = NULL;
	RygelUserConfigTestSectionMap* _tmp6_ = NULL;
	RygelUserConfigTestSettingMap* _tmp7_ = NULL;
	RygelUserConfigTestSettingMap* _tmp8_ = NULL;
	g_return_val_if_fail (description != NULL, NULL);
	g_return_val_if_fail (local_action != NULL, NULL);
	g_return_val_if_fail (system_action != NULL, NULL);
	self = (RygelUserConfigTestWatchData*) g_object_new (object_type, NULL);
	_tmp0_ = description;
	_tmp1_ = local_action;
	_tmp2_ = system_action;
	_tmp3_ = rygel_user_config_test_config_set_new ();
	_tmp4_ = _tmp3_;
	_tmp5_ = rygel_user_config_test_section_map_new ();
	_tmp6_ = _tmp5_;
	_tmp7_ = rygel_user_config_test_setting_map_new ();
	_tmp8_ = _tmp7_;
	rygel_user_config_test_watch_data_initialize (self, _tmp0_, _tmp1_, _tmp2_, _tmp4_, _tmp6_, _tmp8_);
	_g_object_unref0 (_tmp8_);
	_g_object_unref0 (_tmp6_);
	_g_object_unref0 (_tmp4_);
	return self;
}


static RygelUserConfigTestWatchData* rygel_user_config_test_watch_data_new_no_changes (const gchar* description, RygelUserConfigTestSettingsAction* local_action, RygelUserConfigTestSettingsAction* system_action) {
	return rygel_user_config_test_watch_data_construct_no_changes (RYGEL_USER_CONFIG_TEST_TYPE_WATCH_DATA, description, local_action, system_action);
}


static gboolean rygel_user_config_test_watch_data_empty (RygelUserConfigTestWatchData* self) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	RygelUserConfigTestConfigSet* _tmp2_ = NULL;
	GeeHashSet* _tmp3_ = NULL;
	gint _tmp4_ = 0;
	gint _tmp5_ = 0;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp2_ = self->expected_config_changes;
	_tmp3_ = _tmp2_->gee;
	_tmp4_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp3_);
	_tmp5_ = _tmp4_;
	if (_tmp5_ == 0) {
		RygelUserConfigTestSectionMap* _tmp6_ = NULL;
		GeeHashMap* _tmp7_ = NULL;
		gint _tmp8_ = 0;
		gint _tmp9_ = 0;
		_tmp6_ = self->expected_section_changes;
		_tmp7_ = _tmp6_->gee;
		_tmp8_ = gee_abstract_map_get_size ((GeeMap*) _tmp7_);
		_tmp9_ = _tmp8_;
		_tmp1_ = _tmp9_ == 0;
	} else {
		_tmp1_ = FALSE;
	}
	if (_tmp1_) {
		RygelUserConfigTestSettingMap* _tmp10_ = NULL;
		GeeHashMap* _tmp11_ = NULL;
		gint _tmp12_ = 0;
		gint _tmp13_ = 0;
		_tmp10_ = self->expected_setting_changes;
		_tmp11_ = _tmp10_->gee;
		_tmp12_ = gee_abstract_map_get_size ((GeeMap*) _tmp11_);
		_tmp13_ = _tmp12_;
		_tmp0_ = _tmp13_ == 0;
	} else {
		_tmp0_ = FALSE;
	}
	result = _tmp0_;
	return result;
}


static void rygel_user_config_test_watch_data_prepare_setup (RygelUserConfigTestWatchData* self) {
	RygelUserConfigTestSettingsAction* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	RygelUserConfigTestSettingsAction* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->local_action;
	_tmp1_ = rygel_user_config_test_LOCAL_CONFIG;
	rygel_user_config_test_settings_action_perform (_tmp0_, _tmp1_);
	_tmp2_ = self->system_action;
	_tmp3_ = rygel_user_config_test_SYSTEM_CONFIG;
	rygel_user_config_test_settings_action_perform (_tmp2_, _tmp3_);
}


static void rygel_user_config_test_watch_data_print_description (RygelUserConfigTestWatchData* self) {
	gboolean _tmp0_ = FALSE;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->description_printed;
	if (!_tmp0_) {
		const gchar* _tmp1_ = NULL;
		self->priv->description_printed = TRUE;
		_tmp1_ = self->description;
		g_warning ("rygel-user-config-test.vala:230: Test case: %s.", _tmp1_);
	}
}


static void rygel_user_config_test_watch_data_print_expectations (RygelUserConfigTestWatchData* self) {
	RygelUserConfigTestConfigSet* _tmp0_ = NULL;
	GeeHashSet* _tmp1_ = NULL;
	gint _tmp2_ = 0;
	gint _tmp3_ = 0;
	RygelUserConfigTestSectionMap* _tmp13_ = NULL;
	GeeHashMap* _tmp14_ = NULL;
	gint _tmp15_ = 0;
	gint _tmp16_ = 0;
	RygelUserConfigTestSettingMap* _tmp42_ = NULL;
	GeeHashMap* _tmp43_ = NULL;
	gint _tmp44_ = 0;
	gint _tmp45_ = 0;
	g_return_if_fail (self != NULL);
	g_warning ("rygel-user-config-test.vala:235: Expected configuration changes so far" \
":");
	_tmp0_ = self->expected_config_changes;
	_tmp1_ = _tmp0_->gee;
	_tmp2_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp1_);
	_tmp3_ = _tmp2_;
	if (_tmp3_ == 0) {
		g_warning ("rygel-user-config-test.vala:237: (none)");
	} else {
		{
			GeeIterator* _entry_it = NULL;
			RygelUserConfigTestConfigSet* _tmp4_ = NULL;
			GeeHashSet* _tmp5_ = NULL;
			GeeIterator* _tmp6_ = NULL;
			_tmp4_ = self->expected_config_changes;
			_tmp5_ = _tmp4_->gee;
			_tmp6_ = gee_abstract_collection_iterator ((GeeAbstractCollection*) _tmp5_);
			_entry_it = _tmp6_;
			while (TRUE) {
				GeeIterator* _tmp7_ = NULL;
				gboolean _tmp8_ = FALSE;
				RygelConfigurationEntry entry = 0;
				GeeIterator* _tmp9_ = NULL;
				gpointer _tmp10_ = NULL;
				RygelConfigurationEntry _tmp11_ = 0;
				GEnumValue* _tmp12_;
				_tmp7_ = _entry_it;
				_tmp8_ = gee_iterator_next (_tmp7_);
				if (!_tmp8_) {
					break;
				}
				_tmp9_ = _entry_it;
				_tmp10_ = gee_iterator_get (_tmp9_);
				entry = (RygelConfigurationEntry) ((gintptr) _tmp10_);
				_tmp11_ = entry;
				_tmp12_ = g_enum_get_value (g_type_class_ref (RYGEL_TYPE_CONFIGURATION_ENTRY), _tmp11_);
				g_warning ("rygel-user-config-test.vala:240:   %s", (_tmp12_ != NULL) ? _tmp12_->value_name : NULL);
			}
			_g_object_unref0 (_entry_it);
		}
	}
	g_warning ("rygel-user-config-test.vala:243: Expected section changes so far:");
	_tmp13_ = self->expected_section_changes;
	_tmp14_ = _tmp13_->gee;
	_tmp15_ = gee_abstract_map_get_size ((GeeMap*) _tmp14_);
	_tmp16_ = _tmp15_;
	if (_tmp16_ == 0) {
		g_warning ("rygel-user-config-test.vala:245: (none)");
	} else {
		GeeHashMap* changes = NULL;
		RygelUserConfigTestSectionMap* _tmp17_ = NULL;
		GeeHashMap* _tmp18_ = NULL;
		GeeHashMap* _tmp19_ = NULL;
		_tmp17_ = self->expected_section_changes;
		_tmp18_ = _tmp17_->gee;
		_tmp19_ = _g_object_ref0 (_tmp18_);
		changes = _tmp19_;
		{
			GeeIterator* _section_it = NULL;
			GeeHashMap* _tmp20_ = NULL;
			GeeSet* _tmp21_ = NULL;
			GeeSet* _tmp22_ = NULL;
			GeeSet* _tmp23_ = NULL;
			GeeIterator* _tmp24_ = NULL;
			GeeIterator* _tmp25_ = NULL;
			_tmp20_ = changes;
			_tmp21_ = gee_abstract_map_get_keys ((GeeMap*) _tmp20_);
			_tmp22_ = _tmp21_;
			_tmp23_ = _tmp22_;
			_tmp24_ = gee_iterable_iterator ((GeeIterable*) _tmp23_);
			_tmp25_ = _tmp24_;
			_g_object_unref0 (_tmp23_);
			_section_it = _tmp25_;
			while (TRUE) {
				GeeIterator* _tmp26_ = NULL;
				gboolean _tmp27_ = FALSE;
				gchar* section = NULL;
				GeeIterator* _tmp28_ = NULL;
				gpointer _tmp29_ = NULL;
				GeeHashSet* entries = NULL;
				GeeHashMap* _tmp30_ = NULL;
				const gchar* _tmp31_ = NULL;
				gpointer _tmp32_ = NULL;
				const gchar* _tmp33_ = NULL;
				_tmp26_ = _section_it;
				_tmp27_ = gee_iterator_next (_tmp26_);
				if (!_tmp27_) {
					break;
				}
				_tmp28_ = _section_it;
				_tmp29_ = gee_iterator_get (_tmp28_);
				section = (gchar*) _tmp29_;
				_tmp30_ = changes;
				_tmp31_ = section;
				_tmp32_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp30_, _tmp31_);
				entries = (GeeHashSet*) _tmp32_;
				_tmp33_ = section;
				g_warning ("rygel-user-config-test.vala:252:   %s", _tmp33_);
				{
					GeeIterator* _entry_it = NULL;
					GeeHashSet* _tmp34_ = NULL;
					GeeIterator* _tmp35_ = NULL;
					_tmp34_ = entries;
					_tmp35_ = gee_abstract_collection_iterator ((GeeAbstractCollection*) _tmp34_);
					_entry_it = _tmp35_;
					while (TRUE) {
						GeeIterator* _tmp36_ = NULL;
						gboolean _tmp37_ = FALSE;
						RygelSectionEntry entry = 0;
						GeeIterator* _tmp38_ = NULL;
						gpointer _tmp39_ = NULL;
						RygelSectionEntry _tmp40_ = 0;
						GEnumValue* _tmp41_;
						_tmp36_ = _entry_it;
						_tmp37_ = gee_iterator_next (_tmp36_);
						if (!_tmp37_) {
							break;
						}
						_tmp38_ = _entry_it;
						_tmp39_ = gee_iterator_get (_tmp38_);
						entry = (RygelSectionEntry) ((gintptr) _tmp39_);
						_tmp40_ = entry;
						_tmp41_ = g_enum_get_value (g_type_class_ref (RYGEL_TYPE_SECTION_ENTRY), _tmp40_);
						g_warning ("rygel-user-config-test.vala:254:     %s", (_tmp41_ != NULL) ? _tmp41_->value_name : NULL);
					}
					_g_object_unref0 (_entry_it);
				}
				_g_object_unref0 (entries);
				_g_free0 (section);
			}
			_g_object_unref0 (_section_it);
		}
		_g_object_unref0 (changes);
	}
	g_warning ("rygel-user-config-test.vala:258: Expected setting changes so far:");
	_tmp42_ = self->expected_setting_changes;
	_tmp43_ = _tmp42_->gee;
	_tmp44_ = gee_abstract_map_get_size ((GeeMap*) _tmp43_);
	_tmp45_ = _tmp44_;
	if (_tmp45_ == 0) {
		g_warning ("rygel-user-config-test.vala:260: (none)");
	} else {
		GeeHashMap* changes = NULL;
		RygelUserConfigTestSettingMap* _tmp46_ = NULL;
		GeeHashMap* _tmp47_ = NULL;
		GeeHashMap* _tmp48_ = NULL;
		_tmp46_ = self->expected_setting_changes;
		_tmp47_ = _tmp46_->gee;
		_tmp48_ = _g_object_ref0 (_tmp47_);
		changes = _tmp48_;
		{
			GeeIterator* _section_it = NULL;
			GeeHashMap* _tmp49_ = NULL;
			GeeSet* _tmp50_ = NULL;
			GeeSet* _tmp51_ = NULL;
			GeeSet* _tmp52_ = NULL;
			GeeIterator* _tmp53_ = NULL;
			GeeIterator* _tmp54_ = NULL;
			_tmp49_ = changes;
			_tmp50_ = gee_abstract_map_get_keys ((GeeMap*) _tmp49_);
			_tmp51_ = _tmp50_;
			_tmp52_ = _tmp51_;
			_tmp53_ = gee_iterable_iterator ((GeeIterable*) _tmp52_);
			_tmp54_ = _tmp53_;
			_g_object_unref0 (_tmp52_);
			_section_it = _tmp54_;
			while (TRUE) {
				GeeIterator* _tmp55_ = NULL;
				gboolean _tmp56_ = FALSE;
				gchar* section = NULL;
				GeeIterator* _tmp57_ = NULL;
				gpointer _tmp58_ = NULL;
				GeeHashSet* keys = NULL;
				GeeHashMap* _tmp59_ = NULL;
				const gchar* _tmp60_ = NULL;
				gpointer _tmp61_ = NULL;
				const gchar* _tmp62_ = NULL;
				_tmp55_ = _section_it;
				_tmp56_ = gee_iterator_next (_tmp55_);
				if (!_tmp56_) {
					break;
				}
				_tmp57_ = _section_it;
				_tmp58_ = gee_iterator_get (_tmp57_);
				section = (gchar*) _tmp58_;
				_tmp59_ = changes;
				_tmp60_ = section;
				_tmp61_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp59_, _tmp60_);
				keys = (GeeHashSet*) _tmp61_;
				_tmp62_ = section;
				g_warning ("rygel-user-config-test.vala:267:   %s", _tmp62_);
				{
					GeeIterator* _key_it = NULL;
					GeeHashSet* _tmp63_ = NULL;
					GeeIterator* _tmp64_ = NULL;
					_tmp63_ = keys;
					_tmp64_ = gee_abstract_collection_iterator ((GeeAbstractCollection*) _tmp63_);
					_key_it = _tmp64_;
					while (TRUE) {
						GeeIterator* _tmp65_ = NULL;
						gboolean _tmp66_ = FALSE;
						gchar* key = NULL;
						GeeIterator* _tmp67_ = NULL;
						gpointer _tmp68_ = NULL;
						const gchar* _tmp69_ = NULL;
						_tmp65_ = _key_it;
						_tmp66_ = gee_iterator_next (_tmp65_);
						if (!_tmp66_) {
							break;
						}
						_tmp67_ = _key_it;
						_tmp68_ = gee_iterator_get (_tmp67_);
						key = (gchar*) _tmp68_;
						_tmp69_ = key;
						g_warning ("rygel-user-config-test.vala:269:     %s", _tmp69_);
						_g_free0 (key);
					}
					_g_object_unref0 (_key_it);
				}
				_g_object_unref0 (keys);
				_g_free0 (section);
			}
			_g_object_unref0 (_section_it);
		}
		_g_object_unref0 (changes);
	}
}


static void rygel_user_config_test_watch_data_class_init (RygelUserConfigTestWatchDataClass * klass) {
	rygel_user_config_test_watch_data_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (RygelUserConfigTestWatchDataPrivate));
	G_OBJECT_CLASS (klass)->finalize = rygel_user_config_test_watch_data_finalize;
}


static void rygel_user_config_test_watch_data_instance_init (RygelUserConfigTestWatchData * self) {
	self->priv = RYGEL_USER_CONFIG_TEST_WATCH_DATA_GET_PRIVATE (self);
}


static void rygel_user_config_test_watch_data_finalize (GObject* obj) {
	RygelUserConfigTestWatchData * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_USER_CONFIG_TEST_TYPE_WATCH_DATA, RygelUserConfigTestWatchData);
	_g_free0 (self->description);
	_g_object_unref0 (self->local_action);
	_g_object_unref0 (self->system_action);
	_g_object_unref0 (self->expected_config_changes);
	_g_object_unref0 (self->expected_section_changes);
	_g_object_unref0 (self->expected_setting_changes);
	G_OBJECT_CLASS (rygel_user_config_test_watch_data_parent_class)->finalize (obj);
}


static GType rygel_user_config_test_watch_data_get_type (void) {
	static volatile gsize rygel_user_config_test_watch_data_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_user_config_test_watch_data_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelUserConfigTestWatchDataClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_user_config_test_watch_data_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelUserConfigTestWatchData), 0, (GInstanceInitFunc) rygel_user_config_test_watch_data_instance_init, NULL };
		GType rygel_user_config_test_watch_data_type_id;
		rygel_user_config_test_watch_data_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelUserConfigTestWatchData", &g_define_type_info, 0);
		g_once_init_leave (&rygel_user_config_test_watch_data_type_id__volatile, rygel_user_config_test_watch_data_type_id);
	}
	return rygel_user_config_test_watch_data_type_id__volatile;
}


static RygelUserConfigTestConfigRemover* rygel_user_config_test_config_remover_construct (GType object_type, RygelUserConfigTest* test) {
	RygelUserConfigTestConfigRemover* self = NULL;
	RygelUserConfigTest* _tmp0_ = NULL;
	RygelUserConfigTest* _tmp1_ = NULL;
	g_return_val_if_fail (test != NULL, NULL);
	self = (RygelUserConfigTestConfigRemover*) g_type_create_instance (object_type);
	_tmp0_ = test;
	_tmp1_ = _g_object_ref0 (_tmp0_);
	_g_object_unref0 (self->priv->test);
	self->priv->test = _tmp1_;
	return self;
}


static RygelUserConfigTestConfigRemover* rygel_user_config_test_config_remover_new (RygelUserConfigTest* test) {
	return rygel_user_config_test_config_remover_construct (RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_REMOVER, test);
}


static void rygel_user_config_test_value_config_remover_init (GValue* value) {
	value->data[0].v_pointer = NULL;
}


static void rygel_user_config_test_value_config_remover_free_value (GValue* value) {
	if (value->data[0].v_pointer) {
		rygel_user_config_test_config_remover_unref (value->data[0].v_pointer);
	}
}


static void rygel_user_config_test_value_config_remover_copy_value (const GValue* src_value, GValue* dest_value) {
	if (src_value->data[0].v_pointer) {
		dest_value->data[0].v_pointer = rygel_user_config_test_config_remover_ref (src_value->data[0].v_pointer);
	} else {
		dest_value->data[0].v_pointer = NULL;
	}
}


static gpointer rygel_user_config_test_value_config_remover_peek_pointer (const GValue* value) {
	return value->data[0].v_pointer;
}


static gchar* rygel_user_config_test_value_config_remover_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	if (collect_values[0].v_pointer) {
		RygelUserConfigTestConfigRemover* object;
		object = collect_values[0].v_pointer;
		if (object->parent_instance.g_class == NULL) {
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
		}
		value->data[0].v_pointer = rygel_user_config_test_config_remover_ref (object);
	} else {
		value->data[0].v_pointer = NULL;
	}
	return NULL;
}


static gchar* rygel_user_config_test_value_config_remover_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	RygelUserConfigTestConfigRemover** object_p;
	object_p = collect_values[0].v_pointer;
	if (!object_p) {
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
	}
	if (!value->data[0].v_pointer) {
		*object_p = NULL;
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
		*object_p = value->data[0].v_pointer;
	} else {
		*object_p = rygel_user_config_test_config_remover_ref (value->data[0].v_pointer);
	}
	return NULL;
}


static GParamSpec* rygel_user_config_test_param_spec_config_remover (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	RygelUserConfigTestParamSpecConfigRemover* spec;
	g_return_val_if_fail (g_type_is_a (object_type, RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_REMOVER), NULL);
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
	G_PARAM_SPEC (spec)->value_type = object_type;
	return G_PARAM_SPEC (spec);
}


static gpointer rygel_user_config_test_value_get_config_remover (const GValue* value) {
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_REMOVER), NULL);
	return value->data[0].v_pointer;
}


static void rygel_user_config_test_value_set_config_remover (GValue* value, gpointer v_object) {
	RygelUserConfigTestConfigRemover* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_REMOVER));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_REMOVER));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
		rygel_user_config_test_config_remover_ref (value->data[0].v_pointer);
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		rygel_user_config_test_config_remover_unref (old);
	}
}


static void rygel_user_config_test_value_take_config_remover (GValue* value, gpointer v_object) {
	RygelUserConfigTestConfigRemover* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_REMOVER));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_REMOVER));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		rygel_user_config_test_config_remover_unref (old);
	}
}


static void rygel_user_config_test_config_remover_class_init (RygelUserConfigTestConfigRemoverClass * klass) {
	rygel_user_config_test_config_remover_parent_class = g_type_class_peek_parent (klass);
	((RygelUserConfigTestConfigRemoverClass *) klass)->finalize = rygel_user_config_test_config_remover_finalize;
	g_type_class_add_private (klass, sizeof (RygelUserConfigTestConfigRemoverPrivate));
}


static void rygel_user_config_test_config_remover_instance_init (RygelUserConfigTestConfigRemover * self) {
	self->priv = RYGEL_USER_CONFIG_TEST_CONFIG_REMOVER_GET_PRIVATE (self);
	self->ref_count = 1;
}


static void rygel_user_config_test_config_remover_finalize (RygelUserConfigTestConfigRemover* obj) {
	RygelUserConfigTestConfigRemover * self;
	RygelUserConfigTest* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	RygelUserConfigTest* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_USER_CONFIG_TEST_TYPE_CONFIG_REMOVER, RygelUserConfigTestConfigRemover);
	g_signal_handlers_destroy (self);
	_tmp0_ = self->priv->test;
	_tmp1_ = rygel_user_config_test_LOCAL_CONFIG;
	rygel_user_config_test_remove_config (_tmp0_, _tmp1_);
	_tmp2_ = self->priv->test;
	_tmp3_ = rygel_user_config_test_SYSTEM_CONFIG;
	rygel_user_config_test_remove_config (_tmp2_, _tmp3_);
	_g_object_unref0 (self->priv->test);
}


static GType rygel_user_config_test_config_remover_get_type (void) {
	static volatile gsize rygel_user_config_test_config_remover_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_user_config_test_config_remover_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { rygel_user_config_test_value_config_remover_init, rygel_user_config_test_value_config_remover_free_value, rygel_user_config_test_value_config_remover_copy_value, rygel_user_config_test_value_config_remover_peek_pointer, "p", rygel_user_config_test_value_config_remover_collect_value, "p", rygel_user_config_test_value_config_remover_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (RygelUserConfigTestConfigRemoverClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_user_config_test_config_remover_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelUserConfigTestConfigRemover), 0, (GInstanceInitFunc) rygel_user_config_test_config_remover_instance_init, &g_define_type_value_table };
		static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
		GType rygel_user_config_test_config_remover_type_id;
		rygel_user_config_test_config_remover_type_id = g_type_register_fundamental (g_type_fundamental_next (), "RygelUserConfigTestConfigRemover", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&rygel_user_config_test_config_remover_type_id__volatile, rygel_user_config_test_config_remover_type_id);
	}
	return rygel_user_config_test_config_remover_type_id__volatile;
}


static gpointer rygel_user_config_test_config_remover_ref (gpointer instance) {
	RygelUserConfigTestConfigRemover* self;
	self = instance;
	g_atomic_int_inc (&self->ref_count);
	return instance;
}


static void rygel_user_config_test_config_remover_unref (gpointer instance) {
	RygelUserConfigTestConfigRemover* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		RYGEL_USER_CONFIG_TEST_CONFIG_REMOVER_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}


static void rygel_user_config_test_class_init (RygelUserConfigTestClass * klass) {
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	rygel_user_config_test_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (RygelUserConfigTestPrivate));
	G_OBJECT_CLASS (klass)->finalize = rygel_user_config_test_finalize;
	_tmp0_ = g_strdup ("user-config-test-local.ini");
	rygel_user_config_test_LOCAL_CONFIG = _tmp0_;
	_tmp1_ = g_strdup ("user-config-test-system.ini");
	rygel_user_config_test_SYSTEM_CONFIG = _tmp1_;
	_tmp2_ = g_strdup ("general");
	rygel_user_config_test_GENERAL = _tmp2_;
	_tmp3_ = g_strdup ("foo");
	rygel_user_config_test_FOO = _tmp3_;
}


static void rygel_user_config_test_instance_init (RygelUserConfigTest * self) {
	self->priv = RYGEL_USER_CONFIG_TEST_GET_PRIVATE (self);
}


static void rygel_user_config_test_finalize (GObject* obj) {
	RygelUserConfigTest * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_USER_CONFIG_TEST, RygelUserConfigTest);
	_g_main_loop_unref0 (self->priv->main_loop);
	_g_object_unref0 (self->priv->config);
	_g_object_unref0 (self->priv->current_watch_data);
	_g_object_unref0 (self->priv->last_settings);
	G_OBJECT_CLASS (rygel_user_config_test_parent_class)->finalize (obj);
}


GType rygel_user_config_test_get_type (void) {
	static volatile gsize rygel_user_config_test_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_user_config_test_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelUserConfigTestClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_user_config_test_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelUserConfigTest), 0, (GInstanceInitFunc) rygel_user_config_test_instance_init, NULL };
		GType rygel_user_config_test_type_id;
		rygel_user_config_test_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelUserConfigTest", &g_define_type_info, 0);
		g_once_init_leave (&rygel_user_config_test_type_id__volatile, rygel_user_config_test_type_id);
	}
	return rygel_user_config_test_type_id__volatile;
}



