/* set-urls.c generated by valac 0.13.4, the Vala compiler
 * generated from set-urls.vala, do not modify */

/*
 * Copyright (C) 2011 Collabora Ltd.
 *
 * This library 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.
 *
 * This library 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, see <http://www.gnu.org/licenses/>.
 *
 * Authors: Raul Gutierrez Segales <raul.gutierrez.segales@collabora.co.uk>
 *
 */

#include <glib.h>
#include <glib-object.h>
#include <folks-test.h>
#include <tracker-test.h>
#include <folks/folks.h>
#include <stdlib.h>
#include <string.h>
#include <gee.h>
#include <folks/folks-tracker.h>
#include <gio/gio.h>


#define TYPE_SET_UR_LS_TESTS (set_ur_ls_tests_get_type ())
#define SET_UR_LS_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_UR_LS_TESTS, SetURLsTests))
#define SET_UR_LS_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_UR_LS_TESTS, SetURLsTestsClass))
#define IS_SET_UR_LS_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_UR_LS_TESTS))
#define IS_SET_UR_LS_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_UR_LS_TESTS))
#define SET_UR_LS_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_UR_LS_TESTS, SetURLsTestsClass))

typedef struct _SetURLsTests SetURLsTests;
typedef struct _SetURLsTestsClass SetURLsTestsClass;
typedef struct _SetURLsTestsPrivate SetURLsTestsPrivate;
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define _tracker_test_backend_unref0(var) ((var == NULL) ? NULL : (var = (tracker_test_backend_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _SetUrLsTestsTestSetUrlsAsyncData SetUrLsTestsTestSetUrlsAsyncData;

struct _SetURLsTests {
	FolksTestCase parent_instance;
	SetURLsTestsPrivate * priv;
};

struct _SetURLsTestsClass {
	FolksTestCaseClass parent_class;
};

struct _SetURLsTestsPrivate {
	GMainLoop* _main_loop;
	TrackerTestBackend* _tracker_backend;
	FolksIndividualAggregator* _aggregator;
	gchar* _persona_fullname;
	GeeHashMap* _urls;
};

struct _SetUrLsTestsTestSetUrlsAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	SetURLsTests* self;
	FolksBackendStore* _tmp0_;
	FolksBackendStore* store;
	FolksIndividualAggregator* _tmp1_;
	FolksIndividualAggregator* _tmp2_;
	FolksIndividualAggregator* _tmp3_;
	GError* e;
	GError* _tmp4_;
	const gchar* _tmp5_;
	GError * _inner_error_;
};


static gpointer set_ur_ls_tests_parent_class = NULL;

GType set_ur_ls_tests_get_type (void) G_GNUC_CONST;
#define SET_UR_LS_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SET_UR_LS_TESTS, SetURLsTestsPrivate))
enum  {
	SET_UR_LS_TESTS_DUMMY_PROPERTY
};
SetURLsTests* set_ur_ls_tests_new (void);
SetURLsTests* set_ur_ls_tests_construct (GType object_type);
void set_ur_ls_tests_test_set_urls (SetURLsTests* self);
static void _set_ur_ls_tests_test_set_urls_folks_test_case_test_method (gpointer self);
static void set_ur_ls_tests_real_set_up (FolksTestCase* base);
static void set_ur_ls_tests_real_tear_down (FolksTestCase* base);
static void _set_ur_ls_tests_test_set_urls_async (SetURLsTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _set_ur_ls_tests_test_set_urls_finish (SetURLsTests* self, GAsyncResult* _res_);
static gboolean __lambda0_ (SetURLsTests* self);
static gboolean ___lambda0__gsource_func (gpointer self);
static void _set_ur_ls_tests_test_set_urls_async_data_free (gpointer _data);
static gboolean _set_ur_ls_tests_test_set_urls_async_co (SetUrLsTestsTestSetUrlsAsyncData* _data_);
static void _set_ur_ls_tests_test_set_urls_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _set_ur_ls_tests_individuals_changed_cb (SetURLsTests* self, GeeMultiMap* changes);
static void __set_ur_ls_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static void _set_ur_ls_tests_notify_urls_cb (SetURLsTests* self, GObject* individual_obj, GParamSpec* ps);
static void __set_ur_ls_tests_notify_urls_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void set_ur_ls_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _set_ur_ls_tests_test_set_urls_folks_test_case_test_method (gpointer self) {
#line 40 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	set_ur_ls_tests_test_set_urls (self);
#line 120 "set-urls.c"
}


SetURLsTests* set_ur_ls_tests_construct (GType object_type) {
	SetURLsTests * self = NULL;
	TrackerTestBackend* _tmp0_;
#line 36 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	self = (SetURLsTests*) folks_test_case_construct (object_type, "SetURLsTests");
#line 38 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp0_ = tracker_test_backend_new ();
#line 38 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 38 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	self->priv->_tracker_backend = _tmp0_;
#line 40 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test setting urls ", _set_ur_ls_tests_test_set_urls_folks_test_case_test_method, self);
#line 34 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	return self;
#line 139 "set-urls.c"
}


SetURLsTests* set_ur_ls_tests_new (void) {
#line 34 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	return set_ur_ls_tests_construct (TYPE_SET_UR_LS_TESTS);
#line 146 "set-urls.c"
}


static void set_ur_ls_tests_real_set_up (FolksTestCase* base) {
	SetURLsTests * self;
#line 43 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	self = (SetURLsTests*) base;
#line 154 "set-urls.c"
}


static void set_ur_ls_tests_real_tear_down (FolksTestCase* base) {
	SetURLsTests * self;
#line 47 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	self = (SetURLsTests*) base;
#line 162 "set-urls.c"
}


static gboolean __lambda0_ (SetURLsTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 70 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp0_ = self->priv->_main_loop;
#line 70 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_main_loop_quit (_tmp0_);
#line 71 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_assert_not_reached ();
#line 68 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	return result;
#line 177 "set-urls.c"
}


static gboolean ___lambda0__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda0_ (self);
#line 68 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	return result;
#line 186 "set-urls.c"
}


void set_ur_ls_tests_test_set_urls (SetURLsTests* self) {
	GMainLoop* _tmp0_;
	GeeHashMap* _tmp1_;
	GeeHashMap* c1;
	gchar* _tmp2_;
	GeeHashMap* _tmp3_;
	GeeHashMap* _tmp4_;
	GeeHashMap* _tmp5_;
	GeeHashMap* _tmp6_;
	const gchar* _tmp7_;
	TrackerTestBackend* _tmp8_;
	TrackerTestBackend* _tmp9_;
	GMainLoop* _tmp10_;
	GeeHashMap* _tmp11_;
	gint _tmp12_;
	gint _tmp13_;
	TrackerTestBackend* _tmp14_;
#line 51 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_return_if_fail (self != NULL);
#line 53 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 53 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 53 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	self->priv->_main_loop = _tmp0_;
#line 54 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
#line 54 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	c1 = _tmp1_;
#line 55 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp2_ = g_strdup ("persona #1");
#line 55 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_g_free0 (self->priv->_persona_fullname);
#line 55 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	self->priv->_persona_fullname = _tmp2_;
#line 56 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp3_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
#line 56 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (self->priv->_urls);
#line 56 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	self->priv->_urls = _tmp3_;
#line 57 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp4_ = self->priv->_urls;
#line 57 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp4_, "blog", "http://one.example.org");
#line 58 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp5_ = self->priv->_urls;
#line 58 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp5_, "website", "http://two.example.org");
#line 59 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp6_ = self->priv->_urls;
#line 59 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp6_, "url", "http://three.example.org");
#line 61 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp7_ = self->priv->_persona_fullname;
#line 61 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	gee_abstract_map_set ((GeeAbstractMap*) c1, TRF_ONTOLOGY_DEFS_NCO_FULLNAME, _tmp7_);
#line 62 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp8_ = self->priv->_tracker_backend;
#line 62 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	tracker_test_backend_add_contact (_tmp8_, c1);
#line 64 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp9_ = self->priv->_tracker_backend;
#line 64 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	tracker_test_backend_set_up (_tmp9_);
#line 66 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_set_ur_ls_tests_test_set_urls_async (self, NULL, NULL);
#line 68 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda0__gsource_func, g_object_ref (self), g_object_unref);
#line 74 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp10_ = self->priv->_main_loop;
#line 74 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_main_loop_run (_tmp10_);
#line 76 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp11_ = self->priv->_urls;
#line 76 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp12_ = gee_map_get_size ((GeeMap*) _tmp11_);
#line 76 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp13_ = _tmp12_;
#line 76 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_assert (_tmp13_ == 0);
#line 78 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp14_ = self->priv->_tracker_backend;
#line 78 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	tracker_test_backend_tear_down (_tmp14_);
#line 51 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (c1);
#line 277 "set-urls.c"
}


static void _set_ur_ls_tests_test_set_urls_async_data_free (gpointer _data) {
	SetUrLsTestsTestSetUrlsAsyncData* _data_;
	_data_ = _data;
#line 26 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_slice_free (SetUrLsTestsTestSetUrlsAsyncData, _data_);
#line 288 "set-urls.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 26 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	return self ? g_object_ref (self) : NULL;
#line 295 "set-urls.c"
}


static void _set_ur_ls_tests_test_set_urls_async (SetURLsTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	SetUrLsTestsTestSetUrlsAsyncData* _data_;
	SetURLsTests* _tmp0_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_data_ = g_slice_new0 (SetUrLsTestsTestSetUrlsAsyncData);
#line 26 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _set_ur_ls_tests_test_set_urls_async);
#line 26 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _set_ur_ls_tests_test_set_urls_async_data_free);
#line 26 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_data_->self = _tmp0_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_set_ur_ls_tests_test_set_urls_async_co (_data_);
#line 314 "set-urls.c"
}


static void _set_ur_ls_tests_test_set_urls_finish (SetURLsTests* self, GAsyncResult* _res_) {
	SetUrLsTestsTestSetUrlsAsyncData* _data_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 322 "set-urls.c"
}


static void _set_ur_ls_tests_test_set_urls_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	SetUrLsTestsTestSetUrlsAsyncData* _data_;
#line 84 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_data_ = _user_data_;
#line 84 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_data_->_source_object_ = source_object;
#line 84 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_data_->_res_ = _res_;
#line 84 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_set_ur_ls_tests_test_set_urls_async_co (_data_);
#line 336 "set-urls.c"
}


static void __set_ur_ls_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 86 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_set_ur_ls_tests_individuals_changed_cb (self, changes);
#line 343 "set-urls.c"
}


static gboolean _set_ur_ls_tests_test_set_urls_async_co (SetUrLsTestsTestSetUrlsAsyncData* _data_) {
#line 81 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	switch (_data_->_state_) {
#line 81 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		case 0:
#line 352 "set-urls.c"
		goto _state_0;
#line 81 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		case 1:
#line 356 "set-urls.c"
		goto _state_1;
#line 81 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		case 2:
#line 360 "set-urls.c"
		goto _state_2;
		default:
#line 81 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		g_assert_not_reached ();
#line 365 "set-urls.c"
	}
	_state_0:
#line 83 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_data_->_tmp0_ = NULL;
#line 83 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 83 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_data_->store = _data_->_tmp0_;
#line 84 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_data_->_state_ = 1;
#line 84 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	folks_backend_store_prepare (_data_->store, _set_ur_ls_tests_test_set_urls_async_ready, _data_);
#line 84 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	return FALSE;
#line 380 "set-urls.c"
	_state_1:
#line 84 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 85 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 85 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 85 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 86 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 86 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_signal_connect_object (_data_->_tmp2_, "individuals-changed-detailed", (GCallback) __set_ur_ls_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed, _data_->self, 0);
#line 394 "set-urls.c"
	{
#line 90 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 90 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		_data_->_state_ = 2;
#line 90 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		folks_individual_aggregator_prepare (_data_->_tmp3_, _set_ur_ls_tests_test_set_urls_async_ready, _data_);
#line 90 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		return FALSE;
#line 404 "set-urls.c"
		_state_2:
#line 90 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 90 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		if (_data_->_inner_error_ != NULL) {
#line 410 "set-urls.c"
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 88 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		_data_->e = _data_->_inner_error_;
#line 88 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		_data_->_inner_error_ = NULL;
#line 94 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		_data_->_tmp4_ = _data_->e;
#line 94 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		_data_->_tmp5_ = _data_->_tmp4_->message;
#line 94 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		g_warning ("set-urls.vala:94: Error when calling prepare: %s\n", _data_->_tmp5_);
#line 88 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		_g_error_free0 (_data_->e);
#line 429 "set-urls.c"
	}
	__finally0:
#line 88 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	if (_data_->_inner_error_ != NULL) {
#line 88 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		_g_object_unref0 (_data_->store);
#line 88 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 88 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		g_clear_error (&_data_->_inner_error_);
#line 88 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		return FALSE;
#line 442 "set-urls.c"
	}
#line 81 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (_data_->store);
#line 81 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	if (_data_->_state_ == 0) {
#line 81 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 450 "set-urls.c"
	} else {
#line 81 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 454 "set-urls.c"
	}
#line 81 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_object_unref (_data_->_async_result);
#line 81 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	return FALSE;
#line 460 "set-urls.c"
}


static void __set_ur_ls_tests_notify_urls_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 110 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_set_ur_ls_tests_notify_urls_cb (self, _sender, pspec);
#line 467 "set-urls.c"
}


static void _set_ur_ls_tests_individuals_changed_cb (SetURLsTests* self, GeeMultiMap* changes) {
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
	GeeSet* _tmp51_;
	gint _tmp52_;
	gint _tmp53_;
#line 98 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_return_if_fail (self != NULL);
#line 98 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_return_if_fail (changes != NULL);
#line 101 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp0_ = changes;
#line 101 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 101 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	added = _tmp1_;
#line 102 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp2_ = changes;
#line 102 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 102 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	removed = _tmp3_;
#line 497 "set-urls.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 104 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		_tmp4_ = added;
#line 104 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 104 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		_i_it = _tmp5_;
#line 104 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		while (TRUE) {
#line 510 "set-urls.c"
			GeeIterator* _tmp6_;
			gboolean _tmp7_ = FALSE;
			GeeIterator* _tmp8_;
			gpointer _tmp9_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp10_;
			FolksIndividual* _tmp11_;
			const gchar* _tmp12_;
			const gchar* _tmp13_;
			const gchar* _tmp14_;
#line 104 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_tmp6_ = _i_it;
#line 104 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 104 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			if (!_tmp7_) {
#line 104 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				break;
#line 529 "set-urls.c"
			}
#line 104 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_tmp8_ = _i_it;
#line 104 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 104 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			i = (FolksIndividual*) _tmp9_;
#line 106 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_tmp10_ = i;
#line 106 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			g_assert (_tmp10_ != NULL);
#line 108 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_tmp11_ = i;
#line 108 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_tmp12_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp11_);
#line 108 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_tmp13_ = _tmp12_;
#line 108 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_tmp14_ = self->priv->_persona_fullname;
#line 108 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			if (g_strcmp0 (_tmp13_, _tmp14_) == 0) {
#line 551 "set-urls.c"
				FolksIndividual* _tmp15_;
				GeeHashSet* _tmp16_;
				GeeHashSet* url_fds;
				GeeHashMap* _tmp17_;
				gpointer _tmp18_ = NULL;
				gchar* _tmp19_;
				FolksUrlFieldDetails* _tmp20_;
				FolksUrlFieldDetails* _tmp21_;
				FolksUrlFieldDetails* p1;
				FolksUrlFieldDetails* _tmp22_;
				GeeHashSet* _tmp23_;
				FolksUrlFieldDetails* _tmp24_;
				GeeHashMap* _tmp25_;
				gpointer _tmp26_ = NULL;
				gchar* _tmp27_;
				FolksUrlFieldDetails* _tmp28_;
				FolksUrlFieldDetails* _tmp29_;
				FolksUrlFieldDetails* p2;
				FolksUrlFieldDetails* _tmp30_;
				GeeHashSet* _tmp31_;
				FolksUrlFieldDetails* _tmp32_;
				GeeHashMap* _tmp33_;
				gpointer _tmp34_ = NULL;
				gchar* _tmp35_;
				FolksUrlFieldDetails* _tmp36_;
				FolksUrlFieldDetails* _tmp37_;
				FolksUrlFieldDetails* p3;
				FolksUrlFieldDetails* _tmp38_;
				GeeHashSet* _tmp39_;
				FolksUrlFieldDetails* _tmp40_;
#line 110 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp15_ = i;
#line 110 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				g_signal_connect_object ((GObject*) _tmp15_, "notify::urls", (GCallback) __set_ur_ls_tests_notify_urls_cb_g_object_notify, self, 0);
#line 112 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp16_ = gee_hash_set_new (FOLKS_TYPE_URL_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
#line 112 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				url_fds = _tmp16_;
#line 115 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp17_ = self->priv->_urls;
#line 115 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp18_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp17_, "blog");
#line 115 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp19_ = (gchar*) _tmp18_;
#line 115 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp20_ = folks_url_field_details_new (_tmp19_, NULL);
#line 115 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp21_ = _tmp20_;
#line 115 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_g_free0 (_tmp19_);
#line 115 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				p1 = _tmp21_;
#line 116 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp22_ = p1;
#line 116 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				folks_abstract_field_details_set_parameter ((FolksAbstractFieldDetails*) _tmp22_, "type", "blog");
#line 117 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp23_ = url_fds;
#line 117 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp24_ = p1;
#line 117 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp23_, _tmp24_);
#line 118 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp25_ = self->priv->_urls;
#line 118 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp26_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp25_, "website");
#line 118 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp27_ = (gchar*) _tmp26_;
#line 118 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp28_ = folks_url_field_details_new (_tmp27_, NULL);
#line 118 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp29_ = _tmp28_;
#line 118 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_g_free0 (_tmp27_);
#line 118 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				p2 = _tmp29_;
#line 119 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp30_ = p2;
#line 119 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				folks_abstract_field_details_set_parameter ((FolksAbstractFieldDetails*) _tmp30_, "type", "website");
#line 120 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp31_ = url_fds;
#line 120 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp32_ = p2;
#line 120 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp31_, _tmp32_);
#line 121 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp33_ = self->priv->_urls;
#line 121 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp34_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp33_, "url");
#line 121 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp35_ = (gchar*) _tmp34_;
#line 121 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp36_ = folks_url_field_details_new (_tmp35_, NULL);
#line 121 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp37_ = _tmp36_;
#line 121 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_g_free0 (_tmp35_);
#line 121 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				p3 = _tmp37_;
#line 122 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp38_ = p3;
#line 122 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				folks_abstract_field_details_set_parameter ((FolksAbstractFieldDetails*) _tmp38_, "type", "url");
#line 123 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp39_ = url_fds;
#line 123 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp40_ = p3;
#line 123 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp39_, _tmp40_);
#line 662 "set-urls.c"
				{
					FolksIndividual* _tmp41_;
					GeeSet* _tmp42_;
					GeeSet* _tmp43_;
					GeeIterator* _tmp44_ = NULL;
					GeeIterator* _p_it;
#line 125 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					_tmp41_ = i;
#line 125 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					_tmp42_ = folks_individual_get_personas (_tmp41_);
#line 125 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					_tmp43_ = _tmp42_;
#line 125 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					_tmp44_ = gee_iterable_iterator ((GeeIterable*) _tmp43_);
#line 125 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					_p_it = _tmp44_;
#line 125 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					while (TRUE) {
#line 681 "set-urls.c"
						GeeIterator* _tmp45_;
						gboolean _tmp46_ = FALSE;
						GeeIterator* _tmp47_;
						gpointer _tmp48_ = NULL;
						FolksPersona* p;
						FolksPersona* _tmp49_;
						GeeHashSet* _tmp50_;
#line 125 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_tmp45_ = _p_it;
#line 125 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_tmp46_ = gee_iterator_next (_tmp45_);
#line 125 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						if (!_tmp46_) {
#line 125 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
							break;
#line 697 "set-urls.c"
						}
#line 125 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_tmp47_ = _p_it;
#line 125 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_tmp48_ = gee_iterator_get (_tmp47_);
#line 125 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						p = (FolksPersona*) _tmp48_;
#line 127 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_tmp49_ = p;
#line 127 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_tmp50_ = url_fds;
#line 127 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						folks_url_details_set_urls (FOLKS_URL_DETAILS (_tmp49_), (GeeSet*) _tmp50_);
#line 125 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_g_object_unref0 (p);
#line 713 "set-urls.c"
					}
#line 125 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					_g_object_unref0 (_p_it);
#line 717 "set-urls.c"
				}
#line 108 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_g_object_unref0 (p3);
#line 108 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_g_object_unref0 (p2);
#line 108 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_g_object_unref0 (p1);
#line 108 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_g_object_unref0 (url_fds);
#line 727 "set-urls.c"
			}
#line 104 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_g_object_unref0 (i);
#line 731 "set-urls.c"
		}
#line 104 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		_g_object_unref0 (_i_it);
#line 735 "set-urls.c"
	}
#line 132 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp51_ = removed;
#line 132 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp52_ = gee_collection_get_size ((GeeCollection*) _tmp51_);
#line 132 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp53_ = _tmp52_;
#line 132 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_assert (_tmp53_ == 1);
#line 745 "set-urls.c"
	{
		GeeSet* _tmp54_;
		GeeIterator* _tmp55_ = NULL;
		GeeIterator* _i_it;
#line 134 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		_tmp54_ = removed;
#line 134 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		_tmp55_ = gee_iterable_iterator ((GeeIterable*) _tmp54_);
#line 134 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		_i_it = _tmp55_;
#line 134 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		while (TRUE) {
#line 758 "set-urls.c"
			GeeIterator* _tmp56_;
			gboolean _tmp57_ = FALSE;
			GeeIterator* _tmp58_;
			gpointer _tmp59_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp60_;
#line 134 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_tmp56_ = _i_it;
#line 134 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_tmp57_ = gee_iterator_next (_tmp56_);
#line 134 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			if (!_tmp57_) {
#line 134 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				break;
#line 773 "set-urls.c"
			}
#line 134 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_tmp58_ = _i_it;
#line 134 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_tmp59_ = gee_iterator_get (_tmp58_);
#line 134 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			i = (FolksIndividual*) _tmp59_;
#line 136 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_tmp60_ = i;
#line 136 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			g_assert (_tmp60_ == NULL);
#line 134 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_g_object_unref0 (i);
#line 787 "set-urls.c"
		}
#line 134 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		_g_object_unref0 (_i_it);
#line 791 "set-urls.c"
	}
#line 98 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (removed);
#line 98 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (added);
#line 797 "set-urls.c"
}


static void _set_ur_ls_tests_notify_urls_cb (SetURLsTests* self, GObject* individual_obj, GParamSpec* ps) {
	GObject* _tmp0_;
	FolksIndividual* _tmp1_;
	FolksIndividual* i;
	FolksIndividual* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	const gchar* _tmp5_;
	GeeHashMap* _tmp49_;
	gint _tmp50_;
	gint _tmp51_;
#line 140 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_return_if_fail (self != NULL);
#line 140 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_return_if_fail (individual_obj != NULL);
#line 140 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_return_if_fail (ps != NULL);
#line 142 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp0_ = individual_obj;
#line 142 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp1_ = _g_object_ref0 (FOLKS_INDIVIDUAL (_tmp0_));
#line 142 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	i = _tmp1_;
#line 143 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp2_ = i;
#line 143 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp3_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp2_);
#line 143 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp4_ = _tmp3_;
#line 143 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp5_ = self->priv->_persona_fullname;
#line 143 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	if (g_strcmp0 (_tmp4_, _tmp5_) == 0) {
#line 834 "set-urls.c"
		{
			FolksIndividual* _tmp6_;
			GeeSet* _tmp7_;
			GeeSet* _tmp8_;
			GeeIterator* _tmp9_ = NULL;
			GeeIterator* _p_it;
#line 145 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_tmp6_ = i;
#line 145 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_tmp7_ = folks_url_details_get_urls ((FolksUrlDetails*) _tmp6_);
#line 145 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_tmp8_ = _tmp7_;
#line 145 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_tmp9_ = gee_iterable_iterator ((GeeIterable*) _tmp8_);
#line 145 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_p_it = _tmp9_;
#line 145 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			while (TRUE) {
#line 853 "set-urls.c"
				GeeIterator* _tmp10_;
				gboolean _tmp11_ = FALSE;
				GeeIterator* _tmp12_;
				gpointer _tmp13_ = NULL;
				FolksUrlFieldDetails* p;
				FolksUrlFieldDetails* _tmp14_;
				GeeCollection* _tmp15_ = NULL;
				GeeCollection* type_p;
				gboolean _tmp16_ = FALSE;
				GeeCollection* _tmp17_;
				gboolean _tmp18_ = FALSE;
				gboolean _tmp25_;
#line 145 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp10_ = _p_it;
#line 145 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp11_ = gee_iterator_next (_tmp10_);
#line 145 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				if (!_tmp11_) {
#line 145 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					break;
#line 874 "set-urls.c"
				}
#line 145 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp12_ = _p_it;
#line 145 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp13_ = gee_iterator_get (_tmp12_);
#line 145 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				p = (FolksUrlFieldDetails*) _tmp13_;
#line 147 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp14_ = p;
#line 147 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp15_ = folks_abstract_field_details_get_parameter_values ((FolksAbstractFieldDetails*) _tmp14_, "type");
#line 147 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				type_p = _tmp15_;
#line 149 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp17_ = type_p;
#line 149 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp18_ = gee_collection_contains (_tmp17_, "blog");
#line 149 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				if (_tmp18_) {
#line 894 "set-urls.c"
					FolksUrlFieldDetails* _tmp19_;
					gconstpointer _tmp20_;
					const gchar* _tmp21_;
					GeeHashMap* _tmp22_;
					gpointer _tmp23_ = NULL;
					gchar* _tmp24_;
#line 150 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					_tmp19_ = p;
#line 150 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					_tmp20_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp19_);
#line 150 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					_tmp21_ = _tmp20_;
#line 150 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					_tmp22_ = self->priv->_urls;
#line 150 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					_tmp23_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp22_, "blog");
#line 150 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					_tmp24_ = (gchar*) _tmp23_;
#line 150 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					_tmp16_ = g_strcmp0 ((const gchar*) _tmp21_, _tmp24_) == 0;
#line 150 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					_g_free0 (_tmp24_);
#line 917 "set-urls.c"
				} else {
#line 149 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					_tmp16_ = FALSE;
#line 921 "set-urls.c"
				}
#line 149 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_tmp25_ = _tmp16_;
#line 149 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				if (_tmp25_) {
#line 927 "set-urls.c"
					GeeHashMap* _tmp26_;
#line 152 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					_tmp26_ = self->priv->_urls;
#line 152 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					gee_abstract_map_unset ((GeeAbstractMap*) _tmp26_, "blog", NULL);
#line 933 "set-urls.c"
				} else {
					gboolean _tmp27_ = FALSE;
					GeeCollection* _tmp28_;
					gboolean _tmp29_ = FALSE;
					gboolean _tmp36_;
#line 154 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					_tmp28_ = type_p;
#line 154 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					_tmp29_ = gee_collection_contains (_tmp28_, "website");
#line 154 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					if (_tmp29_) {
#line 945 "set-urls.c"
						FolksUrlFieldDetails* _tmp30_;
						gconstpointer _tmp31_;
						const gchar* _tmp32_;
						GeeHashMap* _tmp33_;
						gpointer _tmp34_ = NULL;
						gchar* _tmp35_;
#line 155 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_tmp30_ = p;
#line 155 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_tmp31_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp30_);
#line 155 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_tmp32_ = _tmp31_;
#line 155 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_tmp33_ = self->priv->_urls;
#line 155 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_tmp34_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp33_, "website");
#line 155 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_tmp35_ = (gchar*) _tmp34_;
#line 155 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_tmp27_ = g_strcmp0 ((const gchar*) _tmp32_, _tmp35_) == 0;
#line 155 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_g_free0 (_tmp35_);
#line 968 "set-urls.c"
					} else {
#line 154 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_tmp27_ = FALSE;
#line 972 "set-urls.c"
					}
#line 154 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					_tmp36_ = _tmp27_;
#line 154 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
					if (_tmp36_) {
#line 978 "set-urls.c"
						GeeHashMap* _tmp37_;
#line 157 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_tmp37_ = self->priv->_urls;
#line 157 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						gee_abstract_map_unset ((GeeAbstractMap*) _tmp37_, "website", NULL);
#line 984 "set-urls.c"
					} else {
						gboolean _tmp38_ = FALSE;
						GeeCollection* _tmp39_;
						gboolean _tmp40_ = FALSE;
						gboolean _tmp47_;
#line 159 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_tmp39_ = type_p;
#line 159 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_tmp40_ = gee_collection_contains (_tmp39_, "url");
#line 159 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						if (_tmp40_) {
#line 996 "set-urls.c"
							FolksUrlFieldDetails* _tmp41_;
							gconstpointer _tmp42_;
							const gchar* _tmp43_;
							GeeHashMap* _tmp44_;
							gpointer _tmp45_ = NULL;
							gchar* _tmp46_;
#line 160 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
							_tmp41_ = p;
#line 160 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
							_tmp42_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp41_);
#line 160 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
							_tmp43_ = _tmp42_;
#line 160 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
							_tmp44_ = self->priv->_urls;
#line 160 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
							_tmp45_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp44_, "url");
#line 160 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
							_tmp46_ = (gchar*) _tmp45_;
#line 160 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
							_tmp38_ = g_strcmp0 ((const gchar*) _tmp43_, _tmp46_) == 0;
#line 160 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
							_g_free0 (_tmp46_);
#line 1019 "set-urls.c"
						} else {
#line 159 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
							_tmp38_ = FALSE;
#line 1023 "set-urls.c"
						}
#line 159 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						_tmp47_ = _tmp38_;
#line 159 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
						if (_tmp47_) {
#line 1029 "set-urls.c"
							GeeHashMap* _tmp48_;
#line 162 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
							_tmp48_ = self->priv->_urls;
#line 162 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
							gee_abstract_map_unset ((GeeAbstractMap*) _tmp48_, "url", NULL);
#line 1035 "set-urls.c"
						}
					}
				}
#line 145 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_g_object_unref0 (type_p);
#line 145 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
				_g_object_unref0 (p);
#line 1043 "set-urls.c"
			}
#line 145 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
			_g_object_unref0 (_p_it);
#line 1047 "set-urls.c"
		}
	}
#line 167 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp49_ = self->priv->_urls;
#line 167 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp50_ = gee_map_get_size ((GeeMap*) _tmp49_);
#line 167 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp51_ = _tmp50_;
#line 167 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	if (_tmp51_ == 0) {
#line 1058 "set-urls.c"
		GMainLoop* _tmp52_;
#line 168 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		_tmp52_ = self->priv->_main_loop;
#line 168 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
		g_main_loop_quit (_tmp52_);
#line 1064 "set-urls.c"
	}
#line 140 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (i);
#line 1068 "set-urls.c"
}


static void set_ur_ls_tests_class_init (SetURLsTestsClass * klass) {
#line 26 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	set_ur_ls_tests_parent_class = g_type_class_peek_parent (klass);
#line 26 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_type_class_add_private (klass, sizeof (SetURLsTestsPrivate));
#line 26 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = set_ur_ls_tests_real_set_up;
#line 26 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = set_ur_ls_tests_real_tear_down;
#line 26 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	G_OBJECT_CLASS (klass)->finalize = set_ur_ls_tests_finalize;
#line 1083 "set-urls.c"
}


static void set_ur_ls_tests_instance_init (SetURLsTests * self) {
#line 26 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	self->priv = SET_UR_LS_TESTS_GET_PRIVATE (self);
#line 1090 "set-urls.c"
}


static void set_ur_ls_tests_finalize (GObject* obj) {
	SetURLsTests * self;
#line 26 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	self = SET_UR_LS_TESTS (obj);
#line 28 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 29 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 30 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 31 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_g_free0 (self->priv->_persona_fullname);
#line 32 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (self->priv->_urls);
#line 26 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	G_OBJECT_CLASS (set_ur_ls_tests_parent_class)->finalize (obj);
#line 1110 "set-urls.c"
}


GType set_ur_ls_tests_get_type (void) {
	static volatile gsize set_ur_ls_tests_type_id__volatile = 0;
	if (g_once_init_enter (&set_ur_ls_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (SetURLsTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_ur_ls_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetURLsTests), 0, (GInstanceInitFunc) set_ur_ls_tests_instance_init, NULL };
		GType set_ur_ls_tests_type_id;
		set_ur_ls_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "SetURLsTests", &g_define_type_info, 0);
		g_once_init_leave (&set_ur_ls_tests_type_id__volatile, set_ur_ls_tests_type_id);
	}
	return set_ur_ls_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	SetURLsTests* _tmp1_;
	SetURLsTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 174 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_test_init (&args_length1, &args, NULL);
#line 176 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp0_ = g_test_get_root ();
#line 176 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	root = _tmp0_;
#line 177 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp1_ = set_ur_ls_tests_new ();
#line 177 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp2_ = _tmp1_;
#line 177 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 177 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 177 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (_tmp2_);
#line 179 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_test_run ();
#line 181 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	result = 0;
#line 181 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	return result;
#line 1155 "set-urls.c"
}


int main (int argc, char ** argv) {
#line 172 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	g_type_init ();
#line 172 "/debian/rgs/devel/folks/tests/tracker/set-urls.vala"
	return _vala_main (argv, argc);
#line 1164 "set-urls.c"
}



