/* link-personas-diff-stores.c generated by valac 0.16.0, 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))
typedef struct _Block1Data Block1Data;
#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 _Block1Data {
	int _ref_count_;
	LinkPersonasDiffStoresTests * self;
	FolksBackendStore* store;
	gpointer _async_data_;
};

struct _LinkPersonasDiffStoresTestsTestLinkingPersonasAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	LinkPersonasDiffStoresTests* self;
	Block1Data* _data1_;
	FolksBackendStore* _tmp0_;
	FolksIndividualAggregator* _tmp1_;
	FolksIndividualAggregator* _tmp2_;
	FolksIndividualAggregator* _tmp3_;
	FolksIndividualAggregator* _tmp4_;
	gboolean _tmp5_;
	gboolean _tmp6_;
	FolksIndividualAggregator* _tmp7_;
	GError* e;
	GError* _tmp8_;
	const gchar* _tmp9_;
	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 __lambda4_ (LinkPersonasDiffStoresTests* self);
static gboolean ___lambda4__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 Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
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 void ___lambda3_ (Block1Data* _data1_, GObject* obj, GParamSpec* pspec);
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 ____lambda3__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	link_personas_diff_stores_tests_test_linking_via_local_ids_diff_stores (self);
#line 331 "link-personas-diff-stores.c"
}


LinkPersonasDiffStoresTests* link_personas_diff_stores_tests_construct (GType object_type) {
	LinkPersonasDiffStoresTests * self = NULL;
#line 40 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self = (LinkPersonasDiffStoresTests*) folks_test_case_construct (object_type, "LinkPersonasDiffStoresTests");
#line 42 "/opt/gnome2/source/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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	return self;
#line 343 "link-personas-diff-stores.c"
}


LinkPersonasDiffStoresTests* link_personas_diff_stores_tests_new (void) {
#line 38 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	return link_personas_diff_stores_tests_construct (TYPE_LINK_PERSONAS_DIFF_STORES_TESTS);
#line 350 "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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self = (LinkPersonasDiffStoresTests*) base;
#line 48 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = eds_test_backend_new ();
#line 48 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 48 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_eds_backend = _tmp0_;
#line 49 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = eds_test_backend_new ();
#line 49 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend_other);
#line 49 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_eds_backend_other = _tmp1_;
#line 50 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp2_ = self->priv->_eds_backend_other;
#line 50 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	eds_test_backend_set_address_book_uri (_tmp2_, "local://other");
#line 52 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp3_ = self->priv->_eds_backend;
#line 52 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	eds_test_backend_set_up (_tmp3_, FALSE);
#line 53 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp4_ = self->priv->_eds_backend_other;
#line 53 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	eds_test_backend_set_up (_tmp4_, FALSE);
#line 56 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp5_ = self->priv->_eds_backend;
#line 56 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp6_ = eds_test_backend_get_address_book_uid (_tmp5_);
#line 56 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp7_ = _tmp6_;
#line 56 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp8_ = g_strdup_printf ("eds:%s", _tmp7_);
#line 56 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	config_val = _tmp8_;
#line 57 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_setenv ("FOLKS_PRIMARY_STORE", config_val, TRUE);
#line 46 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (config_val);
#line 406 "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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self = (LinkPersonasDiffStoresTests*) base;
#line 62 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = self->priv->_eds_backend;
#line 62 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	eds_test_backend_tear_down (_tmp0_);
#line 63 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = self->priv->_eds_backend_other;
#line 63 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	eds_test_backend_tear_down (_tmp1_);
#line 65 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_unsetenv ("FOLKS_PRIMARY_STORE");
#line 67 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 67 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_eds_backend = NULL;
#line 68 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend_other);
#line 68 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_eds_backend_other = NULL;
#line 434 "link-personas-diff-stores.c"
}


static gboolean __lambda4_ (LinkPersonasDiffStoresTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 86 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = self->priv->_main_loop;
#line 86 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_main_loop_quit (_tmp0_);
#line 87 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_assert_not_reached ();
#line 84 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	return result;
#line 449 "link-personas-diff-stores.c"
}


static gboolean ___lambda4__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda4_ (self);
#line 84 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	return result;
#line 458 "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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_if_fail (self != NULL);
#line 73 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 73 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 73 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_main_loop = _tmp0_;
#line 74 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = g_strdup ("persona #1");
#line 74 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_fullname_1);
#line 74 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_persona_fullname_1 = _tmp1_;
#line 75 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp2_ = g_strdup ("persona #2");
#line 75 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_fullname_2);
#line 75 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_persona_fullname_2 = _tmp2_;
#line 76 "/opt/gnome2/source/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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (self->priv->_personas);
#line 76 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_personas = _tmp3_;
#line 77 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_linking_fired = FALSE;
#line 78 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp4_ = g_strdup ("");
#line 78 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_iid_1);
#line 78 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_persona_iid_1 = _tmp4_;
#line 79 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp5_ = g_strdup ("");
#line 79 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_iid_2);
#line 79 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_persona_iid_2 = _tmp5_;
#line 80 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_linked_individual_found = FALSE;
#line 82 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_test_linking_personas_async (self, NULL, NULL);
#line 84 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp6_ = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 8, ___lambda4__gsource_func, g_object_ref (self), g_object_unref);
#line 84 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	timer_id = _tmp6_;
#line 90 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp7_ = self->priv->_main_loop;
#line 90 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_main_loop_run (_tmp7_);
#line 92 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp8_ = self->priv->_linked_individual_found;
#line 92 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_assert (_tmp8_ == TRUE);
#line 94 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_source_remove (timer_id);
#line 95 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 95 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_aggregator = NULL;
#line 96 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 96 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_main_loop = NULL;
#line 539 "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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_slice_free (LinkPersonasDiffStoresTestsTestLinkingPersonasAsyncData, _data_);
#line 550 "link-personas-diff-stores.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	return self ? g_object_ref (self) : NULL;
#line 557 "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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = g_slice_new0 (LinkPersonasDiffStoresTestsTestLinkingPersonasAsyncData);
#line 24 "/opt/gnome2/source/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 "/opt/gnome2/source/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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->self = _tmp0_;
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_test_linking_personas_async_co (_data_);
#line 576 "link-personas-diff-stores.c"
}


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


static Block1Data* block1_data_ref (Block1Data* _data1_) {
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_atomic_int_inc (&_data1_->_ref_count_);
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	return _data1_;
#line 593 "link-personas-diff-stores.c"
}


static void block1_data_unref (void * _userdata_) {
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 602 "link-personas-diff-stores.c"
		LinkPersonasDiffStoresTests * self;
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		self = _data1_->self;
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_data1_->store);
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (self);
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_slice_free (Block1Data, _data1_);
#line 612 "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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = _user_data_;
#line 102 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_source_object_ = source_object;
#line 102 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_res_ = _res_;
#line 102 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_test_linking_personas_async_co (_data_);
#line 627 "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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_individuals_changed_cb (self, changes);
#line 634 "link-personas-diff-stores.c"
}


static void ___lambda3_ (Block1Data* _data1_, GObject* obj, GParamSpec* pspec) {
	LinkPersonasDiffStoresTests * self;
	EdsTestBackend* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	FolksPersonaStore* _tmp3_ = NULL;
	FolksPersonaStore* pstore;
	gboolean _tmp4_;
	gboolean _tmp5_;
	EdsTestBackend* _tmp6_;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	FolksPersonaStore* _tmp9_ = NULL;
	FolksPersonaStore* pstore2;
	gboolean _tmp10_;
	gboolean _tmp11_;
#line 113 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self = _data1_->self;
#line 113 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_if_fail (obj != NULL);
#line 113 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_if_fail (pspec != NULL);
#line 115 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = self->priv->_eds_backend;
#line 115 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = eds_test_backend_get_address_book_uid (_tmp0_);
#line 115 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp2_ = _tmp1_;
#line 115 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp3_ = _link_personas_diff_stores_tests_get_store (self, _data1_->store, _tmp2_);
#line 115 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	pstore = _tmp3_;
#line 117 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_assert (pstore != NULL);
#line 118 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp4_ = folks_persona_store_get_is_prepared (pstore);
#line 118 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp5_ = _tmp4_;
#line 118 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_assert (_tmp5_ == TRUE);
#line 120 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp6_ = self->priv->_eds_backend_other;
#line 120 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp7_ = eds_test_backend_get_address_book_uid (_tmp6_);
#line 120 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp8_ = _tmp7_;
#line 120 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp9_ = _link_personas_diff_stores_tests_get_store (self, _data1_->store, _tmp8_);
#line 120 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	pstore2 = _tmp9_;
#line 122 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_assert (pstore2 != NULL);
#line 123 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp10_ = folks_persona_store_get_is_prepared (pstore2);
#line 123 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp11_ = _tmp10_;
#line 123 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_assert (_tmp11_ == TRUE);
#line 125 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_add_personas (self, pstore, pstore2, NULL, NULL);
#line 113 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (pstore2);
#line 113 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (pstore);
#line 702 "link-personas-diff-stores.c"
}


static void ____lambda3__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 113 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	___lambda3_ (self, _sender, pspec);
#line 709 "link-personas-diff-stores.c"
}


static gboolean _link_personas_diff_stores_tests_test_linking_personas_async_co (LinkPersonasDiffStoresTestsTestLinkingPersonasAsyncData* _data_) {
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	switch (_data_->_state_) {
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		case 0:
#line 718 "link-personas-diff-stores.c"
		goto _state_0;
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		case 1:
#line 722 "link-personas-diff-stores.c"
		goto _state_1;
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		case 2:
#line 726 "link-personas-diff-stores.c"
		goto _state_2;
		default:
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_assert_not_reached ();
#line 731 "link-personas-diff-stores.c"
	}
	_state_0:
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_data1_ = g_slice_new0 (Block1Data);
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_data1_->_ref_count_ = 1;
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_data1_->self = g_object_ref (_data_->self);
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_data1_->_async_data_ = _data_;
#line 101 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp0_ = NULL;
#line 101 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 101 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_data1_->store = _data_->_tmp0_;
#line 102 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_state_ = 1;
#line 102 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	folks_backend_store_prepare (_data_->_data1_->store, _link_personas_diff_stores_tests_test_linking_personas_async_ready, _data_);
#line 102 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	return FALSE;
#line 754 "link-personas-diff-stores.c"
	_state_1:
#line 102 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	folks_backend_store_prepare_finish (_data_->_data1_->store, _data_->_res_);
#line 103 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 103 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 103 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 104 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 104 "/opt/gnome2/source/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 768 "link-personas-diff-stores.c"
	{
#line 108 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 108 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_state_ = 2;
#line 108 "/opt/gnome2/source/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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		return FALSE;
#line 778 "link-personas-diff-stores.c"
		_state_2:
#line 108 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 108 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		if (_data_->_inner_error_ != NULL) {
#line 784 "link-personas-diff-stores.c"
			goto __catch0_g_error;
		}
#line 109 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp4_ = _data_->self->priv->_aggregator;
#line 109 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp5_ = folks_individual_aggregator_get_is_prepared (_data_->_tmp4_);
#line 109 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp6_ = _data_->_tmp5_;
#line 109 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_assert (_data_->_tmp6_);
#line 113 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp7_ = _data_->self->priv->_aggregator;
#line 113 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_signal_connect_data ((GObject*) _data_->_tmp7_, "notify::is-quiescent", (GCallback) ____lambda3__g_object_notify, block1_data_ref (_data_->_data1_), (GClosureNotify) block1_data_unref, 0);
#line 799 "link-personas-diff-stores.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 106 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->e = _data_->_inner_error_;
#line 106 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_inner_error_ = NULL;
#line 130 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp8_ = _data_->e;
#line 130 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp9_ = _data_->_tmp8_->message;
#line 130 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_warning ("link-personas-diff-stores.vala:130: Error when calling prepare: %s\n", _data_->_tmp9_);
#line 106 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_g_error_free0 (_data_->e);
#line 816 "link-personas-diff-stores.c"
	}
	__finally0:
#line 106 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_inner_error_ != NULL) {
#line 106 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		block1_data_unref (_data_->_data1_);
#line 106 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_data1_ = NULL;
#line 106 "/opt/gnome2/source/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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_clear_error (&_data_->_inner_error_);
#line 106 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		return FALSE;
#line 831 "link-personas-diff-stores.c"
	}
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	block1_data_unref (_data_->_data1_);
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_data1_ = NULL;
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_state_ == 0) {
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 841 "link-personas-diff-stores.c"
	} else {
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 845 "link-personas-diff-stores.c"
	}
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_object_unref (_data_->_async_result);
#line 99 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	return FALSE;
#line 851 "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 134 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 134 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_val_if_fail (store != NULL, NULL);
#line 134 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_val_if_fail (store_id != NULL, NULL);
#line 136 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	pstore = NULL;
#line 866 "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 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp0_ = store;
#line 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp1_ = folks_backend_store_get_enabled_backends (_tmp0_);
#line 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp2_ = _tmp1_;
#line 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp3_ = gee_map_get_values (_tmp2_);
#line 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp4_ = _tmp3_;
#line 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp5_ = _tmp4_;
#line 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp6_ = gee_iterable_iterator ((GeeIterable*) _tmp5_);
#line 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp7_ = _tmp6_;
#line 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_tmp5_);
#line 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_backend_it = _tmp7_;
#line 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		while (TRUE) {
#line 899 "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 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp8_ = _backend_it;
#line 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp9_ = gee_iterator_next (_tmp8_);
#line 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			if (!_tmp9_) {
#line 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
				break;
#line 919 "link-personas-diff-stores.c"
			}
#line 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp10_ = _backend_it;
#line 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp11_ = gee_iterator_get (_tmp10_);
#line 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			backend = (FolksBackend*) _tmp11_;
#line 139 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp12_ = backend;
#line 139 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp13_ = folks_backend_get_persona_stores (_tmp12_);
#line 139 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp14_ = _tmp13_;
#line 139 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp15_ = store_id;
#line 139 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp16_ = gee_map_get (_tmp14_, _tmp15_);
#line 139 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_g_object_unref0 (pstore);
#line 139 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			pstore = (FolksPersonaStore*) _tmp16_;
#line 140 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp17_ = pstore;
#line 140 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			if (_tmp17_ != NULL) {
#line 141 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
				_g_object_unref0 (backend);
#line 141 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
				break;
#line 949 "link-personas-diff-stores.c"
			}
#line 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_g_object_unref0 (backend);
#line 953 "link-personas-diff-stores.c"
		}
#line 137 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_backend_it);
#line 957 "link-personas-diff-stores.c"
	}
#line 143 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	result = pstore;
#line 143 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	return result;
#line 963 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_add_personas_data_free (gpointer _data) {
	LinkPersonasDiffStoresTestsAddPersonasData* _data_;
	_data_ = _data;
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->pstore1);
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->pstore2);
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_slice_free (LinkPersonasDiffStoresTestsAddPersonasData, _data_);
#line 978 "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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = g_slice_new0 (LinkPersonasDiffStoresTestsAddPersonasData);
#line 24 "/opt/gnome2/source/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 "/opt/gnome2/source/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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->self = _tmp0_;
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = pstore1;
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->pstore1 = _tmp2_;
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp3_ = pstore2;
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->pstore2 = _tmp4_;
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_add_personas_co (_data_);
#line 1013 "link-personas-diff-stores.c"
}


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


static void _g_free0_ (gpointer var) {
#line 159 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	var = (g_free (var), NULL);
#line 1028 "link-personas-diff-stores.c"
}


static void _vala_GValue_free (GValue* self) {
#line 159 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_value_unset (self);
#line 159 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_free (self);
#line 1037 "link-personas-diff-stores.c"
}


static void __vala_GValue_free0_ (gpointer var) {
#line 159 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	(var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL));
#line 1044 "link-personas-diff-stores.c"
}


static GValue* _g_value_dup (GValue* self) {
#line 161 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	return g_boxed_copy (G_TYPE_VALUE, self);
#line 1051 "link-personas-diff-stores.c"
}


static gpointer __g_value_dup0 (gpointer self) {
#line 161 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	return self ? _g_value_dup (self) : NULL;
#line 1058 "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 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = _user_data_;
#line 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_source_object_ = source_object;
#line 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_res_ = _res_;
#line 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_add_personas_co (_data_);
#line 1072 "link-personas-diff-stores.c"
}


static gboolean _link_personas_diff_stores_tests_add_personas_co (LinkPersonasDiffStoresTestsAddPersonasData* _data_) {
#line 157 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	switch (_data_->_state_) {
#line 157 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		case 0:
#line 1081 "link-personas-diff-stores.c"
		goto _state_0;
#line 157 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		case 1:
#line 1085 "link-personas-diff-stores.c"
		goto _state_1;
#line 157 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		case 2:
#line 1089 "link-personas-diff-stores.c"
		goto _state_2;
		default:
#line 157 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_assert_not_reached ();
#line 1094 "link-personas-diff-stores.c"
	}
	_state_0:
#line 159 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp0_ = g_str_hash;
#line 159 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp1_ = g_str_equal;
#line 159 "/opt/gnome2/source/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 159 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->details1 = _data_->_tmp2_;
#line 161 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	memset (&_data_->_tmp3_, 0, sizeof (GValue));
#line 161 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_value_init (&_data_->_tmp3_, G_TYPE_STRING);
#line 161 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 161 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp5_ = __g_value_dup0 (&_data_->_tmp4_);
#line 161 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp6_ = _data_->_tmp5_;
#line 161 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	G_IS_VALUE (&_data_->_tmp4_) ? (g_value_unset (&_data_->_tmp4_), NULL) : NULL;
#line 161 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->v1 = _data_->_tmp6_;
#line 162 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp7_ = _data_->v1;
#line 162 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp8_ = _data_->self->priv->_persona_fullname_1;
#line 162 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_value_set_string (_data_->_tmp7_, _data_->_tmp8_);
#line 163 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp9_ = _data_->details1;
#line 163 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp10_ = g_strdup ("full-name");
#line 163 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp11_ = _data_->v1;
#line 163 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->v1 = NULL;
#line 163 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_hash_table_insert (_data_->_tmp9_, _data_->_tmp10_, _data_->_tmp11_);
#line 165 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp12_ = g_str_hash;
#line 165 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp13_ = g_str_equal;
#line 165 "/opt/gnome2/source/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 165 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->details2 = _data_->_tmp14_;
#line 167 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	memset (&_data_->_tmp15_, 0, sizeof (GValue));
#line 167 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_value_init (&_data_->_tmp15_, G_TYPE_STRING);
#line 167 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp16_ = _data_->_tmp15_;
#line 167 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp17_ = __g_value_dup0 (&_data_->_tmp16_);
#line 167 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp18_ = _data_->_tmp17_;
#line 167 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	G_IS_VALUE (&_data_->_tmp16_) ? (g_value_unset (&_data_->_tmp16_), NULL) : NULL;
#line 167 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->v2 = _data_->_tmp18_;
#line 168 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp19_ = _data_->v2;
#line 168 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp20_ = _data_->self->priv->_persona_fullname_2;
#line 168 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_value_set_string (_data_->_tmp19_, _data_->_tmp20_);
#line 169 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp21_ = _data_->details2;
#line 169 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp22_ = g_strdup ("full-name");
#line 169 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp23_ = _data_->v2;
#line 169 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->v2 = NULL;
#line 169 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_hash_table_insert (_data_->_tmp21_, _data_->_tmp22_, _data_->_tmp23_);
#line 1173 "link-personas-diff-stores.c"
	{
#line 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp24_ = _data_->self->priv->_aggregator;
#line 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp25_ = _data_->pstore1;
#line 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp26_ = _data_->details1;
#line 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_state_ = 1;
#line 173 "/opt/gnome2/source/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 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		return FALSE;
#line 1187 "link-personas-diff-stores.c"
		_state_1:
#line 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp27_ = NULL;
#line 173 "/opt/gnome2/source/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 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp28_ = _data_->_tmp27_;
#line 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_data_->_tmp28_);
#line 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		if (_data_->_inner_error_ != NULL) {
#line 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1201 "link-personas-diff-stores.c"
				goto __catch1_folks_individual_aggregator_error;
			}
#line 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			__vala_GValue_free0 (_data_->v2);
#line 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			__vala_GValue_free0 (_data_->v1);
#line 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 173 "/opt/gnome2/source/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 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			g_clear_error (&_data_->_inner_error_);
#line 173 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			return FALSE;
#line 1218 "link-personas-diff-stores.c"
		}
#line 176 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp29_ = _data_->self->priv->_aggregator;
#line 176 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp30_ = _data_->pstore2;
#line 176 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp31_ = _data_->details2;
#line 176 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_state_ = 2;
#line 176 "/opt/gnome2/source/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 176 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		return FALSE;
#line 1232 "link-personas-diff-stores.c"
		_state_2:
#line 176 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp32_ = NULL;
#line 176 "/opt/gnome2/source/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 176 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp33_ = _data_->_tmp32_;
#line 176 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_data_->_tmp33_);
#line 176 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		if (_data_->_inner_error_ != NULL) {
#line 176 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1246 "link-personas-diff-stores.c"
				goto __catch1_folks_individual_aggregator_error;
			}
#line 176 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			__vala_GValue_free0 (_data_->v2);
#line 176 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 176 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			__vala_GValue_free0 (_data_->v1);
#line 176 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 176 "/opt/gnome2/source/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 176 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			g_clear_error (&_data_->_inner_error_);
#line 176 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			return FALSE;
#line 1263 "link-personas-diff-stores.c"
		}
	}
	goto __finally1;
	__catch1_folks_individual_aggregator_error:
	{
#line 171 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->e = _data_->_inner_error_;
#line 171 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_inner_error_ = NULL;
#line 181 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp34_ = _data_->e;
#line 181 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp35_ = _data_->_tmp34_->message;
#line 181 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_warning ("link-personas-diff-stores.vala:181: [AddPersonaError] add_persona_from" \
"_details: %s\n", _data_->_tmp35_);
#line 171 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_g_error_free0 (_data_->e);
#line 1281 "link-personas-diff-stores.c"
	}
	__finally1:
#line 171 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_inner_error_ != NULL) {
#line 171 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		__vala_GValue_free0 (_data_->v2);
#line 171 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_g_hash_table_unref0 (_data_->details2);
#line 171 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		__vala_GValue_free0 (_data_->v1);
#line 171 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_g_hash_table_unref0 (_data_->details1);
#line 171 "/opt/gnome2/source/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 171 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_clear_error (&_data_->_inner_error_);
#line 171 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		return FALSE;
#line 1300 "link-personas-diff-stores.c"
	}
#line 157 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	__vala_GValue_free0 (_data_->v2);
#line 157 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_hash_table_unref0 (_data_->details2);
#line 157 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	__vala_GValue_free0 (_data_->v1);
#line 157 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_hash_table_unref0 (_data_->details1);
#line 157 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_state_ == 0) {
#line 157 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1314 "link-personas-diff-stores.c"
	} else {
#line 157 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1318 "link-personas-diff-stores.c"
	}
#line 157 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_object_unref (_data_->_async_result);
#line 157 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	return FALSE;
#line 1324 "link-personas-diff-stores.c"
}


static void __lambda2_ (LinkPersonasDiffStoresTests* self, GObject* object, GAsyncResult* _result_) {
	GAsyncResult* _tmp0_;
#line 189 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_if_fail (_result_ != NULL);
#line 191 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = _result_;
#line 191 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_individuals_changed_finish (self, _tmp0_);
#line 1336 "link-personas-diff-stores.c"
}


static void ___lambda2__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 189 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	__lambda2_ (self, source_object, res);
#line 189 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_object_unref (self);
#line 1345 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_individuals_changed_cb (LinkPersonasDiffStoresTests* self, GeeMultiMap* changes) {
	GeeMultiMap* _tmp0_;
#line 186 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_if_fail (self != NULL);
#line 186 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_if_fail (changes != NULL);
#line 189 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = changes;
#line 189 "/opt/gnome2/source/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 1359 "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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->changes);
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_slice_free (LinkPersonasDiffStoresTestsIndividualsChangedAsyncData, _data_);
#line 1372 "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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = g_slice_new0 (LinkPersonasDiffStoresTestsIndividualsChangedAsyncData);
#line 24 "/opt/gnome2/source/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 "/opt/gnome2/source/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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->self = _tmp0_;
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = changes;
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->changes = _tmp2_;
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_individuals_changed_async_co (_data_);
#line 1399 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_individuals_changed_finish (LinkPersonasDiffStoresTests* self, GAsyncResult* _res_) {
	LinkPersonasDiffStoresTestsIndividualsChangedAsyncData* _data_;
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1407 "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 207 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = _user_data_;
#line 207 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_source_object_ = source_object;
#line 207 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_res_ = _res_;
#line 207 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_individuals_changed_async_co (_data_);
#line 1421 "link-personas-diff-stores.c"
}


static gboolean _link_personas_diff_stores_tests_individuals_changed_async_co (LinkPersonasDiffStoresTestsIndividualsChangedAsyncData* _data_) {
#line 195 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	switch (_data_->_state_) {
#line 195 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		case 0:
#line 1430 "link-personas-diff-stores.c"
		goto _state_0;
#line 195 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		case 1:
#line 1434 "link-personas-diff-stores.c"
		goto _state_1;
		default:
#line 195 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_assert_not_reached ();
#line 1439 "link-personas-diff-stores.c"
	}
	_state_0:
#line 198 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp0_ = _data_->changes;
#line 198 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp1_ = NULL;
#line 198 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp1_ = gee_multi_map_get_values (_data_->_tmp0_);
#line 198 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->added = _data_->_tmp1_;
#line 1450 "link-personas-diff-stores.c"
	{
#line 200 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp2_ = _data_->added;
#line 200 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp3_ = NULL;
#line 200 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp3_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp2_);
#line 200 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_i_it = _data_->_tmp3_;
#line 200 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		while (TRUE) {
#line 200 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp4_ = _data_->_i_it;
#line 200 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp5_ = FALSE;
#line 200 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp5_ = gee_iterator_next (_data_->_tmp4_);
#line 200 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			if (!_data_->_tmp5_) {
#line 200 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
				break;
#line 1472 "link-personas-diff-stores.c"
			}
#line 200 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp6_ = _data_->_i_it;
#line 200 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp7_ = NULL;
#line 200 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp7_ = gee_iterator_get (_data_->_tmp6_);
#line 200 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->i = (FolksIndividual*) _data_->_tmp7_;
#line 202 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp8_ = _data_->i;
#line 202 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			if (_data_->_tmp8_ == NULL) {
#line 204 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
				_g_object_unref0 (_data_->i);
#line 204 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
				continue;
#line 1490 "link-personas-diff-stores.c"
			}
#line 207 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp9_ = _data_->i;
#line 207 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_state_ = 1;
#line 207 "/opt/gnome2/source/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 207 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			return FALSE;
#line 1500 "link-personas-diff-stores.c"
			_state_1:
#line 207 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_link_personas_diff_stores_tests_check_personas_finish (_data_->self, _data_->_res_);
#line 200 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_g_object_unref0 (_data_->i);
#line 1506 "link-personas-diff-stores.c"
		}
#line 200 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_data_->_i_it);
#line 1510 "link-personas-diff-stores.c"
	}
#line 195 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->added);
#line 195 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_state_ == 0) {
#line 195 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1518 "link-personas-diff-stores.c"
	} else {
#line 195 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1522 "link-personas-diff-stores.c"
	}
#line 195 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_object_unref (_data_->_async_result);
#line 195 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	return FALSE;
#line 1528 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_check_personas_data_free (gpointer _data) {
	LinkPersonasDiffStoresTestsCheckPersonasData* _data_;
	_data_ = _data;
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->i);
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_slice_free (LinkPersonasDiffStoresTestsCheckPersonasData, _data_);
#line 1541 "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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = g_slice_new0 (LinkPersonasDiffStoresTestsCheckPersonasData);
#line 24 "/opt/gnome2/source/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 "/opt/gnome2/source/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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->self = _tmp0_;
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = i;
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->i = _tmp2_;
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_check_personas_co (_data_);
#line 1568 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_check_personas_finish (LinkPersonasDiffStoresTests* self, GAsyncResult* _res_) {
	LinkPersonasDiffStoresTestsCheckPersonasData* _data_;
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1576 "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 274 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = _user_data_;
#line 274 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_source_object_ = source_object;
#line 274 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_res_ = _res_;
#line 274 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_check_personas_co (_data_);
#line 1590 "link-personas-diff-stores.c"
}


static gboolean _link_personas_diff_stores_tests_check_personas_co (LinkPersonasDiffStoresTestsCheckPersonasData* _data_) {
#line 221 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	switch (_data_->_state_) {
#line 221 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		case 0:
#line 1599 "link-personas-diff-stores.c"
		goto _state_0;
#line 221 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		case 1:
#line 1603 "link-personas-diff-stores.c"
		goto _state_1;
		default:
#line 221 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_assert_not_reached ();
#line 1608 "link-personas-diff-stores.c"
	}
	_state_0:
#line 224 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp0_ = _data_->self->priv->_linked_individual_found;
#line 224 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_tmp0_ == TRUE) {
#line 225 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		if (_data_->_state_ == 0) {
#line 225 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1619 "link-personas-diff-stores.c"
		} else {
#line 225 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1623 "link-personas-diff-stores.c"
		}
#line 225 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_object_unref (_data_->_async_result);
#line 225 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		return FALSE;
#line 1629 "link-personas-diff-stores.c"
	}
#line 227 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->first_persona = NULL;
#line 1633 "link-personas-diff-stores.c"
	{
#line 228 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp1_ = _data_->i;
#line 228 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp2_ = folks_individual_get_personas (_data_->_tmp1_);
#line 228 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp3_ = _data_->_tmp2_;
#line 228 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp4_ = NULL;
#line 228 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp4_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp3_);
#line 228 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_p_it = _data_->_tmp4_;
#line 228 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		while (TRUE) {
#line 228 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp5_ = _data_->_p_it;
#line 228 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp6_ = FALSE;
#line 228 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp6_ = gee_iterator_next (_data_->_tmp5_);
#line 228 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			if (!_data_->_tmp6_) {
#line 228 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
				break;
#line 1659 "link-personas-diff-stores.c"
			}
#line 228 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp7_ = _data_->_p_it;
#line 228 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp8_ = NULL;
#line 228 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp8_ = gee_iterator_get (_data_->_tmp7_);
#line 228 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->p = (FolksPersona*) _data_->_tmp8_;
#line 230 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp9_ = _data_->p;
#line 230 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp10_ = _g_object_ref0 (_data_->_tmp9_);
#line 230 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_g_object_unref0 (_data_->first_persona);
#line 230 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->first_persona = _data_->_tmp10_;
#line 231 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_g_object_unref0 (_data_->p);
#line 231 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			break;
#line 1681 "link-personas-diff-stores.c"
		}
#line 228 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_data_->_p_it);
#line 1685 "link-personas-diff-stores.c"
	}
#line 234 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp12_ = _data_->i;
#line 234 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp13_ = folks_name_details_get_full_name ((FolksNameDetails*) _data_->_tmp12_);
#line 234 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp14_ = _data_->_tmp13_;
#line 234 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp15_ = _data_->self->priv->_persona_fullname_1;
#line 234 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	if (g_strcmp0 (_data_->_tmp14_, _data_->_tmp15_) == 0) {
#line 235 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp16_ = _data_->self->priv->_persona_iid_1;
#line 235 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp11_ = g_strcmp0 (_data_->_tmp16_, "") == 0;
#line 1701 "link-personas-diff-stores.c"
	} else {
#line 234 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp11_ = FALSE;
#line 1705 "link-personas-diff-stores.c"
	}
#line 234 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp17_ = _data_->_tmp11_;
#line 234 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_tmp17_) {
#line 237 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp18_ = _data_->first_persona;
#line 237 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp19_ = folks_persona_get_iid (_data_->_tmp18_);
#line 237 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp20_ = _data_->_tmp19_;
#line 237 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp21_ = g_strdup (_data_->_tmp20_);
#line 237 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_g_free0 (_data_->self->priv->_persona_iid_1);
#line 237 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->self->priv->_persona_iid_1 = _data_->_tmp21_;
#line 238 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp22_ = _data_->self->priv->_personas;
#line 238 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp23_ = _data_->first_persona;
#line 238 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp22_, _data_->_tmp23_);
#line 1729 "link-personas-diff-stores.c"
	} else {
#line 240 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp25_ = _data_->i;
#line 240 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp26_ = folks_name_details_get_full_name ((FolksNameDetails*) _data_->_tmp25_);
#line 240 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp27_ = _data_->_tmp26_;
#line 240 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp28_ = _data_->self->priv->_persona_fullname_2;
#line 240 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		if (g_strcmp0 (_data_->_tmp27_, _data_->_tmp28_) == 0) {
#line 241 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp29_ = _data_->self->priv->_persona_iid_2;
#line 241 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp24_ = g_strcmp0 (_data_->_tmp29_, "") == 0;
#line 1745 "link-personas-diff-stores.c"
		} else {
#line 240 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp24_ = FALSE;
#line 1749 "link-personas-diff-stores.c"
		}
#line 240 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp30_ = _data_->_tmp24_;
#line 240 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		if (_data_->_tmp30_) {
#line 243 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp31_ = _data_->first_persona;
#line 243 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp32_ = folks_persona_get_iid (_data_->_tmp31_);
#line 243 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp33_ = _data_->_tmp32_;
#line 243 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp34_ = g_strdup (_data_->_tmp33_);
#line 243 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_g_free0 (_data_->self->priv->_persona_iid_2);
#line 243 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->self->priv->_persona_iid_2 = _data_->_tmp34_;
#line 244 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp35_ = _data_->self->priv->_personas;
#line 244 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp36_ = _data_->first_persona;
#line 244 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp35_, _data_->_tmp36_);
#line 1773 "link-personas-diff-stores.c"
		} else {
#line 246 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp37_ = _data_->i;
#line 246 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp38_ = folks_individual_get_personas (_data_->_tmp37_);
#line 246 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp39_ = _data_->_tmp38_;
#line 246 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp40_ = gee_collection_get_size ((GeeCollection*) _data_->_tmp39_);
#line 246 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp41_ = _data_->_tmp40_;
#line 246 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			if (_data_->_tmp41_ > 1) {
#line 248 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
				_data_->first_persona_id = FALSE;
#line 249 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
				_data_->second_persona_id = FALSE;
#line 1791 "link-personas-diff-stores.c"
				{
#line 251 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp42_ = _data_->i;
#line 251 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp43_ = folks_individual_get_personas (_data_->_tmp42_);
#line 251 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp44_ = _data_->_tmp43_;
#line 251 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp45_ = NULL;
#line 251 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp45_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp44_);
#line 251 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_p1_it = _data_->_tmp45_;
#line 251 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
					while (TRUE) {
#line 251 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp46_ = _data_->_p1_it;
#line 251 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp47_ = FALSE;
#line 251 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp47_ = gee_iterator_next (_data_->_tmp46_);
#line 251 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
						if (!_data_->_tmp47_) {
#line 251 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
							break;
#line 1817 "link-personas-diff-stores.c"
						}
#line 251 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp48_ = _data_->_p1_it;
#line 251 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp49_ = NULL;
#line 251 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp49_ = gee_iterator_get (_data_->_tmp48_);
#line 251 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->p1 = (FolksPersona*) _data_->_tmp49_;
#line 253 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp50_ = _data_->p1;
#line 253 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp51_ = folks_persona_get_iid (_data_->_tmp50_);
#line 253 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp52_ = _data_->_tmp51_;
#line 253 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp53_ = _data_->self->priv->_persona_iid_1;
#line 253 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
						if (g_strcmp0 (_data_->_tmp52_, _data_->_tmp53_) == 0) {
#line 254 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
							_data_->first_persona_id = TRUE;
#line 1839 "link-personas-diff-stores.c"
						} else {
#line 255 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
							_data_->_tmp54_ = _data_->p1;
#line 255 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
							_data_->_tmp55_ = folks_persona_get_iid (_data_->_tmp54_);
#line 255 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
							_data_->_tmp56_ = _data_->_tmp55_;
#line 255 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
							_data_->_tmp57_ = _data_->self->priv->_persona_iid_2;
#line 255 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
							if (g_strcmp0 (_data_->_tmp56_, _data_->_tmp57_) == 0) {
#line 256 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
								_data_->second_persona_id = TRUE;
#line 1853 "link-personas-diff-stores.c"
							}
						}
#line 251 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
						_g_object_unref0 (_data_->p1);
#line 1858 "link-personas-diff-stores.c"
					}
#line 251 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
					_g_object_unref0 (_data_->_p1_it);
#line 1862 "link-personas-diff-stores.c"
				}
#line 259 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
				_data_->_tmp59_ = _data_->first_persona_id;
#line 259 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
				if (_data_->_tmp59_) {
#line 259 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp60_ = _data_->second_persona_id;
#line 259 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp58_ = _data_->_tmp60_;
#line 1872 "link-personas-diff-stores.c"
				} else {
#line 259 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp58_ = FALSE;
#line 1876 "link-personas-diff-stores.c"
				}
#line 259 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
				_data_->_tmp61_ = _data_->_tmp58_;
#line 259 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
				if (_data_->_tmp61_) {
#line 261 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->self->priv->_linked_individual_found = TRUE;
#line 262 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp62_ = _data_->self->priv->_main_loop;
#line 262 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
					g_main_loop_quit (_data_->_tmp62_);
#line 1888 "link-personas-diff-stores.c"
				}
			}
		}
	}
#line 268 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp64_ = _data_->self->priv->_personas;
#line 268 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp65_ = gee_abstract_collection_get_size ((GeeCollection*) _data_->_tmp64_);
#line 268 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp66_ = _data_->_tmp65_;
#line 268 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_tmp66_ == 2) {
#line 269 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp67_ = _data_->self->priv->_linking_fired;
#line 269 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp63_ = _data_->_tmp67_ == FALSE;
#line 1905 "link-personas-diff-stores.c"
	} else {
#line 268 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp63_ = FALSE;
#line 1909 "link-personas-diff-stores.c"
	}
#line 268 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp68_ = _data_->_tmp63_;
#line 268 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_tmp68_) {
#line 271 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->self->priv->_linking_fired = TRUE;
#line 1917 "link-personas-diff-stores.c"
		{
#line 274 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp69_ = _data_->self->priv->_aggregator;
#line 274 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp70_ = _data_->self->priv->_personas;
#line 274 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_state_ = 1;
#line 274 "/opt/gnome2/source/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 274 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			return FALSE;
#line 1929 "link-personas-diff-stores.c"
			_state_1:
#line 274 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			folks_individual_aggregator_link_personas_finish (_data_->_tmp69_, _data_->_res_, &_data_->_inner_error_);
#line 274 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			if (_data_->_inner_error_ != NULL) {
#line 1935 "link-personas-diff-stores.c"
				goto __catch2_g_error;
			}
		}
		goto __finally2;
		__catch2_g_error:
		{
#line 272 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->e = _data_->_inner_error_;
#line 272 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_inner_error_ = NULL;
#line 278 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp71_ = _data_->e;
#line 278 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp72_ = _data_->_tmp71_->message;
#line 278 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			g_warning ("link-personas-diff-stores.vala:278: link_personas: %s\n", _data_->_tmp72_);
#line 272 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_g_error_free0 (_data_->e);
#line 1954 "link-personas-diff-stores.c"
		}
		__finally2:
#line 272 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		if (_data_->_inner_error_ != NULL) {
#line 272 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			_g_object_unref0 (_data_->first_persona);
#line 272 "/opt/gnome2/source/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 272 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			g_clear_error (&_data_->_inner_error_);
#line 272 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
			return FALSE;
#line 1967 "link-personas-diff-stores.c"
		}
	}
#line 221 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->first_persona);
#line 221 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_state_ == 0) {
#line 221 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1976 "link-personas-diff-stores.c"
	} else {
#line 221 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1980 "link-personas-diff-stores.c"
	}
#line 221 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_object_unref (_data_->_async_result);
#line 221 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	return FALSE;
#line 1986 "link-personas-diff-stores.c"
}


static void link_personas_diff_stores_tests_class_init (LinkPersonasDiffStoresTestsClass * klass) {
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	link_personas_diff_stores_tests_parent_class = g_type_class_peek_parent (klass);
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_type_class_add_private (klass, sizeof (LinkPersonasDiffStoresTestsPrivate));
#line 24 "/opt/gnome2/source/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 "/opt/gnome2/source/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 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	G_OBJECT_CLASS (klass)->finalize = link_personas_diff_stores_tests_finalize;
#line 2001 "link-personas-diff-stores.c"
}


static void link_personas_diff_stores_tests_instance_init (LinkPersonasDiffStoresTests * self) {
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv = LINK_PERSONAS_DIFF_STORES_TESTS_GET_PRIVATE (self);
#line 2008 "link-personas-diff-stores.c"
}


static void link_personas_diff_stores_tests_finalize (GObject* obj) {
	LinkPersonasDiffStoresTests * self;
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	self = LINK_PERSONAS_DIFF_STORES_TESTS (obj);
#line 26 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 27 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 28 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend_other);
#line 29 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 30 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_fullname_1);
#line 31 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_fullname_2);
#line 34 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_iid_1);
#line 35 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_iid_2);
#line 36 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (self->priv->_personas);
#line 24 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	G_OBJECT_CLASS (link_personas_diff_stores_tests_parent_class)->finalize (obj);
#line 2036 "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 286 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_test_init (&args_length1, &args, NULL);
#line 288 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = g_test_get_root ();
#line 288 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	root = _tmp0_;
#line 289 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = link_personas_diff_stores_tests_new ();
#line 289 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp2_ = _tmp1_;
#line 289 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 289 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 289 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_tmp2_);
#line 291 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_test_run ();
#line 293 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	result = 0;
#line 293 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	return result;
#line 2081 "link-personas-diff-stores.c"
}


int main (int argc, char ** argv) {
#line 284 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	g_type_init ();
#line 284 "/opt/gnome2/source/folks/tests/eds/link-personas-diff-stores.vala"
	return _vala_main (argv, argc);
#line 2090 "link-personas-diff-stores.c"
}



