/* link-personas-diff-stores.c generated by valac 0.14.0.15-f8b5, the Vala compiler
 * generated from link-personas-diff-stores.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 <gio/gio.h>


#define TYPE_LINK_PERSONAS_DIFF_STORES_TESTS (link_personas_diff_stores_tests_get_type ())
#define LINK_PERSONAS_DIFF_STORES_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LINK_PERSONAS_DIFF_STORES_TESTS, LinkPersonasDiffStoresTests))
#define LINK_PERSONAS_DIFF_STORES_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LINK_PERSONAS_DIFF_STORES_TESTS, LinkPersonasDiffStoresTestsClass))
#define IS_LINK_PERSONAS_DIFF_STORES_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LINK_PERSONAS_DIFF_STORES_TESTS))
#define IS_LINK_PERSONAS_DIFF_STORES_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LINK_PERSONAS_DIFF_STORES_TESTS))
#define LINK_PERSONAS_DIFF_STORES_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LINK_PERSONAS_DIFF_STORES_TESTS, LinkPersonasDiffStoresTestsClass))

typedef struct _LinkPersonasDiffStoresTests LinkPersonasDiffStoresTests;
typedef struct _LinkPersonasDiffStoresTestsClass LinkPersonasDiffStoresTestsClass;
typedef struct _LinkPersonasDiffStoresTestsPrivate LinkPersonasDiffStoresTestsPrivate;
#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 _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _LinkPersonasDiffStoresTestsTestLinkingPersonasAsyncData LinkPersonasDiffStoresTestsTestLinkingPersonasAsyncData;
#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 _LinkPersonasDiffStoresTestsAddPersonasData LinkPersonasDiffStoresTestsAddPersonasData;
typedef struct _LinkPersonasDiffStoresTestsIndividualsChangedAsyncData LinkPersonasDiffStoresTestsIndividualsChangedAsyncData;
typedef struct _LinkPersonasDiffStoresTestsCheckPersonasData LinkPersonasDiffStoresTestsCheckPersonasData;

struct _LinkPersonasDiffStoresTests {
	FolksTestCase parent_instance;
	LinkPersonasDiffStoresTestsPrivate * priv;
};

struct _LinkPersonasDiffStoresTestsClass {
	FolksTestCaseClass parent_class;
};

struct _LinkPersonasDiffStoresTestsPrivate {
	GMainLoop* _main_loop;
	EdsTestBackend* _eds_backend;
	EdsTestBackend* _eds_backend_other;
	FolksIndividualAggregator* _aggregator;
	gchar* _persona_fullname_1;
	gchar* _persona_fullname_2;
	gboolean _linking_fired;
	gboolean _linked_individual_found;
	gchar* _persona_iid_1;
	gchar* _persona_iid_2;
	GeeHashSet* _personas;
};

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

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

struct _LinkPersonasDiffStoresTestsIndividualsChangedAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	LinkPersonasDiffStoresTests* self;
	GeeMultiMap* changes;
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_;
	GeeCollection* added;
	GeeCollection* _tmp2_;
	GeeIterator* _tmp3_;
	GeeIterator* _i_it;
	GeeIterator* _tmp4_;
	gboolean _tmp5_;
	GeeIterator* _tmp6_;
	gpointer _tmp7_;
	FolksIndividual* i;
	FolksIndividual* _tmp8_;
	FolksIndividual* _tmp9_;
};

struct _LinkPersonasDiffStoresTestsCheckPersonasData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	LinkPersonasDiffStoresTests* self;
	FolksIndividual* i;
	gboolean _tmp0_;
	FolksPersona* first_persona;
	FolksIndividual* _tmp1_;
	GeeSet* _tmp2_;
	GeeSet* _tmp3_;
	GeeIterator* _tmp4_;
	GeeIterator* _p_it;
	GeeIterator* _tmp5_;
	gboolean _tmp6_;
	GeeIterator* _tmp7_;
	gpointer _tmp8_;
	FolksPersona* p;
	FolksPersona* _tmp9_;
	FolksPersona* _tmp10_;
	gboolean _tmp11_;
	FolksIndividual* _tmp12_;
	const gchar* _tmp13_;
	const gchar* _tmp14_;
	const gchar* _tmp15_;
	const gchar* _tmp16_;
	gboolean _tmp17_;
	FolksPersona* _tmp18_;
	const gchar* _tmp19_;
	const gchar* _tmp20_;
	gchar* _tmp21_;
	GeeHashSet* _tmp22_;
	FolksPersona* _tmp23_;
	gboolean _tmp24_;
	FolksIndividual* _tmp25_;
	const gchar* _tmp26_;
	const gchar* _tmp27_;
	const gchar* _tmp28_;
	const gchar* _tmp29_;
	gboolean _tmp30_;
	FolksPersona* _tmp31_;
	const gchar* _tmp32_;
	const gchar* _tmp33_;
	gchar* _tmp34_;
	GeeHashSet* _tmp35_;
	FolksPersona* _tmp36_;
	FolksIndividual* _tmp37_;
	GeeSet* _tmp38_;
	GeeSet* _tmp39_;
	gint _tmp40_;
	gint _tmp41_;
	gboolean first_persona_id;
	gboolean second_persona_id;
	FolksIndividual* _tmp42_;
	GeeSet* _tmp43_;
	GeeSet* _tmp44_;
	GeeIterator* _tmp45_;
	GeeIterator* _p1_it;
	GeeIterator* _tmp46_;
	gboolean _tmp47_;
	GeeIterator* _tmp48_;
	gpointer _tmp49_;
	FolksPersona* p1;
	FolksPersona* _tmp50_;
	const gchar* _tmp51_;
	const gchar* _tmp52_;
	const gchar* _tmp53_;
	FolksPersona* _tmp54_;
	const gchar* _tmp55_;
	const gchar* _tmp56_;
	const gchar* _tmp57_;
	gboolean _tmp58_;
	gboolean _tmp59_;
	gboolean _tmp60_;
	gboolean _tmp61_;
	GMainLoop* _tmp62_;
	gboolean _tmp63_;
	GeeHashSet* _tmp64_;
	gint _tmp65_;
	gint _tmp66_;
	gboolean _tmp67_;
	gboolean _tmp68_;
	FolksIndividualAggregator* _tmp69_;
	GeeHashSet* _tmp70_;
	GError* e;
	GError* _tmp71_;
	const gchar* _tmp72_;
	GError * _inner_error_;
};


static gpointer link_personas_diff_stores_tests_parent_class = NULL;

GType link_personas_diff_stores_tests_get_type (void) G_GNUC_CONST;
#define LINK_PERSONAS_DIFF_STORES_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LINK_PERSONAS_DIFF_STORES_TESTS, LinkPersonasDiffStoresTestsPrivate))
enum  {
	LINK_PERSONAS_DIFF_STORES_TESTS_DUMMY_PROPERTY
};
LinkPersonasDiffStoresTests* link_personas_diff_stores_tests_new (void);
LinkPersonasDiffStoresTests* link_personas_diff_stores_tests_construct (GType object_type);
void link_personas_diff_stores_tests_test_linking_via_local_ids_diff_stores (LinkPersonasDiffStoresTests* self);
static void _link_personas_diff_stores_tests_test_linking_via_local_ids_diff_stores_folks_test_case_test_method (gpointer self);
static void link_personas_diff_stores_tests_real_set_up (FolksTestCase* base);
static void link_personas_diff_stores_tests_real_tear_down (FolksTestCase* base);
static void _link_personas_diff_stores_tests_test_linking_personas_async (LinkPersonasDiffStoresTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _link_personas_diff_stores_tests_test_linking_personas_finish (LinkPersonasDiffStoresTests* self, GAsyncResult* _res_);
static gboolean __lambda3_ (LinkPersonasDiffStoresTests* self);
static gboolean ___lambda3__gsource_func (gpointer self);
static void _link_personas_diff_stores_tests_test_linking_personas_async_data_free (gpointer _data);
static gboolean _link_personas_diff_stores_tests_test_linking_personas_async_co (LinkPersonasDiffStoresTestsTestLinkingPersonasAsyncData* _data_);
static void _link_personas_diff_stores_tests_test_linking_personas_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _link_personas_diff_stores_tests_individuals_changed_cb (LinkPersonasDiffStoresTests* self, GeeMultiMap* changes);
static void __link_personas_diff_stores_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static FolksPersonaStore* _link_personas_diff_stores_tests_get_store (LinkPersonasDiffStoresTests* self, FolksBackendStore* store, const gchar* store_id);
static void _link_personas_diff_stores_tests_add_personas (LinkPersonasDiffStoresTests* self, FolksPersonaStore* pstore1, FolksPersonaStore* pstore2, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _link_personas_diff_stores_tests_add_personas_finish (LinkPersonasDiffStoresTests* self, GAsyncResult* _res_);
static void _link_personas_diff_stores_tests_add_personas_data_free (gpointer _data);
static gboolean _link_personas_diff_stores_tests_add_personas_co (LinkPersonasDiffStoresTestsAddPersonasData* _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_diff_stores_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _link_personas_diff_stores_tests_individuals_changed_async (LinkPersonasDiffStoresTests* self, GeeMultiMap* changes, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _link_personas_diff_stores_tests_individuals_changed_finish (LinkPersonasDiffStoresTests* self, GAsyncResult* _res_);
static void __lambda2_ (LinkPersonasDiffStoresTests* self, GObject* object, GAsyncResult* _result_);
static void ___lambda2__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void _link_personas_diff_stores_tests_individuals_changed_async_data_free (gpointer _data);
static gboolean _link_personas_diff_stores_tests_individuals_changed_async_co (LinkPersonasDiffStoresTestsIndividualsChangedAsyncData* _data_);
static void _link_personas_diff_stores_tests_check_personas (LinkPersonasDiffStoresTests* self, FolksIndividual* i, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _link_personas_diff_stores_tests_check_personas_finish (LinkPersonasDiffStoresTests* self, GAsyncResult* _res_);
static void _link_personas_diff_stores_tests_individuals_changed_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _link_personas_diff_stores_tests_check_personas_data_free (gpointer _data);
static gboolean _link_personas_diff_stores_tests_check_personas_co (LinkPersonasDiffStoresTestsCheckPersonasData* _data_);
static void _link_personas_diff_stores_tests_check_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void link_personas_diff_stores_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _link_personas_diff_stores_tests_test_linking_via_local_ids_diff_stores_folks_test_case_test_method (gpointer self) {
#line 42 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	link_personas_diff_stores_tests_test_linking_via_local_ids_diff_stores (self);
#line 329 "link-personas-diff-stores.c"
}


LinkPersonasDiffStoresTests* link_personas_diff_stores_tests_construct (GType object_type) {
	LinkPersonasDiffStoresTests * self = NULL;
#line 40 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	self = (LinkPersonasDiffStoresTests*) folks_test_case_construct (object_type, "LinkPersonasDiffStoresTests");
#line 42 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test linking via local IDs using different PersonaStores", _link_personas_diff_stores_tests_test_linking_via_local_ids_diff_stores_folks_test_case_test_method, self);
#line 38 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	return self;
#line 341 "link-personas-diff-stores.c"
}


LinkPersonasDiffStoresTests* link_personas_diff_stores_tests_new (void) {
#line 38 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	return link_personas_diff_stores_tests_construct (TYPE_LINK_PERSONAS_DIFF_STORES_TESTS);
#line 348 "link-personas-diff-stores.c"
}


static void link_personas_diff_stores_tests_real_set_up (FolksTestCase* base) {
	LinkPersonasDiffStoresTests * self;
	EdsTestBackend* _tmp0_;
	EdsTestBackend* _tmp1_;
	EdsTestBackend* _tmp2_;
	EdsTestBackend* _tmp3_;
	EdsTestBackend* _tmp4_;
	EdsTestBackend* _tmp5_;
	const gchar* _tmp6_;
	const gchar* _tmp7_;
	gchar* _tmp8_ = NULL;
	gchar* config_val;
#line 46 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	self = (LinkPersonasDiffStoresTests*) base;
#line 48 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = eds_test_backend_new ();
#line 48 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 48 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_eds_backend = _tmp0_;
#line 49 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = eds_test_backend_new ();
#line 49 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend_other);
#line 49 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_eds_backend_other = _tmp1_;
#line 50 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp2_ = self->priv->_eds_backend_other;
#line 50 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	eds_test_backend_set_address_book_uri (_tmp2_, "local://other");
#line 52 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp3_ = self->priv->_eds_backend;
#line 52 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	eds_test_backend_set_up (_tmp3_, FALSE);
#line 53 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp4_ = self->priv->_eds_backend_other;
#line 53 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	eds_test_backend_set_up (_tmp4_, FALSE);
#line 56 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp5_ = self->priv->_eds_backend;
#line 56 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp6_ = eds_test_backend_get_address_book_uid (_tmp5_);
#line 56 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp7_ = _tmp6_;
#line 56 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp8_ = g_strdup_printf ("eds:%s", _tmp7_);
#line 56 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	config_val = _tmp8_;
#line 57 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_setenv ("FOLKS_PRIMARY_STORE", config_val, TRUE);
#line 46 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (config_val);
#line 404 "link-personas-diff-stores.c"
}


static void link_personas_diff_stores_tests_real_tear_down (FolksTestCase* base) {
	LinkPersonasDiffStoresTests * self;
	EdsTestBackend* _tmp0_;
	EdsTestBackend* _tmp1_;
#line 60 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	self = (LinkPersonasDiffStoresTests*) base;
#line 62 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = self->priv->_eds_backend;
#line 62 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	eds_test_backend_tear_down (_tmp0_);
#line 63 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = self->priv->_eds_backend_other;
#line 63 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	eds_test_backend_tear_down (_tmp1_);
#line 65 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_unsetenv ("FOLKS_PRIMARY_STORE");
#line 67 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 67 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_eds_backend = NULL;
#line 68 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend_other);
#line 68 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_eds_backend_other = NULL;
#line 432 "link-personas-diff-stores.c"
}


static gboolean __lambda3_ (LinkPersonasDiffStoresTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 86 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = self->priv->_main_loop;
#line 86 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_main_loop_quit (_tmp0_);
#line 87 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_assert_not_reached ();
#line 84 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	return result;
#line 447 "link-personas-diff-stores.c"
}


static gboolean ___lambda3__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda3_ (self);
#line 84 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	return result;
#line 456 "link-personas-diff-stores.c"
}


void link_personas_diff_stores_tests_test_linking_via_local_ids_diff_stores (LinkPersonasDiffStoresTests* self) {
	GMainLoop* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	GeeHashSet* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	guint _tmp6_ = 0U;
	guint timer_id;
	GMainLoop* _tmp7_;
	gboolean _tmp8_;
#line 71 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_if_fail (self != NULL);
#line 73 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 73 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 73 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_main_loop = _tmp0_;
#line 74 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = g_strdup ("persona #1");
#line 74 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_fullname_1);
#line 74 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_persona_fullname_1 = _tmp1_;
#line 75 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp2_ = g_strdup ("persona #2");
#line 75 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_fullname_2);
#line 75 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_persona_fullname_2 = _tmp2_;
#line 76 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp3_ = gee_hash_set_new (FOLKS_TYPE_PERSONA, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL);
#line 76 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (self->priv->_personas);
#line 76 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_personas = _tmp3_;
#line 77 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_linking_fired = FALSE;
#line 78 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp4_ = g_strdup ("");
#line 78 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_iid_1);
#line 78 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_persona_iid_1 = _tmp4_;
#line 79 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp5_ = g_strdup ("");
#line 79 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_iid_2);
#line 79 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_persona_iid_2 = _tmp5_;
#line 80 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_linked_individual_found = FALSE;
#line 82 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_test_linking_personas_async (self, NULL, NULL);
#line 84 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp6_ = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 8, ___lambda3__gsource_func, g_object_ref (self), g_object_unref);
#line 84 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	timer_id = _tmp6_;
#line 90 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp7_ = self->priv->_main_loop;
#line 90 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_main_loop_run (_tmp7_);
#line 92 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp8_ = self->priv->_linked_individual_found;
#line 92 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_assert (_tmp8_ == TRUE);
#line 94 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_source_remove (timer_id);
#line 95 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 95 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_aggregator = NULL;
#line 96 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 96 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_main_loop = NULL;
#line 537 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_test_linking_personas_async_data_free (gpointer _data) {
	LinkPersonasDiffStoresTestsTestLinkingPersonasAsyncData* _data_;
	_data_ = _data;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_slice_free (LinkPersonasDiffStoresTestsTestLinkingPersonasAsyncData, _data_);
#line 548 "link-personas-diff-stores.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	return self ? g_object_ref (self) : NULL;
#line 555 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_test_linking_personas_async (LinkPersonasDiffStoresTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	LinkPersonasDiffStoresTestsTestLinkingPersonasAsyncData* _data_;
	LinkPersonasDiffStoresTests* _tmp0_;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = g_slice_new0 (LinkPersonasDiffStoresTestsTestLinkingPersonasAsyncData);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _link_personas_diff_stores_tests_test_linking_personas_async);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _link_personas_diff_stores_tests_test_linking_personas_async_data_free);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->self = _tmp0_;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_test_linking_personas_async_co (_data_);
#line 574 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_test_linking_personas_finish (LinkPersonasDiffStoresTests* self, GAsyncResult* _res_) {
	LinkPersonasDiffStoresTestsTestLinkingPersonasAsyncData* _data_;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 582 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_test_linking_personas_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	LinkPersonasDiffStoresTestsTestLinkingPersonasAsyncData* _data_;
#line 102 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = _user_data_;
#line 102 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_source_object_ = source_object;
#line 102 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_res_ = _res_;
#line 102 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_test_linking_personas_async_co (_data_);
#line 596 "link-personas-diff-stores.c"
}


static void __link_personas_diff_stores_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 104 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_individuals_changed_cb (self, changes);
#line 603 "link-personas-diff-stores.c"
}


static gboolean _link_personas_diff_stores_tests_test_linking_personas_async_co (LinkPersonasDiffStoresTestsTestLinkingPersonasAsyncData* _data_) {
#line 99 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	switch (_data_->_state_) {
#line 99 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		case 0:
#line 612 "link-personas-diff-stores.c"
		goto _state_0;
#line 99 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		case 1:
#line 616 "link-personas-diff-stores.c"
		goto _state_1;
#line 99 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		case 2:
#line 620 "link-personas-diff-stores.c"
		goto _state_2;
#line 99 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		case 3:
#line 624 "link-personas-diff-stores.c"
		goto _state_3;
		default:
#line 99 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		g_assert_not_reached ();
#line 629 "link-personas-diff-stores.c"
	}
	_state_0:
#line 101 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp0_ = NULL;
#line 101 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 101 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->store = _data_->_tmp0_;
#line 102 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_state_ = 1;
#line 102 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	folks_backend_store_prepare (_data_->store, _link_personas_diff_stores_tests_test_linking_personas_async_ready, _data_);
#line 102 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	return FALSE;
#line 644 "link-personas-diff-stores.c"
	_state_1:
#line 102 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 103 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 103 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 103 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 104 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 104 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_signal_connect_object (_data_->_tmp2_, "individuals-changed-detailed", (GCallback) __link_personas_diff_stores_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed, _data_->self, 0);
#line 658 "link-personas-diff-stores.c"
	{
#line 108 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 108 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_state_ = 2;
#line 108 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		folks_individual_aggregator_prepare (_data_->_tmp3_, _link_personas_diff_stores_tests_test_linking_personas_async_ready, _data_);
#line 108 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		return FALSE;
#line 668 "link-personas-diff-stores.c"
		_state_2:
#line 108 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 108 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		if (_data_->_inner_error_ != NULL) {
#line 674 "link-personas-diff-stores.c"
			goto __catch0_g_error;
		}
#line 110 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp4_ = _data_->self->priv->_eds_backend;
#line 110 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp5_ = eds_test_backend_get_address_book_uid (_data_->_tmp4_);
#line 110 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp6_ = _data_->_tmp5_;
#line 110 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp7_ = NULL;
#line 110 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp7_ = _link_personas_diff_stores_tests_get_store (_data_->self, _data_->store, _data_->_tmp6_);
#line 110 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->pstore = _data_->_tmp7_;
#line 112 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp8_ = _data_->pstore;
#line 112 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		g_assert (_data_->_tmp8_ != NULL);
#line 114 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp9_ = _data_->self->priv->_eds_backend_other;
#line 114 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp10_ = eds_test_backend_get_address_book_uid (_data_->_tmp9_);
#line 114 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp11_ = _data_->_tmp10_;
#line 114 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp12_ = NULL;
#line 114 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp12_ = _link_personas_diff_stores_tests_get_store (_data_->self, _data_->store, _data_->_tmp11_);
#line 114 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->pstore2 = _data_->_tmp12_;
#line 116 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp13_ = _data_->pstore2;
#line 116 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		g_assert (_data_->_tmp13_ != NULL);
#line 118 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp14_ = _data_->pstore;
#line 118 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp15_ = _data_->pstore2;
#line 118 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_state_ = 3;
#line 118 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_link_personas_diff_stores_tests_add_personas (_data_->self, _data_->_tmp14_, _data_->_tmp15_, _link_personas_diff_stores_tests_test_linking_personas_async_ready, _data_);
#line 118 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		return FALSE;
#line 719 "link-personas-diff-stores.c"
		_state_3:
#line 118 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_link_personas_diff_stores_tests_add_personas_finish (_data_->self, _data_->_res_);
#line 106 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_data_->pstore2);
#line 106 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_data_->pstore);
#line 727 "link-personas-diff-stores.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 106 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->e = _data_->_inner_error_;
#line 106 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_inner_error_ = NULL;
#line 122 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp16_ = _data_->e;
#line 122 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp17_ = _data_->_tmp16_->message;
#line 122 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		g_warning ("link-personas-diff-stores.vala:122: Error when calling prepare: %s\n", _data_->_tmp17_);
#line 106 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_g_error_free0 (_data_->e);
#line 744 "link-personas-diff-stores.c"
	}
	__finally0:
#line 106 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_inner_error_ != NULL) {
#line 106 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_data_->store);
#line 106 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.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 106 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		g_clear_error (&_data_->_inner_error_);
#line 106 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		return FALSE;
#line 757 "link-personas-diff-stores.c"
	}
#line 99 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->store);
#line 99 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_state_ == 0) {
#line 99 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 765 "link-personas-diff-stores.c"
	} else {
#line 99 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 769 "link-personas-diff-stores.c"
	}
#line 99 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_object_unref (_data_->_async_result);
#line 99 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	return FALSE;
#line 775 "link-personas-diff-stores.c"
}


static FolksPersonaStore* _link_personas_diff_stores_tests_get_store (LinkPersonasDiffStoresTests* self, FolksBackendStore* store, const gchar* store_id) {
	FolksPersonaStore* result = NULL;
	FolksPersonaStore* pstore;
#line 126 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 126 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_val_if_fail (store != NULL, NULL);
#line 126 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_val_if_fail (store_id != NULL, NULL);
#line 128 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	pstore = NULL;
#line 790 "link-personas-diff-stores.c"
	{
		FolksBackendStore* _tmp0_;
		GeeMap* _tmp1_;
		GeeMap* _tmp2_;
		GeeCollection* _tmp3_;
		GeeCollection* _tmp4_;
		GeeCollection* _tmp5_;
		GeeIterator* _tmp6_ = NULL;
		GeeIterator* _tmp7_;
		GeeIterator* _backend_it;
#line 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp0_ = store;
#line 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp1_ = folks_backend_store_get_enabled_backends (_tmp0_);
#line 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp2_ = _tmp1_;
#line 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp3_ = gee_map_get_values (_tmp2_);
#line 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp4_ = _tmp3_;
#line 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp5_ = _tmp4_;
#line 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp6_ = gee_iterable_iterator ((GeeIterable*) _tmp5_);
#line 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp7_ = _tmp6_;
#line 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_tmp5_);
#line 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_backend_it = _tmp7_;
#line 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		while (TRUE) {
#line 823 "link-personas-diff-stores.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 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp8_ = _backend_it;
#line 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp9_ = gee_iterator_next (_tmp8_);
#line 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			if (!_tmp9_) {
#line 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
				break;
#line 843 "link-personas-diff-stores.c"
			}
#line 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp10_ = _backend_it;
#line 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp11_ = gee_iterator_get (_tmp10_);
#line 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			backend = (FolksBackend*) _tmp11_;
#line 131 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp12_ = backend;
#line 131 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp13_ = folks_backend_get_persona_stores (_tmp12_);
#line 131 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp14_ = _tmp13_;
#line 131 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp15_ = store_id;
#line 131 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp16_ = gee_map_get (_tmp14_, _tmp15_);
#line 131 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_g_object_unref0 (pstore);
#line 131 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			pstore = (FolksPersonaStore*) _tmp16_;
#line 132 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp17_ = pstore;
#line 132 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			if (_tmp17_ != NULL) {
#line 133 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
				_g_object_unref0 (backend);
#line 133 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
				break;
#line 873 "link-personas-diff-stores.c"
			}
#line 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_g_object_unref0 (backend);
#line 877 "link-personas-diff-stores.c"
		}
#line 129 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_backend_it);
#line 881 "link-personas-diff-stores.c"
	}
#line 135 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	result = pstore;
#line 135 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	return result;
#line 887 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_add_personas_data_free (gpointer _data) {
	LinkPersonasDiffStoresTestsAddPersonasData* _data_;
	_data_ = _data;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->pstore1);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->pstore2);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_slice_free (LinkPersonasDiffStoresTestsAddPersonasData, _data_);
#line 902 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_add_personas (LinkPersonasDiffStoresTests* self, FolksPersonaStore* pstore1, FolksPersonaStore* pstore2, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	LinkPersonasDiffStoresTestsAddPersonasData* _data_;
	LinkPersonasDiffStoresTests* _tmp0_;
	FolksPersonaStore* _tmp1_;
	FolksPersonaStore* _tmp2_;
	FolksPersonaStore* _tmp3_;
	FolksPersonaStore* _tmp4_;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = g_slice_new0 (LinkPersonasDiffStoresTestsAddPersonasData);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _link_personas_diff_stores_tests_add_personas);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _link_personas_diff_stores_tests_add_personas_data_free);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->self = _tmp0_;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = pstore1;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->pstore1 = _tmp2_;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp3_ = pstore2;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->pstore2 = _tmp4_;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_add_personas_co (_data_);
#line 937 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_add_personas_finish (LinkPersonasDiffStoresTests* self, GAsyncResult* _res_) {
	LinkPersonasDiffStoresTestsAddPersonasData* _data_;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 945 "link-personas-diff-stores.c"
}


static void _g_free0_ (gpointer var) {
#line 151 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	var = (g_free (var), NULL);
#line 952 "link-personas-diff-stores.c"
}


static void _vala_GValue_free (GValue* self) {
#line 151 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_value_unset (self);
#line 151 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_free (self);
#line 961 "link-personas-diff-stores.c"
}


static void __vala_GValue_free0_ (gpointer var) {
#line 151 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	(var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL));
#line 968 "link-personas-diff-stores.c"
}


static GValue* _g_value_dup (GValue* self) {
#line 153 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	return g_boxed_copy (G_TYPE_VALUE, self);
#line 975 "link-personas-diff-stores.c"
}


static gpointer __g_value_dup0 (gpointer self) {
#line 153 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	return self ? _g_value_dup (self) : NULL;
#line 982 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	LinkPersonasDiffStoresTestsAddPersonasData* _data_;
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = _user_data_;
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_source_object_ = source_object;
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_res_ = _res_;
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_add_personas_co (_data_);
#line 996 "link-personas-diff-stores.c"
}


static gboolean _link_personas_diff_stores_tests_add_personas_co (LinkPersonasDiffStoresTestsAddPersonasData* _data_) {
#line 149 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	switch (_data_->_state_) {
#line 149 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		case 0:
#line 1005 "link-personas-diff-stores.c"
		goto _state_0;
#line 149 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		case 1:
#line 1009 "link-personas-diff-stores.c"
		goto _state_1;
#line 149 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		case 2:
#line 1013 "link-personas-diff-stores.c"
		goto _state_2;
		default:
#line 149 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		g_assert_not_reached ();
#line 1018 "link-personas-diff-stores.c"
	}
	_state_0:
#line 151 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp0_ = g_str_hash;
#line 151 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp1_ = g_str_equal;
#line 151 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp2_ = g_hash_table_new_full (_data_->_tmp0_, _data_->_tmp1_, _g_free0_, __vala_GValue_free0_);
#line 151 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->details1 = _data_->_tmp2_;
#line 153 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	memset (&_data_->_tmp3_, 0, sizeof (GValue));
#line 153 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_value_init (&_data_->_tmp3_, G_TYPE_STRING);
#line 153 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 153 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp5_ = __g_value_dup0 (&_data_->_tmp4_);
#line 153 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp6_ = _data_->_tmp5_;
#line 153 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	G_IS_VALUE (&_data_->_tmp4_) ? (g_value_unset (&_data_->_tmp4_), NULL) : NULL;
#line 153 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->v1 = _data_->_tmp6_;
#line 154 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp7_ = _data_->v1;
#line 154 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp8_ = _data_->self->priv->_persona_fullname_1;
#line 154 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_value_set_string (_data_->_tmp7_, _data_->_tmp8_);
#line 155 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp9_ = _data_->details1;
#line 155 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp10_ = g_strdup ("full-name");
#line 155 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp11_ = _data_->v1;
#line 155 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->v1 = NULL;
#line 155 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_hash_table_insert (_data_->_tmp9_, _data_->_tmp10_, _data_->_tmp11_);
#line 157 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp12_ = g_str_hash;
#line 157 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp13_ = g_str_equal;
#line 157 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp14_ = g_hash_table_new_full (_data_->_tmp12_, _data_->_tmp13_, _g_free0_, __vala_GValue_free0_);
#line 157 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->details2 = _data_->_tmp14_;
#line 159 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	memset (&_data_->_tmp15_, 0, sizeof (GValue));
#line 159 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_value_init (&_data_->_tmp15_, G_TYPE_STRING);
#line 159 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp16_ = _data_->_tmp15_;
#line 159 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp17_ = __g_value_dup0 (&_data_->_tmp16_);
#line 159 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp18_ = _data_->_tmp17_;
#line 159 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	G_IS_VALUE (&_data_->_tmp16_) ? (g_value_unset (&_data_->_tmp16_), NULL) : NULL;
#line 159 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->v2 = _data_->_tmp18_;
#line 160 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp19_ = _data_->v2;
#line 160 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp20_ = _data_->self->priv->_persona_fullname_2;
#line 160 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_value_set_string (_data_->_tmp19_, _data_->_tmp20_);
#line 161 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp21_ = _data_->details2;
#line 161 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp22_ = g_strdup ("full-name");
#line 161 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp23_ = _data_->v2;
#line 161 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->v2 = NULL;
#line 161 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_hash_table_insert (_data_->_tmp21_, _data_->_tmp22_, _data_->_tmp23_);
#line 1097 "link-personas-diff-stores.c"
	{
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp24_ = _data_->self->priv->_aggregator;
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp25_ = _data_->pstore1;
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp26_ = _data_->details1;
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_state_ = 1;
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp24_, NULL, _data_->_tmp25_, _data_->_tmp26_, _link_personas_diff_stores_tests_add_personas_ready, _data_);
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		return FALSE;
#line 1111 "link-personas-diff-stores.c"
		_state_1:
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp27_ = NULL;
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp27_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp24_, _data_->_res_, &_data_->_inner_error_);
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp28_ = _data_->_tmp27_;
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_data_->_tmp28_);
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		if (_data_->_inner_error_ != NULL) {
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1125 "link-personas-diff-stores.c"
				goto __catch1_folks_individual_aggregator_error;
			}
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			__vala_GValue_free0 (_data_->v2);
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			__vala_GValue_free0 (_data_->v1);
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.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 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			g_clear_error (&_data_->_inner_error_);
#line 165 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			return FALSE;
#line 1142 "link-personas-diff-stores.c"
		}
#line 168 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp29_ = _data_->self->priv->_aggregator;
#line 168 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp30_ = _data_->pstore2;
#line 168 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp31_ = _data_->details2;
#line 168 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_state_ = 2;
#line 168 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp29_, NULL, _data_->_tmp30_, _data_->_tmp31_, _link_personas_diff_stores_tests_add_personas_ready, _data_);
#line 168 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		return FALSE;
#line 1156 "link-personas-diff-stores.c"
		_state_2:
#line 168 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp32_ = NULL;
#line 168 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp32_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp29_, _data_->_res_, &_data_->_inner_error_);
#line 168 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp33_ = _data_->_tmp32_;
#line 168 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_data_->_tmp33_);
#line 168 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		if (_data_->_inner_error_ != NULL) {
#line 168 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1170 "link-personas-diff-stores.c"
				goto __catch1_folks_individual_aggregator_error;
			}
#line 168 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			__vala_GValue_free0 (_data_->v2);
#line 168 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 168 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			__vala_GValue_free0 (_data_->v1);
#line 168 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 168 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.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 168 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			g_clear_error (&_data_->_inner_error_);
#line 168 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			return FALSE;
#line 1187 "link-personas-diff-stores.c"
		}
	}
	goto __finally1;
	__catch1_folks_individual_aggregator_error:
	{
#line 163 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->e = _data_->_inner_error_;
#line 163 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_inner_error_ = NULL;
#line 173 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp34_ = _data_->e;
#line 173 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp35_ = _data_->_tmp34_->message;
#line 173 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		g_warning ("link-personas-diff-stores.vala:173: [AddPersonaError] add_persona_from" \
"_details: %s\n", _data_->_tmp35_);
#line 163 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_g_error_free0 (_data_->e);
#line 1205 "link-personas-diff-stores.c"
	}
	__finally1:
#line 163 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_inner_error_ != NULL) {
#line 163 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		__vala_GValue_free0 (_data_->v2);
#line 163 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_g_hash_table_unref0 (_data_->details2);
#line 163 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		__vala_GValue_free0 (_data_->v1);
#line 163 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_g_hash_table_unref0 (_data_->details1);
#line 163 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.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 163 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		g_clear_error (&_data_->_inner_error_);
#line 163 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		return FALSE;
#line 1224 "link-personas-diff-stores.c"
	}
#line 149 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	__vala_GValue_free0 (_data_->v2);
#line 149 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_hash_table_unref0 (_data_->details2);
#line 149 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	__vala_GValue_free0 (_data_->v1);
#line 149 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_hash_table_unref0 (_data_->details1);
#line 149 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_state_ == 0) {
#line 149 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1238 "link-personas-diff-stores.c"
	} else {
#line 149 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1242 "link-personas-diff-stores.c"
	}
#line 149 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_object_unref (_data_->_async_result);
#line 149 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	return FALSE;
#line 1248 "link-personas-diff-stores.c"
}


static void __lambda2_ (LinkPersonasDiffStoresTests* self, GObject* object, GAsyncResult* _result_) {
	GAsyncResult* _tmp0_;
#line 181 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_if_fail (_result_ != NULL);
#line 183 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = _result_;
#line 183 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_individuals_changed_finish (self, _tmp0_);
#line 1260 "link-personas-diff-stores.c"
}


static void ___lambda2__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 181 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	__lambda2_ (self, source_object, res);
#line 181 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_object_unref (self);
#line 1269 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_individuals_changed_cb (LinkPersonasDiffStoresTests* self, GeeMultiMap* changes) {
	GeeMultiMap* _tmp0_;
#line 178 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_if_fail (self != NULL);
#line 178 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_if_fail (changes != NULL);
#line 181 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = changes;
#line 181 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_individuals_changed_async (self, _tmp0_, ___lambda2__gasync_ready_callback, g_object_ref (self));
#line 1283 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_individuals_changed_async_data_free (gpointer _data) {
	LinkPersonasDiffStoresTestsIndividualsChangedAsyncData* _data_;
	_data_ = _data;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->changes);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_slice_free (LinkPersonasDiffStoresTestsIndividualsChangedAsyncData, _data_);
#line 1296 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_individuals_changed_async (LinkPersonasDiffStoresTests* self, GeeMultiMap* changes, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	LinkPersonasDiffStoresTestsIndividualsChangedAsyncData* _data_;
	LinkPersonasDiffStoresTests* _tmp0_;
	GeeMultiMap* _tmp1_;
	GeeMultiMap* _tmp2_;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = g_slice_new0 (LinkPersonasDiffStoresTestsIndividualsChangedAsyncData);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _link_personas_diff_stores_tests_individuals_changed_async);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _link_personas_diff_stores_tests_individuals_changed_async_data_free);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->self = _tmp0_;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = changes;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->changes = _tmp2_;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_individuals_changed_async_co (_data_);
#line 1323 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_individuals_changed_finish (LinkPersonasDiffStoresTests* self, GAsyncResult* _res_) {
	LinkPersonasDiffStoresTestsIndividualsChangedAsyncData* _data_;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1331 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_individuals_changed_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	LinkPersonasDiffStoresTestsIndividualsChangedAsyncData* _data_;
#line 199 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = _user_data_;
#line 199 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_source_object_ = source_object;
#line 199 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_res_ = _res_;
#line 199 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_individuals_changed_async_co (_data_);
#line 1345 "link-personas-diff-stores.c"
}


static gboolean _link_personas_diff_stores_tests_individuals_changed_async_co (LinkPersonasDiffStoresTestsIndividualsChangedAsyncData* _data_) {
#line 187 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	switch (_data_->_state_) {
#line 187 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		case 0:
#line 1354 "link-personas-diff-stores.c"
		goto _state_0;
#line 187 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		case 1:
#line 1358 "link-personas-diff-stores.c"
		goto _state_1;
		default:
#line 187 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		g_assert_not_reached ();
#line 1363 "link-personas-diff-stores.c"
	}
	_state_0:
#line 190 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp0_ = _data_->changes;
#line 190 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp1_ = NULL;
#line 190 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp1_ = gee_multi_map_get_values (_data_->_tmp0_);
#line 190 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->added = _data_->_tmp1_;
#line 1374 "link-personas-diff-stores.c"
	{
#line 192 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp2_ = _data_->added;
#line 192 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp3_ = NULL;
#line 192 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp3_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp2_);
#line 192 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_i_it = _data_->_tmp3_;
#line 192 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		while (TRUE) {
#line 192 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp4_ = _data_->_i_it;
#line 192 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp5_ = FALSE;
#line 192 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp5_ = gee_iterator_next (_data_->_tmp4_);
#line 192 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			if (!_data_->_tmp5_) {
#line 192 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
				break;
#line 1396 "link-personas-diff-stores.c"
			}
#line 192 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp6_ = _data_->_i_it;
#line 192 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp7_ = NULL;
#line 192 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp7_ = gee_iterator_get (_data_->_tmp6_);
#line 192 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->i = (FolksIndividual*) _data_->_tmp7_;
#line 194 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp8_ = _data_->i;
#line 194 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			if (_data_->_tmp8_ == NULL) {
#line 196 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
				_g_object_unref0 (_data_->i);
#line 196 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
				continue;
#line 1414 "link-personas-diff-stores.c"
			}
#line 199 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp9_ = _data_->i;
#line 199 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_state_ = 1;
#line 199 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_link_personas_diff_stores_tests_check_personas (_data_->self, _data_->_tmp9_, _link_personas_diff_stores_tests_individuals_changed_async_ready, _data_);
#line 199 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			return FALSE;
#line 1424 "link-personas-diff-stores.c"
			_state_1:
#line 199 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_link_personas_diff_stores_tests_check_personas_finish (_data_->self, _data_->_res_);
#line 192 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_g_object_unref0 (_data_->i);
#line 1430 "link-personas-diff-stores.c"
		}
#line 192 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_data_->_i_it);
#line 1434 "link-personas-diff-stores.c"
	}
#line 187 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->added);
#line 187 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_state_ == 0) {
#line 187 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1442 "link-personas-diff-stores.c"
	} else {
#line 187 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1446 "link-personas-diff-stores.c"
	}
#line 187 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_object_unref (_data_->_async_result);
#line 187 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	return FALSE;
#line 1452 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_check_personas_data_free (gpointer _data) {
	LinkPersonasDiffStoresTestsCheckPersonasData* _data_;
	_data_ = _data;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->i);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_slice_free (LinkPersonasDiffStoresTestsCheckPersonasData, _data_);
#line 1465 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_check_personas (LinkPersonasDiffStoresTests* self, FolksIndividual* i, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	LinkPersonasDiffStoresTestsCheckPersonasData* _data_;
	LinkPersonasDiffStoresTests* _tmp0_;
	FolksIndividual* _tmp1_;
	FolksIndividual* _tmp2_;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = g_slice_new0 (LinkPersonasDiffStoresTestsCheckPersonasData);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _link_personas_diff_stores_tests_check_personas);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _link_personas_diff_stores_tests_check_personas_data_free);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->self = _tmp0_;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = i;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->i = _tmp2_;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_check_personas_co (_data_);
#line 1492 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_check_personas_finish (LinkPersonasDiffStoresTests* self, GAsyncResult* _res_) {
	LinkPersonasDiffStoresTestsCheckPersonasData* _data_;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1500 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_check_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	LinkPersonasDiffStoresTestsCheckPersonasData* _data_;
#line 266 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = _user_data_;
#line 266 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_source_object_ = source_object;
#line 266 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_res_ = _res_;
#line 266 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_check_personas_co (_data_);
#line 1514 "link-personas-diff-stores.c"
}


static gboolean _link_personas_diff_stores_tests_check_personas_co (LinkPersonasDiffStoresTestsCheckPersonasData* _data_) {
#line 213 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	switch (_data_->_state_) {
#line 213 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		case 0:
#line 1523 "link-personas-diff-stores.c"
		goto _state_0;
#line 213 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		case 1:
#line 1527 "link-personas-diff-stores.c"
		goto _state_1;
		default:
#line 213 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		g_assert_not_reached ();
#line 1532 "link-personas-diff-stores.c"
	}
	_state_0:
#line 216 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp0_ = _data_->self->priv->_linked_individual_found;
#line 216 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_tmp0_ == TRUE) {
#line 217 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		if (_data_->_state_ == 0) {
#line 217 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1543 "link-personas-diff-stores.c"
		} else {
#line 217 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1547 "link-personas-diff-stores.c"
		}
#line 217 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		g_object_unref (_data_->_async_result);
#line 217 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		return FALSE;
#line 1553 "link-personas-diff-stores.c"
	}
#line 219 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->first_persona = NULL;
#line 1557 "link-personas-diff-stores.c"
	{
#line 220 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp1_ = _data_->i;
#line 220 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp2_ = folks_individual_get_personas (_data_->_tmp1_);
#line 220 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp3_ = _data_->_tmp2_;
#line 220 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp4_ = NULL;
#line 220 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp4_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp3_);
#line 220 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_p_it = _data_->_tmp4_;
#line 220 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		while (TRUE) {
#line 220 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp5_ = _data_->_p_it;
#line 220 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp6_ = FALSE;
#line 220 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp6_ = gee_iterator_next (_data_->_tmp5_);
#line 220 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			if (!_data_->_tmp6_) {
#line 220 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
				break;
#line 1583 "link-personas-diff-stores.c"
			}
#line 220 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp7_ = _data_->_p_it;
#line 220 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp8_ = NULL;
#line 220 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp8_ = gee_iterator_get (_data_->_tmp7_);
#line 220 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->p = (FolksPersona*) _data_->_tmp8_;
#line 222 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp9_ = _data_->p;
#line 222 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp10_ = _g_object_ref0 (_data_->_tmp9_);
#line 222 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_g_object_unref0 (_data_->first_persona);
#line 222 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->first_persona = _data_->_tmp10_;
#line 223 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_g_object_unref0 (_data_->p);
#line 223 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			break;
#line 1605 "link-personas-diff-stores.c"
		}
#line 220 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_data_->_p_it);
#line 1609 "link-personas-diff-stores.c"
	}
#line 226 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp12_ = _data_->i;
#line 226 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp13_ = folks_name_details_get_full_name ((FolksNameDetails*) _data_->_tmp12_);
#line 226 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp14_ = _data_->_tmp13_;
#line 226 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp15_ = _data_->self->priv->_persona_fullname_1;
#line 226 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	if (g_strcmp0 (_data_->_tmp14_, _data_->_tmp15_) == 0) {
#line 227 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp16_ = _data_->self->priv->_persona_iid_1;
#line 227 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp11_ = g_strcmp0 (_data_->_tmp16_, "") == 0;
#line 1625 "link-personas-diff-stores.c"
	} else {
#line 226 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp11_ = FALSE;
#line 1629 "link-personas-diff-stores.c"
	}
#line 226 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp17_ = _data_->_tmp11_;
#line 226 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_tmp17_) {
#line 229 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp18_ = _data_->first_persona;
#line 229 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp19_ = folks_persona_get_iid (_data_->_tmp18_);
#line 229 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp20_ = _data_->_tmp19_;
#line 229 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp21_ = g_strdup (_data_->_tmp20_);
#line 229 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_g_free0 (_data_->self->priv->_persona_iid_1);
#line 229 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->self->priv->_persona_iid_1 = _data_->_tmp21_;
#line 230 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp22_ = _data_->self->priv->_personas;
#line 230 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp23_ = _data_->first_persona;
#line 230 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp22_, _data_->_tmp23_);
#line 1653 "link-personas-diff-stores.c"
	} else {
#line 232 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp25_ = _data_->i;
#line 232 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp26_ = folks_name_details_get_full_name ((FolksNameDetails*) _data_->_tmp25_);
#line 232 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp27_ = _data_->_tmp26_;
#line 232 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp28_ = _data_->self->priv->_persona_fullname_2;
#line 232 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		if (g_strcmp0 (_data_->_tmp27_, _data_->_tmp28_) == 0) {
#line 233 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp29_ = _data_->self->priv->_persona_iid_2;
#line 233 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp24_ = g_strcmp0 (_data_->_tmp29_, "") == 0;
#line 1669 "link-personas-diff-stores.c"
		} else {
#line 232 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp24_ = FALSE;
#line 1673 "link-personas-diff-stores.c"
		}
#line 232 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp30_ = _data_->_tmp24_;
#line 232 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		if (_data_->_tmp30_) {
#line 235 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp31_ = _data_->first_persona;
#line 235 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp32_ = folks_persona_get_iid (_data_->_tmp31_);
#line 235 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp33_ = _data_->_tmp32_;
#line 235 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp34_ = g_strdup (_data_->_tmp33_);
#line 235 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_g_free0 (_data_->self->priv->_persona_iid_2);
#line 235 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->self->priv->_persona_iid_2 = _data_->_tmp34_;
#line 236 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp35_ = _data_->self->priv->_personas;
#line 236 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp36_ = _data_->first_persona;
#line 236 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp35_, _data_->_tmp36_);
#line 1697 "link-personas-diff-stores.c"
		} else {
#line 238 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp37_ = _data_->i;
#line 238 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp38_ = folks_individual_get_personas (_data_->_tmp37_);
#line 238 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp39_ = _data_->_tmp38_;
#line 238 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp40_ = gee_collection_get_size ((GeeCollection*) _data_->_tmp39_);
#line 238 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp41_ = _data_->_tmp40_;
#line 238 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			if (_data_->_tmp41_ > 1) {
#line 240 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
				_data_->first_persona_id = FALSE;
#line 241 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
				_data_->second_persona_id = FALSE;
#line 1715 "link-personas-diff-stores.c"
				{
#line 243 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp42_ = _data_->i;
#line 243 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp43_ = folks_individual_get_personas (_data_->_tmp42_);
#line 243 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp44_ = _data_->_tmp43_;
#line 243 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp45_ = NULL;
#line 243 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp45_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp44_);
#line 243 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_p1_it = _data_->_tmp45_;
#line 243 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
					while (TRUE) {
#line 243 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp46_ = _data_->_p1_it;
#line 243 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp47_ = FALSE;
#line 243 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp47_ = gee_iterator_next (_data_->_tmp46_);
#line 243 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
						if (!_data_->_tmp47_) {
#line 243 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
							break;
#line 1741 "link-personas-diff-stores.c"
						}
#line 243 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp48_ = _data_->_p1_it;
#line 243 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp49_ = NULL;
#line 243 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp49_ = gee_iterator_get (_data_->_tmp48_);
#line 243 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->p1 = (FolksPersona*) _data_->_tmp49_;
#line 245 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp50_ = _data_->p1;
#line 245 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp51_ = folks_persona_get_iid (_data_->_tmp50_);
#line 245 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp52_ = _data_->_tmp51_;
#line 245 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp53_ = _data_->self->priv->_persona_iid_1;
#line 245 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
						if (g_strcmp0 (_data_->_tmp52_, _data_->_tmp53_) == 0) {
#line 246 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
							_data_->first_persona_id = TRUE;
#line 1763 "link-personas-diff-stores.c"
						} else {
#line 247 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
							_data_->_tmp54_ = _data_->p1;
#line 247 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
							_data_->_tmp55_ = folks_persona_get_iid (_data_->_tmp54_);
#line 247 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
							_data_->_tmp56_ = _data_->_tmp55_;
#line 247 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
							_data_->_tmp57_ = _data_->self->priv->_persona_iid_2;
#line 247 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
							if (g_strcmp0 (_data_->_tmp56_, _data_->_tmp57_) == 0) {
#line 248 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
								_data_->second_persona_id = TRUE;
#line 1777 "link-personas-diff-stores.c"
							}
						}
#line 243 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
						_g_object_unref0 (_data_->p1);
#line 1782 "link-personas-diff-stores.c"
					}
#line 243 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
					_g_object_unref0 (_data_->_p1_it);
#line 1786 "link-personas-diff-stores.c"
				}
#line 251 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
				_data_->_tmp59_ = _data_->first_persona_id;
#line 251 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
				if (_data_->_tmp59_) {
#line 251 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp60_ = _data_->second_persona_id;
#line 251 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp58_ = _data_->_tmp60_;
#line 1796 "link-personas-diff-stores.c"
				} else {
#line 251 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp58_ = FALSE;
#line 1800 "link-personas-diff-stores.c"
				}
#line 251 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
				_data_->_tmp61_ = _data_->_tmp58_;
#line 251 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
				if (_data_->_tmp61_) {
#line 253 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->self->priv->_linked_individual_found = TRUE;
#line 254 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp62_ = _data_->self->priv->_main_loop;
#line 254 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
					g_main_loop_quit (_data_->_tmp62_);
#line 1812 "link-personas-diff-stores.c"
				}
			}
		}
	}
#line 260 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp64_ = _data_->self->priv->_personas;
#line 260 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp65_ = gee_collection_get_size ((GeeCollection*) _data_->_tmp64_);
#line 260 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp66_ = _data_->_tmp65_;
#line 260 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_tmp66_ == 2) {
#line 261 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp67_ = _data_->self->priv->_linking_fired;
#line 261 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp63_ = _data_->_tmp67_ == FALSE;
#line 1829 "link-personas-diff-stores.c"
	} else {
#line 260 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp63_ = FALSE;
#line 1833 "link-personas-diff-stores.c"
	}
#line 260 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp68_ = _data_->_tmp63_;
#line 260 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_tmp68_) {
#line 263 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->self->priv->_linking_fired = TRUE;
#line 1841 "link-personas-diff-stores.c"
		{
#line 266 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp69_ = _data_->self->priv->_aggregator;
#line 266 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp70_ = _data_->self->priv->_personas;
#line 266 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_state_ = 1;
#line 266 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			folks_individual_aggregator_link_personas (_data_->_tmp69_, (GeeSet*) _data_->_tmp70_, _link_personas_diff_stores_tests_check_personas_ready, _data_);
#line 266 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			return FALSE;
#line 1853 "link-personas-diff-stores.c"
			_state_1:
#line 266 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			folks_individual_aggregator_link_personas_finish (_data_->_tmp69_, _data_->_res_, &_data_->_inner_error_);
#line 266 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			if (_data_->_inner_error_ != NULL) {
#line 1859 "link-personas-diff-stores.c"
				goto __catch2_g_error;
			}
		}
		goto __finally2;
		__catch2_g_error:
		{
#line 264 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->e = _data_->_inner_error_;
#line 264 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_inner_error_ = NULL;
#line 270 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp71_ = _data_->e;
#line 270 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp72_ = _data_->_tmp71_->message;
#line 270 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			g_warning ("link-personas-diff-stores.vala:270: link_personas: %s\n", _data_->_tmp72_);
#line 264 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_g_error_free0 (_data_->e);
#line 1878 "link-personas-diff-stores.c"
		}
		__finally2:
#line 264 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		if (_data_->_inner_error_ != NULL) {
#line 264 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			_g_object_unref0 (_data_->first_persona);
#line 264 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.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 264 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			g_clear_error (&_data_->_inner_error_);
#line 264 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
			return FALSE;
#line 1891 "link-personas-diff-stores.c"
		}
	}
#line 213 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->first_persona);
#line 213 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_state_ == 0) {
#line 213 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1900 "link-personas-diff-stores.c"
	} else {
#line 213 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1904 "link-personas-diff-stores.c"
	}
#line 213 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_object_unref (_data_->_async_result);
#line 213 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	return FALSE;
#line 1910 "link-personas-diff-stores.c"
}


static void link_personas_diff_stores_tests_class_init (LinkPersonasDiffStoresTestsClass * klass) {
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	link_personas_diff_stores_tests_parent_class = g_type_class_peek_parent (klass);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_type_class_add_private (klass, sizeof (LinkPersonasDiffStoresTestsPrivate));
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = link_personas_diff_stores_tests_real_set_up;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = link_personas_diff_stores_tests_real_tear_down;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	G_OBJECT_CLASS (klass)->finalize = link_personas_diff_stores_tests_finalize;
#line 1925 "link-personas-diff-stores.c"
}


static void link_personas_diff_stores_tests_instance_init (LinkPersonasDiffStoresTests * self) {
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv = LINK_PERSONAS_DIFF_STORES_TESTS_GET_PRIVATE (self);
#line 1932 "link-personas-diff-stores.c"
}


static void link_personas_diff_stores_tests_finalize (GObject* obj) {
	LinkPersonasDiffStoresTests * self;
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	self = LINK_PERSONAS_DIFF_STORES_TESTS (obj);
#line 26 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 27 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 28 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend_other);
#line 29 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 30 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_fullname_1);
#line 31 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_fullname_2);
#line 34 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_iid_1);
#line 35 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_iid_2);
#line 36 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (self->priv->_personas);
#line 24 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	G_OBJECT_CLASS (link_personas_diff_stores_tests_parent_class)->finalize (obj);
#line 1960 "link-personas-diff-stores.c"
}


GType link_personas_diff_stores_tests_get_type (void) {
	static volatile gsize link_personas_diff_stores_tests_type_id__volatile = 0;
	if (g_once_init_enter (&link_personas_diff_stores_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (LinkPersonasDiffStoresTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) link_personas_diff_stores_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LinkPersonasDiffStoresTests), 0, (GInstanceInitFunc) link_personas_diff_stores_tests_instance_init, NULL };
		GType link_personas_diff_stores_tests_type_id;
		link_personas_diff_stores_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "LinkPersonasDiffStoresTests", &g_define_type_info, 0);
		g_once_init_leave (&link_personas_diff_stores_tests_type_id__volatile, link_personas_diff_stores_tests_type_id);
	}
	return link_personas_diff_stores_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	LinkPersonasDiffStoresTests* _tmp1_;
	LinkPersonasDiffStoresTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 278 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_test_init (&args_length1, &args, NULL);
#line 280 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = g_test_get_root ();
#line 280 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	root = _tmp0_;
#line 281 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = link_personas_diff_stores_tests_new ();
#line 281 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp2_ = _tmp1_;
#line 281 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 281 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 281 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_tmp2_);
#line 283 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_test_run ();
#line 285 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	result = 0;
#line 285 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	return result;
#line 2005 "link-personas-diff-stores.c"
}


int main (int argc, char ** argv) {
#line 276 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	g_type_init ();
#line 276 "/home/treitter/collabora/folks/tests/eds/link-personas-diff-stores.vala"
	return _vala_main (argv, argc);
#line 2014 "link-personas-diff-stores.c"
}



