/* rygel-user-config-test.c generated by valac 0.42.1.67-6c68, 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-object.h>
#include <glib.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;
enum  {
	RYGEL_USER_CONFIG_TEST_0_PROPERTY,
	RYGEL_USER_CONFIG_TEST_NUM_PROPERTIES
};
static GParamSpec* rygel_user_config_test_properties[RYGEL_USER_CONFIG_TEST_NUM_PROPERTIES];
#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;
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;

#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;
typedef enum  {
	RYGEL_SECTION_ENTRY_TITLE,
	RYGEL_SECTION_ENTRY_ENABLED
} RygelSectionEntry;

#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;
enum  {
	RYGEL_USER_CONFIG_TEST_CONFIG_SET_0_PROPERTY,
	RYGEL_USER_CONFIG_TEST_CONFIG_SET_NUM_PROPERTIES
};
static GParamSpec* rygel_user_config_test_config_set_properties[RYGEL_USER_CONFIG_TEST_CONFIG_SET_NUM_PROPERTIES];
enum  {
	RYGEL_USER_CONFIG_TEST_SECTION_MAP_0_PROPERTY,
	RYGEL_USER_CONFIG_TEST_SECTION_MAP_NUM_PROPERTIES
};
static GParamSpec* rygel_user_config_test_section_map_properties[RYGEL_USER_CONFIG_TEST_SECTION_MAP_NUM_PROPERTIES];
enum  {
	RYGEL_USER_CONFIG_TEST_SETTING_MAP_0_PROPERTY,
	RYGEL_USER_CONFIG_TEST_SETTING_MAP_NUM_PROPERTIES
};
static GParamSpec* rygel_user_config_test_setting_map_properties[RYGEL_USER_CONFIG_TEST_SETTING_MAP_NUM_PROPERTIES];
enum  {
	RYGEL_USER_CONFIG_TEST_SETTINGS_0_PROPERTY,
	RYGEL_USER_CONFIG_TEST_SETTINGS_NUM_PROPERTIES
};
static GParamSpec* rygel_user_config_test_settings_properties[RYGEL_USER_CONFIG_TEST_SETTINGS_NUM_PROPERTIES];
typedef struct _RygelUserConfigTestSettingsActionPrivate RygelUserConfigTestSettingsActionPrivate;
enum  {
	RYGEL_USER_CONFIG_TEST_SETTINGS_ACTION_0_PROPERTY,
	RYGEL_USER_CONFIG_TEST_SETTINGS_ACTION_NUM_PROPERTIES
};
static GParamSpec* rygel_user_config_test_settings_action_properties[RYGEL_USER_CONFIG_TEST_SETTINGS_ACTION_NUM_PROPERTIES];
typedef struct _RygelUserConfigTestSettingsDoNothingPrivate RygelUserConfigTestSettingsDoNothingPrivate;
enum  {
	RYGEL_USER_CONFIG_TEST_SETTINGS_DO_NOTHING_0_PROPERTY,
	RYGEL_USER_CONFIG_TEST_SETTINGS_DO_NOTHING_NUM_PROPERTIES
};
static GParamSpec* rygel_user_config_test_settings_do_nothing_properties[RYGEL_USER_CONFIG_TEST_SETTINGS_DO_NOTHING_NUM_PROPERTIES];
typedef struct _RygelUserConfigTestSettingsReplacePrivate RygelUserConfigTestSettingsReplacePrivate;
enum  {
	RYGEL_USER_CONFIG_TEST_SETTINGS_REPLACE_0_PROPERTY,
	RYGEL_USER_CONFIG_TEST_SETTINGS_REPLACE_NUM_PROPERTIES
};
static GParamSpec* rygel_user_config_test_settings_replace_properties[RYGEL_USER_CONFIG_TEST_SETTINGS_REPLACE_NUM_PROPERTIES];
typedef struct _RygelUserConfigTestSettingsRemovePrivate RygelUserConfigTestSettingsRemovePrivate;
enum  {
	RYGEL_USER_CONFIG_TEST_SETTINGS_REMOVE_0_PROPERTY,
	RYGEL_USER_CONFIG_TEST_SETTINGS_REMOVE_NUM_PROPERTIES
};
static GParamSpec* rygel_user_config_test_settings_remove_properties[RYGEL_USER_CONFIG_TEST_SETTINGS_REMOVE_NUM_PROPERTIES];
enum  {
	RYGEL_USER_CONFIG_TEST_WATCH_DATA_0_PROPERTY,
	RYGEL_USER_CONFIG_TEST_WATCH_DATA_NUM_PROPERTIES
};
static GParamSpec* rygel_user_config_test_watch_data_properties[RYGEL_USER_CONFIG_TEST_WATCH_DATA_NUM_PROPERTIES];
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) G_GNUC_DEPRECATED;
	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);
};

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;
};

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 gint RygelUserConfigTest_private_offset;
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 gint RygelUserConfigTestSettingsReplace_private_offset;
static gpointer rygel_user_config_test_settings_replace_parent_class = NULL;
static gpointer rygel_user_config_test_settings_remove_parent_class = NULL;
static gint RygelUserConfigTestWatchData_private_offset;
static gpointer rygel_user_config_test_watch_data_parent_class = NULL;
static gint RygelUserConfigTestConfigRemover_private_offset;
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;
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,
                                  gint args_length1);
static void rygel_user_config_test_config_set_finalize (GObject * obj);
static void rygel_user_config_test_section_map_finalize (GObject * obj);
static void rygel_user_config_test_setting_map_finalize (GObject * obj);
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);
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);
static void rygel_user_config_test_settings_do_nothing_real_perform (RygelUserConfigTestSettingsAction* base,
                                                              const gchar* config);
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);
static void rygel_user_config_test_settings_remove_real_perform (RygelUserConfigTestSettingsAction* base,
                                                          const gchar* config);
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);
static void rygel_user_config_test_config_remover_finalize (RygelUserConfigTestConfigRemover * obj);
static void rygel_user_config_test_finalize (GObject * obj);

static inline gpointer
rygel_user_config_test_get_instance_private (RygelUserConfigTest* self)
{
	return G_STRUCT_MEMBER_P (self, RygelUserConfigTest_private_offset);
}

static void
rygel_user_config_test_set_config (RygelUserConfigTest* self,
                                   const gchar* path,
                                   RygelUserConfigTestSettings* settings,
                                   GError** error)
{
	GKeyFile* key_file = NULL;
	GKeyFile* _tmp0_;
	GeeHashMap* _tmp1_;
	const gchar* _tmp2_;
	gboolean* _tmp6_;
	const gchar* _tmp10_;
	gint* _tmp14_;
	const gchar* _tmp18_;
	gboolean* _tmp22_;
	gboolean* _tmp26_;
	gchar* tmp_path = NULL;
	gchar* _tmp30_;
	gsize size = 0UL;
	gchar* data = NULL;
	GKeyFile* _tmp31_;
	gsize _tmp32_ = 0UL;
	gchar* _tmp33_;
	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;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp1_, path, settings);
	_tmp2_ = settings->general_title;
	if (_tmp2_ != NULL) {
		GKeyFile* _tmp3_;
		const gchar* _tmp4_;
		const gchar* _tmp5_;
		_tmp3_ = key_file;
		_tmp4_ = rygel_user_config_test_GENERAL;
		_tmp5_ = settings->general_title;
		g_key_file_set_string (_tmp3_, _tmp4_, "title", _tmp5_);
	}
	_tmp6_ = settings->general_enabled;
	if (_tmp6_ != NULL) {
		GKeyFile* _tmp7_;
		const gchar* _tmp8_;
		gboolean* _tmp9_;
		_tmp7_ = key_file;
		_tmp8_ = rygel_user_config_test_GENERAL;
		_tmp9_ = settings->general_enabled;
		g_key_file_set_boolean (_tmp7_, _tmp8_, "enabled", *_tmp9_);
	}
	_tmp10_ = settings->general_iface;
	if (_tmp10_ != NULL) {
		GKeyFile* _tmp11_;
		const gchar* _tmp12_;
		const gchar* _tmp13_;
		_tmp11_ = key_file;
		_tmp12_ = rygel_user_config_test_GENERAL;
		_tmp13_ = settings->general_iface;
		g_key_file_set_string (_tmp11_, _tmp12_, "interface", _tmp13_);
	}
	_tmp14_ = settings->general_port;
	if (_tmp14_ != NULL) {
		GKeyFile* _tmp15_;
		const gchar* _tmp16_;
		gint* _tmp17_;
		_tmp15_ = key_file;
		_tmp16_ = rygel_user_config_test_GENERAL;
		_tmp17_ = settings->general_port;
		g_key_file_set_integer (_tmp15_, _tmp16_, "port", *_tmp17_);
	}
	_tmp18_ = settings->foo_title;
	if (_tmp18_ != NULL) {
		GKeyFile* _tmp19_;
		const gchar* _tmp20_;
		const gchar* _tmp21_;
		_tmp19_ = key_file;
		_tmp20_ = rygel_user_config_test_FOO;
		_tmp21_ = settings->foo_title;
		g_key_file_set_string (_tmp19_, _tmp20_, "title", _tmp21_);
	}
	_tmp22_ = settings->foo_enabled;
	if (_tmp22_ != NULL) {
		GKeyFile* _tmp23_;
		const gchar* _tmp24_;
		gboolean* _tmp25_;
		_tmp23_ = key_file;
		_tmp24_ = rygel_user_config_test_FOO;
		_tmp25_ = settings->foo_enabled;
		g_key_file_set_boolean (_tmp23_, _tmp24_, "enabled", *_tmp25_);
	}
	_tmp26_ = settings->foo_setting;
	if (_tmp26_ != NULL) {
		GKeyFile* _tmp27_;
		const gchar* _tmp28_;
		gboolean* _tmp29_;
		_tmp27_ = key_file;
		_tmp28_ = rygel_user_config_test_FOO;
		_tmp29_ = settings->foo_setting;
		g_key_file_set_boolean (_tmp27_, _tmp28_, "setting", *_tmp29_);
	}
	_tmp30_ = g_strconcat (path, ".tmp", NULL);
	tmp_path = _tmp30_;
	_tmp31_ = key_file;
	_tmp33_ = g_key_file_to_data (_tmp31_, &_tmp32_, NULL);
	size = _tmp32_;
	data = _tmp33_;
	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;
	}
	g_rename (tmp_path, path);
	_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)
{
	GeeHashMap* _tmp0_;
	RygelUserConfigTestSettings* _tmp1_;
	RygelUserConfigTestSettings* _tmp2_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (path != NULL);
	g_unlink (path);
	_tmp0_ = self->priv->last_settings;
	_tmp1_ = rygel_user_config_test_settings_new (NULL, NULL, NULL, NULL, NULL, NULL, NULL);
	_tmp2_ = _tmp1_;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp0_, path, _tmp2_);
	_g_object_unref0 (_tmp2_);
}

RygelUserConfigTest*
rygel_user_config_test_construct (GType object_type)
{
	RygelUserConfigTest * self = NULL;
	GMainLoop* _tmp0_;
	GeeHashMap* _tmp1_;
	GeeHashMap* _tmp2_;
	const gchar* _tmp3_;
	RygelUserConfigTestSettings* _tmp4_;
	RygelUserConfigTestSettings* _tmp5_;
	GeeHashMap* _tmp6_;
	const gchar* _tmp7_;
	RygelUserConfigTestSettings* _tmp8_;
	RygelUserConfigTestSettings* _tmp9_;
	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, (GDestroyNotify) g_free, RYGEL_USER_CONFIG_TEST_TYPE_SETTINGS, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	failed = FALSE;
	{
		RygelUserConfig* config = NULL;
		const gchar* _tmp0_;
		const gchar* _tmp1_;
		RygelUserConfig* _tmp2_;
		_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;
	}
	if (expect_failure != failed) {
		const gchar* _tmp3_ = NULL;
		if (expect_failure) {
			_tmp3_ = "success";
		} else {
			_tmp3_ = "failure";
		}
		g_warning ("rygel-user-config-test.vala:351: Unexpected %s of UserConfig creation.", _tmp3_);
		self->priv->fail = TRUE;
	}
}

static void
rygel_user_config_test_test_loading (RygelUserConfigTest* self)
{
	RygelUserConfigTestConfigRemover* remover = NULL;
	RygelUserConfigTestConfigRemover* _tmp0_;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	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_;
		RygelUserConfigTestSettings* _tmp2_;
		RygelUserConfigTestSettings* _tmp3_;
		_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_;
		RygelUserConfigTestSettings* _tmp5_;
		RygelUserConfigTestSettings* _tmp6_;
		_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_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->current_watch_data;
	if (rygel_user_config_test_watch_data_empty (_tmp0_)) {
		GMainLoop* _tmp1_;
		if (self->priv->timeout_id != ((guint) 0)) {
			g_source_remove (self->priv->timeout_id);
			self->priv->timeout_id = (guint) 0;
		}
		_tmp1_ = self->priv->main_loop;
		g_main_loop_quit (_tmp1_);
	}
}

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_;
	RygelUserConfigTestConfigSet* _tmp1_;
	GeeHashSet* _tmp2_;
	GeeHashSet* _tmp3_;
	GeeHashSet* _tmp4_;
	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;
	if (gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp4_, (gpointer) ((gintptr) entry))) {
		rygel_user_config_test_data_check (self);
	} else {
		RygelUserConfigTestWatchData* _tmp5_;
		GEnumValue* _tmp6_;
		_tmp5_ = self->priv->current_watch_data;
		rygel_user_config_test_watch_data_print_description (_tmp5_);
		_tmp6_ = g_enum_get_value (g_type_class_ref (RYGEL_TYPE_CONFIGURATION_ENTRY), entry);
		g_warning ("rygel-user-config-test.vala:416: Unexpected change of configuration en" \
"try: %s", (_tmp6_ != NULL) ? _tmp6_->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_;
	RygelUserConfigTestSectionMap* _tmp1_;
	GeeHashMap* _tmp2_;
	GeeHashMap* _tmp3_;
	GeeHashMap* _tmp4_;
	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;
	if (gee_abstract_map_has_key ((GeeAbstractMap*) _tmp4_, section)) {
		GeeHashSet* entries = NULL;
		GeeHashMap* _tmp5_;
		gpointer _tmp6_;
		GeeHashSet* _tmp7_;
		_tmp5_ = changes;
		_tmp6_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp5_, section);
		entries = (GeeHashSet*) _tmp6_;
		_tmp7_ = entries;
		if (gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp7_, (gpointer) ((gintptr) entry))) {
			GeeHashSet* _tmp8_;
			gint _tmp9_;
			gint _tmp10_;
			_tmp8_ = entries;
			_tmp9_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp8_);
			_tmp10_ = _tmp9_;
			if (_tmp10_ == 0) {
				GeeHashMap* _tmp11_;
				_tmp11_ = changes;
				gee_abstract_map_unset ((GeeAbstractMap*) _tmp11_, section, NULL);
			}
			rygel_user_config_test_data_check (self);
		} else {
			RygelUserConfigTestWatchData* _tmp12_;
			GEnumValue* _tmp13_;
			_tmp12_ = self->priv->current_watch_data;
			rygel_user_config_test_watch_data_print_description (_tmp12_);
			_tmp13_ = g_enum_get_value (g_type_class_ref (RYGEL_TYPE_SECTION_ENTRY), entry);
			g_warning ("Unexpected change in expected section: %s, " "unexpected entry: %s.", section, (_tmp13_ != NULL) ? _tmp13_->value_name : NULL);
			self->priv->fail = TRUE;
		}
		_g_object_unref0 (entries);
	} else {
		RygelUserConfigTestWatchData* _tmp14_;
		GEnumValue* _tmp15_;
		_tmp14_ = self->priv->current_watch_data;
		rygel_user_config_test_watch_data_print_description (_tmp14_);
		_tmp15_ = g_enum_get_value (g_type_class_ref (RYGEL_TYPE_SECTION_ENTRY), entry);
		g_warning ("rygel-user-config-test.vala:445: Unexpected change in unexpected secti" \
"on: %s, entry %s.", section, (_tmp15_ != NULL) ? _tmp15_->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_;
	RygelUserConfigTestSettingMap* _tmp1_;
	GeeHashMap* _tmp2_;
	GeeHashMap* _tmp3_;
	GeeHashMap* _tmp4_;
	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;
	if (gee_abstract_map_has_key ((GeeAbstractMap*) _tmp4_, section)) {
		GeeHashSet* keys = NULL;
		GeeHashMap* _tmp5_;
		gpointer _tmp6_;
		GeeHashSet* _tmp7_;
		_tmp5_ = changes;
		_tmp6_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp5_, section);
		keys = (GeeHashSet*) _tmp6_;
		_tmp7_ = keys;
		if (gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp7_, key)) {
			GeeHashSet* _tmp8_;
			gint _tmp9_;
			gint _tmp10_;
			_tmp8_ = keys;
			_tmp9_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp8_);
			_tmp10_ = _tmp9_;
			if (_tmp10_ == 0) {
				GeeHashMap* _tmp11_;
				_tmp11_ = changes;
				gee_abstract_map_unset ((GeeAbstractMap*) _tmp11_, section, NULL);
			}
			rygel_user_config_test_data_check (self);
		} else {
			RygelUserConfigTestWatchData* _tmp12_;
			_tmp12_ = self->priv->current_watch_data;
			rygel_user_config_test_watch_data_print_description (_tmp12_);
			g_warning ("Unexpected change in expected setting section: %s, " "unexpected setting key: %s.", section, key);
			self->priv->fail = TRUE;
		}
		_g_object_unref0 (keys);
	} else {
		RygelUserConfigTestWatchData* _tmp13_;
		_tmp13_ = self->priv->current_watch_data;
		rygel_user_config_test_watch_data_print_description (_tmp13_);
		g_warning ("Unexpected change in unexpected setting section: %s, " "setting key: %s", section, key);
		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_;
	RygelUserConfigTestSettingsDoNothing* do_nothing = NULL;
	RygelUserConfigTestSettingsDoNothing* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = gee_array_list_new (RYGEL_USER_CONFIG_TEST_TYPE_WATCH_DATA, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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_;
		RygelUserConfigTestWatchData* _tmp3_;
		RygelUserConfigTestWatchData* _tmp4_;
		_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_;
		RygelUserConfigTestSettingsReplace* last_local = NULL;
		GeeHashMap* _tmp6_;
		const gchar* _tmp7_;
		gpointer _tmp8_;
		RygelUserConfigTestSettings* _tmp9_;
		RygelUserConfigTestSettingsReplace* _tmp10_;
		RygelUserConfigTestSettingsReplace* _tmp11_;
		RygelUserConfigTestSettingsReplace* last_system = NULL;
		GeeHashMap* _tmp12_;
		const gchar* _tmp13_;
		gpointer _tmp14_;
		RygelUserConfigTestSettings* _tmp15_;
		RygelUserConfigTestSettingsReplace* _tmp16_;
		RygelUserConfigTestSettingsReplace* _tmp17_;
		RygelUserConfigTestWatchData* _tmp18_;
		RygelUserConfigTestWatchData* _tmp19_;
		_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_;
		RygelUserConfigTestSettingsReplace* empty = NULL;
		RygelUserConfigTestSettings* _tmp21_;
		RygelUserConfigTestSettings* _tmp22_;
		RygelUserConfigTestSettingsReplace* _tmp23_;
		RygelUserConfigTestSettingsReplace* _tmp24_;
		RygelUserConfigTestWatchData* _tmp25_;
		RygelUserConfigTestWatchData* _tmp26_;
		_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_;
		RygelUserConfigTestConfigSet* config = NULL;
		RygelUserConfigTestConfigSet* _tmp28_;
		GeeHashSet* _tmp29_;
		GeeHashSet* _tmp30_;
		RygelUserConfigTestSectionMap* section = NULL;
		RygelUserConfigTestSectionMap* _tmp31_;
		GeeHashSet* general_section = NULL;
		const gchar* _tmp32_;
		GeeHashSet* _tmp33_;
		GeeHashSet* foo_section = NULL;
		const gchar* _tmp34_;
		GeeHashSet* _tmp35_;
		RygelUserConfigTestSettingMap* setting = NULL;
		RygelUserConfigTestSettingMap* _tmp36_;
		GeeHashSet* foo_setting = NULL;
		const gchar* _tmp37_;
		GeeHashSet* _tmp38_;
		RygelUserConfigTestSettingsReplace* new_local = NULL;
		gboolean _tmp39_;
		gint _tmp40_;
		gboolean _tmp41_;
		gboolean _tmp42_;
		RygelUserConfigTestSettings* _tmp43_;
		RygelUserConfigTestSettings* _tmp44_;
		RygelUserConfigTestSettingsReplace* _tmp45_;
		RygelUserConfigTestSettingsReplace* _tmp46_;
		RygelUserConfigTestWatchData* _tmp47_;
		RygelUserConfigTestWatchData* _tmp48_;
		_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_;
		RygelUserConfigTestSettingsReplace* system_default = NULL;
		RygelUserConfigTestSettings* _tmp50_;
		RygelUserConfigTestSettings* _tmp51_;
		RygelUserConfigTestSettingsReplace* _tmp52_;
		RygelUserConfigTestSettingsReplace* _tmp53_;
		RygelUserConfigTestWatchData* _tmp54_;
		RygelUserConfigTestWatchData* _tmp55_;
		_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_;
		RygelUserConfigTestConfigSet* config = NULL;
		RygelUserConfigTestConfigSet* _tmp57_;
		GeeHashSet* _tmp58_;
		RygelUserConfigTestSectionMap* section = NULL;
		RygelUserConfigTestSectionMap* _tmp59_;
		GeeHashSet* general_section = NULL;
		const gchar* _tmp60_;
		GeeHashSet* _tmp61_;
		GeeHashSet* foo_section = NULL;
		const gchar* _tmp62_;
		GeeHashSet* _tmp63_;
		RygelUserConfigTestSettingMap* setting = NULL;
		RygelUserConfigTestSettingMap* _tmp64_;
		GeeHashSet* foo_setting = NULL;
		const gchar* _tmp65_;
		GeeHashSet* _tmp66_;
		RygelUserConfigTestSettingsReplace* new_local = NULL;
		gboolean _tmp67_;
		gint _tmp68_;
		RygelUserConfigTestSettings* _tmp69_;
		RygelUserConfigTestSettings* _tmp70_;
		RygelUserConfigTestSettingsReplace* _tmp71_;
		RygelUserConfigTestSettingsReplace* _tmp72_;
		RygelUserConfigTestWatchData* _tmp73_;
		RygelUserConfigTestWatchData* _tmp74_;
		_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_;
		RygelUserConfigTestConfigSet* config = NULL;
		RygelUserConfigTestConfigSet* _tmp76_;
		GeeHashSet* _tmp77_;
		RygelUserConfigTestSectionMap* section = NULL;
		RygelUserConfigTestSectionMap* _tmp78_;
		GeeHashSet* general_section = NULL;
		const gchar* _tmp79_;
		GeeHashSet* _tmp80_;
		GeeHashSet* foo_section = NULL;
		const gchar* _tmp81_;
		GeeHashSet* _tmp82_;
		RygelUserConfigTestSettingMap* setting = NULL;
		RygelUserConfigTestSettingMap* _tmp83_;
		RygelUserConfigTestSettingsRemove* _tmp84_;
		RygelUserConfigTestSettingsRemove* _tmp85_;
		RygelUserConfigTestWatchData* _tmp86_;
		RygelUserConfigTestWatchData* _tmp87_;
		_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_;
	GMainLoop* _tmp3_;
	_tmp0_ = self->priv->current_watch_data;
	if (!rygel_user_config_test_watch_data_empty (_tmp0_)) {
		RygelUserConfigTestWatchData* _tmp1_;
		RygelUserConfigTestWatchData* _tmp2_;
		_tmp1_ = self->priv->current_watch_data;
		rygel_user_config_test_watch_data_print_description (_tmp1_);
		g_warning ("rygel-user-config-test.vala:678: %s", "Test timed out and not all expected changes " "happened.");
		_tmp2_ = self->priv->current_watch_data;
		rygel_user_config_test_watch_data_print_expectations (_tmp2_);
		self->priv->fail = TRUE;
	}
	self->priv->timeout_id = (guint) 0;
	_tmp3_ = self->priv->main_loop;
	g_main_loop_quit (_tmp3_);
	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_;
	RygelUserConfigTestConfigRemover* _tmp1_;
	RygelUserConfigTestSettings* full_settings = NULL;
	RygelUserConfigTestSettings* _tmp2_;
	RygelUserConfigTestSettings* _tmp3_;
	RygelUserConfig* _tmp13_;
	RygelUserConfig* _tmp14_;
	RygelUserConfig* _tmp15_;
	RygelUserConfig* _tmp16_;
	GeeArrayList* watch_data_array = NULL;
	GeeArrayList* _tmp17_;
	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_;
		RygelUserConfigTestSettings* _tmp5_;
		_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_;
		RygelUserConfigTestSettings* _tmp7_;
		_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_;
		const gchar* _tmp10_;
		RygelUserConfig* _tmp11_;
		RygelUserConfig* _tmp12_;
		_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_;
		GeeArrayList* _tmp19_;
		gint _watch_data_size = 0;
		GeeArrayList* _tmp20_;
		gint _tmp21_;
		gint _tmp22_;
		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 ((GeeAbstractCollection*) _tmp20_);
		_tmp22_ = _tmp21_;
		_watch_data_size = _tmp22_;
		_watch_data_index = -1;
		while (TRUE) {
			RygelUserConfigTestWatchData* watch_data = NULL;
			GeeArrayList* _tmp23_;
			gpointer _tmp24_;
			RygelUserConfigTestWatchData* _tmp25_;
			RygelUserConfigTestWatchData* _tmp26_;
			RygelUserConfigTestWatchData* _tmp27_;
			GMainLoop* _tmp28_;
			_watch_data_index = _watch_data_index + 1;
			if (!(_watch_data_index < _watch_data_size)) {
				break;
			}
			_tmp23_ = _watch_data_list;
			_tmp24_ = gee_abstract_list_get ((GeeAbstractList*) _tmp23_, _watch_data_index);
			watch_data = (RygelUserConfigTestWatchData*) _tmp24_;
			_tmp25_ = watch_data;
			_tmp26_ = _g_object_ref0 (_tmp25_);
			_g_object_unref0 (self->priv->current_watch_data);
			self->priv->current_watch_data = _tmp26_;
			self->priv->timeout_id = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 10, _____lambda6__gsource_func, g_object_ref (self), g_object_unref);
			_tmp27_ = watch_data;
			rygel_user_config_test_watch_data_prepare_setup (_tmp27_);
			_tmp28_ = self->priv->main_loop;
			g_main_loop_run (_tmp28_);
			if (self->priv->fail) {
				_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;
	g_return_val_if_fail (self != NULL, 0);
	rygel_user_config_test_test_loading (self);
	rygel_user_config_test_test_watching (self);
	if (self->priv->fail) {
		result = 1;
		return result;
	}
	result = 0;
	return result;
}

gint
rygel_user_config_test_main (gchar** args,
                             gint args_length1)
{
	gint result = 0;
	RygelUserConfigTest* test = NULL;
	RygelUserConfigTest* _tmp0_;
	gint _tmp2_ = -1;
	GError * _inner_error_ = NULL;
	_tmp0_ = rygel_user_config_test_new ();
	test = _tmp0_;
	{
		gint _tmp1_ = 0;
		_tmp1_ = rygel_user_config_test_run (test, &_inner_error_);
		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 _tmp2_;
}

int
main (int argc,
      char ** argv)
{
	return rygel_user_config_test_main (argv, argc);
}

RygelUserConfigTestConfigSet*
rygel_user_config_test_config_set_construct (GType object_type)
{
	RygelUserConfigTestConfigSet * self = NULL;
	GeeHashSet* _tmp0_;
	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_;
	self = (RygelUserConfigTestSectionMap*) g_object_new (object_type, NULL);
	_tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_HASH_SET, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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_;
	GeeHashMap* _tmp1_;
	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;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp1_, section, 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_;
	self = (RygelUserConfigTestSettingMap*) g_object_new (object_type, NULL);
	_tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, GEE_TYPE_HASH_SET, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) 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_;
	GeeHashMap* _tmp1_;
	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, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
	values = _tmp0_;
	_tmp1_ = self->gee;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp1_, section, 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)
{
	gchar* _tmp0_;
	gboolean* _tmp1_;
	gchar* _tmp2_;
	gint* _tmp3_;
	gchar* _tmp4_;
	gboolean* _tmp5_;
	gboolean* _tmp6_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_strdup (general_title);
	_g_free0 (self->general_title);
	self->general_title = _tmp0_;
	_tmp1_ = __bool_dup0 (general_enabled);
	_g_free0 (self->general_enabled);
	self->general_enabled = _tmp1_;
	_tmp2_ = g_strdup (general_iface);
	_g_free0 (self->general_iface);
	self->general_iface = _tmp2_;
	_tmp3_ = __int_dup0 (general_port);
	_g_free0 (self->general_port);
	self->general_port = _tmp3_;
	_tmp4_ = g_strdup (foo_title);
	_g_free0 (self->foo_title);
	self->foo_title = _tmp4_;
	_tmp5_ = __bool_dup0 (foo_enabled);
	_g_free0 (self->foo_enabled);
	self->foo_enabled = _tmp5_;
	_tmp6_ = __bool_dup0 (foo_setting);
	_g_free0 (self->foo_setting);
	self->foo_setting = _tmp6_;
}

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;
	self = (RygelUserConfigTestSettings*) g_object_new (object_type, NULL);
	rygel_user_config_test_settings_initialize (self, general_title, general_enabled, general_iface, general_port, foo_title, foo_enabled, foo_setting);
	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_;
	gint _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp3_;
	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_;
	g_return_val_if_fail (test != NULL, NULL);
	self = (RygelUserConfigTestSettingsAction*) g_object_new (object_type, NULL);
	_tmp0_ = _g_object_ref0 (test);
	_g_object_unref0 (self->test);
	self->test = _tmp0_;
	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 = (void (*) (RygelUserConfigTestSettingsAction*, const gchar*)) 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;
	g_return_val_if_fail (test != NULL, NULL);
	self = (RygelUserConfigTestSettingsDoNothing*) rygel_user_config_test_settings_action_construct (object_type, test);
	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 = (void (*) (RygelUserConfigTestSettingsAction*, const gchar*)) 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 inline gpointer
rygel_user_config_test_settings_replace_get_instance_private (RygelUserConfigTestSettingsReplace* self)
{
	return G_STRUCT_MEMBER_P (self, RygelUserConfigTestSettingsReplace_private_offset);
}

static RygelUserConfigTestSettingsReplace*
rygel_user_config_test_settings_replace_construct (GType object_type,
                                                   RygelUserConfigTest* test,
                                                   RygelUserConfigTestSettings* settings)
{
	RygelUserConfigTestSettingsReplace * self = NULL;
	RygelUserConfigTestSettings* _tmp0_;
	g_return_val_if_fail (test != NULL, NULL);
	g_return_val_if_fail (settings != NULL, NULL);
	self = (RygelUserConfigTestSettingsReplace*) rygel_user_config_test_settings_action_construct (object_type, test);
	_tmp0_ = _g_object_ref0 (settings);
	_g_object_unref0 (self->priv->settings);
	self->priv->settings = _tmp0_;
	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_;
		RygelUserConfigTestSettings* _tmp1_;
		_tmp0_ = ((RygelUserConfigTestSettingsAction*) self)->test;
		_tmp1_ = self->priv->settings;
		rygel_user_config_test_set_config (_tmp0_, config, _tmp1_, &_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_adjust_private_offset (klass, &RygelUserConfigTestSettingsReplace_private_offset);
	((RygelUserConfigTestSettingsActionClass *) klass)->perform = (void (*) (RygelUserConfigTestSettingsAction*, const gchar*)) 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_instance_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);
		RygelUserConfigTestSettingsReplace_private_offset = g_type_add_instance_private (rygel_user_config_test_settings_replace_type_id, sizeof (RygelUserConfigTestSettingsReplacePrivate));
		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;
	g_return_val_if_fail (test != NULL, NULL);
	self = (RygelUserConfigTestSettingsRemove*) rygel_user_config_test_settings_action_construct (object_type, test);
	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_;
	self = (RygelUserConfigTestSettingsRemove*) base;
	g_return_if_fail (config != NULL);
	_tmp0_ = ((RygelUserConfigTestSettingsAction*) self)->test;
	rygel_user_config_test_remove_config (_tmp0_, config);
}

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 = (void (*) (RygelUserConfigTestSettingsAction*, const gchar*)) 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 inline gpointer
rygel_user_config_test_watch_data_get_instance_private (RygelUserConfigTestWatchData* self)
{
	return G_STRUCT_MEMBER_P (self, RygelUserConfigTestWatchData_private_offset);
}

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)
{
	gchar* _tmp0_;
	RygelUserConfigTestSettingsAction* _tmp1_;
	RygelUserConfigTestSettingsAction* _tmp2_;
	RygelUserConfigTestConfigSet* _tmp3_;
	RygelUserConfigTestSectionMap* _tmp4_;
	RygelUserConfigTestSettingMap* _tmp5_;
	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_ = g_strdup (description);
	_g_free0 (self->description);
	self->description = _tmp0_;
	_tmp1_ = _g_object_ref0 (local_action);
	_g_object_unref0 (self->local_action);
	self->local_action = _tmp1_;
	_tmp2_ = _g_object_ref0 (system_action);
	_g_object_unref0 (self->system_action);
	self->system_action = _tmp2_;
	_tmp3_ = _g_object_ref0 (expected_config_changes);
	_g_object_unref0 (self->expected_config_changes);
	self->expected_config_changes = _tmp3_;
	_tmp4_ = _g_object_ref0 (expected_section_changes);
	_g_object_unref0 (self->expected_section_changes);
	self->expected_section_changes = _tmp4_;
	_tmp5_ = _g_object_ref0 (expected_setting_changes);
	_g_object_unref0 (self->expected_setting_changes);
	self->expected_setting_changes = _tmp5_;
	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;
	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);
	rygel_user_config_test_watch_data_initialize (self, description, local_action, system_action, expected_config_changes, expected_section_changes, expected_setting_changes);
	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;
	RygelUserConfigTestConfigSet* _tmp0_;
	RygelUserConfigTestConfigSet* _tmp1_;
	RygelUserConfigTestSectionMap* _tmp2_;
	RygelUserConfigTestSectionMap* _tmp3_;
	RygelUserConfigTestSettingMap* _tmp4_;
	RygelUserConfigTestSettingMap* _tmp5_;
	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_ = rygel_user_config_test_config_set_new ();
	_tmp1_ = _tmp0_;
	_tmp2_ = rygel_user_config_test_section_map_new ();
	_tmp3_ = _tmp2_;
	_tmp4_ = rygel_user_config_test_setting_map_new ();
	_tmp5_ = _tmp4_;
	rygel_user_config_test_watch_data_initialize (self, description, local_action, system_action, _tmp1_, _tmp3_, _tmp5_);
	_g_object_unref0 (_tmp5_);
	_g_object_unref0 (_tmp3_);
	_g_object_unref0 (_tmp1_);
	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_;
	GeeHashSet* _tmp3_;
	gint _tmp4_;
	gint _tmp5_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp2_ = self->expected_config_changes;
	_tmp3_ = _tmp2_->gee;
	_tmp4_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp3_);
	_tmp5_ = _tmp4_;
	if (_tmp5_ == 0) {
		RygelUserConfigTestSectionMap* _tmp6_;
		GeeHashMap* _tmp7_;
		gint _tmp8_;
		gint _tmp9_;
		_tmp6_ = self->expected_section_changes;
		_tmp7_ = _tmp6_->gee;
		_tmp8_ = gee_abstract_map_get_size ((GeeAbstractMap*) _tmp7_);
		_tmp9_ = _tmp8_;
		_tmp1_ = _tmp9_ == 0;
	} else {
		_tmp1_ = FALSE;
	}
	if (_tmp1_) {
		RygelUserConfigTestSettingMap* _tmp10_;
		GeeHashMap* _tmp11_;
		gint _tmp12_;
		gint _tmp13_;
		_tmp10_ = self->expected_setting_changes;
		_tmp11_ = _tmp10_->gee;
		_tmp12_ = gee_abstract_map_get_size ((GeeAbstractMap*) _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_;
	const gchar* _tmp1_;
	RygelUserConfigTestSettingsAction* _tmp2_;
	const gchar* _tmp3_;
	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)
{
	g_return_if_fail (self != NULL);
	if (!self->priv->description_printed) {
		const gchar* _tmp0_;
		self->priv->description_printed = TRUE;
		_tmp0_ = self->description;
		g_warning ("rygel-user-config-test.vala:230: Test case: %s.", _tmp0_);
	}
}

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

static RygelUserConfigTestConfigRemover*
rygel_user_config_test_config_remover_construct (GType object_type,
                                                 RygelUserConfigTest* test)
{
	RygelUserConfigTestConfigRemover* self = NULL;
	RygelUserConfigTest* _tmp0_;
	g_return_val_if_fail (test != NULL, NULL);
	self = (RygelUserConfigTestConfigRemover*) g_type_create_instance (object_type);
	_tmp0_ = _g_object_ref0 (test);
	_g_object_unref0 (self->priv->test);
	self->priv->test = _tmp0_;
	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_adjust_private_offset (klass, &RygelUserConfigTestConfigRemover_private_offset);
}

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

static void
rygel_user_config_test_config_remover_finalize (RygelUserConfigTestConfigRemover * obj)
{
	RygelUserConfigTestConfigRemover * self;
	RygelUserConfigTest* _tmp0_;
	const gchar* _tmp1_;
	RygelUserConfigTest* _tmp2_;
	const gchar* _tmp3_;
	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);
		RygelUserConfigTestConfigRemover_private_offset = g_type_add_instance_private (rygel_user_config_test_config_remover_type_id, sizeof (RygelUserConfigTestConfigRemoverPrivate));
		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_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	rygel_user_config_test_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &RygelUserConfigTest_private_offset);
	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_instance_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);
		RygelUserConfigTest_private_offset = g_type_add_instance_private (rygel_user_config_test_type_id, sizeof (RygelUserConfigTestPrivate));
		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;
}

