/* link-personas-diff-stores.c generated by valac 0.17.6.3-6918, 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;
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

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 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	link_personas_diff_stores_tests_test_linking_via_local_ids_diff_stores (self);
#line 332 "link-personas-diff-stores.c"
}


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


LinkPersonasDiffStoresTests* link_personas_diff_stores_tests_new (void) {
#line 38 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	return link_personas_diff_stores_tests_construct (TYPE_LINK_PERSONAS_DIFF_STORES_TESTS);
#line 351 "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_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	gchar* _tmp7_ = NULL;
	gchar* config_val;
#line 46 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	self = (LinkPersonasDiffStoresTests*) base;
#line 48 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = eds_test_backend_new ();
#line 48 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 48 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_eds_backend = _tmp0_;
#line 49 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = eds_test_backend_new ();
#line 49 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend_other);
#line 49 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_eds_backend_other = _tmp1_;
#line 51 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp2_ = self->priv->_eds_backend;
#line 51 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	eds_test_backend_set_up (_tmp2_, FALSE, "test");
#line 52 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp3_ = self->priv->_eds_backend_other;
#line 52 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	eds_test_backend_set_up (_tmp3_, FALSE, "other");
#line 55 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp4_ = self->priv->_eds_backend;
#line 55 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp5_ = eds_test_backend_get_address_book_uid (_tmp4_);
#line 55 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp6_ = _tmp5_;
#line 55 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp7_ = g_strdup_printf ("eds:%s", _tmp6_);
#line 55 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	config_val = _tmp7_;
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_setenv ("FOLKS_PRIMARY_STORE", config_val, TRUE);
#line 57 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_setenv ("FOLKS_BACKEND_EDS_USE_ADDRESS_BOOKS", "test:other", TRUE);
#line 46 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (config_val);
#line 404 "link-personas-diff-stores.c"
}


static void link_personas_diff_stores_tests_real_tear_down (FolksTestCase* base) {
	LinkPersonasDiffStoresTests * self;
	EdsTestBackend* _tmp0_;
	EdsTestBackend* _tmp1_;
#line 61 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	self = (LinkPersonasDiffStoresTests*) base;
#line 63 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = self->priv->_eds_backend;
#line 63 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	eds_test_backend_tear_down (_tmp0_);
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = self->priv->_eds_backend_other;
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	eds_test_backend_tear_down (_tmp1_);
#line 66 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_unsetenv ("FOLKS_PRIMARY_STORE");
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_eds_backend = NULL;
#line 69 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend_other);
#line 69 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_eds_backend_other = NULL;
#line 432 "link-personas-diff-stores.c"
}


static gboolean __lambda4_ (LinkPersonasDiffStoresTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 87 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = self->priv->_main_loop;
#line 87 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_main_loop_quit (_tmp0_);
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_assert_not_reached ();
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	return result;
#line 447 "link-personas-diff-stores.c"
}


static gboolean ___lambda4__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda4_ (self);
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	return result;
#line 456 "link-personas-diff-stores.c"
}


void link_personas_diff_stores_tests_test_linking_via_local_ids_diff_stores (LinkPersonasDiffStoresTests* self) {
	GMainLoop* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	GeeHashSet* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	guint _tmp6_ = 0U;
	guint timer_id;
	GMainLoop* _tmp7_;
	gboolean _tmp8_;
#line 72 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_if_fail (self != NULL);
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_main_loop = _tmp0_;
#line 75 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = g_strdup ("persona #1");
#line 75 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_fullname_1);
#line 75 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_persona_fullname_1 = _tmp1_;
#line 76 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp2_ = g_strdup ("persona #2");
#line 76 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_fullname_2);
#line 76 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_persona_fullname_2 = _tmp2_;
#line 77 "/home/jpwhiting/devel/collabora/src/gnome/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 77 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (self->priv->_personas);
#line 77 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_personas = _tmp3_;
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_linking_fired = FALSE;
#line 79 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp4_ = g_strdup ("");
#line 79 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_iid_1);
#line 79 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_persona_iid_1 = _tmp4_;
#line 80 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp5_ = g_strdup ("");
#line 80 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_iid_2);
#line 80 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_persona_iid_2 = _tmp5_;
#line 81 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_linked_individual_found = FALSE;
#line 83 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_test_linking_personas_async (self, NULL, NULL);
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/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 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	timer_id = _tmp6_;
#line 91 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp7_ = self->priv->_main_loop;
#line 91 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_main_loop_run (_tmp7_);
#line 93 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp8_ = self->priv->_linked_individual_found;
#line 93 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_vala_assert (_tmp8_ == TRUE, "this._linked_individual_found == true");
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_source_remove (timer_id);
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_aggregator = NULL;
#line 97 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 97 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	self->priv->_main_loop = NULL;
#line 537 "link-personas-diff-stores.c"
}


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


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


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


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


static Block1Data* block1_data_ref (Block1Data* _data1_) {
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_atomic_int_inc (&_data1_->_ref_count_);
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	return _data1_;
#line 591 "link-personas-diff-stores.c"
}


static void block1_data_unref (void * _userdata_) {
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 600 "link-personas-diff-stores.c"
		LinkPersonasDiffStoresTests * self;
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		self = _data1_->self;
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_data1_->store);
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (self);
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		g_slice_free (Block1Data, _data1_);
#line 610 "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 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = _user_data_;
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_source_object_ = source_object;
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_res_ = _res_;
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_test_linking_personas_async_co (_data_);
#line 625 "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 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_individuals_changed_cb (self, changes);
#line 632 "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 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	self = _data1_->self;
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_if_fail (obj != NULL);
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_if_fail (pspec != NULL);
#line 116 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = self->priv->_eds_backend;
#line 116 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = eds_test_backend_get_address_book_uid (_tmp0_);
#line 116 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp2_ = _tmp1_;
#line 116 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp3_ = _link_personas_diff_stores_tests_get_store (self, _data1_->store, _tmp2_);
#line 116 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	pstore = _tmp3_;
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_vala_assert (pstore != NULL, "pstore != null");
#line 119 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp4_ = folks_persona_store_get_is_prepared (pstore);
#line 119 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp5_ = _tmp4_;
#line 119 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_vala_assert (_tmp5_ == TRUE, "pstore.is_prepared == true");
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp6_ = self->priv->_eds_backend_other;
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp7_ = eds_test_backend_get_address_book_uid (_tmp6_);
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp8_ = _tmp7_;
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp9_ = _link_personas_diff_stores_tests_get_store (self, _data1_->store, _tmp8_);
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	pstore2 = _tmp9_;
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_vala_assert (pstore2 != NULL, "pstore2 != null");
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp10_ = folks_persona_store_get_is_prepared (pstore2);
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp11_ = _tmp10_;
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_vala_assert (_tmp11_ == TRUE, "pstore2.is_prepared == true");
#line 126 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_add_personas (self, pstore, pstore2, NULL, NULL);
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (pstore2);
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (pstore);
#line 700 "link-personas-diff-stores.c"
}


static void ____lambda3__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	___lambda3_ (self, _sender, pspec);
#line 707 "link-personas-diff-stores.c"
}


static gboolean _link_personas_diff_stores_tests_test_linking_personas_async_co (LinkPersonasDiffStoresTestsTestLinkingPersonasAsyncData* _data_) {
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	switch (_data_->_state_) {
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		case 0:
#line 716 "link-personas-diff-stores.c"
		goto _state_0;
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		case 1:
#line 720 "link-personas-diff-stores.c"
		goto _state_1;
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		case 2:
#line 724 "link-personas-diff-stores.c"
		goto _state_2;
		default:
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		g_assert_not_reached ();
#line 729 "link-personas-diff-stores.c"
	}
	_state_0:
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_data1_ = g_slice_new0 (Block1Data);
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_data1_->_ref_count_ = 1;
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_data1_->self = g_object_ref (_data_->self);
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_data1_->_async_data_ = _data_;
#line 102 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp0_ = NULL;
#line 102 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 102 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_data1_->store = _data_->_tmp0_;
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_state_ = 1;
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/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 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	return FALSE;
#line 752 "link-personas-diff-stores.c"
	_state_1:
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	folks_backend_store_prepare_finish (_data_->_data1_->store, _data_->_res_);
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/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 766 "link-personas-diff-stores.c"
	{
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_state_ = 2;
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/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 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		return FALSE;
#line 776 "link-personas-diff-stores.c"
		_state_2:
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		if (_data_->_inner_error_ != NULL) {
#line 782 "link-personas-diff-stores.c"
			goto __catch0_g_error;
		}
#line 110 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp4_ = _data_->self->priv->_aggregator;
#line 110 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp5_ = folks_individual_aggregator_get_is_prepared (_data_->_tmp4_);
#line 110 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp6_ = _data_->_tmp5_;
#line 110 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_vala_assert (_data_->_tmp6_, "this._aggregator.is_prepared");
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp7_ = _data_->self->priv->_aggregator;
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/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 797 "link-personas-diff-stores.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->e = _data_->_inner_error_;
#line 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_inner_error_ = NULL;
#line 131 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp8_ = _data_->e;
#line 131 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp9_ = _data_->_tmp8_->message;
#line 131 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		g_warning ("link-personas-diff-stores.vala:131: Error when calling prepare: %s\n", _data_->_tmp9_);
#line 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_g_error_free0 (_data_->e);
#line 814 "link-personas-diff-stores.c"
	}
	__finally0:
#line 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_inner_error_ != NULL) {
#line 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		block1_data_unref (_data_->_data1_);
#line 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_data1_ = NULL;
#line 107 "/home/jpwhiting/devel/collabora/src/gnome/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 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		g_clear_error (&_data_->_inner_error_);
#line 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		return FALSE;
#line 829 "link-personas-diff-stores.c"
	}
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	block1_data_unref (_data_->_data1_);
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_data1_ = NULL;
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_state_ == 0) {
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 839 "link-personas-diff-stores.c"
	} else {
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 843 "link-personas-diff-stores.c"
	}
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_object_unref (_data_->_async_result);
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	return FALSE;
#line 849 "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 135 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 135 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_val_if_fail (store != NULL, NULL);
#line 135 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_val_if_fail (store_id != NULL, NULL);
#line 137 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	pstore = NULL;
#line 864 "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 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp0_ = store;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp1_ = folks_backend_store_get_enabled_backends (_tmp0_);
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp2_ = _tmp1_;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp3_ = gee_map_get_values (_tmp2_);
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp4_ = _tmp3_;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp5_ = _tmp4_;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp6_ = gee_iterable_iterator ((GeeIterable*) _tmp5_);
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_tmp7_ = _tmp6_;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_tmp5_);
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_backend_it = _tmp7_;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		while (TRUE) {
#line 897 "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 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp8_ = _backend_it;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp9_ = gee_iterator_next (_tmp8_);
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			if (!_tmp9_) {
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
				break;
#line 917 "link-personas-diff-stores.c"
			}
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp10_ = _backend_it;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp11_ = gee_iterator_get (_tmp10_);
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			backend = (FolksBackend*) _tmp11_;
#line 140 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp12_ = backend;
#line 140 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp13_ = folks_backend_get_persona_stores (_tmp12_);
#line 140 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp14_ = _tmp13_;
#line 140 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp15_ = store_id;
#line 140 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp16_ = gee_map_get (_tmp14_, _tmp15_);
#line 140 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_g_object_unref0 (pstore);
#line 140 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			pstore = (FolksPersonaStore*) _tmp16_;
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_tmp17_ = pstore;
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			if (_tmp17_ != NULL) {
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
				_g_object_unref0 (backend);
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
				break;
#line 947 "link-personas-diff-stores.c"
			}
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_g_object_unref0 (backend);
#line 951 "link-personas-diff-stores.c"
		}
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_backend_it);
#line 955 "link-personas-diff-stores.c"
	}
#line 144 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	result = pstore;
#line 144 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	return result;
#line 961 "link-personas-diff-stores.c"
}


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


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


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


static void _g_free0_ (gpointer var) {
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	var = (g_free (var), NULL);
#line 1026 "link-personas-diff-stores.c"
}


static void _vala_GValue_free (GValue* self) {
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_value_unset (self);
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_free (self);
#line 1035 "link-personas-diff-stores.c"
}


static void __vala_GValue_free0_ (gpointer var) {
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	(var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL));
#line 1042 "link-personas-diff-stores.c"
}


static GValue* _g_value_dup (GValue* self) {
#line 162 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	return g_boxed_copy (G_TYPE_VALUE, self);
#line 1049 "link-personas-diff-stores.c"
}


static gpointer __g_value_dup0 (gpointer self) {
#line 162 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	return self ? _g_value_dup (self) : NULL;
#line 1056 "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 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = _user_data_;
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_source_object_ = source_object;
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_res_ = _res_;
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_add_personas_co (_data_);
#line 1070 "link-personas-diff-stores.c"
}


static gboolean _link_personas_diff_stores_tests_add_personas_co (LinkPersonasDiffStoresTestsAddPersonasData* _data_) {
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	switch (_data_->_state_) {
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		case 0:
#line 1079 "link-personas-diff-stores.c"
		goto _state_0;
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		case 1:
#line 1083 "link-personas-diff-stores.c"
		goto _state_1;
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		case 2:
#line 1087 "link-personas-diff-stores.c"
		goto _state_2;
		default:
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		g_assert_not_reached ();
#line 1092 "link-personas-diff-stores.c"
	}
	_state_0:
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp0_ = g_str_hash;
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp1_ = g_str_equal;
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/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 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->details1 = _data_->_tmp2_;
#line 162 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	memset (&_data_->_tmp3_, 0, sizeof (GValue));
#line 162 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_value_init (&_data_->_tmp3_, G_TYPE_STRING);
#line 162 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 162 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp5_ = __g_value_dup0 (&_data_->_tmp4_);
#line 162 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp6_ = _data_->_tmp5_;
#line 162 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	G_IS_VALUE (&_data_->_tmp4_) ? (g_value_unset (&_data_->_tmp4_), NULL) : NULL;
#line 162 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->v1 = _data_->_tmp6_;
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp7_ = _data_->v1;
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp8_ = _data_->self->priv->_persona_fullname_1;
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_value_set_string (_data_->_tmp7_, _data_->_tmp8_);
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp9_ = _data_->details1;
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp10_ = g_strdup ("full-name");
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp11_ = _data_->v1;
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->v1 = NULL;
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_hash_table_insert (_data_->_tmp9_, _data_->_tmp10_, _data_->_tmp11_);
#line 166 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp12_ = g_str_hash;
#line 166 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp13_ = g_str_equal;
#line 166 "/home/jpwhiting/devel/collabora/src/gnome/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 166 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->details2 = _data_->_tmp14_;
#line 168 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	memset (&_data_->_tmp15_, 0, sizeof (GValue));
#line 168 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_value_init (&_data_->_tmp15_, G_TYPE_STRING);
#line 168 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp16_ = _data_->_tmp15_;
#line 168 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp17_ = __g_value_dup0 (&_data_->_tmp16_);
#line 168 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp18_ = _data_->_tmp17_;
#line 168 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	G_IS_VALUE (&_data_->_tmp16_) ? (g_value_unset (&_data_->_tmp16_), NULL) : NULL;
#line 168 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->v2 = _data_->_tmp18_;
#line 169 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp19_ = _data_->v2;
#line 169 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp20_ = _data_->self->priv->_persona_fullname_2;
#line 169 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_value_set_string (_data_->_tmp19_, _data_->_tmp20_);
#line 170 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp21_ = _data_->details2;
#line 170 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp22_ = g_strdup ("full-name");
#line 170 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp23_ = _data_->v2;
#line 170 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->v2 = NULL;
#line 170 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_hash_table_insert (_data_->_tmp21_, _data_->_tmp22_, _data_->_tmp23_);
#line 1171 "link-personas-diff-stores.c"
	{
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp24_ = _data_->self->priv->_aggregator;
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp25_ = _data_->pstore1;
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp26_ = _data_->details1;
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_state_ = 1;
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/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 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		return FALSE;
#line 1185 "link-personas-diff-stores.c"
		_state_1:
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp27_ = NULL;
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/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 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp28_ = _data_->_tmp27_;
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_data_->_tmp28_);
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		if (_data_->_inner_error_ != NULL) {
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1199 "link-personas-diff-stores.c"
				goto __catch1_folks_individual_aggregator_error;
			}
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			__vala_GValue_free0 (_data_->v2);
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			__vala_GValue_free0 (_data_->v1);
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/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 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			g_clear_error (&_data_->_inner_error_);
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			return FALSE;
#line 1216 "link-personas-diff-stores.c"
		}
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp29_ = _data_->self->priv->_aggregator;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp30_ = _data_->pstore2;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp31_ = _data_->details2;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_state_ = 2;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/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 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		return FALSE;
#line 1230 "link-personas-diff-stores.c"
		_state_2:
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp32_ = NULL;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/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 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp33_ = _data_->_tmp32_;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_data_->_tmp33_);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		if (_data_->_inner_error_ != NULL) {
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1244 "link-personas-diff-stores.c"
				goto __catch1_folks_individual_aggregator_error;
			}
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			__vala_GValue_free0 (_data_->v2);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			__vala_GValue_free0 (_data_->v1);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/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 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			g_clear_error (&_data_->_inner_error_);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			return FALSE;
#line 1261 "link-personas-diff-stores.c"
		}
	}
	goto __finally1;
	__catch1_folks_individual_aggregator_error:
	{
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->e = _data_->_inner_error_;
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_inner_error_ = NULL;
#line 182 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp34_ = _data_->e;
#line 182 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp35_ = _data_->_tmp34_->message;
#line 182 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		g_warning ("link-personas-diff-stores.vala:182: [AddPersonaError] add_persona_from" \
"_details: %s\n", _data_->_tmp35_);
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_g_error_free0 (_data_->e);
#line 1279 "link-personas-diff-stores.c"
	}
	__finally1:
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_inner_error_ != NULL) {
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		__vala_GValue_free0 (_data_->v2);
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_g_hash_table_unref0 (_data_->details2);
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		__vala_GValue_free0 (_data_->v1);
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_g_hash_table_unref0 (_data_->details1);
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/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 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		g_clear_error (&_data_->_inner_error_);
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		return FALSE;
#line 1298 "link-personas-diff-stores.c"
	}
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	__vala_GValue_free0 (_data_->v2);
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_hash_table_unref0 (_data_->details2);
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	__vala_GValue_free0 (_data_->v1);
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_hash_table_unref0 (_data_->details1);
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_state_ == 0) {
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1312 "link-personas-diff-stores.c"
	} else {
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1316 "link-personas-diff-stores.c"
	}
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_object_unref (_data_->_async_result);
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	return FALSE;
#line 1322 "link-personas-diff-stores.c"
}


static void __lambda2_ (LinkPersonasDiffStoresTests* self, GObject* object, GAsyncResult* _result_) {
	GAsyncResult* _tmp0_;
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_if_fail (_result_ != NULL);
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = _result_;
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_individuals_changed_finish (self, _tmp0_);
#line 1334 "link-personas-diff-stores.c"
}


static void ___lambda2__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	__lambda2_ (self, source_object, res);
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_object_unref (self);
#line 1343 "link-personas-diff-stores.c"
}


static void _link_personas_diff_stores_tests_individuals_changed_cb (LinkPersonasDiffStoresTests* self, GeeMultiMap* changes) {
	GeeMultiMap* _tmp0_;
#line 187 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_if_fail (self != NULL);
#line 187 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_return_if_fail (changes != NULL);
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = changes;
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/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 1357 "link-personas-diff-stores.c"
}


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


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


static void _link_personas_diff_stores_tests_individuals_changed_finish (LinkPersonasDiffStoresTests* self, GAsyncResult* _res_) {
	LinkPersonasDiffStoresTestsIndividualsChangedAsyncData* _data_;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1405 "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 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = _user_data_;
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_source_object_ = source_object;
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_res_ = _res_;
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_individuals_changed_async_co (_data_);
#line 1419 "link-personas-diff-stores.c"
}


static gboolean _link_personas_diff_stores_tests_individuals_changed_async_co (LinkPersonasDiffStoresTestsIndividualsChangedAsyncData* _data_) {
#line 196 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	switch (_data_->_state_) {
#line 196 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		case 0:
#line 1428 "link-personas-diff-stores.c"
		goto _state_0;
#line 196 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		case 1:
#line 1432 "link-personas-diff-stores.c"
		goto _state_1;
		default:
#line 196 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		g_assert_not_reached ();
#line 1437 "link-personas-diff-stores.c"
	}
	_state_0:
#line 199 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp0_ = _data_->changes;
#line 199 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp1_ = NULL;
#line 199 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp1_ = gee_multi_map_get_values (_data_->_tmp0_);
#line 199 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->added = _data_->_tmp1_;
#line 1448 "link-personas-diff-stores.c"
	{
#line 201 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp2_ = _data_->added;
#line 201 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp3_ = NULL;
#line 201 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp3_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp2_);
#line 201 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_i_it = _data_->_tmp3_;
#line 201 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		while (TRUE) {
#line 201 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp4_ = _data_->_i_it;
#line 201 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp5_ = FALSE;
#line 201 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp5_ = gee_iterator_next (_data_->_tmp4_);
#line 201 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			if (!_data_->_tmp5_) {
#line 201 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
				break;
#line 1470 "link-personas-diff-stores.c"
			}
#line 201 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp6_ = _data_->_i_it;
#line 201 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp7_ = NULL;
#line 201 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp7_ = gee_iterator_get (_data_->_tmp6_);
#line 201 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->i = (FolksIndividual*) _data_->_tmp7_;
#line 203 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp8_ = _data_->i;
#line 203 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			if (_data_->_tmp8_ == NULL) {
#line 205 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
				_g_object_unref0 (_data_->i);
#line 205 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
				continue;
#line 1488 "link-personas-diff-stores.c"
			}
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp9_ = _data_->i;
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_state_ = 1;
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/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 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			return FALSE;
#line 1498 "link-personas-diff-stores.c"
			_state_1:
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_link_personas_diff_stores_tests_check_personas_finish (_data_->self, _data_->_res_);
#line 201 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_g_object_unref0 (_data_->i);
#line 1504 "link-personas-diff-stores.c"
		}
#line 201 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_data_->_i_it);
#line 1508 "link-personas-diff-stores.c"
	}
#line 196 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->added);
#line 196 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_state_ == 0) {
#line 196 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1516 "link-personas-diff-stores.c"
	} else {
#line 196 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1520 "link-personas-diff-stores.c"
	}
#line 196 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_object_unref (_data_->_async_result);
#line 196 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	return FALSE;
#line 1526 "link-personas-diff-stores.c"
}


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


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


static void _link_personas_diff_stores_tests_check_personas_finish (LinkPersonasDiffStoresTests* self, GAsyncResult* _res_) {
	LinkPersonasDiffStoresTestsCheckPersonasData* _data_;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1574 "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 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_ = _user_data_;
#line 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_source_object_ = source_object;
#line 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_res_ = _res_;
#line 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_link_personas_diff_stores_tests_check_personas_co (_data_);
#line 1588 "link-personas-diff-stores.c"
}


static gboolean _link_personas_diff_stores_tests_check_personas_co (LinkPersonasDiffStoresTestsCheckPersonasData* _data_) {
#line 222 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	switch (_data_->_state_) {
#line 222 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		case 0:
#line 1597 "link-personas-diff-stores.c"
		goto _state_0;
#line 222 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		case 1:
#line 1601 "link-personas-diff-stores.c"
		goto _state_1;
		default:
#line 222 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		g_assert_not_reached ();
#line 1606 "link-personas-diff-stores.c"
	}
	_state_0:
#line 225 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp0_ = _data_->self->priv->_linked_individual_found;
#line 225 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_tmp0_ == TRUE) {
#line 226 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		if (_data_->_state_ == 0) {
#line 226 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1617 "link-personas-diff-stores.c"
		} else {
#line 226 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1621 "link-personas-diff-stores.c"
		}
#line 226 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		g_object_unref (_data_->_async_result);
#line 226 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		return FALSE;
#line 1627 "link-personas-diff-stores.c"
	}
#line 228 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->first_persona = NULL;
#line 1631 "link-personas-diff-stores.c"
	{
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp1_ = _data_->i;
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp2_ = folks_individual_get_personas (_data_->_tmp1_);
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp3_ = _data_->_tmp2_;
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp4_ = NULL;
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp4_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp3_);
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_p_it = _data_->_tmp4_;
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		while (TRUE) {
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp5_ = _data_->_p_it;
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp6_ = FALSE;
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp6_ = gee_iterator_next (_data_->_tmp5_);
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			if (!_data_->_tmp6_) {
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
				break;
#line 1657 "link-personas-diff-stores.c"
			}
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp7_ = _data_->_p_it;
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp8_ = NULL;
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp8_ = gee_iterator_get (_data_->_tmp7_);
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->p = (FolksPersona*) _data_->_tmp8_;
#line 231 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp9_ = _data_->p;
#line 231 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp10_ = _g_object_ref0 (_data_->_tmp9_);
#line 231 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_g_object_unref0 (_data_->first_persona);
#line 231 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->first_persona = _data_->_tmp10_;
#line 232 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_g_object_unref0 (_data_->p);
#line 232 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			break;
#line 1679 "link-personas-diff-stores.c"
		}
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_g_object_unref0 (_data_->_p_it);
#line 1683 "link-personas-diff-stores.c"
	}
#line 235 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp12_ = _data_->i;
#line 235 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp13_ = folks_name_details_get_full_name ((FolksNameDetails*) _data_->_tmp12_);
#line 235 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp14_ = _data_->_tmp13_;
#line 235 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp15_ = _data_->self->priv->_persona_fullname_1;
#line 235 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	if (g_strcmp0 (_data_->_tmp14_, _data_->_tmp15_) == 0) {
#line 236 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp16_ = _data_->self->priv->_persona_iid_1;
#line 236 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp11_ = g_strcmp0 (_data_->_tmp16_, "") == 0;
#line 1699 "link-personas-diff-stores.c"
	} else {
#line 235 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp11_ = FALSE;
#line 1703 "link-personas-diff-stores.c"
	}
#line 235 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp17_ = _data_->_tmp11_;
#line 235 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_tmp17_) {
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp18_ = _data_->first_persona;
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp19_ = folks_persona_get_iid (_data_->_tmp18_);
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp20_ = _data_->_tmp19_;
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp21_ = g_strdup (_data_->_tmp20_);
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_g_free0 (_data_->self->priv->_persona_iid_1);
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->self->priv->_persona_iid_1 = _data_->_tmp21_;
#line 239 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp22_ = _data_->self->priv->_personas;
#line 239 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp23_ = _data_->first_persona;
#line 239 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp22_, _data_->_tmp23_);
#line 1727 "link-personas-diff-stores.c"
	} else {
#line 241 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp25_ = _data_->i;
#line 241 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp26_ = folks_name_details_get_full_name ((FolksNameDetails*) _data_->_tmp25_);
#line 241 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp27_ = _data_->_tmp26_;
#line 241 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp28_ = _data_->self->priv->_persona_fullname_2;
#line 241 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		if (g_strcmp0 (_data_->_tmp27_, _data_->_tmp28_) == 0) {
#line 242 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp29_ = _data_->self->priv->_persona_iid_2;
#line 242 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp24_ = g_strcmp0 (_data_->_tmp29_, "") == 0;
#line 1743 "link-personas-diff-stores.c"
		} else {
#line 241 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp24_ = FALSE;
#line 1747 "link-personas-diff-stores.c"
		}
#line 241 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp30_ = _data_->_tmp24_;
#line 241 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		if (_data_->_tmp30_) {
#line 244 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp31_ = _data_->first_persona;
#line 244 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp32_ = folks_persona_get_iid (_data_->_tmp31_);
#line 244 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp33_ = _data_->_tmp32_;
#line 244 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp34_ = g_strdup (_data_->_tmp33_);
#line 244 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_g_free0 (_data_->self->priv->_persona_iid_2);
#line 244 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->self->priv->_persona_iid_2 = _data_->_tmp34_;
#line 245 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp35_ = _data_->self->priv->_personas;
#line 245 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp36_ = _data_->first_persona;
#line 245 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp35_, _data_->_tmp36_);
#line 1771 "link-personas-diff-stores.c"
		} else {
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp37_ = _data_->i;
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp38_ = folks_individual_get_personas (_data_->_tmp37_);
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp39_ = _data_->_tmp38_;
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp40_ = gee_collection_get_size ((GeeCollection*) _data_->_tmp39_);
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp41_ = _data_->_tmp40_;
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			if (_data_->_tmp41_ > 1) {
#line 249 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
				_data_->first_persona_id = FALSE;
#line 250 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
				_data_->second_persona_id = FALSE;
#line 1789 "link-personas-diff-stores.c"
				{
#line 252 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp42_ = _data_->i;
#line 252 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp43_ = folks_individual_get_personas (_data_->_tmp42_);
#line 252 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp44_ = _data_->_tmp43_;
#line 252 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp45_ = NULL;
#line 252 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp45_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp44_);
#line 252 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_p1_it = _data_->_tmp45_;
#line 252 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
					while (TRUE) {
#line 252 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp46_ = _data_->_p1_it;
#line 252 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp47_ = FALSE;
#line 252 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp47_ = gee_iterator_next (_data_->_tmp46_);
#line 252 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
						if (!_data_->_tmp47_) {
#line 252 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
							break;
#line 1815 "link-personas-diff-stores.c"
						}
#line 252 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp48_ = _data_->_p1_it;
#line 252 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp49_ = NULL;
#line 252 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp49_ = gee_iterator_get (_data_->_tmp48_);
#line 252 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->p1 = (FolksPersona*) _data_->_tmp49_;
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp50_ = _data_->p1;
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp51_ = folks_persona_get_iid (_data_->_tmp50_);
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp52_ = _data_->_tmp51_;
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
						_data_->_tmp53_ = _data_->self->priv->_persona_iid_1;
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
						if (g_strcmp0 (_data_->_tmp52_, _data_->_tmp53_) == 0) {
#line 255 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
							_data_->first_persona_id = TRUE;
#line 1837 "link-personas-diff-stores.c"
						} else {
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
							_data_->_tmp54_ = _data_->p1;
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
							_data_->_tmp55_ = folks_persona_get_iid (_data_->_tmp54_);
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
							_data_->_tmp56_ = _data_->_tmp55_;
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
							_data_->_tmp57_ = _data_->self->priv->_persona_iid_2;
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
							if (g_strcmp0 (_data_->_tmp56_, _data_->_tmp57_) == 0) {
#line 257 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
								_data_->second_persona_id = TRUE;
#line 1851 "link-personas-diff-stores.c"
							}
						}
#line 252 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
						_g_object_unref0 (_data_->p1);
#line 1856 "link-personas-diff-stores.c"
					}
#line 252 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
					_g_object_unref0 (_data_->_p1_it);
#line 1860 "link-personas-diff-stores.c"
				}
#line 260 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
				_data_->_tmp59_ = _data_->first_persona_id;
#line 260 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
				if (_data_->_tmp59_) {
#line 260 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp60_ = _data_->second_persona_id;
#line 260 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp58_ = _data_->_tmp60_;
#line 1870 "link-personas-diff-stores.c"
				} else {
#line 260 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp58_ = FALSE;
#line 1874 "link-personas-diff-stores.c"
				}
#line 260 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
				_data_->_tmp61_ = _data_->_tmp58_;
#line 260 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
				if (_data_->_tmp61_) {
#line 262 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->self->priv->_linked_individual_found = TRUE;
#line 263 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
					_data_->_tmp62_ = _data_->self->priv->_main_loop;
#line 263 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
					g_main_loop_quit (_data_->_tmp62_);
#line 1886 "link-personas-diff-stores.c"
				}
			}
		}
	}
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp64_ = _data_->self->priv->_personas;
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp65_ = gee_abstract_collection_get_size ((GeeCollection*) _data_->_tmp64_);
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp66_ = _data_->_tmp65_;
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_tmp66_ == 2) {
#line 270 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp67_ = _data_->self->priv->_linking_fired;
#line 270 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp63_ = _data_->_tmp67_ == FALSE;
#line 1903 "link-personas-diff-stores.c"
	} else {
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->_tmp63_ = FALSE;
#line 1907 "link-personas-diff-stores.c"
	}
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_data_->_tmp68_ = _data_->_tmp63_;
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_tmp68_) {
#line 272 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		_data_->self->priv->_linking_fired = TRUE;
#line 1915 "link-personas-diff-stores.c"
		{
#line 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp69_ = _data_->self->priv->_aggregator;
#line 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp70_ = _data_->self->priv->_personas;
#line 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_state_ = 1;
#line 275 "/home/jpwhiting/devel/collabora/src/gnome/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 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			return FALSE;
#line 1927 "link-personas-diff-stores.c"
			_state_1:
#line 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			folks_individual_aggregator_link_personas_finish (_data_->_tmp69_, _data_->_res_, &_data_->_inner_error_);
#line 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			if (_data_->_inner_error_ != NULL) {
#line 1933 "link-personas-diff-stores.c"
				goto __catch2_g_error;
			}
		}
		goto __finally2;
		__catch2_g_error:
		{
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->e = _data_->_inner_error_;
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_inner_error_ = NULL;
#line 279 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp71_ = _data_->e;
#line 279 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_data_->_tmp72_ = _data_->_tmp71_->message;
#line 279 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			g_warning ("link-personas-diff-stores.vala:279: link_personas: %s\n", _data_->_tmp72_);
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_g_error_free0 (_data_->e);
#line 1952 "link-personas-diff-stores.c"
		}
		__finally2:
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		if (_data_->_inner_error_ != NULL) {
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			_g_object_unref0 (_data_->first_persona);
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/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 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			g_clear_error (&_data_->_inner_error_);
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
			return FALSE;
#line 1965 "link-personas-diff-stores.c"
		}
	}
#line 222 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_data_->first_persona);
#line 222 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	if (_data_->_state_ == 0) {
#line 222 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1974 "link-personas-diff-stores.c"
	} else {
#line 222 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1978 "link-personas-diff-stores.c"
	}
#line 222 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_object_unref (_data_->_async_result);
#line 222 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	return FALSE;
#line 1984 "link-personas-diff-stores.c"
}


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


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


static void link_personas_diff_stores_tests_finalize (GObject* obj) {
	LinkPersonasDiffStoresTests * self;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LINK_PERSONAS_DIFF_STORES_TESTS, LinkPersonasDiffStoresTests);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 27 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 28 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend_other);
#line 29 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 30 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_fullname_1);
#line 31 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_fullname_2);
#line 34 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_iid_1);
#line 35 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_free0 (self->priv->_persona_iid_2);
#line 36 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (self->priv->_personas);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	G_OBJECT_CLASS (link_personas_diff_stores_tests_parent_class)->finalize (obj);
#line 2034 "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 287 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_test_init (&args_length1, &args, NULL);
#line 289 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp0_ = g_test_get_root ();
#line 289 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	root = _tmp0_;
#line 290 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp1_ = link_personas_diff_stores_tests_new ();
#line 290 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp2_ = _tmp1_;
#line 290 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 290 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 290 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	_g_object_unref0 (_tmp2_);
#line 292 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_test_run ();
#line 294 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	result = 0;
#line 294 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	return result;
#line 2079 "link-personas-diff-stores.c"
}


int main (int argc, char ** argv) {
#line 285 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	g_type_init ();
#line 285 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/link-personas-diff-stores.vala"
	return _vala_main (argv, argc);
#line 2088 "link-personas-diff-stores.c"
}



