/* set-urls.c generated by valac 0.14.0.15-f8b5, 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 __lambda2_ (SetURLsTests* self);
static gboolean ___lambda2__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 "/home/treitter/collabora/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 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	self = (SetURLsTests*) folks_test_case_construct (object_type, "SetURLsTests");
#line 38 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp0_ = tracker_test_backend_new ();
#line 38 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 38 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	self->priv->_tracker_backend = _tmp0_;
#line 40 "/home/treitter/collabora/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 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	return self;
#line 139 "set-urls.c"
}


SetURLsTests* set_ur_ls_tests_new (void) {
#line 34 "/home/treitter/collabora/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 "/home/treitter/collabora/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 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	self = (SetURLsTests*) base;
#line 162 "set-urls.c"
}


static gboolean __lambda2_ (SetURLsTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 73 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp0_ = self->priv->_main_loop;
#line 73 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	g_main_loop_quit (_tmp0_);
#line 74 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	g_assert_not_reached ();
#line 71 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	return result;
#line 177 "set-urls.c"
}


static gboolean ___lambda2__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda2_ (self);
#line 71 "/home/treitter/collabora/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 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	g_return_if_fail (self != NULL);
#line 53 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 53 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 53 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	self->priv->_main_loop = _tmp0_;
#line 54 "/home/treitter/collabora/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 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	c1 = _tmp1_;
#line 55 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp2_ = g_strdup ("persona #1");
#line 55 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_g_free0 (self->priv->_persona_fullname);
#line 55 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	self->priv->_persona_fullname = _tmp2_;
#line 56 "/home/treitter/collabora/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 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (self->priv->_urls);
#line 56 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	self->priv->_urls = _tmp3_;
#line 57 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp4_ = self->priv->_urls;
#line 57 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp4_, FOLKS_URL_FIELD_DETAILS_PARAM_TYPE_BLOG, "http://one.example.org");
#line 59 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp5_ = self->priv->_urls;
#line 59 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp5_, FOLKS_URL_FIELD_DETAILS_PARAM_TYPE_HOME_PAGE, "http://two.example.org");
#line 61 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp6_ = self->priv->_urls;
#line 61 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp6_, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE_OTHER, "http://three.example.org");
#line 64 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp7_ = self->priv->_persona_fullname;
#line 64 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	gee_abstract_map_set ((GeeAbstractMap*) c1, TRF_ONTOLOGY_DEFS_NCO_FULLNAME, _tmp7_);
#line 65 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp8_ = self->priv->_tracker_backend;
#line 65 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	tracker_test_backend_add_contact (_tmp8_, c1);
#line 67 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp9_ = self->priv->_tracker_backend;
#line 67 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	tracker_test_backend_set_up (_tmp9_);
#line 69 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_set_ur_ls_tests_test_set_urls_async (self, NULL, NULL);
#line 71 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda2__gsource_func, g_object_ref (self), g_object_unref);
#line 77 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp10_ = self->priv->_main_loop;
#line 77 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	g_main_loop_run (_tmp10_);
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp11_ = self->priv->_urls;
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp12_ = gee_map_get_size ((GeeMap*) _tmp11_);
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp13_ = _tmp12_;
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	g_assert (_tmp13_ == 0);
#line 81 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp14_ = self->priv->_tracker_backend;
#line 81 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	tracker_test_backend_tear_down (_tmp14_);
#line 51 "/home/treitter/collabora/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 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/home/treitter/collabora/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 "/home/treitter/collabora/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 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_data_ = g_slice_new0 (SetUrLsTestsTestSetUrlsAsyncData);
#line 26 "/home/treitter/collabora/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 "/home/treitter/collabora/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 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_data_->self = _tmp0_;
#line 26 "/home/treitter/collabora/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 "/home/treitter/collabora/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 87 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_data_ = _user_data_;
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_data_->_source_object_ = source_object;
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_data_->_res_ = _res_;
#line 87 "/home/treitter/collabora/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 89 "/home/treitter/collabora/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 84 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	switch (_data_->_state_) {
#line 84 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		case 0:
#line 352 "set-urls.c"
		goto _state_0;
#line 84 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		case 1:
#line 356 "set-urls.c"
		goto _state_1;
#line 84 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		case 2:
#line 360 "set-urls.c"
		goto _state_2;
		default:
#line 84 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		g_assert_not_reached ();
#line 365 "set-urls.c"
	}
	_state_0:
#line 86 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_data_->_tmp0_ = NULL;
#line 86 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 86 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_data_->store = _data_->_tmp0_;
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_data_->_state_ = 1;
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	folks_backend_store_prepare (_data_->store, _set_ur_ls_tests_test_set_urls_async_ready, _data_);
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	return FALSE;
#line 380 "set-urls.c"
	_state_1:
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 88 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 88 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 88 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 89 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 89 "/home/treitter/collabora/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 93 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 93 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		_data_->_state_ = 2;
#line 93 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		folks_individual_aggregator_prepare (_data_->_tmp3_, _set_ur_ls_tests_test_set_urls_async_ready, _data_);
#line 93 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		return FALSE;
#line 404 "set-urls.c"
		_state_2:
#line 93 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 93 "/home/treitter/collabora/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 91 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		_data_->e = _data_->_inner_error_;
#line 91 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		_data_->_inner_error_ = NULL;
#line 97 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		_data_->_tmp4_ = _data_->e;
#line 97 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		_data_->_tmp5_ = _data_->_tmp4_->message;
#line 97 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		g_warning ("set-urls.vala:97: Error when calling prepare: %s\n", _data_->_tmp5_);
#line 91 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		_g_error_free0 (_data_->e);
#line 429 "set-urls.c"
	}
	__finally0:
#line 91 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	if (_data_->_inner_error_ != NULL) {
#line 91 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		_g_object_unref0 (_data_->store);
#line 91 "/home/treitter/collabora/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 91 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		g_clear_error (&_data_->_inner_error_);
#line 91 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		return FALSE;
#line 442 "set-urls.c"
	}
#line 84 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (_data_->store);
#line 84 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	if (_data_->_state_ == 0) {
#line 84 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 450 "set-urls.c"
	} else {
#line 84 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 454 "set-urls.c"
	}
#line 84 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	g_object_unref (_data_->_async_result);
#line 84 "/home/treitter/collabora/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 113 "/home/treitter/collabora/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* _tmp54_;
	gint _tmp55_;
	gint _tmp56_;
#line 101 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	g_return_if_fail (self != NULL);
#line 101 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	g_return_if_fail (changes != NULL);
#line 104 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp0_ = changes;
#line 104 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 104 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	added = _tmp1_;
#line 105 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp2_ = changes;
#line 105 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 105 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	removed = _tmp3_;
#line 497 "set-urls.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 107 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		_tmp4_ = added;
#line 107 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 107 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		_i_it = _tmp5_;
#line 107 "/home/treitter/collabora/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 107 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_tmp6_ = _i_it;
#line 107 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 107 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			if (!_tmp7_) {
#line 107 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				break;
#line 529 "set-urls.c"
			}
#line 107 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_tmp8_ = _i_it;
#line 107 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 107 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			i = (FolksIndividual*) _tmp9_;
#line 109 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_tmp10_ = i;
#line 109 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			g_assert (_tmp10_ != NULL);
#line 111 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_tmp11_ = i;
#line 111 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_tmp12_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp11_);
#line 111 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_tmp13_ = _tmp12_;
#line 111 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_tmp14_ = self->priv->_persona_fullname;
#line 111 "/home/treitter/collabora/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_;
				FolksUrlFieldDetails* _tmp23_;
				FolksUrlFieldDetails* _tmp24_;
				GeeHashSet* _tmp25_;
				FolksUrlFieldDetails* _tmp26_;
				GeeHashMap* _tmp27_;
				gpointer _tmp28_ = NULL;
				gchar* _tmp29_;
				FolksUrlFieldDetails* _tmp30_;
				FolksUrlFieldDetails* _tmp31_;
				FolksUrlFieldDetails* p2;
				FolksUrlFieldDetails* _tmp32_;
				FolksUrlFieldDetails* _tmp33_;
				FolksUrlFieldDetails* _tmp34_;
				GeeHashSet* _tmp35_;
				FolksUrlFieldDetails* _tmp36_;
				GeeHashMap* _tmp37_;
				gpointer _tmp38_ = NULL;
				gchar* _tmp39_;
				FolksUrlFieldDetails* _tmp40_;
				FolksUrlFieldDetails* _tmp41_;
				FolksUrlFieldDetails* p3;
				GeeHashSet* _tmp42_;
				FolksUrlFieldDetails* _tmp43_;
#line 113 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp15_ = i;
#line 113 "/home/treitter/collabora/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 115 "/home/treitter/collabora/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 115 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				url_fds = _tmp16_;
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp17_ = self->priv->_urls;
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp18_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp17_, FOLKS_URL_FIELD_DETAILS_PARAM_TYPE_BLOG);
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp19_ = (gchar*) _tmp18_;
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp20_ = folks_url_field_details_new (_tmp19_, NULL);
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp21_ = _tmp20_;
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_g_free0 (_tmp19_);
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				p1 = _tmp21_;
#line 120 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp22_ = p1;
#line 120 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp23_ = p1;
#line 120 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp24_ = p1;
#line 120 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				folks_abstract_field_details_set_parameter ((FolksAbstractFieldDetails*) _tmp22_, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE, FOLKS_URL_FIELD_DETAILS_PARAM_TYPE_BLOG);
#line 121 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp25_ = url_fds;
#line 121 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp26_ = p1;
#line 121 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp25_, _tmp26_);
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp27_ = self->priv->_urls;
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp28_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp27_, FOLKS_URL_FIELD_DETAILS_PARAM_TYPE_HOME_PAGE);
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp29_ = (gchar*) _tmp28_;
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp30_ = folks_url_field_details_new (_tmp29_, NULL);
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp31_ = _tmp30_;
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_g_free0 (_tmp29_);
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				p2 = _tmp31_;
#line 124 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp32_ = p2;
#line 124 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp33_ = p1;
#line 124 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp34_ = p1;
#line 124 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				folks_abstract_field_details_set_parameter ((FolksAbstractFieldDetails*) _tmp32_, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE, FOLKS_URL_FIELD_DETAILS_PARAM_TYPE_HOME_PAGE);
#line 125 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp35_ = url_fds;
#line 125 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp36_ = p2;
#line 125 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp35_, _tmp36_);
#line 126 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp37_ = self->priv->_urls;
#line 126 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp38_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp37_, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE_OTHER);
#line 126 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp39_ = (gchar*) _tmp38_;
#line 126 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp40_ = folks_url_field_details_new (_tmp39_, NULL);
#line 126 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp41_ = _tmp40_;
#line 126 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_g_free0 (_tmp39_);
#line 126 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				p3 = _tmp41_;
#line 128 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp42_ = url_fds;
#line 128 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp43_ = p3;
#line 128 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp42_, _tmp43_);
#line 669 "set-urls.c"
				{
					FolksIndividual* _tmp44_;
					GeeSet* _tmp45_;
					GeeSet* _tmp46_;
					GeeIterator* _tmp47_ = NULL;
					GeeIterator* _p_it;
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp44_ = i;
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp45_ = folks_individual_get_personas (_tmp44_);
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp46_ = _tmp45_;
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp47_ = gee_iterable_iterator ((GeeIterable*) _tmp46_);
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_p_it = _tmp47_;
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					while (TRUE) {
#line 688 "set-urls.c"
						GeeIterator* _tmp48_;
						gboolean _tmp49_ = FALSE;
						GeeIterator* _tmp50_;
						gpointer _tmp51_ = NULL;
						FolksPersona* p;
						FolksPersona* _tmp52_;
						GeeHashSet* _tmp53_;
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp48_ = _p_it;
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp49_ = gee_iterator_next (_tmp48_);
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						if (!_tmp49_) {
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
							break;
#line 704 "set-urls.c"
						}
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp50_ = _p_it;
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp51_ = gee_iterator_get (_tmp50_);
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						p = (FolksPersona*) _tmp51_;
#line 132 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp52_ = p;
#line 132 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp53_ = url_fds;
#line 132 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						folks_url_details_set_urls (FOLKS_URL_DETAILS (_tmp52_), (GeeSet*) _tmp53_);
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_g_object_unref0 (p);
#line 720 "set-urls.c"
					}
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_g_object_unref0 (_p_it);
#line 724 "set-urls.c"
				}
#line 111 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_g_object_unref0 (p3);
#line 111 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_g_object_unref0 (p2);
#line 111 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_g_object_unref0 (p1);
#line 111 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_g_object_unref0 (url_fds);
#line 734 "set-urls.c"
			}
#line 107 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_g_object_unref0 (i);
#line 738 "set-urls.c"
		}
#line 107 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		_g_object_unref0 (_i_it);
#line 742 "set-urls.c"
	}
#line 137 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp54_ = removed;
#line 137 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp55_ = gee_collection_get_size ((GeeCollection*) _tmp54_);
#line 137 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp56_ = _tmp55_;
#line 137 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	g_assert (_tmp56_ == 1);
#line 752 "set-urls.c"
	{
		GeeSet* _tmp57_;
		GeeIterator* _tmp58_ = NULL;
		GeeIterator* _i_it;
#line 139 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		_tmp57_ = removed;
#line 139 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		_tmp58_ = gee_iterable_iterator ((GeeIterable*) _tmp57_);
#line 139 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		_i_it = _tmp58_;
#line 139 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		while (TRUE) {
#line 765 "set-urls.c"
			GeeIterator* _tmp59_;
			gboolean _tmp60_ = FALSE;
			GeeIterator* _tmp61_;
			gpointer _tmp62_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp63_;
#line 139 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_tmp59_ = _i_it;
#line 139 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_tmp60_ = gee_iterator_next (_tmp59_);
#line 139 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			if (!_tmp60_) {
#line 139 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				break;
#line 780 "set-urls.c"
			}
#line 139 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_tmp61_ = _i_it;
#line 139 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_tmp62_ = gee_iterator_get (_tmp61_);
#line 139 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			i = (FolksIndividual*) _tmp62_;
#line 141 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_tmp63_ = i;
#line 141 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			g_assert (_tmp63_ == NULL);
#line 139 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_g_object_unref0 (i);
#line 794 "set-urls.c"
		}
#line 139 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		_g_object_unref0 (_i_it);
#line 798 "set-urls.c"
	}
#line 101 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (removed);
#line 101 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (added);
#line 804 "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* _tmp63_;
	gint _tmp64_;
	gint _tmp65_;
#line 145 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	g_return_if_fail (self != NULL);
#line 145 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	g_return_if_fail (individual_obj != NULL);
#line 145 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	g_return_if_fail (ps != NULL);
#line 147 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp0_ = individual_obj;
#line 147 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp1_ = _g_object_ref0 (FOLKS_INDIVIDUAL (_tmp0_));
#line 147 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	i = _tmp1_;
#line 148 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp2_ = i;
#line 148 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp3_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp2_);
#line 148 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp4_ = _tmp3_;
#line 148 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp5_ = self->priv->_persona_fullname;
#line 148 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	if (g_strcmp0 (_tmp4_, _tmp5_) == 0) {
#line 841 "set-urls.c"
		{
			FolksIndividual* _tmp6_;
			GeeSet* _tmp7_;
			GeeSet* _tmp8_;
			GeeIterator* _tmp9_ = NULL;
			GeeIterator* _p_it;
#line 150 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_tmp6_ = i;
#line 150 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_tmp7_ = folks_url_details_get_urls ((FolksUrlDetails*) _tmp6_);
#line 150 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_tmp8_ = _tmp7_;
#line 150 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_tmp9_ = gee_iterable_iterator ((GeeIterable*) _tmp8_);
#line 150 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_p_it = _tmp9_;
#line 150 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			while (TRUE) {
#line 860 "set-urls.c"
				GeeIterator* _tmp10_;
				gboolean _tmp11_ = FALSE;
				GeeIterator* _tmp12_;
				gpointer _tmp13_ = NULL;
				FolksUrlFieldDetails* p;
				FolksUrlFieldDetails* _tmp14_;
				FolksUrlFieldDetails* _tmp15_;
				GeeCollection* _tmp16_ = NULL;
				GeeCollection* type_p;
				gboolean _tmp17_ = FALSE;
				gboolean _tmp18_ = FALSE;
				GeeCollection* _tmp19_;
				gboolean _tmp23_;
				gboolean _tmp31_;
#line 150 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp10_ = _p_it;
#line 150 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp11_ = gee_iterator_next (_tmp10_);
#line 150 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				if (!_tmp11_) {
#line 150 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					break;
#line 883 "set-urls.c"
				}
#line 150 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp12_ = _p_it;
#line 150 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp13_ = gee_iterator_get (_tmp12_);
#line 150 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				p = (FolksUrlFieldDetails*) _tmp13_;
#line 152 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp14_ = p;
#line 152 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp15_ = p;
#line 152 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp16_ = folks_abstract_field_details_get_parameter_values ((FolksAbstractFieldDetails*) _tmp14_, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE);
#line 152 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				type_p = _tmp16_;
#line 154 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp19_ = type_p;
#line 154 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				if (_tmp19_ != NULL) {
#line 903 "set-urls.c"
					GeeCollection* _tmp20_;
					FolksUrlFieldDetails* _tmp21_;
					gboolean _tmp22_ = FALSE;
#line 155 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp20_ = type_p;
#line 155 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp21_ = p;
#line 155 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp22_ = gee_collection_contains (_tmp20_, FOLKS_URL_FIELD_DETAILS_PARAM_TYPE_BLOG);
#line 155 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp18_ = _tmp22_;
#line 915 "set-urls.c"
				} else {
#line 154 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp18_ = FALSE;
#line 919 "set-urls.c"
				}
#line 154 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp23_ = _tmp18_;
#line 154 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				if (_tmp23_) {
#line 925 "set-urls.c"
					FolksUrlFieldDetails* _tmp24_;
					gconstpointer _tmp25_;
					const gchar* _tmp26_;
					GeeHashMap* _tmp27_;
					FolksUrlFieldDetails* _tmp28_;
					gpointer _tmp29_ = NULL;
					gchar* _tmp30_;
#line 156 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp24_ = p;
#line 156 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp25_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp24_);
#line 156 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp26_ = _tmp25_;
#line 156 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp27_ = self->priv->_urls;
#line 156 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp28_ = p;
#line 156 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp29_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp27_, FOLKS_URL_FIELD_DETAILS_PARAM_TYPE_BLOG);
#line 156 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp30_ = (gchar*) _tmp29_;
#line 156 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp17_ = g_strcmp0 ((const gchar*) _tmp26_, _tmp30_) == 0;
#line 156 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_g_free0 (_tmp30_);
#line 951 "set-urls.c"
				} else {
#line 154 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp17_ = FALSE;
#line 955 "set-urls.c"
				}
#line 154 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_tmp31_ = _tmp17_;
#line 154 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				if (_tmp31_) {
#line 961 "set-urls.c"
					GeeHashMap* _tmp32_;
					FolksUrlFieldDetails* _tmp33_;
#line 158 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp32_ = self->priv->_urls;
#line 158 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp33_ = p;
#line 158 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					gee_abstract_map_unset ((GeeAbstractMap*) _tmp32_, FOLKS_URL_FIELD_DETAILS_PARAM_TYPE_BLOG, NULL);
#line 970 "set-urls.c"
				} else {
					gboolean _tmp34_ = FALSE;
					gboolean _tmp35_ = FALSE;
					GeeCollection* _tmp36_;
					gboolean _tmp40_;
					gboolean _tmp48_;
#line 160 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp36_ = type_p;
#line 160 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					if (_tmp36_ != NULL) {
#line 981 "set-urls.c"
						GeeCollection* _tmp37_;
						FolksUrlFieldDetails* _tmp38_;
						gboolean _tmp39_ = FALSE;
#line 161 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp37_ = type_p;
#line 161 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp38_ = p;
#line 161 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp39_ = gee_collection_contains (_tmp37_, FOLKS_URL_FIELD_DETAILS_PARAM_TYPE_HOME_PAGE);
#line 161 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp35_ = _tmp39_;
#line 993 "set-urls.c"
					} else {
#line 160 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp35_ = FALSE;
#line 997 "set-urls.c"
					}
#line 160 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp40_ = _tmp35_;
#line 160 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					if (_tmp40_) {
#line 1003 "set-urls.c"
						FolksUrlFieldDetails* _tmp41_;
						gconstpointer _tmp42_;
						const gchar* _tmp43_;
						GeeHashMap* _tmp44_;
						FolksUrlFieldDetails* _tmp45_;
						gpointer _tmp46_ = NULL;
						gchar* _tmp47_;
#line 162 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp41_ = p;
#line 162 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp42_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp41_);
#line 162 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp43_ = _tmp42_;
#line 162 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp44_ = self->priv->_urls;
#line 162 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp45_ = p;
#line 162 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp46_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp44_, FOLKS_URL_FIELD_DETAILS_PARAM_TYPE_HOME_PAGE);
#line 162 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp47_ = (gchar*) _tmp46_;
#line 162 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp34_ = g_strcmp0 ((const gchar*) _tmp43_, _tmp47_) == 0;
#line 162 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_g_free0 (_tmp47_);
#line 1029 "set-urls.c"
					} else {
#line 160 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp34_ = FALSE;
#line 1033 "set-urls.c"
					}
#line 160 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					_tmp48_ = _tmp34_;
#line 160 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
					if (_tmp48_) {
#line 1039 "set-urls.c"
						GeeHashMap* _tmp49_;
						FolksUrlFieldDetails* _tmp50_;
#line 164 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp49_ = self->priv->_urls;
#line 164 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp50_ = p;
#line 164 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						gee_abstract_map_unset ((GeeAbstractMap*) _tmp49_, FOLKS_URL_FIELD_DETAILS_PARAM_TYPE_HOME_PAGE, NULL);
#line 1048 "set-urls.c"
					} else {
						gboolean _tmp51_ = FALSE;
						GeeCollection* _tmp52_;
						gboolean _tmp60_;
#line 166 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp52_ = type_p;
#line 166 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						if (_tmp52_ == NULL) {
#line 1057 "set-urls.c"
							FolksUrlFieldDetails* _tmp53_;
							gconstpointer _tmp54_;
							const gchar* _tmp55_;
							GeeHashMap* _tmp56_;
							FolksUrlFieldDetails* _tmp57_;
							gpointer _tmp58_ = NULL;
							gchar* _tmp59_;
#line 167 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
							_tmp53_ = p;
#line 167 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
							_tmp54_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp53_);
#line 167 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
							_tmp55_ = _tmp54_;
#line 167 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
							_tmp56_ = self->priv->_urls;
#line 167 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
							_tmp57_ = p;
#line 167 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
							_tmp58_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp56_, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE_OTHER);
#line 167 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
							_tmp59_ = (gchar*) _tmp58_;
#line 167 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
							_tmp51_ = g_strcmp0 ((const gchar*) _tmp55_, _tmp59_) == 0;
#line 167 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
							_g_free0 (_tmp59_);
#line 1083 "set-urls.c"
						} else {
#line 166 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
							_tmp51_ = FALSE;
#line 1087 "set-urls.c"
						}
#line 166 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						_tmp60_ = _tmp51_;
#line 166 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
						if (_tmp60_) {
#line 1093 "set-urls.c"
							GeeHashMap* _tmp61_;
							FolksUrlFieldDetails* _tmp62_;
#line 169 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
							_tmp61_ = self->priv->_urls;
#line 169 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
							_tmp62_ = p;
#line 169 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
							gee_abstract_map_unset ((GeeAbstractMap*) _tmp61_, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE_OTHER, NULL);
#line 1102 "set-urls.c"
						}
					}
				}
#line 150 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_g_object_unref0 (type_p);
#line 150 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
				_g_object_unref0 (p);
#line 1110 "set-urls.c"
			}
#line 150 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
			_g_object_unref0 (_p_it);
#line 1114 "set-urls.c"
		}
	}
#line 174 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp63_ = self->priv->_urls;
#line 174 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp64_ = gee_map_get_size ((GeeMap*) _tmp63_);
#line 174 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp65_ = _tmp64_;
#line 174 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	if (_tmp65_ == 0) {
#line 1125 "set-urls.c"
		GMainLoop* _tmp66_;
#line 175 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		_tmp66_ = self->priv->_main_loop;
#line 175 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
		g_main_loop_quit (_tmp66_);
#line 1131 "set-urls.c"
	}
#line 145 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (i);
#line 1135 "set-urls.c"
}


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


static void set_ur_ls_tests_instance_init (SetURLsTests * self) {
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	self->priv = SET_UR_LS_TESTS_GET_PRIVATE (self);
#line 1157 "set-urls.c"
}


static void set_ur_ls_tests_finalize (GObject* obj) {
	SetURLsTests * self;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	self = SET_UR_LS_TESTS (obj);
#line 28 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 29 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 30 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 31 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_g_free0 (self->priv->_persona_fullname);
#line 32 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (self->priv->_urls);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	G_OBJECT_CLASS (set_ur_ls_tests_parent_class)->finalize (obj);
#line 1177 "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 181 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	g_test_init (&args_length1, &args, NULL);
#line 183 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp0_ = g_test_get_root ();
#line 183 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	root = _tmp0_;
#line 184 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp1_ = set_ur_ls_tests_new ();
#line 184 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp2_ = _tmp1_;
#line 184 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 184 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 184 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	_g_object_unref0 (_tmp2_);
#line 186 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	g_test_run ();
#line 188 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	result = 0;
#line 188 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	return result;
#line 1222 "set-urls.c"
}


int main (int argc, char ** argv) {
#line 179 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	g_type_init ();
#line 179 "/home/treitter/collabora/folks/tests/tracker/set-urls.vala"
	return _vala_main (argv, argc);
#line 1231 "set-urls.c"
}



