/* link-personas-via-local-ids.c generated by valac 0.13.4, the Vala compiler
 * generated from link-personas-via-local-ids.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 <gconf/gconf-client.h>
#include <gconf/gconf.h>
#include <gio/gio.h>


#define TYPE_LINK_PERSONAS_VIA_LOCAL_IDS_TESTS (link_personas_via_local_ids_tests_get_type ())
#define LINK_PERSONAS_VIA_LOCAL_IDS_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LINK_PERSONAS_VIA_LOCAL_IDS_TESTS, LinkPersonasViaLocalIDsTests))
#define LINK_PERSONAS_VIA_LOCAL_IDS_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LINK_PERSONAS_VIA_LOCAL_IDS_TESTS, LinkPersonasViaLocalIDsTestsClass))
#define IS_LINK_PERSONAS_VIA_LOCAL_IDS_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LINK_PERSONAS_VIA_LOCAL_IDS_TESTS))
#define IS_LINK_PERSONAS_VIA_LOCAL_IDS_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LINK_PERSONAS_VIA_LOCAL_IDS_TESTS))
#define LINK_PERSONAS_VIA_LOCAL_IDS_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LINK_PERSONAS_VIA_LOCAL_IDS_TESTS, LinkPersonasViaLocalIDsTestsClass))

typedef struct _LinkPersonasViaLocalIDsTests LinkPersonasViaLocalIDsTests;
typedef struct _LinkPersonasViaLocalIDsTestsClass LinkPersonasViaLocalIDsTestsClass;
typedef struct _LinkPersonasViaLocalIDsTestsPrivate LinkPersonasViaLocalIDsTestsPrivate;
#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 _gconf_value_free0(var) ((var == NULL) ? NULL : (var = (gconf_value_free (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _LinkPersonasViaLocalIdsTestsTestLinkingPersonasViaLocalIdsAsyncData LinkPersonasViaLocalIdsTestsTestLinkingPersonasViaLocalIdsAsyncData;
#define __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL)))
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
typedef struct _LinkPersonasViaLocalIdsTestsAddPersonasData LinkPersonasViaLocalIdsTestsAddPersonasData;

struct _LinkPersonasViaLocalIDsTests {
	FolksTestCase parent_instance;
	LinkPersonasViaLocalIDsTestsPrivate * priv;
};

struct _LinkPersonasViaLocalIDsTestsClass {
	FolksTestCaseClass parent_class;
};

struct _LinkPersonasViaLocalIDsTestsPrivate {
	GMainLoop* _main_loop;
	TrackerTestBackend* _tracker_backend;
	FolksIndividualAggregator* _aggregator;
	gchar* _persona_fullname_1;
	gchar* _persona_fullname_2;
	gboolean _linking_fired;
	gboolean _persona_found_1;
	gboolean _persona_found_2;
	gchar* _persona_iid_1;
	gchar* _persona_iid_2;
	GeeHashSet* _personas;
	gint _removed_individuals;
	gchar* _folks_config_key;
	GConfClient* _gconf_client;
	GeeHashSet* _local_ids;
};

struct _LinkPersonasViaLocalIdsTestsTestLinkingPersonasViaLocalIdsAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	LinkPersonasViaLocalIDsTests* self;
	FolksBackendStore* _tmp0_;
	FolksBackendStore* store;
	FolksIndividualAggregator* _tmp1_;
	FolksIndividualAggregator* _tmp2_;
	FolksIndividualAggregator* _tmp3_;
	FolksPersonaStore* pstore;
	GeeMap* _tmp4_;
	GeeMap* _tmp5_;
	GeeCollection* _tmp6_;
	GeeCollection* _tmp7_;
	GeeCollection* _tmp8_;
	GeeIterator* _tmp9_;
	GeeIterator* _tmp10_;
	GeeIterator* _backend_it;
	GeeIterator* _tmp11_;
	gboolean _tmp12_;
	GeeIterator* _tmp13_;
	gpointer _tmp14_;
	FolksBackend* backend;
	FolksBackend* _tmp15_;
	GeeMap* _tmp16_;
	GeeMap* _tmp17_;
	gpointer _tmp18_;
	FolksPersonaStore* _tmp19_;
	FolksPersonaStore* _tmp20_;
	FolksPersonaStore* _tmp21_;
	GError* e;
	GError* _tmp22_;
	const gchar* _tmp23_;
	GError * _inner_error_;
};

struct _LinkPersonasViaLocalIdsTestsAddPersonasData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	LinkPersonasViaLocalIDsTests* self;
	FolksPersonaStore* pstore;
	GHashFunc _tmp0_;
	GEqualFunc _tmp1_;
	GHashTable* _tmp2_;
	GHashTable* details1;
	GValue _tmp3_;
	GValue _tmp4_;
	GValue* _tmp5_;
	GValue* _tmp6_;
	GValue* v1;
	GValue* _tmp7_;
	const gchar* _tmp8_;
	GHashTable* _tmp9_;
	gchar* _tmp10_;
	GValue* _tmp11_;
	GHashFunc _tmp12_;
	GEqualFunc _tmp13_;
	GHashTable* _tmp14_;
	GHashTable* details2;
	GValue _tmp15_;
	GValue _tmp16_;
	GValue* _tmp17_;
	GValue* _tmp18_;
	GValue* v2;
	GValue* _tmp19_;
	const gchar* _tmp20_;
	GHashTable* _tmp21_;
	gchar* _tmp22_;
	GValue* _tmp23_;
	FolksIndividualAggregator* _tmp24_;
	FolksPersonaStore* _tmp25_;
	GHashTable* _tmp26_;
	FolksPersona* _tmp27_;
	FolksPersona* _tmp28_;
	FolksIndividualAggregator* _tmp29_;
	FolksPersonaStore* _tmp30_;
	GHashTable* _tmp31_;
	FolksPersona* _tmp32_;
	FolksPersona* _tmp33_;
	GError* e;
	GError* _tmp34_;
	const gchar* _tmp35_;
	GError * _inner_error_;
};


static gpointer link_personas_via_local_ids_tests_parent_class = NULL;

GType link_personas_via_local_ids_tests_get_type (void) G_GNUC_CONST;
#define LINK_PERSONAS_VIA_LOCAL_IDS_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LINK_PERSONAS_VIA_LOCAL_IDS_TESTS, LinkPersonasViaLocalIDsTestsPrivate))
enum  {
	LINK_PERSONAS_VIA_LOCAL_IDS_TESTS_DUMMY_PROPERTY
};
LinkPersonasViaLocalIDsTests* link_personas_via_local_ids_tests_new (void);
LinkPersonasViaLocalIDsTests* link_personas_via_local_ids_tests_construct (GType object_type);
void link_personas_via_local_ids_tests_test_linking_personas_via_local_ids (LinkPersonasViaLocalIDsTests* self);
static void _link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_folks_test_case_test_method (gpointer self);
static void link_personas_via_local_ids_tests_real_set_up (FolksTestCase* base);
static void link_personas_via_local_ids_tests_real_tear_down (FolksTestCase* base);
static void _link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_async (LinkPersonasViaLocalIDsTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_finish (LinkPersonasViaLocalIDsTests* self, GAsyncResult* _res_);
static gboolean __lambda1_ (LinkPersonasViaLocalIDsTests* self);
static gboolean ___lambda1__gsource_func (gpointer self);
static void _link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_async_data_free (gpointer _data);
static gboolean _link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_async_co (LinkPersonasViaLocalIdsTestsTestLinkingPersonasViaLocalIdsAsyncData* _data_);
static void _link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _link_personas_via_local_ids_tests_individuals_changed_cb (LinkPersonasViaLocalIDsTests* self, GeeMultiMap* changes);
static void __link_personas_via_local_ids_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static void _link_personas_via_local_ids_tests_add_personas (LinkPersonasViaLocalIDsTests* self, FolksPersonaStore* pstore, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _link_personas_via_local_ids_tests_add_personas_finish (LinkPersonasViaLocalIDsTests* self, GAsyncResult* _res_);
static void _link_personas_via_local_ids_tests_add_personas_data_free (gpointer _data);
static gboolean _link_personas_via_local_ids_tests_add_personas_co (LinkPersonasViaLocalIdsTestsAddPersonasData* _data_);
static void _g_free0_ (gpointer var);
static void _vala_GValue_free (GValue* self);
static void __vala_GValue_free0_ (gpointer var);
static GValue* _g_value_dup (GValue* self);
static void _link_personas_via_local_ids_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _link_personas_via_local_ids_tests_notify_cb (LinkPersonasViaLocalIDsTests* self, GObject* individual_obj, GParamSpec* ps);
static void __link_personas_via_local_ids_tests_notify_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void _link_personas_via_local_ids_tests_check_personas (LinkPersonasViaLocalIDsTests* self, FolksIndividual* i);
static gboolean ___lambda0_ (LinkPersonasViaLocalIDsTests* self);
static gboolean ____lambda0__gsource_func (gpointer self);
static void link_personas_via_local_ids_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_folks_test_case_test_method (gpointer self) {
#line 50 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	link_personas_via_local_ids_tests_test_linking_personas_via_local_ids (self);
#line 219 "link-personas-via-local-ids.c"
}


LinkPersonasViaLocalIDsTests* link_personas_via_local_ids_tests_construct (GType object_type) {
	LinkPersonasViaLocalIDsTests * self = NULL;
	TrackerTestBackend* _tmp0_;
#line 46 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	self = (LinkPersonasViaLocalIDsTests*) folks_test_case_construct (object_type, "LinkPersonasViaLocalIDsTests");
#line 48 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp0_ = tracker_test_backend_new ();
#line 48 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 48 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	self->priv->_tracker_backend = _tmp0_;
#line 50 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test linking personas", _link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_folks_test_case_test_method, self);
#line 44 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	return self;
#line 238 "link-personas-via-local-ids.c"
}


LinkPersonasViaLocalIDsTests* link_personas_via_local_ids_tests_new (void) {
#line 44 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	return link_personas_via_local_ids_tests_construct (TYPE_LINK_PERSONAS_VIA_LOCAL_IDS_TESTS);
#line 245 "link-personas-via-local-ids.c"
}


static void link_personas_via_local_ids_tests_real_set_up (FolksTestCase* base) {
	LinkPersonasViaLocalIDsTests * self;
	GConfClient* _tmp0_ = NULL;
	TrackerTestBackend* _tmp6_;
	GError * _inner_error_ = NULL;
#line 54 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	self = (LinkPersonasViaLocalIDsTests*) base;
#line 56 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp0_ = gconf_client_get_default ();
#line 56 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	self->priv->_gconf_client = _tmp0_;
#line 260 "link-personas-via-local-ids.c"
	{
		GConfValue* _tmp1_;
		GConfValue* val;
		GConfClient* _tmp2_;
		const gchar* _tmp3_;
#line 62 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp1_ = gconf_value_new (GCONF_VALUE_STRING);
#line 62 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		val = _tmp1_;
#line 63 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		gconf_value_set_string (val, "tracker");
#line 64 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp2_ = self->priv->_gconf_client;
#line 64 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp3_ = self->priv->_folks_config_key;
#line 64 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		gconf_client_set (_tmp2_, _tmp3_, val, &_inner_error_);
#line 64 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		if (_inner_error_ != NULL) {
#line 64 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_gconf_value_free0 (val);
#line 282 "link-personas-via-local-ids.c"
			goto __catch0_g_error;
		}
#line 60 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_gconf_value_free0 (val);
#line 287 "link-personas-via-local-ids.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp4_;
		const gchar* _tmp5_;
#line 60 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		e = _inner_error_;
#line 60 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_inner_error_ = NULL;
#line 68 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp4_ = e;
#line 68 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp5_ = _tmp4_->message;
#line 68 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		g_warning ("link-personas-via-local-ids.vala:68: Couldn't set primary store: %s\n", _tmp5_);
#line 60 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_g_error_free0 (e);
#line 307 "link-personas-via-local-ids.c"
	}
	__finally0:
#line 60 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	if (_inner_error_ != NULL) {
#line 60 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 60 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		g_clear_error (&_inner_error_);
#line 60 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		return;
#line 318 "link-personas-via-local-ids.c"
	}
#line 75 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp6_ = self->priv->_tracker_backend;
#line 75 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	tracker_test_backend_set_up (_tmp6_);
#line 324 "link-personas-via-local-ids.c"
}


static void link_personas_via_local_ids_tests_real_tear_down (FolksTestCase* base) {
	LinkPersonasViaLocalIDsTests * self;
	TrackerTestBackend* _tmp0_;
	GError * _inner_error_ = NULL;
#line 78 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	self = (LinkPersonasViaLocalIDsTests*) base;
#line 80 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp0_ = self->priv->_tracker_backend;
#line 80 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	tracker_test_backend_tear_down (_tmp0_);
#line 338 "link-personas-via-local-ids.c"
	{
		GConfClient* _tmp1_;
		const gchar* _tmp2_;
#line 86 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp1_ = self->priv->_gconf_client;
#line 86 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp2_ = self->priv->_folks_config_key;
#line 86 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		gconf_client_unset (_tmp1_, _tmp2_, &_inner_error_);
#line 86 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		if (_inner_error_ != NULL) {
#line 350 "link-personas-via-local-ids.c"
			goto __catch1_g_error;
		}
	}
	goto __finally1;
	__catch1_g_error:
	{
		GError* e = NULL;
		GError* _tmp3_;
		const gchar* _tmp4_;
#line 84 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		e = _inner_error_;
#line 84 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_inner_error_ = NULL;
#line 90 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp3_ = e;
#line 90 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp4_ = _tmp3_->message;
#line 90 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		g_warning ("link-personas-via-local-ids.vala:90: Couldn't unset primary store: %s\n", _tmp4_);
#line 84 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_g_error_free0 (e);
#line 372 "link-personas-via-local-ids.c"
	}
	__finally1:
#line 84 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	if (_inner_error_ != NULL) {
#line 84 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 84 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		g_clear_error (&_inner_error_);
#line 84 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		return;
#line 383 "link-personas-via-local-ids.c"
	}
}


static gboolean __lambda1_ (LinkPersonasViaLocalIDsTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 114 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp0_ = self->priv->_main_loop;
#line 114 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_main_loop_quit (_tmp0_);
#line 115 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_assert_not_reached ();
#line 112 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	return result;
#line 399 "link-personas-via-local-ids.c"
}


static gboolean ___lambda1__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda1_ (self);
#line 112 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	return result;
#line 408 "link-personas-via-local-ids.c"
}


void link_personas_via_local_ids_tests_test_linking_personas_via_local_ids (LinkPersonasViaLocalIDsTests* self) {
	GMainLoop* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	GeeHashSet* _tmp3_;
	GeeHashSet* _tmp4_;
	GMainLoop* _tmp5_;
	GeeHashSet* _tmp6_;
	gint _tmp7_;
	gint _tmp8_;
	gint _tmp9_;
#line 94 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_return_if_fail (self != NULL);
#line 96 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 96 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 96 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	self->priv->_main_loop = _tmp0_;
#line 97 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp1_ = g_strdup ("persona #1");
#line 97 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_free0 (self->priv->_persona_fullname_1);
#line 97 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	self->priv->_persona_fullname_1 = _tmp1_;
#line 98 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp2_ = g_strdup ("persona #2");
#line 98 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_free0 (self->priv->_persona_fullname_2);
#line 98 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	self->priv->_persona_fullname_2 = _tmp2_;
#line 99 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp3_ = gee_hash_set_new (FOLKS_TYPE_PERSONA, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL);
#line 99 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_object_unref0 (self->priv->_personas);
#line 99 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	self->priv->_personas = _tmp3_;
#line 101 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	self->priv->_persona_found_1 = FALSE;
#line 102 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	self->priv->_persona_found_2 = FALSE;
#line 103 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	self->priv->_linking_fired = FALSE;
#line 105 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp4_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL);
#line 105 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_object_unref0 (self->priv->_local_ids);
#line 105 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	self->priv->_local_ids = _tmp4_;
#line 107 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_async (self, NULL, NULL);
#line 112 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 8, ___lambda1__gsource_func, g_object_ref (self), g_object_unref);
#line 118 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp5_ = self->priv->_main_loop;
#line 118 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_main_loop_run (_tmp5_);
#line 122 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp6_ = self->priv->_local_ids;
#line 122 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp7_ = gee_collection_get_size ((GeeCollection*) _tmp6_);
#line 122 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp8_ = _tmp7_;
#line 122 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_assert (_tmp8_ == 0);
#line 123 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp9_ = self->priv->_removed_individuals;
#line 123 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_assert (_tmp9_ == 2);
#line 481 "link-personas-via-local-ids.c"
}


static void _link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_async_data_free (gpointer _data) {
	LinkPersonasViaLocalIdsTestsTestLinkingPersonasViaLocalIdsAsyncData* _data_;
	_data_ = _data;
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_slice_free (LinkPersonasViaLocalIdsTestsTestLinkingPersonasViaLocalIdsAsyncData, _data_);
#line 492 "link-personas-via-local-ids.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	return self ? g_object_ref (self) : NULL;
#line 499 "link-personas-via-local-ids.c"
}


static void _link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_async (LinkPersonasViaLocalIDsTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	LinkPersonasViaLocalIdsTestsTestLinkingPersonasViaLocalIdsAsyncData* _data_;
	LinkPersonasViaLocalIDsTests* _tmp0_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_ = g_slice_new0 (LinkPersonasViaLocalIdsTestsTestLinkingPersonasViaLocalIdsAsyncData);
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_async);
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_async_data_free);
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->self = _tmp0_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_async_co (_data_);
#line 518 "link-personas-via-local-ids.c"
}


static void _link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_finish (LinkPersonasViaLocalIDsTests* self, GAsyncResult* _res_) {
	LinkPersonasViaLocalIdsTestsTestLinkingPersonasViaLocalIdsAsyncData* _data_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 526 "link-personas-via-local-ids.c"
}


static void _link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	LinkPersonasViaLocalIdsTestsTestLinkingPersonasViaLocalIdsAsyncData* _data_;
#line 129 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_ = _user_data_;
#line 129 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_source_object_ = source_object;
#line 129 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_res_ = _res_;
#line 129 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_async_co (_data_);
#line 540 "link-personas-via-local-ids.c"
}


static void __link_personas_via_local_ids_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 131 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_link_personas_via_local_ids_tests_individuals_changed_cb (self, changes);
#line 547 "link-personas-via-local-ids.c"
}


static gboolean _link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_async_co (LinkPersonasViaLocalIdsTestsTestLinkingPersonasViaLocalIdsAsyncData* _data_) {
#line 126 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	switch (_data_->_state_) {
#line 126 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		case 0:
#line 556 "link-personas-via-local-ids.c"
		goto _state_0;
#line 126 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		case 1:
#line 560 "link-personas-via-local-ids.c"
		goto _state_1;
#line 126 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		case 2:
#line 564 "link-personas-via-local-ids.c"
		goto _state_2;
#line 126 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		case 3:
#line 568 "link-personas-via-local-ids.c"
		goto _state_3;
		default:
#line 126 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		g_assert_not_reached ();
#line 573 "link-personas-via-local-ids.c"
	}
	_state_0:
#line 128 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp0_ = NULL;
#line 128 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 128 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->store = _data_->_tmp0_;
#line 129 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_state_ = 1;
#line 129 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	folks_backend_store_prepare (_data_->store, _link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_async_ready, _data_);
#line 129 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	return FALSE;
#line 588 "link-personas-via-local-ids.c"
	_state_1:
#line 129 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 130 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 130 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 130 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 131 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 131 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_signal_connect_object (_data_->_tmp2_, "individuals-changed-detailed", (GCallback) __link_personas_via_local_ids_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed, _data_->self, 0);
#line 602 "link-personas-via-local-ids.c"
	{
#line 135 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 135 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_state_ = 2;
#line 135 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		folks_individual_aggregator_prepare (_data_->_tmp3_, _link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_async_ready, _data_);
#line 135 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		return FALSE;
#line 612 "link-personas-via-local-ids.c"
		_state_2:
#line 135 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 135 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		if (_data_->_inner_error_ != NULL) {
#line 618 "link-personas-via-local-ids.c"
			goto __catch2_g_error;
		}
#line 137 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->pstore = NULL;
#line 623 "link-personas-via-local-ids.c"
		{
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_data_->_tmp4_ = folks_backend_store_get_enabled_backends (_data_->store);
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_data_->_tmp5_ = _data_->_tmp4_;
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_data_->_tmp6_ = gee_map_get_values (_data_->_tmp5_);
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_data_->_tmp7_ = _data_->_tmp6_;
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_data_->_tmp8_ = _data_->_tmp7_;
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_data_->_tmp9_ = NULL;
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_data_->_tmp9_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp8_);
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_data_->_tmp10_ = _data_->_tmp9_;
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_g_object_unref0 (_data_->_tmp8_);
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_data_->_backend_it = _data_->_tmp10_;
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			while (TRUE) {
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_data_->_tmp11_ = _data_->_backend_it;
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_data_->_tmp12_ = FALSE;
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_data_->_tmp12_ = gee_iterator_next (_data_->_tmp11_);
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				if (!_data_->_tmp12_) {
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
					break;
#line 657 "link-personas-via-local-ids.c"
				}
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_data_->_tmp13_ = _data_->_backend_it;
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_data_->_tmp14_ = NULL;
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_data_->_tmp14_ = gee_iterator_get (_data_->_tmp13_);
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_data_->backend = (FolksBackend*) _data_->_tmp14_;
#line 140 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_data_->_tmp15_ = _data_->backend;
#line 140 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_data_->_tmp16_ = folks_backend_get_persona_stores (_data_->_tmp15_);
#line 140 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_data_->_tmp17_ = _data_->_tmp16_;
#line 140 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_data_->_tmp18_ = NULL;
#line 140 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_data_->_tmp18_ = gee_map_get (_data_->_tmp17_, "tracker");
#line 140 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_g_object_unref0 (_data_->pstore);
#line 140 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_data_->pstore = (FolksPersonaStore*) _data_->_tmp18_;
#line 141 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_data_->_tmp19_ = _data_->pstore;
#line 141 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				if (_data_->_tmp19_ != NULL) {
#line 142 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
					_g_object_unref0 (_data_->backend);
#line 142 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
					break;
#line 689 "link-personas-via-local-ids.c"
				}
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_g_object_unref0 (_data_->backend);
#line 693 "link-personas-via-local-ids.c"
			}
#line 138 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_g_object_unref0 (_data_->_backend_it);
#line 697 "link-personas-via-local-ids.c"
		}
#line 144 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_tmp20_ = _data_->pstore;
#line 144 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		g_assert (_data_->_tmp20_ != NULL);
#line 146 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_tmp21_ = _data_->pstore;
#line 146 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_state_ = 3;
#line 146 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_link_personas_via_local_ids_tests_add_personas (_data_->self, _data_->_tmp21_, _link_personas_via_local_ids_tests_test_linking_personas_via_local_ids_async_ready, _data_);
#line 146 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		return FALSE;
#line 711 "link-personas-via-local-ids.c"
		_state_3:
#line 146 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_link_personas_via_local_ids_tests_add_personas_finish (_data_->self, _data_->_res_);
#line 133 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_g_object_unref0 (_data_->pstore);
#line 717 "link-personas-via-local-ids.c"
	}
	goto __finally2;
	__catch2_g_error:
	{
#line 133 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->e = _data_->_inner_error_;
#line 133 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_inner_error_ = NULL;
#line 150 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_tmp22_ = _data_->e;
#line 150 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_tmp23_ = _data_->_tmp22_->message;
#line 150 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		g_warning ("link-personas-via-local-ids.vala:150: Error when calling prepare: %s\n", _data_->_tmp23_);
#line 133 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_g_error_free0 (_data_->e);
#line 734 "link-personas-via-local-ids.c"
	}
	__finally2:
#line 133 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	if (_data_->_inner_error_ != NULL) {
#line 133 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_g_object_unref0 (_data_->store);
#line 133 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.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 133 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		g_clear_error (&_data_->_inner_error_);
#line 133 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		return FALSE;
#line 747 "link-personas-via-local-ids.c"
	}
#line 126 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_object_unref0 (_data_->store);
#line 126 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	if (_data_->_state_ == 0) {
#line 126 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 755 "link-personas-via-local-ids.c"
	} else {
#line 126 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 759 "link-personas-via-local-ids.c"
	}
#line 126 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_object_unref (_data_->_async_result);
#line 126 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	return FALSE;
#line 765 "link-personas-via-local-ids.c"
}


static void _link_personas_via_local_ids_tests_add_personas_data_free (gpointer _data) {
	LinkPersonasViaLocalIdsTestsAddPersonasData* _data_;
	_data_ = _data;
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_object_unref0 (_data_->pstore);
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_slice_free (LinkPersonasViaLocalIdsTestsAddPersonasData, _data_);
#line 778 "link-personas-via-local-ids.c"
}


static void _link_personas_via_local_ids_tests_add_personas (LinkPersonasViaLocalIDsTests* self, FolksPersonaStore* pstore, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	LinkPersonasViaLocalIdsTestsAddPersonasData* _data_;
	LinkPersonasViaLocalIDsTests* _tmp0_;
	FolksPersonaStore* _tmp1_;
	FolksPersonaStore* _tmp2_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_ = g_slice_new0 (LinkPersonasViaLocalIdsTestsAddPersonasData);
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _link_personas_via_local_ids_tests_add_personas);
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _link_personas_via_local_ids_tests_add_personas_data_free);
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->self = _tmp0_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp1_ = pstore;
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->pstore = _tmp2_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_link_personas_via_local_ids_tests_add_personas_co (_data_);
#line 805 "link-personas-via-local-ids.c"
}


static void _link_personas_via_local_ids_tests_add_personas_finish (LinkPersonasViaLocalIDsTests* self, GAsyncResult* _res_) {
	LinkPersonasViaLocalIdsTestsAddPersonasData* _data_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 813 "link-personas-via-local-ids.c"
}


static void _g_free0_ (gpointer var) {
#line 164 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	var = (g_free (var), NULL);
#line 820 "link-personas-via-local-ids.c"
}


static void _vala_GValue_free (GValue* self) {
#line 164 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_value_unset (self);
#line 164 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_free (self);
#line 829 "link-personas-via-local-ids.c"
}


static void __vala_GValue_free0_ (gpointer var) {
#line 164 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	(var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL));
#line 836 "link-personas-via-local-ids.c"
}


static GValue* _g_value_dup (GValue* self) {
#line 166 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	return g_boxed_copy (G_TYPE_VALUE, self);
#line 843 "link-personas-via-local-ids.c"
}


static gpointer __g_value_dup0 (gpointer self) {
#line 166 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	return self ? _g_value_dup (self) : NULL;
#line 850 "link-personas-via-local-ids.c"
}


static void _link_personas_via_local_ids_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	LinkPersonasViaLocalIdsTestsAddPersonasData* _data_;
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_ = _user_data_;
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_source_object_ = source_object;
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_res_ = _res_;
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_link_personas_via_local_ids_tests_add_personas_co (_data_);
#line 864 "link-personas-via-local-ids.c"
}


static gboolean _link_personas_via_local_ids_tests_add_personas_co (LinkPersonasViaLocalIdsTestsAddPersonasData* _data_) {
#line 162 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	switch (_data_->_state_) {
#line 162 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		case 0:
#line 873 "link-personas-via-local-ids.c"
		goto _state_0;
#line 162 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		case 1:
#line 877 "link-personas-via-local-ids.c"
		goto _state_1;
#line 162 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		case 2:
#line 881 "link-personas-via-local-ids.c"
		goto _state_2;
		default:
#line 162 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		g_assert_not_reached ();
#line 886 "link-personas-via-local-ids.c"
	}
	_state_0:
#line 164 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp0_ = g_str_hash;
#line 164 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp1_ = g_str_equal;
#line 164 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp2_ = g_hash_table_new_full (_data_->_tmp0_, _data_->_tmp1_, _g_free0_, __vala_GValue_free0_);
#line 164 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->details1 = _data_->_tmp2_;
#line 166 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	memset (&_data_->_tmp3_, 0, sizeof (GValue));
#line 166 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_value_init (&_data_->_tmp3_, G_TYPE_STRING);
#line 166 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 166 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp5_ = __g_value_dup0 (&_data_->_tmp4_);
#line 166 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp6_ = _data_->_tmp5_;
#line 166 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	G_IS_VALUE (&_data_->_tmp4_) ? (g_value_unset (&_data_->_tmp4_), NULL) : NULL;
#line 166 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->v1 = _data_->_tmp6_;
#line 167 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp7_ = _data_->v1;
#line 167 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp8_ = _data_->self->priv->_persona_fullname_1;
#line 167 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_value_set_string (_data_->_tmp7_, _data_->_tmp8_);
#line 168 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp9_ = _data_->details1;
#line 168 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp10_ = g_strdup ("full-name");
#line 168 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp11_ = _data_->v1;
#line 168 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->v1 = NULL;
#line 168 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_hash_table_insert (_data_->_tmp9_, _data_->_tmp10_, _data_->_tmp11_);
#line 170 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp12_ = g_str_hash;
#line 170 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp13_ = g_str_equal;
#line 170 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp14_ = g_hash_table_new_full (_data_->_tmp12_, _data_->_tmp13_, _g_free0_, __vala_GValue_free0_);
#line 170 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->details2 = _data_->_tmp14_;
#line 172 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	memset (&_data_->_tmp15_, 0, sizeof (GValue));
#line 172 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_value_init (&_data_->_tmp15_, G_TYPE_STRING);
#line 172 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp16_ = _data_->_tmp15_;
#line 172 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp17_ = __g_value_dup0 (&_data_->_tmp16_);
#line 172 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp18_ = _data_->_tmp17_;
#line 172 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	G_IS_VALUE (&_data_->_tmp16_) ? (g_value_unset (&_data_->_tmp16_), NULL) : NULL;
#line 172 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->v2 = _data_->_tmp18_;
#line 173 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp19_ = _data_->v2;
#line 173 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp20_ = _data_->self->priv->_persona_fullname_2;
#line 173 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_value_set_string (_data_->_tmp19_, _data_->_tmp20_);
#line 174 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp21_ = _data_->details2;
#line 174 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp22_ = g_strdup ("full-name");
#line 174 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->_tmp23_ = _data_->v2;
#line 174 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_data_->v2 = NULL;
#line 174 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_hash_table_insert (_data_->_tmp21_, _data_->_tmp22_, _data_->_tmp23_);
#line 965 "link-personas-via-local-ids.c"
	{
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_tmp24_ = _data_->self->priv->_aggregator;
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_tmp25_ = _data_->pstore;
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_tmp26_ = _data_->details1;
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_state_ = 1;
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp24_, NULL, _data_->_tmp25_, _data_->_tmp26_, _link_personas_via_local_ids_tests_add_personas_ready, _data_);
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		return FALSE;
#line 979 "link-personas-via-local-ids.c"
		_state_1:
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_tmp27_ = NULL;
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_tmp27_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp24_, _data_->_res_, &_data_->_inner_error_);
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_tmp28_ = _data_->_tmp27_;
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_g_object_unref0 (_data_->_tmp28_);
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		if (_data_->_inner_error_ != NULL) {
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 993 "link-personas-via-local-ids.c"
				goto __catch3_folks_individual_aggregator_error;
			}
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			__vala_GValue_free0 (_data_->v2);
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			__vala_GValue_free0 (_data_->v1);
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			g_clear_error (&_data_->_inner_error_);
#line 178 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			return FALSE;
#line 1010 "link-personas-via-local-ids.c"
		}
#line 181 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_tmp29_ = _data_->self->priv->_aggregator;
#line 181 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_tmp30_ = _data_->pstore;
#line 181 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_tmp31_ = _data_->details2;
#line 181 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_state_ = 2;
#line 181 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp29_, NULL, _data_->_tmp30_, _data_->_tmp31_, _link_personas_via_local_ids_tests_add_personas_ready, _data_);
#line 181 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		return FALSE;
#line 1024 "link-personas-via-local-ids.c"
		_state_2:
#line 181 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_tmp32_ = NULL;
#line 181 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_tmp32_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp29_, _data_->_res_, &_data_->_inner_error_);
#line 181 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_tmp33_ = _data_->_tmp32_;
#line 181 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_g_object_unref0 (_data_->_tmp33_);
#line 181 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		if (_data_->_inner_error_ != NULL) {
#line 181 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1038 "link-personas-via-local-ids.c"
				goto __catch3_folks_individual_aggregator_error;
			}
#line 181 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			__vala_GValue_free0 (_data_->v2);
#line 181 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 181 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			__vala_GValue_free0 (_data_->v1);
#line 181 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 181 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 181 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			g_clear_error (&_data_->_inner_error_);
#line 181 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			return FALSE;
#line 1055 "link-personas-via-local-ids.c"
		}
	}
	goto __finally3;
	__catch3_folks_individual_aggregator_error:
	{
#line 176 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->e = _data_->_inner_error_;
#line 176 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_inner_error_ = NULL;
#line 186 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_tmp34_ = _data_->e;
#line 186 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_data_->_tmp35_ = _data_->_tmp34_->message;
#line 186 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		g_warning ("link-personas-via-local-ids.vala:186: [AddPersonaError] add_persona_fr" \
"om_details: %s\n", _data_->_tmp35_);
#line 176 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_g_error_free0 (_data_->e);
#line 1073 "link-personas-via-local-ids.c"
	}
	__finally3:
#line 176 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	if (_data_->_inner_error_ != NULL) {
#line 176 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		__vala_GValue_free0 (_data_->v2);
#line 176 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_g_hash_table_unref0 (_data_->details2);
#line 176 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		__vala_GValue_free0 (_data_->v1);
#line 176 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_g_hash_table_unref0 (_data_->details1);
#line 176 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.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 176 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		g_clear_error (&_data_->_inner_error_);
#line 176 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		return FALSE;
#line 1092 "link-personas-via-local-ids.c"
	}
#line 162 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	__vala_GValue_free0 (_data_->v2);
#line 162 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_hash_table_unref0 (_data_->details2);
#line 162 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	__vala_GValue_free0 (_data_->v1);
#line 162 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_hash_table_unref0 (_data_->details1);
#line 162 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	if (_data_->_state_ == 0) {
#line 162 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1106 "link-personas-via-local-ids.c"
	} else {
#line 162 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1110 "link-personas-via-local-ids.c"
	}
#line 162 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_object_unref (_data_->_async_result);
#line 162 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	return FALSE;
#line 1116 "link-personas-via-local-ids.c"
}


static void __link_personas_via_local_ids_tests_notify_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 208 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_link_personas_via_local_ids_tests_notify_cb (self, _sender, pspec);
#line 1123 "link-personas-via-local-ids.c"
}


static void _link_personas_via_local_ids_tests_individuals_changed_cb (LinkPersonasViaLocalIDsTests* self, GeeMultiMap* changes) {
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
#line 191 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_return_if_fail (self != NULL);
#line 191 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_return_if_fail (changes != NULL);
#line 194 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp0_ = changes;
#line 194 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 194 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	added = _tmp1_;
#line 195 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp2_ = changes;
#line 195 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 195 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	removed = _tmp3_;
#line 1150 "link-personas-via-local-ids.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 197 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp4_ = added;
#line 197 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 197 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_i_it = _tmp5_;
#line 197 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		while (TRUE) {
#line 1163 "link-personas-via-local-ids.c"
			GeeIterator* _tmp6_;
			gboolean _tmp7_ = FALSE;
			GeeIterator* _tmp8_;
			gpointer _tmp9_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp10_;
			FolksIndividual* _tmp11_;
			gboolean _tmp12_;
			gboolean _tmp13_;
#line 197 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp6_ = _i_it;
#line 197 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 197 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			if (!_tmp7_) {
#line 197 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				break;
#line 1181 "link-personas-via-local-ids.c"
			}
#line 197 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp8_ = _i_it;
#line 197 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 197 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			i = (FolksIndividual*) _tmp9_;
#line 199 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp10_ = i;
#line 199 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			if (_tmp10_ == NULL) {
#line 201 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_g_object_unref0 (i);
#line 201 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				continue;
#line 1197 "link-personas-via-local-ids.c"
			}
#line 206 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp11_ = i;
#line 206 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp12_ = folks_individual_get_is_user (_tmp11_);
#line 206 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp13_ = _tmp12_;
#line 206 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			if (!_tmp13_) {
#line 1207 "link-personas-via-local-ids.c"
				FolksIndividual* _tmp14_;
				FolksIndividual* _tmp15_;
				FolksIndividual* _tmp16_;
#line 208 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_tmp14_ = i;
#line 208 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				g_signal_connect_object ((GObject*) _tmp14_, "notify::full-name", (GCallback) __link_personas_via_local_ids_tests_notify_cb_g_object_notify, self, 0);
#line 209 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_tmp15_ = i;
#line 209 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				g_signal_connect_object ((GObject*) _tmp15_, "notify::local-ids", (GCallback) __link_personas_via_local_ids_tests_notify_cb_g_object_notify, self, 0);
#line 210 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_tmp16_ = i;
#line 210 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_link_personas_via_local_ids_tests_check_personas (self, _tmp16_);
#line 1223 "link-personas-via-local-ids.c"
			}
#line 197 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_g_object_unref0 (i);
#line 1227 "link-personas-via-local-ids.c"
		}
#line 197 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_g_object_unref0 (_i_it);
#line 1231 "link-personas-via-local-ids.c"
	}
	{
		GeeSet* _tmp17_;
		GeeIterator* _tmp18_ = NULL;
		GeeIterator* _i_it;
#line 214 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp17_ = removed;
#line 214 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp18_ = gee_iterable_iterator ((GeeIterable*) _tmp17_);
#line 214 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_i_it = _tmp18_;
#line 214 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		while (TRUE) {
#line 1245 "link-personas-via-local-ids.c"
			GeeIterator* _tmp19_;
			gboolean _tmp20_ = FALSE;
			GeeIterator* _tmp21_;
			gpointer _tmp22_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp23_;
			gint _tmp24_;
#line 214 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp19_ = _i_it;
#line 214 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp20_ = gee_iterator_next (_tmp19_);
#line 214 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			if (!_tmp20_) {
#line 214 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				break;
#line 1261 "link-personas-via-local-ids.c"
			}
#line 214 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp21_ = _i_it;
#line 214 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp22_ = gee_iterator_get (_tmp21_);
#line 214 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			i = (FolksIndividual*) _tmp22_;
#line 216 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp23_ = i;
#line 216 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			if (_tmp23_ == NULL) {
#line 218 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_g_object_unref0 (i);
#line 218 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				continue;
#line 1277 "link-personas-via-local-ids.c"
			}
#line 221 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp24_ = self->priv->_removed_individuals;
#line 221 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			self->priv->_removed_individuals = _tmp24_ + 1;
#line 214 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_g_object_unref0 (i);
#line 1285 "link-personas-via-local-ids.c"
		}
#line 214 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_g_object_unref0 (_i_it);
#line 1289 "link-personas-via-local-ids.c"
	}
#line 191 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_object_unref0 (removed);
#line 191 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_object_unref0 (added);
#line 1295 "link-personas-via-local-ids.c"
}


static void _link_personas_via_local_ids_tests_notify_cb (LinkPersonasViaLocalIDsTests* self, GObject* individual_obj, GParamSpec* ps) {
	GObject* _tmp0_;
	FolksIndividual* _tmp1_;
	FolksIndividual* i;
#line 225 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_return_if_fail (self != NULL);
#line 225 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_return_if_fail (individual_obj != NULL);
#line 225 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_return_if_fail (ps != NULL);
#line 227 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp0_ = individual_obj;
#line 227 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp1_ = _g_object_ref0 (FOLKS_INDIVIDUAL (_tmp0_));
#line 227 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	i = _tmp1_;
#line 228 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_link_personas_via_local_ids_tests_check_personas (self, i);
#line 225 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_object_unref0 (i);
#line 1319 "link-personas-via-local-ids.c"
}


static gboolean ___lambda0_ (LinkPersonasViaLocalIDsTests* self) {
	gboolean result = FALSE;
	FolksIndividualAggregator* _tmp0_;
	GeeHashSet* _tmp1_;
#line 292 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp0_ = self->priv->_aggregator;
#line 292 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp1_ = self->priv->_personas;
#line 292 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	folks_individual_aggregator_link_personas (_tmp0_, (GeeSet*) _tmp1_, NULL, NULL);
#line 293 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	result = FALSE;
#line 293 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	return result;
#line 1337 "link-personas-via-local-ids.c"
}


static gboolean ____lambda0__gsource_func (gpointer self) {
	gboolean result;
	result = ___lambda0_ (self);
#line 290 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	return result;
#line 1346 "link-personas-via-local-ids.c"
}


static void _link_personas_via_local_ids_tests_check_personas (LinkPersonasViaLocalIDsTests* self, FolksIndividual* i) {
	FolksPersona* first_persona;
	gboolean _tmp8_ = FALSE;
	FolksIndividual* _tmp9_;
	const gchar* _tmp10_;
	const gchar* _tmp11_;
	const gchar* _tmp12_;
	gboolean _tmp14_;
	gboolean _tmp60_ = FALSE;
	GeeHashSet* _tmp61_;
	gint _tmp62_;
	gint _tmp63_;
	gboolean _tmp65_;
#line 241 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_return_if_fail (self != NULL);
#line 241 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_return_if_fail (i != NULL);
#line 243 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	first_persona = NULL;
#line 1369 "link-personas-via-local-ids.c"
	{
		FolksIndividual* _tmp0_;
		GeeSet* _tmp1_;
		GeeSet* _tmp2_;
		GeeIterator* _tmp3_ = NULL;
		GeeIterator* _p_it;
#line 244 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp0_ = i;
#line 244 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp1_ = folks_individual_get_personas (_tmp0_);
#line 244 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp2_ = _tmp1_;
#line 244 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp3_ = gee_iterable_iterator ((GeeIterable*) _tmp2_);
#line 244 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_p_it = _tmp3_;
#line 244 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		while (TRUE) {
#line 1388 "link-personas-via-local-ids.c"
			gboolean _tmp4_ = FALSE;
			gpointer _tmp5_ = NULL;
			FolksPersona* p;
			FolksPersona* _tmp6_;
			FolksPersona* _tmp7_;
#line 244 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp4_ = gee_iterator_next (_p_it);
#line 244 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			if (!_tmp4_) {
#line 244 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				break;
#line 1400 "link-personas-via-local-ids.c"
			}
#line 244 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp5_ = gee_iterator_get (_p_it);
#line 244 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			p = (FolksPersona*) _tmp5_;
#line 246 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp6_ = p;
#line 246 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp7_ = _g_object_ref0 (_tmp6_);
#line 246 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_g_object_unref0 (first_persona);
#line 246 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			first_persona = _tmp7_;
#line 247 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_g_object_unref0 (p);
#line 247 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			break;
#line 1418 "link-personas-via-local-ids.c"
		}
#line 244 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_g_object_unref0 (_p_it);
#line 1422 "link-personas-via-local-ids.c"
	}
#line 250 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp9_ = i;
#line 250 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp10_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp9_);
#line 250 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp11_ = _tmp10_;
#line 250 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp12_ = self->priv->_persona_fullname_1;
#line 250 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	if (g_strcmp0 (_tmp11_, _tmp12_) == 0) {
#line 1434 "link-personas-via-local-ids.c"
		const gchar* _tmp13_;
#line 251 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp13_ = self->priv->_persona_iid_1;
#line 251 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp8_ = g_strcmp0 (_tmp13_, "") == 0;
#line 1440 "link-personas-via-local-ids.c"
	} else {
#line 250 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp8_ = FALSE;
#line 1444 "link-personas-via-local-ids.c"
	}
#line 250 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp14_ = _tmp8_;
#line 250 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	if (_tmp14_) {
#line 1450 "link-personas-via-local-ids.c"
		FolksPersona* _tmp15_;
		const gchar* _tmp16_;
		const gchar* _tmp17_;
		gchar* _tmp18_;
		GeeHashSet* _tmp19_;
		FolksPersona* _tmp20_;
		GeeHashSet* _tmp21_;
		const gchar* _tmp22_;
#line 253 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp15_ = first_persona;
#line 253 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp16_ = folks_persona_get_iid (_tmp15_);
#line 253 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp17_ = _tmp16_;
#line 253 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp18_ = g_strdup (_tmp17_);
#line 253 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_g_free0 (self->priv->_persona_iid_1);
#line 253 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		self->priv->_persona_iid_1 = _tmp18_;
#line 254 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp19_ = self->priv->_personas;
#line 254 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp20_ = first_persona;
#line 254 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp19_, _tmp20_);
#line 255 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp21_ = self->priv->_local_ids;
#line 255 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp22_ = self->priv->_persona_iid_1;
#line 255 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp21_, _tmp22_);
#line 1483 "link-personas-via-local-ids.c"
	} else {
		gboolean _tmp23_ = FALSE;
		FolksIndividual* _tmp24_;
		const gchar* _tmp25_;
		const gchar* _tmp26_;
		const gchar* _tmp27_;
		gboolean _tmp29_;
#line 257 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp24_ = i;
#line 257 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp25_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp24_);
#line 257 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp26_ = _tmp25_;
#line 257 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp27_ = self->priv->_persona_fullname_2;
#line 257 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		if (g_strcmp0 (_tmp26_, _tmp27_) == 0) {
#line 1501 "link-personas-via-local-ids.c"
			const gchar* _tmp28_;
#line 258 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp28_ = self->priv->_persona_iid_2;
#line 258 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp23_ = g_strcmp0 (_tmp28_, "") == 0;
#line 1507 "link-personas-via-local-ids.c"
		} else {
#line 257 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp23_ = FALSE;
#line 1511 "link-personas-via-local-ids.c"
		}
#line 257 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp29_ = _tmp23_;
#line 257 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		if (_tmp29_) {
#line 1517 "link-personas-via-local-ids.c"
			FolksPersona* _tmp30_;
			const gchar* _tmp31_;
			const gchar* _tmp32_;
			gchar* _tmp33_;
			GeeHashSet* _tmp34_;
			FolksPersona* _tmp35_;
			GeeHashSet* _tmp36_;
			const gchar* _tmp37_;
#line 260 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp30_ = first_persona;
#line 260 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp31_ = folks_persona_get_iid (_tmp30_);
#line 260 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp32_ = _tmp31_;
#line 260 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp33_ = g_strdup (_tmp32_);
#line 260 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_g_free0 (self->priv->_persona_iid_2);
#line 260 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			self->priv->_persona_iid_2 = _tmp33_;
#line 261 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp34_ = self->priv->_personas;
#line 261 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp35_ = first_persona;
#line 261 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp34_, _tmp35_);
#line 262 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp36_ = self->priv->_local_ids;
#line 262 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp37_ = self->priv->_persona_iid_2;
#line 262 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp36_, _tmp37_);
#line 1550 "link-personas-via-local-ids.c"
		} else {
			FolksIndividual* _tmp38_;
			GeeSet* _tmp39_;
			GeeSet* _tmp40_;
			gint _tmp41_;
			gint _tmp42_;
#line 264 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp38_ = i;
#line 264 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp39_ = folks_individual_get_personas (_tmp38_);
#line 264 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp40_ = _tmp39_;
#line 264 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp41_ = gee_collection_get_size ((GeeCollection*) _tmp40_);
#line 264 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			_tmp42_ = _tmp41_;
#line 264 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
			if (_tmp42_ > 1) {
#line 1569 "link-personas-via-local-ids.c"
				GeeHashSet* _tmp56_;
				gint _tmp57_;
				gint _tmp58_;
				{
					FolksIndividual* _tmp43_;
					GeeSet* _tmp44_;
					GeeSet* _tmp45_;
					GeeIterator* _tmp46_ = NULL;
					GeeIterator* _id_it;
#line 267 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
					_tmp43_ = i;
#line 267 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
					_tmp44_ = folks_local_id_details_get_local_ids ((FolksLocalIdDetails*) _tmp43_);
#line 267 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
					_tmp45_ = _tmp44_;
#line 267 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
					_tmp46_ = gee_iterable_iterator ((GeeIterable*) _tmp45_);
#line 267 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
					_id_it = _tmp46_;
#line 267 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
					while (TRUE) {
#line 1591 "link-personas-via-local-ids.c"
						GeeIterator* _tmp47_;
						gboolean _tmp48_ = FALSE;
						GeeIterator* _tmp49_;
						gpointer _tmp50_ = NULL;
						gchar* id;
						GeeHashSet* _tmp51_;
						const gchar* _tmp52_;
						gboolean _tmp53_ = FALSE;
#line 267 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
						_tmp47_ = _id_it;
#line 267 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
						_tmp48_ = gee_iterator_next (_tmp47_);
#line 267 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
						if (!_tmp48_) {
#line 267 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
							break;
#line 1608 "link-personas-via-local-ids.c"
						}
#line 267 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
						_tmp49_ = _id_it;
#line 267 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
						_tmp50_ = gee_iterator_get (_tmp49_);
#line 267 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
						id = (gchar*) _tmp50_;
#line 269 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
						_tmp51_ = self->priv->_local_ids;
#line 269 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
						_tmp52_ = id;
#line 269 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
						_tmp53_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _tmp51_, _tmp52_);
#line 269 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
						if (_tmp53_) {
#line 1624 "link-personas-via-local-ids.c"
							GeeHashSet* _tmp54_;
							const gchar* _tmp55_;
#line 271 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
							_tmp54_ = self->priv->_local_ids;
#line 271 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
							_tmp55_ = id;
#line 271 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
							gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp54_, _tmp55_);
#line 1633 "link-personas-via-local-ids.c"
						}
#line 267 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
						_g_free0 (id);
#line 1637 "link-personas-via-local-ids.c"
					}
#line 267 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
					_g_object_unref0 (_id_it);
#line 1641 "link-personas-via-local-ids.c"
				}
#line 275 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_tmp56_ = self->priv->_local_ids;
#line 275 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_tmp57_ = gee_collection_get_size ((GeeCollection*) _tmp56_);
#line 275 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				_tmp58_ = _tmp57_;
#line 275 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
				if (_tmp58_ == 0) {
#line 1651 "link-personas-via-local-ids.c"
					GMainLoop* _tmp59_;
#line 277 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
					_tmp59_ = self->priv->_main_loop;
#line 277 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
					g_main_loop_quit (_tmp59_);
#line 1657 "link-personas-via-local-ids.c"
				}
			}
		}
	}
#line 283 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp61_ = self->priv->_personas;
#line 283 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp62_ = gee_collection_get_size ((GeeCollection*) _tmp61_);
#line 283 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp63_ = _tmp62_;
#line 283 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	if (_tmp63_ == 2) {
#line 1670 "link-personas-via-local-ids.c"
		gboolean _tmp64_;
#line 284 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp64_ = self->priv->_linking_fired;
#line 284 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp60_ = _tmp64_ == FALSE;
#line 1676 "link-personas-via-local-ids.c"
	} else {
#line 283 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		_tmp60_ = FALSE;
#line 1680 "link-personas-via-local-ids.c"
	}
#line 283 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp65_ = _tmp60_;
#line 283 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	if (_tmp65_) {
#line 286 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		self->priv->_linking_fired = TRUE;
#line 290 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
		g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 2, ____lambda0__gsource_func, g_object_ref (self), g_object_unref);
#line 1690 "link-personas-via-local-ids.c"
	}
#line 241 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_object_unref0 (first_persona);
#line 1694 "link-personas-via-local-ids.c"
}


static void link_personas_via_local_ids_tests_class_init (LinkPersonasViaLocalIDsTestsClass * klass) {
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	link_personas_via_local_ids_tests_parent_class = g_type_class_peek_parent (klass);
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_type_class_add_private (klass, sizeof (LinkPersonasViaLocalIDsTestsPrivate));
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = link_personas_via_local_ids_tests_real_set_up;
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = link_personas_via_local_ids_tests_real_tear_down;
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	G_OBJECT_CLASS (klass)->finalize = link_personas_via_local_ids_tests_finalize;
#line 1709 "link-personas-via-local-ids.c"
}


static void link_personas_via_local_ids_tests_instance_init (LinkPersonasViaLocalIDsTests * self) {
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	self->priv = LINK_PERSONAS_VIA_LOCAL_IDS_TESTS_GET_PRIVATE (self);
#line 36 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp0_ = g_strdup ("");
#line 36 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	self->priv->_persona_iid_1 = _tmp0_;
#line 37 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp1_ = g_strdup ("");
#line 37 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	self->priv->_persona_iid_2 = _tmp1_;
#line 39 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	self->priv->_removed_individuals = 0;
#line 40 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp2_ = g_strdup ("/system/folks/backends/primary_store");
#line 40 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	self->priv->_folks_config_key = _tmp2_;
#line 1733 "link-personas-via-local-ids.c"
}


static void link_personas_via_local_ids_tests_finalize (GObject* obj) {
	LinkPersonasViaLocalIDsTests * self;
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	self = LINK_PERSONAS_VIA_LOCAL_IDS_TESTS (obj);
#line 28 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 29 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 30 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 31 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_free0 (self->priv->_persona_fullname_1);
#line 32 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_free0 (self->priv->_persona_fullname_2);
#line 36 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_free0 (self->priv->_persona_iid_1);
#line 37 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_free0 (self->priv->_persona_iid_2);
#line 38 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_object_unref0 (self->priv->_personas);
#line 40 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_free0 (self->priv->_folks_config_key);
#line 42 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_object_unref0 (self->priv->_local_ids);
#line 26 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	G_OBJECT_CLASS (link_personas_via_local_ids_tests_parent_class)->finalize (obj);
#line 1763 "link-personas-via-local-ids.c"
}


GType link_personas_via_local_ids_tests_get_type (void) {
	static volatile gsize link_personas_via_local_ids_tests_type_id__volatile = 0;
	if (g_once_init_enter (&link_personas_via_local_ids_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (LinkPersonasViaLocalIDsTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) link_personas_via_local_ids_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LinkPersonasViaLocalIDsTests), 0, (GInstanceInitFunc) link_personas_via_local_ids_tests_instance_init, NULL };
		GType link_personas_via_local_ids_tests_type_id;
		link_personas_via_local_ids_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "LinkPersonasViaLocalIDsTests", &g_define_type_info, 0);
		g_once_init_leave (&link_personas_via_local_ids_tests_type_id__volatile, link_personas_via_local_ids_tests_type_id);
	}
	return link_personas_via_local_ids_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	LinkPersonasViaLocalIDsTests* _tmp1_;
	LinkPersonasViaLocalIDsTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 301 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_test_init (&args_length1, &args, NULL);
#line 303 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp0_ = g_test_get_root ();
#line 303 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	root = _tmp0_;
#line 304 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp1_ = link_personas_via_local_ids_tests_new ();
#line 304 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp2_ = _tmp1_;
#line 304 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 304 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 304 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	_g_object_unref0 (_tmp2_);
#line 306 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_test_run ();
#line 308 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	result = 0;
#line 308 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	return result;
#line 1808 "link-personas-via-local-ids.c"
}


int main (int argc, char ** argv) {
#line 299 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	g_type_init ();
#line 299 "/debian/rgs/devel/folks/tests/tracker/link-personas-via-local-ids.vala"
	return _vala_main (argv, argc);
#line 1817 "link-personas-via-local-ids.c"
}



