/* link-personas.c generated by valac 0.13.4, the Vala compiler
 * generated from link-personas.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 <eds-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>
#include <folks/folks-eds.h>


#define TYPE_LINKING_METHOD (linking_method_get_type ())

#define TYPE_LINK_PERSONAS_TESTS (link_personas_tests_get_type ())
#define LINK_PERSONAS_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LINK_PERSONAS_TESTS, LinkPersonasTests))
#define LINK_PERSONAS_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LINK_PERSONAS_TESTS, LinkPersonasTestsClass))
#define IS_LINK_PERSONAS_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LINK_PERSONAS_TESTS))
#define IS_LINK_PERSONAS_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LINK_PERSONAS_TESTS))
#define LINK_PERSONAS_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LINK_PERSONAS_TESTS, LinkPersonasTestsClass))

typedef struct _LinkPersonasTests LinkPersonasTests;
typedef struct _LinkPersonasTestsClass LinkPersonasTestsClass;
typedef struct _LinkPersonasTestsPrivate LinkPersonasTestsPrivate;
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define _eds_test_backend_unref0(var) ((var == NULL) ? NULL : (var = (eds_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 _LinkPersonasTestsTestLinkingPersonasAsyncData LinkPersonasTestsTestLinkingPersonasAsyncData;
#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 _LinkPersonasTestsAddPersonasData LinkPersonasTestsAddPersonasData;
typedef struct _LinkPersonasTestsCheckPersonasData LinkPersonasTestsCheckPersonasData;

typedef enum  {
	LINKING_METHOD_IM_ADDRESSES,
	LINKING_METHOD_LOCAL_IDS,
	LINKING_METHOD_WEB_SERVICE_ADDRESSES,
	LINKING_METHOD_LOCAL_IDS_DIFF_STORES
} LinkingMethod;

struct _LinkPersonasTests {
	FolksTestCase parent_instance;
	LinkPersonasTestsPrivate * priv;
};

struct _LinkPersonasTestsClass {
	FolksTestCaseClass parent_class;
};

struct _LinkPersonasTestsPrivate {
	GMainLoop* _main_loop;
	EdsTestBackend* _eds_backend;
	EdsTestBackend* _eds_backend_other;
	FolksIndividualAggregator* _aggregator;
	gchar* _persona_fullname_1;
	gchar* _persona_fullname_2;
	gchar* _im_address_1;
	gchar* _im_address_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;
	GeeHashMap* _linking_props;
	LinkingMethod _linking_method;
};

struct _LinkPersonasTestsTestLinkingPersonasAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	LinkPersonasTests* self;
	FolksBackendStore* _tmp0_;
	FolksBackendStore* store;
	FolksIndividualAggregator* _tmp1_;
	FolksIndividualAggregator* _tmp2_;
	FolksIndividualAggregator* _tmp3_;
	FolksPersonaStore* _tmp4_;
	FolksPersonaStore* pstore;
	FolksPersonaStore* _tmp5_;
	LinkingMethod _tmp6_;
	EdsTestBackend* _tmp7_;
	const gchar* _tmp8_;
	const gchar* _tmp9_;
	FolksPersonaStore* _tmp10_;
	FolksPersonaStore* pstore2;
	FolksPersonaStore* _tmp11_;
	FolksPersonaStore* _tmp12_;
	FolksPersonaStore* _tmp13_;
	FolksPersonaStore* _tmp14_;
	FolksPersonaStore* _tmp15_;
	GError* e;
	GError* _tmp16_;
	const gchar* _tmp17_;
	GError * _inner_error_;
};

struct _LinkPersonasTestsAddPersonasData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	LinkPersonasTests* self;
	FolksPersonaStore* pstore1;
	FolksPersonaStore* pstore2;
	GHashFunc _tmp0_;
	GEqualFunc _tmp1_;
	GHashTable* _tmp2_;
	GHashTable* details1;
	GValue* v1;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* wsk;
	LinkingMethod _tmp5_;
	GValue _tmp6_;
	GValue _tmp7_;
	GValue* _tmp8_;
	GeeHashMultiMap* _tmp9_;
	GeeHashMultiMap* im_addrs1;
	GeeHashMultiMap* _tmp10_;
	const gchar* _tmp11_;
	FolksImFieldDetails* _tmp12_;
	FolksImFieldDetails* _tmp13_;
	GValue* _tmp14_;
	GeeHashMultiMap* _tmp15_;
	GHashTable* _tmp16_;
	gchar* _tmp17_;
	GValue* _tmp18_;
	LinkingMethod _tmp19_;
	GValue _tmp20_;
	GValue _tmp21_;
	GValue* _tmp22_;
	GeeHashMultiMap* _tmp23_;
	GeeHashMultiMap* wsa1;
	GeeHashMultiMap* _tmp24_;
	const gchar* _tmp25_;
	FolksWebServiceFieldDetails* _tmp26_;
	FolksWebServiceFieldDetails* _tmp27_;
	GValue* _tmp28_;
	GeeHashMultiMap* _tmp29_;
	GHashTable* _tmp30_;
	const gchar* _tmp31_;
	gchar* _tmp32_;
	GValue* _tmp33_;
	GValue _tmp34_;
	GValue _tmp35_;
	GValue* _tmp36_;
	GValue* _tmp37_;
	GValue* v2;
	GValue* _tmp38_;
	const gchar* _tmp39_;
	GHashTable* _tmp40_;
	gchar* _tmp41_;
	GValue* _tmp42_;
	GHashFunc _tmp43_;
	GEqualFunc _tmp44_;
	GHashTable* _tmp45_;
	GHashTable* details2;
	GValue* v3;
	LinkingMethod _tmp46_;
	GValue _tmp47_;
	GValue _tmp48_;
	GValue* _tmp49_;
	GeeHashMultiMap* _tmp50_;
	GeeHashMultiMap* im_addrs2;
	GeeHashMultiMap* _tmp51_;
	const gchar* _tmp52_;
	FolksImFieldDetails* _tmp53_;
	FolksImFieldDetails* _tmp54_;
	GValue* _tmp55_;
	GeeHashMultiMap* _tmp56_;
	GHashTable* _tmp57_;
	gchar* _tmp58_;
	GValue* _tmp59_;
	LinkingMethod _tmp60_;
	GValue _tmp61_;
	GValue _tmp62_;
	GValue* _tmp63_;
	GeeHashMultiMap* _tmp64_;
	GeeHashMultiMap* wsa2;
	GeeHashMultiMap* _tmp65_;
	const gchar* _tmp66_;
	FolksWebServiceFieldDetails* _tmp67_;
	FolksWebServiceFieldDetails* _tmp68_;
	GValue* _tmp69_;
	GeeHashMultiMap* _tmp70_;
	GHashTable* _tmp71_;
	const gchar* _tmp72_;
	gchar* _tmp73_;
	GValue* _tmp74_;
	GValue _tmp75_;
	GValue _tmp76_;
	GValue* _tmp77_;
	GValue* _tmp78_;
	GValue* v4;
	GValue* _tmp79_;
	const gchar* _tmp80_;
	GHashTable* _tmp81_;
	gchar* _tmp82_;
	GValue* _tmp83_;
	FolksIndividualAggregator* _tmp84_;
	FolksPersonaStore* _tmp85_;
	GHashTable* _tmp86_;
	FolksPersona* _tmp87_;
	FolksPersona* _tmp88_;
	FolksIndividualAggregator* _tmp89_;
	FolksPersonaStore* _tmp90_;
	GHashTable* _tmp91_;
	FolksPersona* _tmp92_;
	FolksPersona* _tmp93_;
	GError* e;
	GError* _tmp94_;
	const gchar* _tmp95_;
	GError * _inner_error_;
};

struct _LinkPersonasTestsCheckPersonasData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	LinkPersonasTests* self;
	FolksIndividual* i;
	FolksPersona* first_persona;
	FolksIndividual* _tmp0_;
	GeeSet* _tmp1_;
	GeeSet* _tmp2_;
	GeeIterator* _tmp3_;
	GeeIterator* _p_it;
	gboolean _tmp4_;
	gpointer _tmp5_;
	FolksPersona* p;
	FolksPersona* _tmp6_;
	FolksPersona* _tmp7_;
	gboolean _tmp8_;
	FolksIndividual* _tmp9_;
	const gchar* _tmp10_;
	const gchar* _tmp11_;
	const gchar* _tmp12_;
	const gchar* _tmp13_;
	gboolean _tmp14_;
	FolksPersona* _tmp15_;
	const gchar* _tmp16_;
	const gchar* _tmp17_;
	gchar* _tmp18_;
	GeeHashSet* _tmp19_;
	FolksPersona* _tmp20_;
	LinkingMethod _tmp21_;
	FolksPersona* _tmp22_;
	const gchar* _tmp23_;
	const gchar* _tmp24_;
	gchar* _tmp25_;
	gchar* contact_id1;
	GeeHashMap* _tmp26_;
	const gchar* _tmp27_;
	gboolean _tmp28_;
	FolksIndividual* _tmp29_;
	const gchar* _tmp30_;
	const gchar* _tmp31_;
	const gchar* _tmp32_;
	const gchar* _tmp33_;
	gboolean _tmp34_;
	FolksPersona* _tmp35_;
	const gchar* _tmp36_;
	const gchar* _tmp37_;
	gchar* _tmp38_;
	GeeHashSet* _tmp39_;
	FolksPersona* _tmp40_;
	LinkingMethod _tmp41_;
	FolksPersona* _tmp42_;
	const gchar* _tmp43_;
	const gchar* _tmp44_;
	gchar* _tmp45_;
	gchar* contact_id2;
	GeeHashMap* _tmp46_;
	const gchar* _tmp47_;
	FolksIndividual* _tmp48_;
	GeeSet* _tmp49_;
	GeeSet* _tmp50_;
	gint _tmp51_;
	gint _tmp52_;
	LinkingMethod _tmp53_;
	FolksIndividual* _tmp54_;
	GeeMultiMap* _tmp55_;
	GeeMultiMap* _tmp56_;
	GeeSet* _tmp57_;
	GeeSet* _tmp58_;
	GeeIterator* _tmp59_;
	GeeIterator* _tmp60_;
	GeeIterator* _proto_it;
	GeeIterator* _tmp61_;
	gboolean _tmp62_;
	GeeIterator* _tmp63_;
	gpointer _tmp64_;
	gchar* proto;
	FolksIndividual* _tmp65_;
	GeeMultiMap* _tmp66_;
	GeeMultiMap* _tmp67_;
	const gchar* _tmp68_;
	GeeCollection* _tmp69_;
	GeeCollection* im_fds;
	GeeCollection* _tmp70_;
	GeeIterator* _tmp71_;
	GeeIterator* _im_fd_it;
	GeeIterator* _tmp72_;
	gboolean _tmp73_;
	GeeIterator* _tmp74_;
	gpointer _tmp75_;
	FolksImFieldDetails* im_fd;
	FolksImFieldDetails* _tmp76_;
	gconstpointer _tmp77_;
	const gchar* _tmp78_;
	GeeHashMap* _tmp79_;
	gpointer _tmp80_;
	gchar* _tmp81_;
	gboolean _tmp82_;
	GeeHashMap* _tmp83_;
	FolksImFieldDetails* _tmp84_;
	gconstpointer _tmp85_;
	const gchar* _tmp86_;
	GeeHashMap* _tmp87_;
	gpointer _tmp88_;
	gchar* _tmp89_;
	gboolean _tmp90_;
	GeeHashMap* _tmp91_;
	LinkingMethod _tmp92_;
	FolksIndividual* _tmp93_;
	GeeSet* _tmp94_;
	GeeSet* _tmp95_;
	GeeIterator* _tmp96_;
	GeeIterator* _local_id_it;
	GeeIterator* _tmp97_;
	gboolean _tmp98_;
	GeeIterator* _tmp99_;
	gpointer _tmp100_;
	gchar* local_id;
	const gchar* _tmp101_;
	GeeHashMap* _tmp102_;
	gpointer _tmp103_;
	gchar* _tmp104_;
	gboolean _tmp105_;
	GeeHashMap* _tmp106_;
	const gchar* _tmp107_;
	GeeHashMap* _tmp108_;
	gpointer _tmp109_;
	gchar* _tmp110_;
	gboolean _tmp111_;
	GeeHashMap* _tmp112_;
	LinkingMethod _tmp113_;
	FolksIndividual* _tmp114_;
	GeeMultiMap* _tmp115_;
	GeeMultiMap* _tmp116_;
	GeeSet* _tmp117_;
	GeeSet* _tmp118_;
	GeeIterator* _tmp119_;
	GeeIterator* _tmp120_;
	GeeIterator* _service_it;
	GeeIterator* _tmp121_;
	gboolean _tmp122_;
	GeeIterator* _tmp123_;
	gpointer _tmp124_;
	gchar* service;
	FolksIndividual* _tmp125_;
	GeeMultiMap* _tmp126_;
	GeeMultiMap* _tmp127_;
	const gchar* _tmp128_;
	GeeCollection* _tmp129_;
	GeeCollection* ws_fds;
	GeeCollection* _tmp130_;
	GeeIterator* _tmp131_;
	GeeIterator* _ws_fd_it;
	GeeIterator* _tmp132_;
	gboolean _tmp133_;
	GeeIterator* _tmp134_;
	gpointer _tmp135_;
	FolksWebServiceFieldDetails* ws_fd;
	GeeHashMap* _tmp136_;
	gpointer _tmp137_;
	gchar* prop1;
	GeeHashMap* _tmp138_;
	gpointer _tmp139_;
	gchar* prop2;
	gboolean _tmp140_;
	const gchar* _tmp141_;
	FolksWebServiceFieldDetails* _tmp142_;
	const gchar* _tmp143_;
	FolksWebServiceFieldDetails* _tmp144_;
	FolksWebServiceFieldDetails* _tmp145_;
	gboolean _tmp146_;
	gboolean _tmp147_;
	GeeHashMap* _tmp148_;
	gboolean _tmp149_;
	const gchar* _tmp150_;
	FolksWebServiceFieldDetails* _tmp151_;
	const gchar* _tmp152_;
	FolksWebServiceFieldDetails* _tmp153_;
	FolksWebServiceFieldDetails* _tmp154_;
	gboolean _tmp155_;
	gboolean _tmp156_;
	GeeHashMap* _tmp157_;
	GeeHashMap* _tmp158_;
	gint _tmp159_;
	gint _tmp160_;
	GMainLoop* _tmp161_;
	gboolean _tmp162_;
	GeeHashSet* _tmp163_;
	gint _tmp164_;
	gint _tmp165_;
	gboolean _tmp166_;
	gboolean _tmp167_;
	FolksIndividualAggregator* _tmp168_;
	GeeHashSet* _tmp169_;
	GError* e;
	GError* _tmp170_;
	const gchar* _tmp171_;
	GError * _inner_error_;
};


static gpointer link_personas_tests_parent_class = NULL;

GType linking_method_get_type (void) G_GNUC_CONST;
GType link_personas_tests_get_type (void) G_GNUC_CONST;
#define LINK_PERSONAS_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LINK_PERSONAS_TESTS, LinkPersonasTestsPrivate))
enum  {
	LINK_PERSONAS_TESTS_DUMMY_PROPERTY
};
LinkPersonasTests* link_personas_tests_new (void);
LinkPersonasTests* link_personas_tests_construct (GType object_type);
void link_personas_tests_test_linking_personas_via_im_addresses (LinkPersonasTests* self);
static void _link_personas_tests_test_linking_personas_via_im_addresses_folks_test_case_test_method (gpointer self);
void link_personas_tests_test_linking_personas_via_local_ids (LinkPersonasTests* self);
static void _link_personas_tests_test_linking_personas_via_local_ids_folks_test_case_test_method (gpointer self);
void link_personas_tests_test_linking_personas_via_web_service_addresses (LinkPersonasTests* self);
static void _link_personas_tests_test_linking_personas_via_web_service_addresses_folks_test_case_test_method (gpointer self);
void link_personas_tests_test_linking_via_local_ids_diff_stores (LinkPersonasTests* self);
static void _link_personas_tests_test_linking_via_local_ids_diff_stores_folks_test_case_test_method (gpointer self);
static void link_personas_tests_real_set_up (FolksTestCase* base);
static void link_personas_tests_real_tear_down (FolksTestCase* base);
static void _link_personas_tests_test_linking_personas (LinkPersonasTests* self);
static void _link_personas_tests_test_linking_personas_async (LinkPersonasTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _link_personas_tests_test_linking_personas_finish (LinkPersonasTests* self, GAsyncResult* _res_);
static gboolean __lambda0_ (LinkPersonasTests* self);
static gboolean ___lambda0__gsource_func (gpointer self);
static void _link_personas_tests_test_linking_personas_async_data_free (gpointer _data);
static gboolean _link_personas_tests_test_linking_personas_async_co (LinkPersonasTestsTestLinkingPersonasAsyncData* _data_);
static void _link_personas_tests_test_linking_personas_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _link_personas_tests_individuals_changed_cb (LinkPersonasTests* self, GeeMultiMap* changes);
static void __link_personas_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static FolksPersonaStore* _link_personas_tests_get_store (LinkPersonasTests* self, FolksBackendStore* store, const gchar* store_id);
static void _link_personas_tests_add_personas (LinkPersonasTests* self, FolksPersonaStore* pstore1, FolksPersonaStore* pstore2, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _link_personas_tests_add_personas_finish (LinkPersonasTests* self, GAsyncResult* _res_);
static void _link_personas_tests_add_personas_data_free (gpointer _data);
static gboolean _link_personas_tests_add_personas_co (LinkPersonasTestsAddPersonasData* _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_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _link_personas_tests_check_personas (LinkPersonasTests* self, FolksIndividual* i, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _link_personas_tests_check_personas_finish (LinkPersonasTests* self, GAsyncResult* _res_);
static void _link_personas_tests_check_personas_data_free (gpointer _data);
static gboolean _link_personas_tests_check_personas_co (LinkPersonasTestsCheckPersonasData* _data_);
static void _link_personas_tests_check_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void link_personas_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


GType linking_method_get_type (void) {
	static volatile gsize linking_method_type_id__volatile = 0;
	if (g_once_init_enter (&linking_method_type_id__volatile)) {
		static const GEnumValue values[] = {{LINKING_METHOD_IM_ADDRESSES, "LINKING_METHOD_IM_ADDRESSES", "im-addresses"}, {LINKING_METHOD_LOCAL_IDS, "LINKING_METHOD_LOCAL_IDS", "local-ids"}, {LINKING_METHOD_WEB_SERVICE_ADDRESSES, "LINKING_METHOD_WEB_SERVICE_ADDRESSES", "web-service-addresses"}, {LINKING_METHOD_LOCAL_IDS_DIFF_STORES, "LINKING_METHOD_LOCAL_IDS_DIFF_STORES", "local-ids-diff-stores"}, {0, NULL, NULL}};
		GType linking_method_type_id;
		linking_method_type_id = g_enum_register_static ("LinkingMethod", values);
		g_once_init_leave (&linking_method_type_id__volatile, linking_method_type_id);
	}
	return linking_method_type_id__volatile;
}


static void _link_personas_tests_test_linking_personas_via_im_addresses_folks_test_case_test_method (gpointer self) {
#line 59 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	link_personas_tests_test_linking_personas_via_im_addresses (self);
#line 518 "link-personas.c"
}


static void _link_personas_tests_test_linking_personas_via_local_ids_folks_test_case_test_method (gpointer self) {
#line 61 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	link_personas_tests_test_linking_personas_via_local_ids (self);
#line 525 "link-personas.c"
}


static void _link_personas_tests_test_linking_personas_via_web_service_addresses_folks_test_case_test_method (gpointer self) {
#line 63 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	link_personas_tests_test_linking_personas_via_web_service_addresses (self);
#line 532 "link-personas.c"
}


static void _link_personas_tests_test_linking_via_local_ids_diff_stores_folks_test_case_test_method (gpointer self) {
#line 65 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	link_personas_tests_test_linking_via_local_ids_diff_stores (self);
#line 539 "link-personas.c"
}


LinkPersonasTests* link_personas_tests_construct (GType object_type) {
	LinkPersonasTests * self = NULL;
#line 57 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self = (LinkPersonasTests*) folks_test_case_construct (object_type, "LinkPersonasTests");
#line 59 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test linking personas via IM addresses", _link_personas_tests_test_linking_personas_via_im_addresses_folks_test_case_test_method, self);
#line 61 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test linking personas via local IDs", _link_personas_tests_test_linking_personas_via_local_ids_folks_test_case_test_method, self);
#line 63 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test linking personas via web service addresses", _link_personas_tests_test_linking_personas_via_web_service_addresses_folks_test_case_test_method, self);
#line 65 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test linking via local IDs using different PersonaStores", _link_personas_tests_test_linking_via_local_ids_diff_stores_folks_test_case_test_method, self);
#line 55 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	return self;
#line 557 "link-personas.c"
}


LinkPersonasTests* link_personas_tests_new (void) {
#line 55 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	return link_personas_tests_construct (TYPE_LINK_PERSONAS_TESTS);
#line 564 "link-personas.c"
}


static void link_personas_tests_real_set_up (FolksTestCase* base) {
	LinkPersonasTests * self;
	EdsTestBackend* _tmp0_;
	EdsTestBackend* _tmp1_;
	EdsTestBackend* _tmp2_;
	GConfClient* _tmp3_ = NULL;
	EdsTestBackend* _tmp14_;
	EdsTestBackend* _tmp15_;
	GError * _inner_error_ = NULL;
#line 69 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self = (LinkPersonasTests*) base;
#line 71 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp0_ = eds_test_backend_new ();
#line 71 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 71 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_eds_backend = _tmp0_;
#line 72 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp1_ = eds_test_backend_new ();
#line 72 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend_other);
#line 72 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_eds_backend_other = _tmp1_;
#line 73 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp2_ = self->priv->_eds_backend_other;
#line 73 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	eds_test_backend_set_address_book_uri (_tmp2_, "local://other");
#line 76 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp3_ = gconf_client_get_default ();
#line 76 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_gconf_client = _tmp3_;
#line 599 "link-personas.c"
	{
		GConfValue* _tmp4_;
		GConfValue* val;
		EdsTestBackend* _tmp5_;
		const gchar* _tmp6_;
		const gchar* _tmp7_;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_;
		GConfClient* _tmp10_;
		const gchar* _tmp11_;
#line 79 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp4_ = gconf_value_new (GCONF_VALUE_STRING);
#line 79 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		val = _tmp4_;
#line 80 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp5_ = self->priv->_eds_backend;
#line 80 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp6_ = eds_test_backend_get_address_book_uri (_tmp5_);
#line 80 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp7_ = _tmp6_;
#line 80 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp8_ = g_strdup_printf ("eds:%s", _tmp7_);
#line 80 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp9_ = _tmp8_;
#line 80 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		gconf_value_set_string (val, _tmp9_);
#line 80 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_free0 (_tmp9_);
#line 81 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp10_ = self->priv->_gconf_client;
#line 81 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp11_ = self->priv->_folks_config_key;
#line 81 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		gconf_client_set (_tmp10_, _tmp11_, val, &_inner_error_);
#line 81 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		if (_inner_error_ != NULL) {
#line 81 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_gconf_value_free0 (val);
#line 638 "link-personas.c"
			goto __catch0_g_error;
		}
#line 77 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_gconf_value_free0 (val);
#line 643 "link-personas.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp12_;
		const gchar* _tmp13_;
#line 77 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		e = _inner_error_;
#line 77 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_inner_error_ = NULL;
#line 85 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp12_ = e;
#line 85 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp13_ = _tmp12_->message;
#line 85 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_warning ("link-personas.vala:85: Couldn't set primary store: %s\n", _tmp13_);
#line 77 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_error_free0 (e);
#line 663 "link-personas.c"
	}
	__finally0:
#line 77 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	if (_inner_error_ != NULL) {
#line 77 "/debian/rgs/devel/folks/tests/eds/link-personas.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 77 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_clear_error (&_inner_error_);
#line 77 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		return;
#line 674 "link-personas.c"
	}
#line 88 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp14_ = self->priv->_eds_backend;
#line 88 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	eds_test_backend_set_up (_tmp14_);
#line 89 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp15_ = self->priv->_eds_backend_other;
#line 89 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	eds_test_backend_set_up (_tmp15_);
#line 684 "link-personas.c"
}


static void link_personas_tests_real_tear_down (FolksTestCase* base) {
	LinkPersonasTests * self;
	EdsTestBackend* _tmp0_;
	EdsTestBackend* _tmp1_;
	GError * _inner_error_ = NULL;
#line 92 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self = (LinkPersonasTests*) base;
#line 94 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp0_ = self->priv->_eds_backend;
#line 94 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	eds_test_backend_tear_down (_tmp0_);
#line 95 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp1_ = self->priv->_eds_backend_other;
#line 95 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	eds_test_backend_tear_down (_tmp1_);
#line 97 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 97 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_eds_backend = NULL;
#line 98 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend_other);
#line 98 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_eds_backend_other = NULL;
#line 711 "link-personas.c"
	{
		GConfClient* _tmp2_;
		const gchar* _tmp3_;
#line 102 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp2_ = self->priv->_gconf_client;
#line 102 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp3_ = self->priv->_folks_config_key;
#line 102 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		gconf_client_unset (_tmp2_, _tmp3_, &_inner_error_);
#line 102 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		if (_inner_error_ != NULL) {
#line 723 "link-personas.c"
			goto __catch1_g_error;
		}
	}
	goto __finally1;
	__catch1_g_error:
	{
		GError* e = NULL;
		GError* _tmp4_;
		const gchar* _tmp5_;
#line 100 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		e = _inner_error_;
#line 100 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_inner_error_ = NULL;
#line 106 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp4_ = e;
#line 106 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp5_ = _tmp4_->message;
#line 106 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_warning ("link-personas.vala:106: Couldn't unset primary store: %s\n", _tmp5_);
#line 100 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_error_free0 (e);
#line 745 "link-personas.c"
	}
	__finally1:
	{
#line 110 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		self->priv->_gconf_client = NULL;
#line 751 "link-personas.c"
	}
#line 100 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	if (_inner_error_ != NULL) {
#line 100 "/debian/rgs/devel/folks/tests/eds/link-personas.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 100 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_clear_error (&_inner_error_);
#line 100 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		return;
#line 761 "link-personas.c"
	}
}


void link_personas_tests_test_linking_personas_via_im_addresses (LinkPersonasTests* self) {
#line 114 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_return_if_fail (self != NULL);
#line 116 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_linking_method = LINKING_METHOD_IM_ADDRESSES;
#line 117 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_link_personas_tests_test_linking_personas (self);
#line 773 "link-personas.c"
}


void link_personas_tests_test_linking_personas_via_local_ids (LinkPersonasTests* self) {
#line 120 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_return_if_fail (self != NULL);
#line 122 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_linking_method = LINKING_METHOD_LOCAL_IDS;
#line 123 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_link_personas_tests_test_linking_personas (self);
#line 784 "link-personas.c"
}


void link_personas_tests_test_linking_personas_via_web_service_addresses (LinkPersonasTests* self) {
#line 126 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_return_if_fail (self != NULL);
#line 128 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_linking_method = LINKING_METHOD_WEB_SERVICE_ADDRESSES;
#line 129 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_link_personas_tests_test_linking_personas (self);
#line 795 "link-personas.c"
}


void link_personas_tests_test_linking_via_local_ids_diff_stores (LinkPersonasTests* self) {
#line 132 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_return_if_fail (self != NULL);
#line 134 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_linking_method = LINKING_METHOD_LOCAL_IDS_DIFF_STORES;
#line 135 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_link_personas_tests_test_linking_personas (self);
#line 806 "link-personas.c"
}


static gboolean __lambda0_ (LinkPersonasTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 163 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp0_ = self->priv->_main_loop;
#line 163 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_main_loop_quit (_tmp0_);
#line 164 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_assert_not_reached ();
#line 161 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	return result;
#line 821 "link-personas.c"
}


static gboolean ___lambda0__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda0_ (self);
#line 161 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	return result;
#line 830 "link-personas.c"
}


static void _link_personas_tests_test_linking_personas (LinkPersonasTests* self) {
	GMainLoop* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	GeeHashSet* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	GeeHashMap* _tmp6_;
	gboolean _tmp7_ = FALSE;
	LinkingMethod _tmp8_;
	gboolean _tmp10_;
	guint _tmp15_ = 0U;
	guint timer_id;
	GMainLoop* _tmp16_;
	GeeHashMap* _tmp17_;
	gint _tmp18_;
	gint _tmp19_;
	gint _tmp20_;
#line 138 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_return_if_fail (self != NULL);
#line 140 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 140 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 140 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_main_loop = _tmp0_;
#line 141 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp1_ = g_strdup ("persona #1");
#line 141 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_free0 (self->priv->_persona_fullname_1);
#line 141 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_persona_fullname_1 = _tmp1_;
#line 142 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp2_ = g_strdup ("persona #2");
#line 142 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_free0 (self->priv->_persona_fullname_2);
#line 142 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_persona_fullname_2 = _tmp2_;
#line 143 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp3_ = gee_hash_set_new (FOLKS_TYPE_PERSONA, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL);
#line 143 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_object_unref0 (self->priv->_personas);
#line 143 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_personas = _tmp3_;
#line 144 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_removed_individuals = 0;
#line 145 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_persona_found_1 = FALSE;
#line 146 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_persona_found_2 = FALSE;
#line 147 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_linking_fired = FALSE;
#line 148 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp4_ = g_strdup ("");
#line 148 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_free0 (self->priv->_persona_iid_1);
#line 148 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_persona_iid_1 = _tmp4_;
#line 149 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp5_ = g_strdup ("");
#line 149 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_free0 (self->priv->_persona_iid_2);
#line 149 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_persona_iid_2 = _tmp5_;
#line 151 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp6_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
#line 151 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_object_unref0 (self->priv->_linking_props);
#line 151 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_linking_props = _tmp6_;
#line 152 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp8_ = self->priv->_linking_method;
#line 152 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	if (_tmp8_ == LINKING_METHOD_IM_ADDRESSES) {
#line 152 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp7_ = TRUE;
#line 910 "link-personas.c"
	} else {
		LinkingMethod _tmp9_;
#line 153 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp9_ = self->priv->_linking_method;
#line 153 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp7_ = _tmp9_ == LINKING_METHOD_WEB_SERVICE_ADDRESSES;
#line 917 "link-personas.c"
	}
#line 152 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp10_ = _tmp7_;
#line 152 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	if (_tmp10_) {
#line 923 "link-personas.c"
		GeeHashMap* _tmp11_;
		const gchar* _tmp12_;
		GeeHashMap* _tmp13_;
		const gchar* _tmp14_;
#line 155 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp11_ = self->priv->_linking_props;
#line 155 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp12_ = self->priv->_im_address_1;
#line 155 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		gee_abstract_map_set ((GeeAbstractMap*) _tmp11_, "prop1", _tmp12_);
#line 156 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp13_ = self->priv->_linking_props;
#line 156 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp14_ = self->priv->_im_address_2;
#line 156 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		gee_abstract_map_set ((GeeAbstractMap*) _tmp13_, "prop2", _tmp14_);
#line 940 "link-personas.c"
	}
#line 159 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_link_personas_tests_test_linking_personas_async (self, NULL, NULL);
#line 161 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp15_ = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 8, ___lambda0__gsource_func, g_object_ref (self), g_object_unref);
#line 161 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	timer_id = _tmp15_;
#line 167 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp16_ = self->priv->_main_loop;
#line 167 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_main_loop_run (_tmp16_);
#line 171 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp17_ = self->priv->_linking_props;
#line 171 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp18_ = gee_map_get_size ((GeeMap*) _tmp17_);
#line 171 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp19_ = _tmp18_;
#line 171 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_assert (_tmp19_ == 0);
#line 172 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp20_ = self->priv->_removed_individuals;
#line 172 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_assert (_tmp20_ == 2);
#line 174 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_source_remove (timer_id);
#line 175 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 175 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_aggregator = NULL;
#line 176 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 176 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_main_loop = NULL;
#line 974 "link-personas.c"
}


static void _link_personas_tests_test_linking_personas_async_data_free (gpointer _data) {
	LinkPersonasTestsTestLinkingPersonasAsyncData* _data_;
	_data_ = _data;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_object_unref0 (_data_->self);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_slice_free (LinkPersonasTestsTestLinkingPersonasAsyncData, _data_);
#line 985 "link-personas.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	return self ? g_object_ref (self) : NULL;
#line 992 "link-personas.c"
}


static void _link_personas_tests_test_linking_personas_async (LinkPersonasTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	LinkPersonasTestsTestLinkingPersonasAsyncData* _data_;
	LinkPersonasTests* _tmp0_;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_ = g_slice_new0 (LinkPersonasTestsTestLinkingPersonasAsyncData);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _link_personas_tests_test_linking_personas_async);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _link_personas_tests_test_linking_personas_async_data_free);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->self = _tmp0_;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_link_personas_tests_test_linking_personas_async_co (_data_);
#line 1011 "link-personas.c"
}


static void _link_personas_tests_test_linking_personas_finish (LinkPersonasTests* self, GAsyncResult* _res_) {
	LinkPersonasTestsTestLinkingPersonasAsyncData* _data_;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1019 "link-personas.c"
}


static void _link_personas_tests_test_linking_personas_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	LinkPersonasTestsTestLinkingPersonasAsyncData* _data_;
#line 182 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_ = _user_data_;
#line 182 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_source_object_ = source_object;
#line 182 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_res_ = _res_;
#line 182 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_link_personas_tests_test_linking_personas_async_co (_data_);
#line 1033 "link-personas.c"
}


static void __link_personas_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 184 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_link_personas_tests_individuals_changed_cb (self, changes);
#line 1040 "link-personas.c"
}


static gboolean _link_personas_tests_test_linking_personas_async_co (LinkPersonasTestsTestLinkingPersonasAsyncData* _data_) {
#line 179 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	switch (_data_->_state_) {
#line 179 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		case 0:
#line 1049 "link-personas.c"
		goto _state_0;
#line 179 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		case 1:
#line 1053 "link-personas.c"
		goto _state_1;
#line 179 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		case 2:
#line 1057 "link-personas.c"
		goto _state_2;
#line 179 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		case 3:
#line 1061 "link-personas.c"
		goto _state_3;
#line 179 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		case 4:
#line 1065 "link-personas.c"
		goto _state_4;
		default:
#line 179 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_assert_not_reached ();
#line 1070 "link-personas.c"
	}
	_state_0:
#line 181 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp0_ = NULL;
#line 181 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 181 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->store = _data_->_tmp0_;
#line 182 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_state_ = 1;
#line 182 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	folks_backend_store_prepare (_data_->store, _link_personas_tests_test_linking_personas_async_ready, _data_);
#line 182 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	return FALSE;
#line 1085 "link-personas.c"
	_state_1:
#line 182 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 183 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 183 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 183 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 184 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 184 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_signal_connect_object (_data_->_tmp2_, "individuals-changed-detailed", (GCallback) __link_personas_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed, _data_->self, 0);
#line 1099 "link-personas.c"
	{
#line 188 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 188 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_state_ = 2;
#line 188 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		folks_individual_aggregator_prepare (_data_->_tmp3_, _link_personas_tests_test_linking_personas_async_ready, _data_);
#line 188 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		return FALSE;
#line 1109 "link-personas.c"
		_state_2:
#line 188 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 188 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		if (_data_->_inner_error_ != NULL) {
#line 1115 "link-personas.c"
			goto __catch2_g_error;
		}
#line 190 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp4_ = NULL;
#line 190 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp4_ = _link_personas_tests_get_store (_data_->self, _data_->store, "local://test");
#line 190 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->pstore = _data_->_tmp4_;
#line 192 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp5_ = _data_->pstore;
#line 192 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_assert (_data_->_tmp5_ != NULL);
#line 194 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp6_ = _data_->self->priv->_linking_method;
#line 194 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		if (_data_->_tmp6_ == LINKING_METHOD_LOCAL_IDS_DIFF_STORES) {
#line 196 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp7_ = _data_->self->priv->_eds_backend_other;
#line 196 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp8_ = eds_test_backend_get_address_book_uri (_data_->_tmp7_);
#line 196 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp9_ = _data_->_tmp8_;
#line 196 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp10_ = NULL;
#line 196 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp10_ = _link_personas_tests_get_store (_data_->self, _data_->store, _data_->_tmp9_);
#line 196 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->pstore2 = _data_->_tmp10_;
#line 198 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp11_ = _data_->pstore2;
#line 198 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			g_assert (_data_->_tmp11_ != NULL);
#line 199 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp12_ = _data_->pstore;
#line 199 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp13_ = _data_->pstore2;
#line 199 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_state_ = 3;
#line 199 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_link_personas_tests_add_personas (_data_->self, _data_->_tmp12_, _data_->_tmp13_, _link_personas_tests_test_linking_personas_async_ready, _data_);
#line 199 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			return FALSE;
#line 1158 "link-personas.c"
			_state_3:
#line 199 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_link_personas_tests_add_personas_finish (_data_->self, _data_->_res_);
#line 194 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_object_unref0 (_data_->pstore2);
#line 1164 "link-personas.c"
		} else {
#line 202 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp14_ = _data_->pstore;
#line 202 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp15_ = _data_->pstore;
#line 202 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_state_ = 4;
#line 202 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_link_personas_tests_add_personas (_data_->self, _data_->_tmp14_, _data_->_tmp15_, _link_personas_tests_test_linking_personas_async_ready, _data_);
#line 202 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			return FALSE;
#line 1176 "link-personas.c"
			_state_4:
#line 202 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_link_personas_tests_add_personas_finish (_data_->self, _data_->_res_);
#line 1180 "link-personas.c"
		}
#line 186 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_object_unref0 (_data_->pstore);
#line 1184 "link-personas.c"
	}
	goto __finally2;
	__catch2_g_error:
	{
#line 186 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->e = _data_->_inner_error_;
#line 186 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_inner_error_ = NULL;
#line 206 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp16_ = _data_->e;
#line 206 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp17_ = _data_->_tmp16_->message;
#line 206 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_warning ("link-personas.vala:206: Error when calling prepare: %s\n", _data_->_tmp17_);
#line 186 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_error_free0 (_data_->e);
#line 1201 "link-personas.c"
	}
	__finally2:
#line 186 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	if (_data_->_inner_error_ != NULL) {
#line 186 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_object_unref0 (_data_->store);
#line 186 "/debian/rgs/devel/folks/tests/eds/link-personas.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 186 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_clear_error (&_data_->_inner_error_);
#line 186 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		return FALSE;
#line 1214 "link-personas.c"
	}
#line 179 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_object_unref0 (_data_->store);
#line 179 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	if (_data_->_state_ == 0) {
#line 179 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1222 "link-personas.c"
	} else {
#line 179 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1226 "link-personas.c"
	}
#line 179 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_object_unref (_data_->_async_result);
#line 179 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	return FALSE;
#line 1232 "link-personas.c"
}


static FolksPersonaStore* _link_personas_tests_get_store (LinkPersonasTests* self, FolksBackendStore* store, const gchar* store_id) {
	FolksPersonaStore* result = NULL;
	FolksPersonaStore* pstore;
#line 210 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 210 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_return_val_if_fail (store != NULL, NULL);
#line 210 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_return_val_if_fail (store_id != NULL, NULL);
#line 212 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	pstore = NULL;
#line 1247 "link-personas.c"
	{
		FolksBackendStore* _tmp0_;
		GeeMap* _tmp1_;
		GeeMap* _tmp2_;
		GeeCollection* _tmp3_;
		GeeCollection* _tmp4_;
		GeeCollection* _tmp5_;
		GeeIterator* _tmp6_ = NULL;
		GeeIterator* _tmp7_;
		GeeIterator* _backend_it;
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp0_ = store;
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp1_ = folks_backend_store_get_enabled_backends (_tmp0_);
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp2_ = _tmp1_;
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp3_ = gee_map_get_values (_tmp2_);
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp4_ = _tmp3_;
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp5_ = _tmp4_;
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp6_ = gee_iterable_iterator ((GeeIterable*) _tmp5_);
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp7_ = _tmp6_;
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_object_unref0 (_tmp5_);
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_backend_it = _tmp7_;
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		while (TRUE) {
#line 1280 "link-personas.c"
			GeeIterator* _tmp8_;
			gboolean _tmp9_ = FALSE;
			GeeIterator* _tmp10_;
			gpointer _tmp11_ = NULL;
			FolksBackend* backend;
			FolksBackend* _tmp12_;
			GeeMap* _tmp13_;
			GeeMap* _tmp14_;
			const gchar* _tmp15_;
			gpointer _tmp16_ = NULL;
			FolksPersonaStore* _tmp17_;
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp8_ = _backend_it;
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp9_ = gee_iterator_next (_tmp8_);
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			if (!_tmp9_) {
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				break;
#line 1300 "link-personas.c"
			}
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp10_ = _backend_it;
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp11_ = gee_iterator_get (_tmp10_);
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			backend = (FolksBackend*) _tmp11_;
#line 215 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp12_ = backend;
#line 215 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp13_ = folks_backend_get_persona_stores (_tmp12_);
#line 215 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp14_ = _tmp13_;
#line 215 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp15_ = store_id;
#line 215 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp16_ = gee_map_get (_tmp14_, _tmp15_);
#line 215 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_object_unref0 (pstore);
#line 215 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			pstore = (FolksPersonaStore*) _tmp16_;
#line 216 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp17_ = pstore;
#line 216 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			if (_tmp17_ != NULL) {
#line 217 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				_g_object_unref0 (backend);
#line 217 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				break;
#line 1330 "link-personas.c"
			}
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_object_unref0 (backend);
#line 1334 "link-personas.c"
		}
#line 213 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_object_unref0 (_backend_it);
#line 1338 "link-personas.c"
	}
#line 219 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	result = pstore;
#line 219 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	return result;
#line 1344 "link-personas.c"
}


static void _link_personas_tests_add_personas_data_free (gpointer _data) {
	LinkPersonasTestsAddPersonasData* _data_;
	_data_ = _data;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_object_unref0 (_data_->pstore1);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_object_unref0 (_data_->pstore2);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_object_unref0 (_data_->self);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_slice_free (LinkPersonasTestsAddPersonasData, _data_);
#line 1359 "link-personas.c"
}


static void _link_personas_tests_add_personas (LinkPersonasTests* self, FolksPersonaStore* pstore1, FolksPersonaStore* pstore2, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	LinkPersonasTestsAddPersonasData* _data_;
	LinkPersonasTests* _tmp0_;
	FolksPersonaStore* _tmp1_;
	FolksPersonaStore* _tmp2_;
	FolksPersonaStore* _tmp3_;
	FolksPersonaStore* _tmp4_;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_ = g_slice_new0 (LinkPersonasTestsAddPersonasData);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _link_personas_tests_add_personas);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _link_personas_tests_add_personas_data_free);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->self = _tmp0_;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp1_ = pstore1;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->pstore1 = _tmp2_;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp3_ = pstore2;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->pstore2 = _tmp4_;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_link_personas_tests_add_personas_co (_data_);
#line 1394 "link-personas.c"
}


static void _link_personas_tests_add_personas_finish (LinkPersonasTests* self, GAsyncResult* _res_) {
	LinkPersonasTestsAddPersonasData* _data_;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1402 "link-personas.c"
}


static void _g_free0_ (gpointer var) {
#line 235 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	var = (g_free (var), NULL);
#line 1409 "link-personas.c"
}


static void _vala_GValue_free (GValue* self) {
#line 235 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_value_unset (self);
#line 235 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_free (self);
#line 1418 "link-personas.c"
}


static void __vala_GValue_free0_ (gpointer var) {
#line 235 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	(var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL));
#line 1425 "link-personas.c"
}


static GValue* _g_value_dup (GValue* self) {
#line 243 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	return g_boxed_copy (G_TYPE_VALUE, self);
#line 1432 "link-personas.c"
}


static gpointer __g_value_dup0 (gpointer self) {
#line 243 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	return self ? _g_value_dup (self) : NULL;
#line 1439 "link-personas.c"
}


static void _link_personas_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	LinkPersonasTestsAddPersonasData* _data_;
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_ = _user_data_;
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_source_object_ = source_object;
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_res_ = _res_;
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_link_personas_tests_add_personas_co (_data_);
#line 1453 "link-personas.c"
}


static gboolean _link_personas_tests_add_personas_co (LinkPersonasTestsAddPersonasData* _data_) {
#line 233 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	switch (_data_->_state_) {
#line 233 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		case 0:
#line 1462 "link-personas.c"
		goto _state_0;
#line 233 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		case 1:
#line 1466 "link-personas.c"
		goto _state_1;
#line 233 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		case 2:
#line 1470 "link-personas.c"
		goto _state_2;
		default:
#line 233 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_assert_not_reached ();
#line 1475 "link-personas.c"
	}
	_state_0:
#line 235 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp0_ = g_str_hash;
#line 235 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp1_ = g_str_equal;
#line 235 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp2_ = g_hash_table_new_full (_data_->_tmp0_, _data_->_tmp1_, _g_free0_, __vala_GValue_free0_);
#line 235 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->details1 = _data_->_tmp2_;
#line 238 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp3_ = NULL;
#line 238 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp3_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_WEB_SERVICE_ADDRESSES);
#line 238 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp4_ = g_strdup (_data_->_tmp3_);
#line 238 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->wsk = _data_->_tmp4_;
#line 241 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp5_ = _data_->self->priv->_linking_method;
#line 241 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	if (_data_->_tmp5_ == LINKING_METHOD_IM_ADDRESSES) {
#line 243 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		memset (&_data_->_tmp6_, 0, sizeof (GValue));
#line 243 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_value_init (&_data_->_tmp6_, GEE_TYPE_MULTI_MAP);
#line 243 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp7_ = _data_->_tmp6_;
#line 243 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp8_ = __g_value_dup0 (&_data_->_tmp7_);
#line 243 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		__vala_GValue_free0 (_data_->v1);
#line 243 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->v1 = _data_->_tmp8_;
#line 243 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		G_IS_VALUE (&_data_->_tmp7_) ? (g_value_unset (&_data_->_tmp7_), NULL) : NULL;
#line 244 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp9_ = gee_hash_multi_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, FOLKS_TYPE_IM_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
#line 244 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->im_addrs1 = _data_->_tmp9_;
#line 248 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp10_ = _data_->im_addrs1;
#line 248 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp11_ = _data_->self->priv->_im_address_1;
#line 248 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp12_ = folks_im_field_details_new (_data_->_tmp11_, NULL);
#line 248 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp13_ = _data_->_tmp12_;
#line 248 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		gee_multi_map_set ((GeeMultiMap*) _data_->_tmp10_, "jabber", _data_->_tmp13_);
#line 248 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_object_unref0 (_data_->_tmp13_);
#line 249 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp14_ = _data_->v1;
#line 249 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp15_ = _data_->im_addrs1;
#line 249 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_value_set_object (_data_->_tmp14_, (GObject*) _data_->_tmp15_);
#line 250 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp16_ = _data_->details1;
#line 250 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp17_ = g_strdup ("im-addresses");
#line 250 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp18_ = _data_->v1;
#line 250 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->v1 = NULL;
#line 250 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_hash_table_insert (_data_->_tmp16_, _data_->_tmp17_, _data_->_tmp18_);
#line 241 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_object_unref0 (_data_->im_addrs1);
#line 1546 "link-personas.c"
	} else {
#line 252 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp19_ = _data_->self->priv->_linking_method;
#line 252 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		if (_data_->_tmp19_ == LINKING_METHOD_WEB_SERVICE_ADDRESSES) {
#line 254 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			memset (&_data_->_tmp20_, 0, sizeof (GValue));
#line 254 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			g_value_init (&_data_->_tmp20_, GEE_TYPE_MULTI_MAP);
#line 254 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp21_ = _data_->_tmp20_;
#line 254 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp22_ = __g_value_dup0 (&_data_->_tmp21_);
#line 254 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			__vala_GValue_free0 (_data_->v1);
#line 254 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->v1 = _data_->_tmp22_;
#line 254 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			G_IS_VALUE (&_data_->_tmp21_) ? (g_value_unset (&_data_->_tmp21_), NULL) : NULL;
#line 255 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp23_ = gee_hash_multi_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, FOLKS_TYPE_WEB_SERVICE_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
#line 255 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->wsa1 = _data_->_tmp23_;
#line 259 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp24_ = _data_->wsa1;
#line 259 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp25_ = _data_->self->priv->_im_address_1;
#line 259 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp26_ = folks_web_service_field_details_new (_data_->_tmp25_, NULL);
#line 259 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp27_ = _data_->_tmp26_;
#line 259 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			gee_multi_map_set ((GeeMultiMap*) _data_->_tmp24_, "twitter", _data_->_tmp27_);
#line 259 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_object_unref0 (_data_->_tmp27_);
#line 260 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp28_ = _data_->v1;
#line 260 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp29_ = _data_->wsa1;
#line 260 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			g_value_set_object (_data_->_tmp28_, (GObject*) _data_->_tmp29_);
#line 261 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp30_ = _data_->details1;
#line 261 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp31_ = _data_->wsk;
#line 261 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp32_ = g_strdup (_data_->_tmp31_);
#line 261 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp33_ = _data_->v1;
#line 261 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->v1 = NULL;
#line 261 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			g_hash_table_insert (_data_->_tmp30_, _data_->_tmp32_, _data_->_tmp33_);
#line 252 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_object_unref0 (_data_->wsa1);
#line 1602 "link-personas.c"
		}
	}
#line 264 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	memset (&_data_->_tmp34_, 0, sizeof (GValue));
#line 264 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_value_init (&_data_->_tmp34_, G_TYPE_STRING);
#line 264 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp35_ = _data_->_tmp34_;
#line 264 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp36_ = __g_value_dup0 (&_data_->_tmp35_);
#line 264 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp37_ = _data_->_tmp36_;
#line 264 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	G_IS_VALUE (&_data_->_tmp35_) ? (g_value_unset (&_data_->_tmp35_), NULL) : NULL;
#line 264 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->v2 = _data_->_tmp37_;
#line 265 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp38_ = _data_->v2;
#line 265 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp39_ = _data_->self->priv->_persona_fullname_1;
#line 265 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_value_set_string (_data_->_tmp38_, _data_->_tmp39_);
#line 266 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp40_ = _data_->details1;
#line 266 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp41_ = g_strdup ("full-name");
#line 266 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp42_ = _data_->v2;
#line 266 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->v2 = NULL;
#line 266 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_hash_table_insert (_data_->_tmp40_, _data_->_tmp41_, _data_->_tmp42_);
#line 268 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp43_ = g_str_hash;
#line 268 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp44_ = g_str_equal;
#line 268 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp45_ = g_hash_table_new_full (_data_->_tmp43_, _data_->_tmp44_, _g_free0_, __vala_GValue_free0_);
#line 268 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->details2 = _data_->_tmp45_;
#line 272 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp46_ = _data_->self->priv->_linking_method;
#line 272 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	if (_data_->_tmp46_ == LINKING_METHOD_IM_ADDRESSES) {
#line 274 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		memset (&_data_->_tmp47_, 0, sizeof (GValue));
#line 274 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_value_init (&_data_->_tmp47_, GEE_TYPE_MULTI_MAP);
#line 274 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp48_ = _data_->_tmp47_;
#line 274 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp49_ = __g_value_dup0 (&_data_->_tmp48_);
#line 274 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		__vala_GValue_free0 (_data_->v3);
#line 274 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->v3 = _data_->_tmp49_;
#line 274 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		G_IS_VALUE (&_data_->_tmp48_) ? (g_value_unset (&_data_->_tmp48_), NULL) : NULL;
#line 275 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp50_ = gee_hash_multi_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, FOLKS_TYPE_IM_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
#line 275 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->im_addrs2 = _data_->_tmp50_;
#line 279 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp51_ = _data_->im_addrs2;
#line 279 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp52_ = _data_->self->priv->_im_address_2;
#line 279 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp53_ = folks_im_field_details_new (_data_->_tmp52_, NULL);
#line 279 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp54_ = _data_->_tmp53_;
#line 279 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		gee_multi_map_set ((GeeMultiMap*) _data_->_tmp51_, "yahoo", _data_->_tmp54_);
#line 279 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_object_unref0 (_data_->_tmp54_);
#line 280 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp55_ = _data_->v3;
#line 280 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp56_ = _data_->im_addrs2;
#line 280 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_value_set_object (_data_->_tmp55_, (GObject*) _data_->_tmp56_);
#line 281 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp57_ = _data_->details2;
#line 281 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp58_ = g_strdup ("im-addresses");
#line 281 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp59_ = _data_->v3;
#line 281 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->v3 = NULL;
#line 281 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_hash_table_insert (_data_->_tmp57_, _data_->_tmp58_, _data_->_tmp59_);
#line 272 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_object_unref0 (_data_->im_addrs2);
#line 1695 "link-personas.c"
	} else {
#line 283 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp60_ = _data_->self->priv->_linking_method;
#line 283 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		if (_data_->_tmp60_ == LINKING_METHOD_WEB_SERVICE_ADDRESSES) {
#line 285 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			memset (&_data_->_tmp61_, 0, sizeof (GValue));
#line 285 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			g_value_init (&_data_->_tmp61_, GEE_TYPE_MULTI_MAP);
#line 285 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp62_ = _data_->_tmp61_;
#line 285 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp63_ = __g_value_dup0 (&_data_->_tmp62_);
#line 285 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			__vala_GValue_free0 (_data_->v3);
#line 285 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->v3 = _data_->_tmp63_;
#line 285 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			G_IS_VALUE (&_data_->_tmp62_) ? (g_value_unset (&_data_->_tmp62_), NULL) : NULL;
#line 286 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp64_ = gee_hash_multi_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, FOLKS_TYPE_WEB_SERVICE_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
#line 286 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->wsa2 = _data_->_tmp64_;
#line 290 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp65_ = _data_->wsa2;
#line 290 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp66_ = _data_->self->priv->_im_address_2;
#line 290 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp67_ = folks_web_service_field_details_new (_data_->_tmp66_, NULL);
#line 290 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp68_ = _data_->_tmp67_;
#line 290 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			gee_multi_map_set ((GeeMultiMap*) _data_->_tmp65_, "lastfm", _data_->_tmp68_);
#line 290 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_object_unref0 (_data_->_tmp68_);
#line 291 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp69_ = _data_->v3;
#line 291 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp70_ = _data_->wsa2;
#line 291 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			g_value_set_object (_data_->_tmp69_, (GObject*) _data_->_tmp70_);
#line 292 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp71_ = _data_->details2;
#line 292 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp72_ = _data_->wsk;
#line 292 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp73_ = g_strdup (_data_->_tmp72_);
#line 292 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp74_ = _data_->v3;
#line 292 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->v3 = NULL;
#line 292 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			g_hash_table_insert (_data_->_tmp71_, _data_->_tmp73_, _data_->_tmp74_);
#line 283 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_object_unref0 (_data_->wsa2);
#line 1751 "link-personas.c"
		}
	}
#line 295 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	memset (&_data_->_tmp75_, 0, sizeof (GValue));
#line 295 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_value_init (&_data_->_tmp75_, G_TYPE_STRING);
#line 295 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp76_ = _data_->_tmp75_;
#line 295 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp77_ = __g_value_dup0 (&_data_->_tmp76_);
#line 295 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp78_ = _data_->_tmp77_;
#line 295 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	G_IS_VALUE (&_data_->_tmp76_) ? (g_value_unset (&_data_->_tmp76_), NULL) : NULL;
#line 295 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->v4 = _data_->_tmp78_;
#line 296 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp79_ = _data_->v4;
#line 296 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp80_ = _data_->self->priv->_persona_fullname_2;
#line 296 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_value_set_string (_data_->_tmp79_, _data_->_tmp80_);
#line 297 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp81_ = _data_->details2;
#line 297 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp82_ = g_strdup ("full-name");
#line 297 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp83_ = _data_->v4;
#line 297 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->v4 = NULL;
#line 297 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_hash_table_insert (_data_->_tmp81_, _data_->_tmp82_, _data_->_tmp83_);
#line 1784 "link-personas.c"
	{
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp84_ = _data_->self->priv->_aggregator;
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp85_ = _data_->pstore1;
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp86_ = _data_->details1;
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_state_ = 1;
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp84_, NULL, _data_->_tmp85_, _data_->_tmp86_, _link_personas_tests_add_personas_ready, _data_);
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		return FALSE;
#line 1798 "link-personas.c"
		_state_1:
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp87_ = NULL;
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp87_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp84_, _data_->_res_, &_data_->_inner_error_);
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp88_ = _data_->_tmp87_;
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_object_unref0 (_data_->_tmp88_);
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		if (_data_->_inner_error_ != NULL) {
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1812 "link-personas.c"
				goto __catch3_folks_individual_aggregator_error;
			}
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			__vala_GValue_free0 (_data_->v4);
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			__vala_GValue_free0 (_data_->v3);
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			__vala_GValue_free0 (_data_->v2);
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_free0 (_data_->wsk);
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			__vala_GValue_free0 (_data_->v1);
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.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 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			g_clear_error (&_data_->_inner_error_);
#line 301 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			return FALSE;
#line 1835 "link-personas.c"
		}
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp89_ = _data_->self->priv->_aggregator;
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp90_ = _data_->pstore2;
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp91_ = _data_->details2;
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_state_ = 2;
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp89_, NULL, _data_->_tmp90_, _data_->_tmp91_, _link_personas_tests_add_personas_ready, _data_);
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		return FALSE;
#line 1849 "link-personas.c"
		_state_2:
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp92_ = NULL;
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp92_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp89_, _data_->_res_, &_data_->_inner_error_);
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp93_ = _data_->_tmp92_;
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_object_unref0 (_data_->_tmp93_);
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		if (_data_->_inner_error_ != NULL) {
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1863 "link-personas.c"
				goto __catch3_folks_individual_aggregator_error;
			}
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			__vala_GValue_free0 (_data_->v4);
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			__vala_GValue_free0 (_data_->v3);
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			__vala_GValue_free0 (_data_->v2);
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_free0 (_data_->wsk);
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			__vala_GValue_free0 (_data_->v1);
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.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 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			g_clear_error (&_data_->_inner_error_);
#line 304 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			return FALSE;
#line 1886 "link-personas.c"
		}
	}
	goto __finally3;
	__catch3_folks_individual_aggregator_error:
	{
#line 299 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->e = _data_->_inner_error_;
#line 299 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_inner_error_ = NULL;
#line 309 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp94_ = _data_->e;
#line 309 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp95_ = _data_->_tmp94_->message;
#line 309 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_warning ("link-personas.vala:309: [AddPersonaError] add_persona_from_details: %s" \
"\n", _data_->_tmp95_);
#line 299 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_error_free0 (_data_->e);
#line 1904 "link-personas.c"
	}
	__finally3:
#line 299 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	if (_data_->_inner_error_ != NULL) {
#line 299 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		__vala_GValue_free0 (_data_->v4);
#line 299 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		__vala_GValue_free0 (_data_->v3);
#line 299 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_hash_table_unref0 (_data_->details2);
#line 299 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		__vala_GValue_free0 (_data_->v2);
#line 299 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_free0 (_data_->wsk);
#line 299 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		__vala_GValue_free0 (_data_->v1);
#line 299 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_hash_table_unref0 (_data_->details1);
#line 299 "/debian/rgs/devel/folks/tests/eds/link-personas.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 299 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_clear_error (&_data_->_inner_error_);
#line 299 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		return FALSE;
#line 1929 "link-personas.c"
	}
#line 233 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	__vala_GValue_free0 (_data_->v4);
#line 233 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	__vala_GValue_free0 (_data_->v3);
#line 233 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_hash_table_unref0 (_data_->details2);
#line 233 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	__vala_GValue_free0 (_data_->v2);
#line 233 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_free0 (_data_->wsk);
#line 233 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	__vala_GValue_free0 (_data_->v1);
#line 233 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_hash_table_unref0 (_data_->details1);
#line 233 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	if (_data_->_state_ == 0) {
#line 233 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1949 "link-personas.c"
	} else {
#line 233 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1953 "link-personas.c"
	}
#line 233 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_object_unref (_data_->_async_result);
#line 233 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	return FALSE;
#line 1959 "link-personas.c"
}


static void _link_personas_tests_individuals_changed_cb (LinkPersonasTests* self, GeeMultiMap* changes) {
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
#line 314 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_return_if_fail (self != NULL);
#line 314 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_return_if_fail (changes != NULL);
#line 317 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp0_ = changes;
#line 317 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 317 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	added = _tmp1_;
#line 318 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp2_ = changes;
#line 318 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 318 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	removed = _tmp3_;
#line 1986 "link-personas.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 320 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp4_ = added;
#line 320 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 320 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_i_it = _tmp5_;
#line 320 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		while (TRUE) {
#line 1999 "link-personas.c"
			GeeIterator* _tmp6_;
			gboolean _tmp7_ = FALSE;
			GeeIterator* _tmp8_;
			gpointer _tmp9_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp10_;
			FolksIndividual* _tmp11_;
#line 320 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp6_ = _i_it;
#line 320 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 320 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			if (!_tmp7_) {
#line 320 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				break;
#line 2015 "link-personas.c"
			}
#line 320 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp8_ = _i_it;
#line 320 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 320 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			i = (FolksIndividual*) _tmp9_;
#line 322 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp10_ = i;
#line 322 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			if (_tmp10_ == NULL) {
#line 324 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				_g_object_unref0 (i);
#line 324 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				continue;
#line 2031 "link-personas.c"
			}
#line 327 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp11_ = i;
#line 327 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_link_personas_tests_check_personas (self, _tmp11_, NULL, NULL);
#line 320 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_object_unref0 (i);
#line 2039 "link-personas.c"
		}
#line 320 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_object_unref0 (_i_it);
#line 2043 "link-personas.c"
	}
	{
		GeeSet* _tmp12_;
		GeeIterator* _tmp13_ = NULL;
		GeeIterator* _i_it;
#line 330 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp12_ = removed;
#line 330 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_tmp13_ = gee_iterable_iterator ((GeeIterable*) _tmp12_);
#line 330 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_i_it = _tmp13_;
#line 330 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		while (TRUE) {
#line 2057 "link-personas.c"
			GeeIterator* _tmp14_;
			gboolean _tmp15_ = FALSE;
			GeeIterator* _tmp16_;
			gpointer _tmp17_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp18_;
#line 330 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp14_ = _i_it;
#line 330 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp15_ = gee_iterator_next (_tmp14_);
#line 330 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			if (!_tmp15_) {
#line 330 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				break;
#line 2072 "link-personas.c"
			}
#line 330 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp16_ = _i_it;
#line 330 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp17_ = gee_iterator_get (_tmp16_);
#line 330 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			i = (FolksIndividual*) _tmp17_;
#line 332 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_tmp18_ = i;
#line 332 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			if (_tmp18_ != NULL) {
#line 2084 "link-personas.c"
				gint _tmp19_;
#line 334 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				_tmp19_ = self->priv->_removed_individuals;
#line 334 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				self->priv->_removed_individuals = _tmp19_ + 1;
#line 2090 "link-personas.c"
			}
#line 330 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_object_unref0 (i);
#line 2094 "link-personas.c"
		}
#line 330 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_object_unref0 (_i_it);
#line 2098 "link-personas.c"
	}
#line 314 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_object_unref0 (removed);
#line 314 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_object_unref0 (added);
#line 2104 "link-personas.c"
}


static void _link_personas_tests_check_personas_data_free (gpointer _data) {
	LinkPersonasTestsCheckPersonasData* _data_;
	_data_ = _data;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_object_unref0 (_data_->i);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_object_unref0 (_data_->self);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_slice_free (LinkPersonasTestsCheckPersonasData, _data_);
#line 2117 "link-personas.c"
}


static void _link_personas_tests_check_personas (LinkPersonasTests* self, FolksIndividual* i, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	LinkPersonasTestsCheckPersonasData* _data_;
	LinkPersonasTests* _tmp0_;
	FolksIndividual* _tmp1_;
	FolksIndividual* _tmp2_;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_ = g_slice_new0 (LinkPersonasTestsCheckPersonasData);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _link_personas_tests_check_personas);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _link_personas_tests_check_personas_data_free);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->self = _tmp0_;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp1_ = i;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->i = _tmp2_;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_link_personas_tests_check_personas_co (_data_);
#line 2144 "link-personas.c"
}


static void _link_personas_tests_check_personas_finish (LinkPersonasTests* self, GAsyncResult* _res_) {
	LinkPersonasTestsCheckPersonasData* _data_;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 2152 "link-personas.c"
}


static void _link_personas_tests_check_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	LinkPersonasTestsCheckPersonasData* _data_;
#line 452 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_ = _user_data_;
#line 452 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_source_object_ = source_object;
#line 452 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_res_ = _res_;
#line 452 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_link_personas_tests_check_personas_co (_data_);
#line 2166 "link-personas.c"
}


static gboolean _link_personas_tests_check_personas_co (LinkPersonasTestsCheckPersonasData* _data_) {
#line 349 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	switch (_data_->_state_) {
#line 349 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		case 0:
#line 2175 "link-personas.c"
		goto _state_0;
#line 349 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		case 1:
#line 2179 "link-personas.c"
		goto _state_1;
		default:
#line 349 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_assert_not_reached ();
#line 2184 "link-personas.c"
	}
	_state_0:
#line 351 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->first_persona = NULL;
#line 2189 "link-personas.c"
	{
#line 352 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp0_ = _data_->i;
#line 352 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp1_ = folks_individual_get_personas (_data_->_tmp0_);
#line 352 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp2_ = _data_->_tmp1_;
#line 352 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp3_ = NULL;
#line 352 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp3_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp2_);
#line 352 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_p_it = _data_->_tmp3_;
#line 352 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		while (TRUE) {
#line 352 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp4_ = FALSE;
#line 352 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp4_ = gee_iterator_next (_data_->_p_it);
#line 352 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			if (!_data_->_tmp4_) {
#line 352 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				break;
#line 2213 "link-personas.c"
			}
#line 352 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp5_ = NULL;
#line 352 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp5_ = gee_iterator_get (_data_->_p_it);
#line 352 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->p = (FolksPersona*) _data_->_tmp5_;
#line 354 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp6_ = _data_->p;
#line 354 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp7_ = _g_object_ref0 (_data_->_tmp6_);
#line 354 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_object_unref0 (_data_->first_persona);
#line 354 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->first_persona = _data_->_tmp7_;
#line 355 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_object_unref0 (_data_->p);
#line 355 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			break;
#line 2233 "link-personas.c"
		}
#line 352 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_object_unref0 (_data_->_p_it);
#line 2237 "link-personas.c"
	}
#line 358 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp9_ = _data_->i;
#line 358 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp10_ = folks_name_details_get_full_name ((FolksNameDetails*) _data_->_tmp9_);
#line 358 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp11_ = _data_->_tmp10_;
#line 358 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp12_ = _data_->self->priv->_persona_fullname_1;
#line 358 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	if (g_strcmp0 (_data_->_tmp11_, _data_->_tmp12_) == 0) {
#line 359 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp13_ = _data_->self->priv->_persona_iid_1;
#line 359 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp8_ = g_strcmp0 (_data_->_tmp13_, "") == 0;
#line 2253 "link-personas.c"
	} else {
#line 358 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp8_ = FALSE;
#line 2257 "link-personas.c"
	}
#line 358 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp14_ = _data_->_tmp8_;
#line 358 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	if (_data_->_tmp14_) {
#line 361 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp15_ = _data_->first_persona;
#line 361 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp16_ = folks_persona_get_iid (_data_->_tmp15_);
#line 361 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp17_ = _data_->_tmp16_;
#line 361 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp18_ = g_strdup (_data_->_tmp17_);
#line 361 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_g_free0 (_data_->self->priv->_persona_iid_1);
#line 361 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->self->priv->_persona_iid_1 = _data_->_tmp18_;
#line 362 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp19_ = _data_->self->priv->_personas;
#line 362 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp20_ = _data_->first_persona;
#line 362 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp19_, _data_->_tmp20_);
#line 363 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp21_ = _data_->self->priv->_linking_method;
#line 363 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		if (_data_->_tmp21_ == LINKING_METHOD_LOCAL_IDS) {
#line 365 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp22_ = _data_->first_persona;
#line 365 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp23_ = folks_persona_get_iid ((FolksPersona*) EDSF_PERSONA (_data_->_tmp22_));
#line 365 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp24_ = _data_->_tmp23_;
#line 365 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp25_ = g_strdup (_data_->_tmp24_);
#line 365 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->contact_id1 = _data_->_tmp25_;
#line 366 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp26_ = _data_->self->priv->_linking_props;
#line 366 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp27_ = _data_->contact_id1;
#line 366 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			gee_abstract_map_set ((GeeAbstractMap*) _data_->_tmp26_, "prop1", _data_->_tmp27_);
#line 363 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_free0 (_data_->contact_id1);
#line 2303 "link-personas.c"
		}
	} else {
#line 369 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp29_ = _data_->i;
#line 369 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp30_ = folks_name_details_get_full_name ((FolksNameDetails*) _data_->_tmp29_);
#line 369 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp31_ = _data_->_tmp30_;
#line 369 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp32_ = _data_->self->priv->_persona_fullname_2;
#line 369 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		if (g_strcmp0 (_data_->_tmp31_, _data_->_tmp32_) == 0) {
#line 370 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp33_ = _data_->self->priv->_persona_iid_2;
#line 370 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp28_ = g_strcmp0 (_data_->_tmp33_, "") == 0;
#line 2320 "link-personas.c"
		} else {
#line 369 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp28_ = FALSE;
#line 2324 "link-personas.c"
		}
#line 369 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp34_ = _data_->_tmp28_;
#line 369 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		if (_data_->_tmp34_) {
#line 372 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp35_ = _data_->first_persona;
#line 372 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp36_ = folks_persona_get_iid (_data_->_tmp35_);
#line 372 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp37_ = _data_->_tmp36_;
#line 372 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp38_ = g_strdup (_data_->_tmp37_);
#line 372 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_free0 (_data_->self->priv->_persona_iid_2);
#line 372 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->self->priv->_persona_iid_2 = _data_->_tmp38_;
#line 373 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp39_ = _data_->self->priv->_personas;
#line 373 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp40_ = _data_->first_persona;
#line 373 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp39_, _data_->_tmp40_);
#line 374 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp41_ = _data_->self->priv->_linking_method;
#line 374 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			if (_data_->_tmp41_ == LINKING_METHOD_LOCAL_IDS) {
#line 376 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				_data_->_tmp42_ = _data_->first_persona;
#line 376 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				_data_->_tmp43_ = folks_persona_get_iid ((FolksPersona*) EDSF_PERSONA (_data_->_tmp42_));
#line 376 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				_data_->_tmp44_ = _data_->_tmp43_;
#line 376 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				_data_->_tmp45_ = g_strdup (_data_->_tmp44_);
#line 376 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				_data_->contact_id2 = _data_->_tmp45_;
#line 377 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				_data_->_tmp46_ = _data_->self->priv->_linking_props;
#line 377 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				_data_->_tmp47_ = _data_->contact_id2;
#line 377 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				gee_abstract_map_set ((GeeAbstractMap*) _data_->_tmp46_, "prop2", _data_->_tmp47_);
#line 374 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				_g_free0 (_data_->contact_id2);
#line 2370 "link-personas.c"
			}
		} else {
#line 380 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp48_ = _data_->i;
#line 380 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp49_ = folks_individual_get_personas (_data_->_tmp48_);
#line 380 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp50_ = _data_->_tmp49_;
#line 380 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp51_ = gee_collection_get_size ((GeeCollection*) _data_->_tmp50_);
#line 380 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp52_ = _data_->_tmp51_;
#line 380 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			if (_data_->_tmp52_ > 1) {
#line 383 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				_data_->_tmp53_ = _data_->self->priv->_linking_method;
#line 383 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				if (_data_->_tmp53_ == LINKING_METHOD_IM_ADDRESSES) {
#line 2389 "link-personas.c"
					{
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
						_data_->_tmp54_ = _data_->i;
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
						_data_->_tmp55_ = folks_im_details_get_im_addresses ((FolksImDetails*) _data_->_tmp54_);
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
						_data_->_tmp56_ = _data_->_tmp55_;
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
						_data_->_tmp57_ = NULL;
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
						_data_->_tmp57_ = gee_multi_map_get_keys (_data_->_tmp56_);
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
						_data_->_tmp58_ = _data_->_tmp57_;
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
						_data_->_tmp59_ = NULL;
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
						_data_->_tmp59_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp58_);
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
						_data_->_tmp60_ = _data_->_tmp59_;
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
						_g_object_unref0 (_data_->_tmp58_);
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
						_data_->_proto_it = _data_->_tmp60_;
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
						while (TRUE) {
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->_tmp61_ = _data_->_proto_it;
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->_tmp62_ = FALSE;
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->_tmp62_ = gee_iterator_next (_data_->_tmp61_);
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							if (!_data_->_tmp62_) {
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								break;
#line 2425 "link-personas.c"
							}
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->_tmp63_ = _data_->_proto_it;
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->_tmp64_ = NULL;
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->_tmp64_ = gee_iterator_get (_data_->_tmp63_);
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->proto = (gchar*) _data_->_tmp64_;
#line 387 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->_tmp65_ = _data_->i;
#line 387 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->_tmp66_ = folks_im_details_get_im_addresses ((FolksImDetails*) _data_->_tmp65_);
#line 387 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->_tmp67_ = _data_->_tmp66_;
#line 387 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->_tmp68_ = _data_->proto;
#line 387 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->_tmp69_ = NULL;
#line 387 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->_tmp69_ = gee_multi_map_get (_data_->_tmp67_, _data_->_tmp68_);
#line 387 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->im_fds = _data_->_tmp69_;
#line 2449 "link-personas.c"
							{
#line 388 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp70_ = _data_->im_fds;
#line 388 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp71_ = NULL;
#line 388 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp71_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp70_);
#line 388 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_im_fd_it = _data_->_tmp71_;
#line 388 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								while (TRUE) {
#line 388 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp72_ = _data_->_im_fd_it;
#line 388 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp73_ = FALSE;
#line 388 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp73_ = gee_iterator_next (_data_->_tmp72_);
#line 388 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									if (!_data_->_tmp73_) {
#line 388 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										break;
#line 2471 "link-personas.c"
									}
#line 388 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp74_ = _data_->_im_fd_it;
#line 388 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp75_ = NULL;
#line 388 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp75_ = gee_iterator_get (_data_->_tmp74_);
#line 388 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->im_fd = (FolksImFieldDetails*) _data_->_tmp75_;
#line 390 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp76_ = _data_->im_fd;
#line 390 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp77_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _data_->_tmp76_);
#line 390 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp78_ = _data_->_tmp77_;
#line 390 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp79_ = _data_->self->priv->_linking_props;
#line 390 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp80_ = NULL;
#line 390 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp80_ = gee_abstract_map_get ((GeeAbstractMap*) _data_->_tmp79_, "prop1");
#line 390 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp81_ = (gchar*) _data_->_tmp80_;
#line 390 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp82_ = g_strcmp0 ((const gchar*) _data_->_tmp78_, _data_->_tmp81_) == 0;
#line 390 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_g_free0 (_data_->_tmp81_);
#line 390 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									if (_data_->_tmp82_) {
#line 392 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										_data_->_tmp83_ = _data_->self->priv->_linking_props;
#line 392 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										gee_abstract_map_unset ((GeeAbstractMap*) _data_->_tmp83_, "prop1", NULL);
#line 2505 "link-personas.c"
									} else {
#line 394 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										_data_->_tmp84_ = _data_->im_fd;
#line 394 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										_data_->_tmp85_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _data_->_tmp84_);
#line 394 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										_data_->_tmp86_ = _data_->_tmp85_;
#line 394 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										_data_->_tmp87_ = _data_->self->priv->_linking_props;
#line 394 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										_data_->_tmp88_ = NULL;
#line 394 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										_data_->_tmp88_ = gee_abstract_map_get ((GeeAbstractMap*) _data_->_tmp87_, "prop2");
#line 394 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										_data_->_tmp89_ = (gchar*) _data_->_tmp88_;
#line 394 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										_data_->_tmp90_ = g_strcmp0 ((const gchar*) _data_->_tmp86_, _data_->_tmp89_) == 0;
#line 394 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										_g_free0 (_data_->_tmp89_);
#line 394 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										if (_data_->_tmp90_) {
#line 396 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_data_->_tmp91_ = _data_->self->priv->_linking_props;
#line 396 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											gee_abstract_map_unset ((GeeAbstractMap*) _data_->_tmp91_, "prop2", NULL);
#line 2531 "link-personas.c"
										}
									}
#line 388 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_g_object_unref0 (_data_->im_fd);
#line 2536 "link-personas.c"
								}
#line 388 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_g_object_unref0 (_data_->_im_fd_it);
#line 2540 "link-personas.c"
							}
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_g_object_unref0 (_data_->im_fds);
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_g_free0 (_data_->proto);
#line 2546 "link-personas.c"
						}
#line 385 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
						_g_object_unref0 (_data_->_proto_it);
#line 2550 "link-personas.c"
					}
				} else {
#line 401 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
					_data_->_tmp92_ = _data_->self->priv->_linking_method;
#line 401 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
					if (_data_->_tmp92_ == LINKING_METHOD_LOCAL_IDS) {
#line 2557 "link-personas.c"
						{
#line 403 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->_tmp93_ = _data_->i;
#line 403 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->_tmp94_ = folks_local_id_details_get_local_ids ((FolksLocalIdDetails*) _data_->_tmp93_);
#line 403 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->_tmp95_ = _data_->_tmp94_;
#line 403 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->_tmp96_ = NULL;
#line 403 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->_tmp96_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp95_);
#line 403 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_data_->_local_id_it = _data_->_tmp96_;
#line 403 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							while (TRUE) {
#line 403 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp97_ = _data_->_local_id_it;
#line 403 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp98_ = FALSE;
#line 403 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp98_ = gee_iterator_next (_data_->_tmp97_);
#line 403 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								if (!_data_->_tmp98_) {
#line 403 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									break;
#line 2583 "link-personas.c"
								}
#line 403 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp99_ = _data_->_local_id_it;
#line 403 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp100_ = NULL;
#line 403 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp100_ = gee_iterator_get (_data_->_tmp99_);
#line 403 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->local_id = (gchar*) _data_->_tmp100_;
#line 405 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp101_ = _data_->local_id;
#line 405 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp102_ = _data_->self->priv->_linking_props;
#line 405 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp103_ = NULL;
#line 405 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp103_ = gee_abstract_map_get ((GeeAbstractMap*) _data_->_tmp102_, "prop1");
#line 405 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp104_ = (gchar*) _data_->_tmp103_;
#line 405 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp105_ = g_strcmp0 (_data_->_tmp101_, _data_->_tmp104_) == 0;
#line 405 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_g_free0 (_data_->_tmp104_);
#line 405 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								if (_data_->_tmp105_) {
#line 407 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp106_ = _data_->self->priv->_linking_props;
#line 407 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									gee_abstract_map_unset ((GeeAbstractMap*) _data_->_tmp106_, "prop1", NULL);
#line 2613 "link-personas.c"
								} else {
#line 409 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp107_ = _data_->local_id;
#line 409 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp108_ = _data_->self->priv->_linking_props;
#line 409 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp109_ = NULL;
#line 409 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp109_ = gee_abstract_map_get ((GeeAbstractMap*) _data_->_tmp108_, "prop2");
#line 409 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp110_ = (gchar*) _data_->_tmp109_;
#line 409 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp111_ = g_strcmp0 (_data_->_tmp107_, _data_->_tmp110_) == 0;
#line 409 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_g_free0 (_data_->_tmp110_);
#line 409 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									if (_data_->_tmp111_) {
#line 411 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										_data_->_tmp112_ = _data_->self->priv->_linking_props;
#line 411 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										gee_abstract_map_unset ((GeeAbstractMap*) _data_->_tmp112_, "prop2", NULL);
#line 2635 "link-personas.c"
									}
								}
#line 403 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_g_free0 (_data_->local_id);
#line 2640 "link-personas.c"
							}
#line 403 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
							_g_object_unref0 (_data_->_local_id_it);
#line 2644 "link-personas.c"
						}
					} else {
#line 415 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
						_data_->_tmp113_ = _data_->self->priv->_linking_method;
#line 415 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
						if (_data_->_tmp113_ == LINKING_METHOD_WEB_SERVICE_ADDRESSES) {
#line 2651 "link-personas.c"
							{
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp114_ = _data_->i;
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp115_ = folks_web_service_details_get_web_service_addresses ((FolksWebServiceDetails*) _data_->_tmp114_);
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp116_ = _data_->_tmp115_;
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp117_ = NULL;
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp117_ = gee_multi_map_get_keys (_data_->_tmp116_);
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp118_ = _data_->_tmp117_;
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp119_ = NULL;
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp119_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp118_);
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_tmp120_ = _data_->_tmp119_;
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_g_object_unref0 (_data_->_tmp118_);
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_data_->_service_it = _data_->_tmp120_;
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								while (TRUE) {
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp121_ = _data_->_service_it;
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp122_ = FALSE;
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp122_ = gee_iterator_next (_data_->_tmp121_);
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									if (!_data_->_tmp122_) {
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										break;
#line 2687 "link-personas.c"
									}
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp123_ = _data_->_service_it;
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp124_ = NULL;
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp124_ = gee_iterator_get (_data_->_tmp123_);
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->service = (gchar*) _data_->_tmp124_;
#line 419 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp125_ = _data_->i;
#line 419 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp126_ = folks_web_service_details_get_web_service_addresses ((FolksWebServiceDetails*) _data_->_tmp125_);
#line 419 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp127_ = _data_->_tmp126_;
#line 419 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp128_ = _data_->service;
#line 419 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp129_ = NULL;
#line 419 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->_tmp129_ = gee_multi_map_get (_data_->_tmp127_, _data_->_tmp128_);
#line 419 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_data_->ws_fds = _data_->_tmp129_;
#line 2711 "link-personas.c"
									{
#line 420 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										_data_->_tmp130_ = _data_->ws_fds;
#line 420 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										_data_->_tmp131_ = NULL;
#line 420 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										_data_->_tmp131_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp130_);
#line 420 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										_data_->_ws_fd_it = _data_->_tmp131_;
#line 420 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										while (TRUE) {
#line 420 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_data_->_tmp132_ = _data_->_ws_fd_it;
#line 420 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_data_->_tmp133_ = FALSE;
#line 420 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_data_->_tmp133_ = gee_iterator_next (_data_->_tmp132_);
#line 420 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											if (!_data_->_tmp133_) {
#line 420 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
												break;
#line 2733 "link-personas.c"
											}
#line 420 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_data_->_tmp134_ = _data_->_ws_fd_it;
#line 420 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_data_->_tmp135_ = NULL;
#line 420 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_data_->_tmp135_ = gee_iterator_get (_data_->_tmp134_);
#line 420 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_data_->ws_fd = (FolksWebServiceFieldDetails*) _data_->_tmp135_;
#line 422 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_data_->_tmp136_ = _data_->self->priv->_linking_props;
#line 422 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_data_->_tmp137_ = NULL;
#line 422 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_data_->_tmp137_ = gee_abstract_map_get ((GeeAbstractMap*) _data_->_tmp136_, "prop1");
#line 422 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_data_->prop1 = (gchar*) _data_->_tmp137_;
#line 423 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_data_->_tmp138_ = _data_->self->priv->_linking_props;
#line 423 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_data_->_tmp139_ = NULL;
#line 423 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_data_->_tmp139_ = gee_abstract_map_get ((GeeAbstractMap*) _data_->_tmp138_, "prop2");
#line 423 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_data_->prop2 = (gchar*) _data_->_tmp139_;
#line 424 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_data_->_tmp141_ = _data_->prop1;
#line 424 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											if (_data_->_tmp141_ != NULL) {
#line 425 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
												_data_->_tmp142_ = _data_->ws_fd;
#line 425 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
												_data_->_tmp143_ = _data_->prop1;
#line 425 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
												_data_->_tmp144_ = folks_web_service_field_details_new (_data_->_tmp143_, NULL);
#line 425 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
												_data_->_tmp145_ = _data_->_tmp144_;
#line 425 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
												_data_->_tmp146_ = FALSE;
#line 425 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
												_data_->_tmp146_ = folks_abstract_field_details_equal ((FolksAbstractFieldDetails*) _data_->_tmp142_, (FolksAbstractFieldDetails*) _data_->_tmp145_);
#line 425 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
												_data_->_tmp140_ = _data_->_tmp146_;
#line 425 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
												_g_object_unref0 (_data_->_tmp145_);
#line 2779 "link-personas.c"
											} else {
#line 424 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
												_data_->_tmp140_ = FALSE;
#line 2783 "link-personas.c"
											}
#line 424 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_data_->_tmp147_ = _data_->_tmp140_;
#line 424 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											if (_data_->_tmp147_) {
#line 427 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
												_data_->_tmp148_ = _data_->self->priv->_linking_props;
#line 427 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
												gee_abstract_map_unset ((GeeAbstractMap*) _data_->_tmp148_, "prop1", NULL);
#line 2793 "link-personas.c"
											} else {
#line 429 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
												_data_->_tmp150_ = _data_->prop2;
#line 429 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
												if (_data_->_tmp150_ != NULL) {
#line 430 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
													_data_->_tmp151_ = _data_->ws_fd;
#line 430 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
													_data_->_tmp152_ = _data_->prop2;
#line 430 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
													_data_->_tmp153_ = folks_web_service_field_details_new (_data_->_tmp152_, NULL);
#line 430 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
													_data_->_tmp154_ = _data_->_tmp153_;
#line 430 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
													_data_->_tmp155_ = FALSE;
#line 430 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
													_data_->_tmp155_ = folks_abstract_field_details_equal ((FolksAbstractFieldDetails*) _data_->_tmp151_, (FolksAbstractFieldDetails*) _data_->_tmp154_);
#line 430 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
													_data_->_tmp149_ = _data_->_tmp155_;
#line 430 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
													_g_object_unref0 (_data_->_tmp154_);
#line 2815 "link-personas.c"
												} else {
#line 429 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
													_data_->_tmp149_ = FALSE;
#line 2819 "link-personas.c"
												}
#line 429 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
												_data_->_tmp156_ = _data_->_tmp149_;
#line 429 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
												if (_data_->_tmp156_) {
#line 432 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
													_data_->_tmp157_ = _data_->self->priv->_linking_props;
#line 432 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
													gee_abstract_map_unset ((GeeAbstractMap*) _data_->_tmp157_, "prop2", NULL);
#line 2829 "link-personas.c"
												}
											}
#line 420 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_g_free0 (_data_->prop2);
#line 420 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_g_free0 (_data_->prop1);
#line 420 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
											_g_object_unref0 (_data_->ws_fd);
#line 2838 "link-personas.c"
										}
#line 420 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
										_g_object_unref0 (_data_->_ws_fd_it);
#line 2842 "link-personas.c"
									}
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_g_object_unref0 (_data_->ws_fds);
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
									_g_free0 (_data_->service);
#line 2848 "link-personas.c"
								}
#line 417 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
								_g_object_unref0 (_data_->_service_it);
#line 2852 "link-personas.c"
							}
						}
					}
				}
#line 438 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				_data_->_tmp158_ = _data_->self->priv->_linking_props;
#line 438 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				_data_->_tmp159_ = gee_map_get_size ((GeeMap*) _data_->_tmp158_);
#line 438 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				_data_->_tmp160_ = _data_->_tmp159_;
#line 438 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
				if (_data_->_tmp160_ == 0) {
#line 440 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
					_data_->_tmp161_ = _data_->self->priv->_main_loop;
#line 440 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
					g_main_loop_quit (_data_->_tmp161_);
#line 2869 "link-personas.c"
				}
			}
		}
	}
#line 446 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp163_ = _data_->self->priv->_personas;
#line 446 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp164_ = gee_collection_get_size ((GeeCollection*) _data_->_tmp163_);
#line 446 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp165_ = _data_->_tmp164_;
#line 446 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	if (_data_->_tmp165_ == 2) {
#line 447 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp166_ = _data_->self->priv->_linking_fired;
#line 447 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp162_ = _data_->_tmp166_ == FALSE;
#line 2886 "link-personas.c"
	} else {
#line 446 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->_tmp162_ = FALSE;
#line 2890 "link-personas.c"
	}
#line 446 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_data_->_tmp167_ = _data_->_tmp162_;
#line 446 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	if (_data_->_tmp167_) {
#line 449 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		_data_->self->priv->_linking_fired = TRUE;
#line 2898 "link-personas.c"
		{
#line 452 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp168_ = _data_->self->priv->_aggregator;
#line 452 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp169_ = _data_->self->priv->_personas;
#line 452 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_state_ = 1;
#line 452 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			folks_individual_aggregator_link_personas (_data_->_tmp168_, (GeeSet*) _data_->_tmp169_, _link_personas_tests_check_personas_ready, _data_);
#line 452 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			return FALSE;
#line 2910 "link-personas.c"
			_state_1:
#line 452 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			folks_individual_aggregator_link_personas_finish (_data_->_tmp168_, _data_->_res_, &_data_->_inner_error_);
#line 452 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			if (_data_->_inner_error_ != NULL) {
#line 2916 "link-personas.c"
				goto __catch4_g_error;
			}
		}
		goto __finally4;
		__catch4_g_error:
		{
#line 450 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->e = _data_->_inner_error_;
#line 450 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_inner_error_ = NULL;
#line 456 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp170_ = _data_->e;
#line 456 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_data_->_tmp171_ = _data_->_tmp170_->message;
#line 456 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			g_warning ("link-personas.vala:456: link_personas: %s\n", _data_->_tmp171_);
#line 450 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_error_free0 (_data_->e);
#line 2935 "link-personas.c"
		}
		__finally4:
#line 450 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		if (_data_->_inner_error_ != NULL) {
#line 450 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			_g_object_unref0 (_data_->first_persona);
#line 450 "/debian/rgs/devel/folks/tests/eds/link-personas.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 450 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			g_clear_error (&_data_->_inner_error_);
#line 450 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
			return FALSE;
#line 2948 "link-personas.c"
		}
	}
#line 349 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_object_unref0 (_data_->first_persona);
#line 349 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	if (_data_->_state_ == 0) {
#line 349 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2957 "link-personas.c"
	} else {
#line 349 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2961 "link-personas.c"
	}
#line 349 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_object_unref (_data_->_async_result);
#line 349 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	return FALSE;
#line 2967 "link-personas.c"
}


static void link_personas_tests_class_init (LinkPersonasTestsClass * klass) {
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	link_personas_tests_parent_class = g_type_class_peek_parent (klass);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_type_class_add_private (klass, sizeof (LinkPersonasTestsPrivate));
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = link_personas_tests_real_set_up;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = link_personas_tests_real_tear_down;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	G_OBJECT_CLASS (klass)->finalize = link_personas_tests_finalize;
#line 2982 "link-personas.c"
}


static void link_personas_tests_instance_init (LinkPersonasTests * self) {
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv = LINK_PERSONAS_TESTS_GET_PRIVATE (self);
#line 41 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp0_ = g_strdup ("someone-1@jabber.example.org");
#line 41 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_im_address_1 = _tmp0_;
#line 42 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp1_ = g_strdup ("someone-2@jabber.example.org");
#line 42 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_im_address_2 = _tmp1_;
#line 50 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp2_ = g_strdup ("/system/folks/backends/primary_store");
#line 50 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self->priv->_folks_config_key = _tmp2_;
#line 3004 "link-personas.c"
}


static void link_personas_tests_finalize (GObject* obj) {
	LinkPersonasTests * self;
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	self = LINK_PERSONAS_TESTS (obj);
#line 35 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 36 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 37 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend_other);
#line 38 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 39 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_free0 (self->priv->_persona_fullname_1);
#line 40 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_free0 (self->priv->_persona_fullname_2);
#line 41 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_free0 (self->priv->_im_address_1);
#line 42 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_free0 (self->priv->_im_address_2);
#line 46 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_free0 (self->priv->_persona_iid_1);
#line 47 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_free0 (self->priv->_persona_iid_2);
#line 48 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_object_unref0 (self->priv->_personas);
#line 50 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_free0 (self->priv->_folks_config_key);
#line 52 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_object_unref0 (self->priv->_linking_props);
#line 33 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	G_OBJECT_CLASS (link_personas_tests_parent_class)->finalize (obj);
#line 3040 "link-personas.c"
}


GType link_personas_tests_get_type (void) {
	static volatile gsize link_personas_tests_type_id__volatile = 0;
	if (g_once_init_enter (&link_personas_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (LinkPersonasTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) link_personas_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LinkPersonasTests), 0, (GInstanceInitFunc) link_personas_tests_instance_init, NULL };
		GType link_personas_tests_type_id;
		link_personas_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "LinkPersonasTests", &g_define_type_info, 0);
		g_once_init_leave (&link_personas_tests_type_id__volatile, link_personas_tests_type_id);
	}
	return link_personas_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	LinkPersonasTests* _tmp1_;
	LinkPersonasTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 464 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_test_init (&args_length1, &args, NULL);
#line 466 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp0_ = g_test_get_root ();
#line 466 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	root = _tmp0_;
#line 467 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp1_ = link_personas_tests_new ();
#line 467 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp2_ = _tmp1_;
#line 467 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 467 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 467 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	_g_object_unref0 (_tmp2_);
#line 469 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_test_run ();
#line 471 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	result = 0;
#line 471 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	return result;
#line 3085 "link-personas.c"
}


int main (int argc, char ** argv) {
#line 462 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	g_type_init ();
#line 462 "/debian/rgs/devel/folks/tests/eds/link-personas.vala"
	return _vala_main (argv, argc);
#line 3094 "link-personas.c"
}



