/* link-personas.c generated by valac 0.17.6.3-6918, the Vala compiler
 * generated from link-personas.vala, do not modify */

/*
 * Copyright (C) 2011 Collabora Ltd.
 *
 * This library is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 2.1 of the License, or
 * (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Authors: Raul Gutierrez Segales <raul.gutierrez.segales@collabora.co.uk>
 *
 */

#include <glib.h>
#include <glib-object.h>
#include <folks-test.h>
#include <tracker-test.h>
#include <folks/folks.h>
#include <stdlib.h>
#include <string.h>
#include <gee.h>
#include <gio/gio.h>


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

typedef struct _LinkPersonasTests LinkPersonasTests;
typedef struct _LinkPersonasTestsClass LinkPersonasTestsClass;
typedef struct _LinkPersonasTestsPrivate LinkPersonasTestsPrivate;
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define _tracker_test_backend_unref0(var) ((var == NULL) ? NULL : (var = (tracker_test_backend_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _LinkPersonasTestsTestLinkingPersonasAsyncData LinkPersonasTestsTestLinkingPersonasAsyncData;
#define __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL)))
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
typedef struct _LinkPersonasTestsAddPersonasData LinkPersonasTestsAddPersonasData;
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

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

struct _LinkPersonasTestsClass {
	FolksTestCaseClass parent_class;
};

struct _LinkPersonasTestsPrivate {
	GMainLoop* _main_loop;
	TrackerTestBackend* _tracker_backend;
	FolksIndividualAggregator* _aggregator;
	gchar* _persona_fullname_1;
	gchar* _persona_fullname_2;
	gchar* _proto;
	gchar* _im_address_1;
	gchar* _im_address_2;
	gboolean _linking_fired;
	gboolean _persona_found_1;
	gboolean _persona_found_2;
	gchar* _persona_iid_1;
	gchar* _persona_iid_2;
	GeeHashSet* _personas;
	GeeHashMap* _linking_props;
};

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

struct _LinkPersonasTestsAddPersonasData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	LinkPersonasTests* self;
	FolksPersonaStore* pstore;
	GHashFunc _tmp0_;
	GEqualFunc _tmp1_;
	GHashTable* _tmp2_;
	GHashTable* details1;
	GValue _tmp3_;
	GValue _tmp4_;
	GValue* _tmp5_;
	GValue* _tmp6_;
	GValue* v1;
	GeeHashMultiMap* _tmp7_;
	GeeHashMultiMap* im_addrs1;
	GeeHashMultiMap* _tmp8_;
	const gchar* _tmp9_;
	const gchar* _tmp10_;
	FolksImFieldDetails* _tmp11_;
	FolksImFieldDetails* _tmp12_;
	GValue* _tmp13_;
	GeeHashMultiMap* _tmp14_;
	GHashTable* _tmp15_;
	gchar* _tmp16_;
	GValue* _tmp17_;
	GValue _tmp18_;
	GValue _tmp19_;
	GValue* _tmp20_;
	GValue* _tmp21_;
	GValue* v2;
	GValue* _tmp22_;
	const gchar* _tmp23_;
	GHashTable* _tmp24_;
	gchar* _tmp25_;
	GValue* _tmp26_;
	GHashFunc _tmp27_;
	GEqualFunc _tmp28_;
	GHashTable* _tmp29_;
	GHashTable* details2;
	GValue _tmp30_;
	GValue _tmp31_;
	GValue* _tmp32_;
	GValue* _tmp33_;
	GValue* v3;
	GeeHashMultiMap* _tmp34_;
	GeeHashMultiMap* im_addrs2;
	GeeHashMultiMap* _tmp35_;
	const gchar* _tmp36_;
	const gchar* _tmp37_;
	FolksImFieldDetails* _tmp38_;
	FolksImFieldDetails* _tmp39_;
	GValue* _tmp40_;
	GeeHashMultiMap* _tmp41_;
	GHashTable* _tmp42_;
	gchar* _tmp43_;
	GValue* _tmp44_;
	GValue _tmp45_;
	GValue _tmp46_;
	GValue* _tmp47_;
	GValue* _tmp48_;
	GValue* v4;
	GValue* _tmp49_;
	const gchar* _tmp50_;
	GHashTable* _tmp51_;
	gchar* _tmp52_;
	GValue* _tmp53_;
	FolksIndividualAggregator* _tmp54_;
	FolksPersonaStore* _tmp55_;
	GHashTable* _tmp56_;
	FolksPersona* _tmp57_;
	FolksPersona* _tmp58_;
	FolksIndividualAggregator* _tmp59_;
	FolksPersonaStore* _tmp60_;
	GHashTable* _tmp61_;
	FolksPersona* _tmp62_;
	FolksPersona* _tmp63_;
	GError* e;
	GError* _tmp64_;
	const gchar* _tmp65_;
	GError * _inner_error_;
};


static gpointer link_personas_tests_parent_class = NULL;

GType link_personas_tests_get_type (void) G_GNUC_CONST;
#define LINK_PERSONAS_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_LINK_PERSONAS_TESTS, LinkPersonasTestsPrivate))
enum  {
	LINK_PERSONAS_TESTS_DUMMY_PROPERTY
};
LinkPersonasTests* link_personas_tests_new (void);
LinkPersonasTests* link_personas_tests_construct (GType object_type);
void link_personas_tests_test_linking_personas (LinkPersonasTests* self);
static void _link_personas_tests_test_linking_personas_folks_test_case_test_method (gpointer self);
static void link_personas_tests_real_set_up (FolksTestCase* base);
static void link_personas_tests_real_tear_down (FolksTestCase* base);
static void _link_personas_tests_test_linking_personas_async (LinkPersonasTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _link_personas_tests_test_linking_personas_finish (LinkPersonasTests* self, GAsyncResult* _res_);
static gboolean __lambda3_ (LinkPersonasTests* self);
static gboolean ___lambda3__gsource_func (gpointer self);
static void _link_personas_tests_test_linking_personas_async_data_free (gpointer _data);
static gboolean _link_personas_tests_test_linking_personas_async_co (LinkPersonasTestsTestLinkingPersonasAsyncData* _data_);
static void _link_personas_tests_test_linking_personas_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _link_personas_tests_individuals_changed_cb (LinkPersonasTests* self, GeeMultiMap* changes);
static void __link_personas_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static void _link_personas_tests_persona_store_prepared_cb (LinkPersonasTests* self, GObject* obj, GParamSpec* params);
static void __link_personas_tests_persona_store_prepared_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void _link_personas_tests_add_personas (LinkPersonasTests* self, FolksPersonaStore* pstore, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _link_personas_tests_add_personas_finish (LinkPersonasTests* self, GAsyncResult* _res_);
static void _link_personas_tests_add_personas_data_free (gpointer _data);
static gboolean _link_personas_tests_add_personas_co (LinkPersonasTestsAddPersonasData* _data_);
static void _g_free0_ (gpointer var);
static void _vala_GValue_free (GValue* self);
static void __vala_GValue_free0_ (gpointer var);
static GValue* _g_value_dup (GValue* self);
static void _link_personas_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _link_personas_tests_check_personas (LinkPersonasTests* self, FolksIndividual* i);
static void _link_personas_tests_notify_cb (LinkPersonasTests* self, GObject* individual_obj, GParamSpec* ps);
static void __link_personas_tests_notify_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static gboolean ___lambda2_ (LinkPersonasTests* self);
static gboolean ____lambda2__gsource_func (gpointer self);
static void link_personas_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _link_personas_tests_test_linking_personas_folks_test_case_test_method (gpointer self) {
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	link_personas_tests_test_linking_personas (self);
#line 253 "link-personas.c"
}


LinkPersonasTests* link_personas_tests_construct (GType object_type) {
	LinkPersonasTests * self = NULL;
	TrackerTestBackend* _tmp0_;
#line 46 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	self = (LinkPersonasTests*) folks_test_case_construct (object_type, "LinkPersonasTests");
#line 48 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp0_ = tracker_test_backend_new ();
#line 48 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 48 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	self->priv->_tracker_backend = _tmp0_;
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test linking personas", _link_personas_tests_test_linking_personas_folks_test_case_test_method, self);
#line 44 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	return self;
#line 272 "link-personas.c"
}


LinkPersonasTests* link_personas_tests_new (void) {
#line 44 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	return link_personas_tests_construct (TYPE_LINK_PERSONAS_TESTS);
#line 279 "link-personas.c"
}


static void link_personas_tests_real_set_up (FolksTestCase* base) {
	LinkPersonasTests * self;
	TrackerTestBackend* _tmp0_;
#line 53 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	self = (LinkPersonasTests*) base;
#line 55 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_setenv ("FOLKS_PRIMARY_STORE", "tracker", TRUE);
#line 61 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp0_ = self->priv->_tracker_backend;
#line 61 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	tracker_test_backend_set_up (_tmp0_);
#line 294 "link-personas.c"
}


static void link_personas_tests_real_tear_down (FolksTestCase* base) {
	LinkPersonasTests * self;
	TrackerTestBackend* _tmp0_;
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	self = (LinkPersonasTests*) base;
#line 66 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp0_ = self->priv->_tracker_backend;
#line 66 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	tracker_test_backend_tear_down (_tmp0_);
#line 67 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_unsetenv ("FOLKS_PRIMARY_STORE");
#line 309 "link-personas.c"
}


static gboolean __lambda3_ (LinkPersonasTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 92 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp0_ = self->priv->_main_loop;
#line 92 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_main_loop_quit (_tmp0_);
#line 93 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_assert_not_reached ();
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	return result;
#line 324 "link-personas.c"
}


static gboolean ___lambda3__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda3_ (self);
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	return result;
#line 333 "link-personas.c"
}


void link_personas_tests_test_linking_personas (LinkPersonasTests* self) {
	GMainLoop* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	GeeHashSet* _tmp3_;
	GeeHashMap* _tmp4_;
	GeeHashMap* _tmp5_;
	const gchar* _tmp6_;
	GeeHashMap* _tmp7_;
	const gchar* _tmp8_;
	GMainLoop* _tmp9_;
	GeeHashMap* _tmp10_;
	gint _tmp11_;
	gint _tmp12_;
#line 70 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_return_if_fail (self != NULL);
#line 72 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 72 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 72 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	self->priv->_main_loop = _tmp0_;
#line 73 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp1_ = g_strdup ("persona #1");
#line 73 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_free0 (self->priv->_persona_fullname_1);
#line 73 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	self->priv->_persona_fullname_1 = _tmp1_;
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp2_ = g_strdup ("persona #2");
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_free0 (self->priv->_persona_fullname_2);
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	self->priv->_persona_fullname_2 = _tmp2_;
#line 75 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp3_ = gee_hash_set_new (FOLKS_TYPE_PERSONA, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL);
#line 75 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_object_unref0 (self->priv->_personas);
#line 75 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	self->priv->_personas = _tmp3_;
#line 77 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	self->priv->_persona_found_1 = FALSE;
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	self->priv->_persona_found_2 = FALSE;
#line 79 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	self->priv->_linking_fired = FALSE;
#line 81 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp4_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
#line 81 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_object_unref0 (self->priv->_linking_props);
#line 81 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	self->priv->_linking_props = _tmp4_;
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp5_ = self->priv->_linking_props;
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp6_ = self->priv->_im_address_1;
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp5_, "prop1", _tmp6_);
#line 83 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp7_ = self->priv->_linking_props;
#line 83 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp8_ = self->priv->_im_address_2;
#line 83 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp7_, "prop2", _tmp8_);
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_link_personas_tests_test_linking_personas_async (self, NULL, NULL);
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda3__gsource_func, g_object_ref (self), g_object_unref);
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp9_ = self->priv->_main_loop;
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_main_loop_run (_tmp9_);
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp10_ = self->priv->_linking_props;
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp11_ = gee_abstract_map_get_size ((GeeMap*) _tmp10_);
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp12_ = _tmp11_;
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_vala_assert (_tmp12_ == 0, "this._linking_props.size == 0");
#line 417 "link-personas.c"
}


static void _link_personas_tests_test_linking_personas_async_data_free (gpointer _data) {
	LinkPersonasTestsTestLinkingPersonasAsyncData* _data_;
	_data_ = _data;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_slice_free (LinkPersonasTestsTestLinkingPersonasAsyncData, _data_);
#line 428 "link-personas.c"
}


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


static void _link_personas_tests_test_linking_personas_async (LinkPersonasTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	LinkPersonasTestsTestLinkingPersonasAsyncData* _data_;
	LinkPersonasTests* _tmp0_;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_ = g_slice_new0 (LinkPersonasTestsTestLinkingPersonasAsyncData);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _link_personas_tests_test_linking_personas_async);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _link_personas_tests_test_linking_personas_async_data_free);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->self = _tmp0_;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_link_personas_tests_test_linking_personas_async_co (_data_);
#line 454 "link-personas.c"
}


static void _link_personas_tests_test_linking_personas_finish (LinkPersonasTests* self, GAsyncResult* _res_) {
	LinkPersonasTestsTestLinkingPersonasAsyncData* _data_;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 462 "link-personas.c"
}


static void _link_personas_tests_test_linking_personas_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	LinkPersonasTestsTestLinkingPersonasAsyncData* _data_;
#line 106 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_ = _user_data_;
#line 106 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_source_object_ = source_object;
#line 106 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_res_ = _res_;
#line 106 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_link_personas_tests_test_linking_personas_async_co (_data_);
#line 476 "link-personas.c"
}


static void __link_personas_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 108 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_link_personas_tests_individuals_changed_cb (self, changes);
#line 483 "link-personas.c"
}


static void __link_personas_tests_persona_store_prepared_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 122 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_link_personas_tests_persona_store_prepared_cb (self, _sender, pspec);
#line 490 "link-personas.c"
}


static gboolean _link_personas_tests_test_linking_personas_async_co (LinkPersonasTestsTestLinkingPersonasAsyncData* _data_) {
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	switch (_data_->_state_) {
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		case 0:
#line 499 "link-personas.c"
		goto _state_0;
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		case 1:
#line 503 "link-personas.c"
		goto _state_1;
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		case 2:
#line 507 "link-personas.c"
		goto _state_2;
		default:
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		g_assert_not_reached ();
#line 512 "link-personas.c"
	}
	_state_0:
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp0_ = NULL;
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->store = _data_->_tmp0_;
#line 106 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_state_ = 1;
#line 106 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	folks_backend_store_prepare (_data_->store, _link_personas_tests_test_linking_personas_async_ready, _data_);
#line 106 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	return FALSE;
#line 527 "link-personas.c"
	_state_1:
#line 106 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 108 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 108 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_signal_connect_object (_data_->_tmp2_, "individuals-changed-detailed", (GCallback) __link_personas_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed, _data_->self, 0);
#line 541 "link-personas.c"
	{
#line 112 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 112 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_state_ = 2;
#line 112 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		folks_individual_aggregator_prepare (_data_->_tmp3_, _link_personas_tests_test_linking_personas_async_ready, _data_);
#line 112 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		return FALSE;
#line 551 "link-personas.c"
		_state_2:
#line 112 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 112 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		if (_data_->_inner_error_ != NULL) {
#line 557 "link-personas.c"
			goto __catch0_g_error;
		}
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->pstore = NULL;
#line 562 "link-personas.c"
		{
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_data_->_tmp4_ = folks_backend_store_get_enabled_backends (_data_->store);
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_data_->_tmp5_ = _data_->_tmp4_;
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_data_->_tmp6_ = gee_map_get_values (_data_->_tmp5_);
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_data_->_tmp7_ = _data_->_tmp6_;
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_data_->_tmp8_ = _data_->_tmp7_;
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_data_->_tmp9_ = NULL;
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_data_->_tmp9_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp8_);
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_data_->_tmp10_ = _data_->_tmp9_;
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_g_object_unref0 (_data_->_tmp8_);
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_data_->_backend_it = _data_->_tmp10_;
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			while (TRUE) {
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_data_->_tmp11_ = _data_->_backend_it;
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_data_->_tmp12_ = FALSE;
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_data_->_tmp12_ = gee_iterator_next (_data_->_tmp11_);
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				if (!_data_->_tmp12_) {
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
					break;
#line 596 "link-personas.c"
				}
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_data_->_tmp13_ = _data_->_backend_it;
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_data_->_tmp14_ = NULL;
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_data_->_tmp14_ = gee_iterator_get (_data_->_tmp13_);
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_data_->backend = (FolksBackend*) _data_->_tmp14_;
#line 117 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_data_->_tmp15_ = _data_->backend;
#line 117 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_data_->_tmp16_ = folks_backend_get_persona_stores (_data_->_tmp15_);
#line 117 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_data_->_tmp17_ = _data_->_tmp16_;
#line 117 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_data_->_tmp18_ = NULL;
#line 117 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_data_->_tmp18_ = gee_map_get (_data_->_tmp17_, "tracker");
#line 117 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_g_object_unref0 (_data_->pstore);
#line 117 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_data_->pstore = (FolksPersonaStore*) _data_->_tmp18_;
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_data_->_tmp19_ = _data_->pstore;
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				if (_data_->_tmp19_ != NULL) {
#line 119 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
					_g_object_unref0 (_data_->backend);
#line 119 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
					break;
#line 628 "link-personas.c"
				}
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_g_object_unref0 (_data_->backend);
#line 632 "link-personas.c"
			}
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_g_object_unref0 (_data_->_backend_it);
#line 636 "link-personas.c"
		}
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_tmp20_ = _data_->pstore;
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_vala_assert (_data_->_tmp20_ != NULL, "pstore != null");
#line 122 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_tmp21_ = _data_->pstore;
#line 122 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		g_signal_connect_object ((GObject*) _data_->_tmp21_, "notify::is-prepared", (GCallback) __link_personas_tests_persona_store_prepared_cb_g_object_notify, _data_->self, 0);
#line 110 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_g_object_unref0 (_data_->pstore);
#line 648 "link-personas.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 110 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->e = _data_->_inner_error_;
#line 110 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_inner_error_ = NULL;
#line 126 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_tmp22_ = _data_->e;
#line 126 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_tmp23_ = _data_->_tmp22_->message;
#line 126 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		g_warning ("link-personas.vala:126: Error when calling prepare: %s\n", _data_->_tmp23_);
#line 110 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_g_error_free0 (_data_->e);
#line 665 "link-personas.c"
	}
	__finally0:
#line 110 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	if (_data_->_inner_error_ != NULL) {
#line 110 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_g_object_unref0 (_data_->store);
#line 110 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 110 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		g_clear_error (&_data_->_inner_error_);
#line 110 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		return FALSE;
#line 678 "link-personas.c"
	}
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_object_unref0 (_data_->store);
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	if (_data_->_state_ == 0) {
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 686 "link-personas.c"
	} else {
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 690 "link-personas.c"
	}
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_object_unref (_data_->_async_result);
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	return FALSE;
#line 696 "link-personas.c"
}


static void _link_personas_tests_persona_store_prepared_cb (LinkPersonasTests* self, GObject* obj, GParamSpec* params) {
	GObject* _tmp0_;
	FolksPersonaStore* _tmp1_;
	FolksPersonaStore* pstore;
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_return_if_fail (self != NULL);
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_return_if_fail (obj != NULL);
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_return_if_fail (params != NULL);
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp0_ = obj;
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, FOLKS_TYPE_PERSONA_STORE) ? ((FolksPersonaStore*) _tmp0_) : NULL, FOLKS_TYPE_PERSONA_STORE, FolksPersonaStore));
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	pstore = _tmp1_;
#line 134 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_link_personas_tests_add_personas (self, pstore, NULL, NULL);
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_object_unref0 (pstore);
#line 720 "link-personas.c"
}


static void _link_personas_tests_add_personas_data_free (gpointer _data) {
	LinkPersonasTestsAddPersonasData* _data_;
	_data_ = _data;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_object_unref0 (_data_->pstore);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_slice_free (LinkPersonasTestsAddPersonasData, _data_);
#line 733 "link-personas.c"
}


static void _link_personas_tests_add_personas (LinkPersonasTests* self, FolksPersonaStore* pstore, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	LinkPersonasTestsAddPersonasData* _data_;
	LinkPersonasTests* _tmp0_;
	FolksPersonaStore* _tmp1_;
	FolksPersonaStore* _tmp2_;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_ = g_slice_new0 (LinkPersonasTestsAddPersonasData);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _link_personas_tests_add_personas);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _link_personas_tests_add_personas_data_free);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->self = _tmp0_;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp1_ = pstore;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->pstore = _tmp2_;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_link_personas_tests_add_personas_co (_data_);
#line 760 "link-personas.c"
}


static void _link_personas_tests_add_personas_finish (LinkPersonasTests* self, GAsyncResult* _res_) {
	LinkPersonasTestsAddPersonasData* _data_;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 768 "link-personas.c"
}


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


static void _vala_GValue_free (GValue* self) {
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_value_unset (self);
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_free (self);
#line 784 "link-personas.c"
}


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


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


static gpointer __g_value_dup0 (gpointer self) {
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	return self ? _g_value_dup (self) : NULL;
#line 805 "link-personas.c"
}


static void _link_personas_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	LinkPersonasTestsAddPersonasData* _data_;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_ = _user_data_;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_source_object_ = source_object;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_res_ = _res_;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_link_personas_tests_add_personas_co (_data_);
#line 819 "link-personas.c"
}


static gboolean _link_personas_tests_add_personas_co (LinkPersonasTestsAddPersonasData* _data_) {
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	switch (_data_->_state_) {
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		case 0:
#line 828 "link-personas.c"
		goto _state_0;
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		case 1:
#line 832 "link-personas.c"
		goto _state_1;
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		case 2:
#line 836 "link-personas.c"
		goto _state_2;
		default:
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		g_assert_not_reached ();
#line 841 "link-personas.c"
	}
	_state_0:
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp0_ = g_str_hash;
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp1_ = g_str_equal;
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp2_ = g_hash_table_new_full (_data_->_tmp0_, _data_->_tmp1_, _g_free0_, __vala_GValue_free0_);
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->details1 = _data_->_tmp2_;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	memset (&_data_->_tmp3_, 0, sizeof (GValue));
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_value_init (&_data_->_tmp3_, GEE_TYPE_MULTI_MAP);
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp5_ = __g_value_dup0 (&_data_->_tmp4_);
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp6_ = _data_->_tmp5_;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	G_IS_VALUE (&_data_->_tmp4_) ? (g_value_unset (&_data_->_tmp4_), NULL) : NULL;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->v1 = _data_->_tmp6_;
#line 150 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp7_ = gee_hash_multi_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, FOLKS_TYPE_IM_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
#line 150 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->im_addrs1 = _data_->_tmp7_;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp8_ = _data_->im_addrs1;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp9_ = _data_->self->priv->_proto;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp10_ = _data_->self->priv->_im_address_1;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp11_ = folks_im_field_details_new (_data_->_tmp10_, NULL);
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp12_ = _data_->_tmp11_;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	gee_multi_map_set ((GeeMultiMap*) _data_->_tmp8_, _data_->_tmp9_, _data_->_tmp12_);
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_object_unref0 (_data_->_tmp12_);
#line 154 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp13_ = _data_->v1;
#line 154 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp14_ = _data_->im_addrs1;
#line 154 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_value_set_object (_data_->_tmp13_, (GObject*) _data_->_tmp14_);
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp15_ = _data_->details1;
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp16_ = g_strdup ("im-addresses");
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp17_ = _data_->v1;
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->v1 = NULL;
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_hash_table_insert (_data_->_tmp15_, _data_->_tmp16_, _data_->_tmp17_);
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	memset (&_data_->_tmp18_, 0, sizeof (GValue));
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_value_init (&_data_->_tmp18_, G_TYPE_STRING);
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp19_ = _data_->_tmp18_;
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp20_ = __g_value_dup0 (&_data_->_tmp19_);
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp21_ = _data_->_tmp20_;
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	G_IS_VALUE (&_data_->_tmp19_) ? (g_value_unset (&_data_->_tmp19_), NULL) : NULL;
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->v2 = _data_->_tmp21_;
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp22_ = _data_->v2;
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp23_ = _data_->self->priv->_persona_fullname_1;
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_value_set_string (_data_->_tmp22_, _data_->_tmp23_);
#line 159 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp24_ = _data_->details1;
#line 159 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp25_ = g_strdup ("full-name");
#line 159 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp26_ = _data_->v2;
#line 159 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->v2 = NULL;
#line 159 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_hash_table_insert (_data_->_tmp24_, _data_->_tmp25_, _data_->_tmp26_);
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp27_ = g_str_hash;
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp28_ = g_str_equal;
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp29_ = g_hash_table_new_full (_data_->_tmp27_, _data_->_tmp28_, _g_free0_, __vala_GValue_free0_);
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->details2 = _data_->_tmp29_;
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	memset (&_data_->_tmp30_, 0, sizeof (GValue));
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_value_init (&_data_->_tmp30_, GEE_TYPE_MULTI_MAP);
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp31_ = _data_->_tmp30_;
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp32_ = __g_value_dup0 (&_data_->_tmp31_);
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp33_ = _data_->_tmp32_;
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	G_IS_VALUE (&_data_->_tmp31_) ? (g_value_unset (&_data_->_tmp31_), NULL) : NULL;
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->v3 = _data_->_tmp33_;
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp34_ = gee_hash_multi_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, FOLKS_TYPE_IM_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->im_addrs2 = _data_->_tmp34_;
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp35_ = _data_->im_addrs2;
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp36_ = _data_->self->priv->_proto;
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp37_ = _data_->self->priv->_im_address_2;
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp38_ = folks_im_field_details_new (_data_->_tmp37_, NULL);
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp39_ = _data_->_tmp38_;
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	gee_multi_map_set ((GeeMultiMap*) _data_->_tmp35_, _data_->_tmp36_, _data_->_tmp39_);
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_object_unref0 (_data_->_tmp39_);
#line 168 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp40_ = _data_->v3;
#line 168 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp41_ = _data_->im_addrs2;
#line 168 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_value_set_object (_data_->_tmp40_, (GObject*) _data_->_tmp41_);
#line 169 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp42_ = _data_->details2;
#line 169 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp43_ = g_strdup ("im-addresses");
#line 169 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp44_ = _data_->v3;
#line 169 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->v3 = NULL;
#line 169 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_hash_table_insert (_data_->_tmp42_, _data_->_tmp43_, _data_->_tmp44_);
#line 171 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	memset (&_data_->_tmp45_, 0, sizeof (GValue));
#line 171 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_value_init (&_data_->_tmp45_, G_TYPE_STRING);
#line 171 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp46_ = _data_->_tmp45_;
#line 171 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp47_ = __g_value_dup0 (&_data_->_tmp46_);
#line 171 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp48_ = _data_->_tmp47_;
#line 171 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	G_IS_VALUE (&_data_->_tmp46_) ? (g_value_unset (&_data_->_tmp46_), NULL) : NULL;
#line 171 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->v4 = _data_->_tmp48_;
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp49_ = _data_->v4;
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp50_ = _data_->self->priv->_persona_fullname_2;
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_value_set_string (_data_->_tmp49_, _data_->_tmp50_);
#line 173 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp51_ = _data_->details2;
#line 173 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp52_ = g_strdup ("full-name");
#line 173 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->_tmp53_ = _data_->v4;
#line 173 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_data_->v4 = NULL;
#line 173 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_hash_table_insert (_data_->_tmp51_, _data_->_tmp52_, _data_->_tmp53_);
#line 1016 "link-personas.c"
	{
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_tmp54_ = _data_->self->priv->_aggregator;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_tmp55_ = _data_->pstore;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_tmp56_ = _data_->details1;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_state_ = 1;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp54_, NULL, _data_->_tmp55_, _data_->_tmp56_, _link_personas_tests_add_personas_ready, _data_);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		return FALSE;
#line 1030 "link-personas.c"
		_state_1:
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_tmp57_ = NULL;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_tmp57_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp54_, _data_->_res_, &_data_->_inner_error_);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_tmp58_ = _data_->_tmp57_;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_g_object_unref0 (_data_->_tmp58_);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		if (_data_->_inner_error_ != NULL) {
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1044 "link-personas.c"
				goto __catch1_folks_individual_aggregator_error;
			}
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			__vala_GValue_free0 (_data_->v4);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_g_object_unref0 (_data_->im_addrs2);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			__vala_GValue_free0 (_data_->v3);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			__vala_GValue_free0 (_data_->v2);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_g_object_unref0 (_data_->im_addrs1);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			__vala_GValue_free0 (_data_->v1);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			g_clear_error (&_data_->_inner_error_);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			return FALSE;
#line 1069 "link-personas.c"
		}
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_tmp59_ = _data_->self->priv->_aggregator;
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_tmp60_ = _data_->pstore;
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_tmp61_ = _data_->details2;
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_state_ = 2;
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp59_, NULL, _data_->_tmp60_, _data_->_tmp61_, _link_personas_tests_add_personas_ready, _data_);
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		return FALSE;
#line 1083 "link-personas.c"
		_state_2:
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_tmp62_ = NULL;
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_tmp62_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp59_, _data_->_res_, &_data_->_inner_error_);
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_tmp63_ = _data_->_tmp62_;
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_g_object_unref0 (_data_->_tmp63_);
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		if (_data_->_inner_error_ != NULL) {
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1097 "link-personas.c"
				goto __catch1_folks_individual_aggregator_error;
			}
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			__vala_GValue_free0 (_data_->v4);
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_g_object_unref0 (_data_->im_addrs2);
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			__vala_GValue_free0 (_data_->v3);
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			__vala_GValue_free0 (_data_->v2);
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_g_object_unref0 (_data_->im_addrs1);
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			__vala_GValue_free0 (_data_->v1);
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			g_clear_error (&_data_->_inner_error_);
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			return FALSE;
#line 1122 "link-personas.c"
		}
	}
	goto __finally1;
	__catch1_folks_individual_aggregator_error:
	{
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->e = _data_->_inner_error_;
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_inner_error_ = NULL;
#line 185 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_tmp64_ = _data_->e;
#line 185 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_data_->_tmp65_ = _data_->_tmp64_->message;
#line 185 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		g_warning ("link-personas.vala:185: [AddPersonaError] add_persona_from_details: %s" \
"\n", _data_->_tmp65_);
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_g_error_free0 (_data_->e);
#line 1140 "link-personas.c"
	}
	__finally1:
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	if (_data_->_inner_error_ != NULL) {
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		__vala_GValue_free0 (_data_->v4);
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_g_object_unref0 (_data_->im_addrs2);
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		__vala_GValue_free0 (_data_->v3);
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_g_hash_table_unref0 (_data_->details2);
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		__vala_GValue_free0 (_data_->v2);
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_g_object_unref0 (_data_->im_addrs1);
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		__vala_GValue_free0 (_data_->v1);
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_g_hash_table_unref0 (_data_->details1);
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		g_clear_error (&_data_->_inner_error_);
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		return FALSE;
#line 1167 "link-personas.c"
	}
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	__vala_GValue_free0 (_data_->v4);
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_object_unref0 (_data_->im_addrs2);
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	__vala_GValue_free0 (_data_->v3);
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_hash_table_unref0 (_data_->details2);
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	__vala_GValue_free0 (_data_->v2);
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_object_unref0 (_data_->im_addrs1);
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	__vala_GValue_free0 (_data_->v1);
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_hash_table_unref0 (_data_->details1);
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	if (_data_->_state_ == 0) {
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1189 "link-personas.c"
	} else {
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1193 "link-personas.c"
	}
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_object_unref (_data_->_async_result);
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	return FALSE;
#line 1199 "link-personas.c"
}


static void __link_personas_tests_notify_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 207 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_link_personas_tests_notify_cb (self, _sender, pspec);
#line 1206 "link-personas.c"
}


static void _link_personas_tests_individuals_changed_cb (LinkPersonasTests* self, GeeMultiMap* changes) {
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_return_if_fail (self != NULL);
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_return_if_fail (changes != NULL);
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp0_ = changes;
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	added = _tmp1_;
#line 1224 "link-personas.c"
	{
		GeeCollection* _tmp2_;
		GeeIterator* _tmp3_ = NULL;
		GeeIterator* _i_it;
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp2_ = added;
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp3_ = gee_iterable_iterator ((GeeIterable*) _tmp2_);
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_i_it = _tmp3_;
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		while (TRUE) {
#line 1237 "link-personas.c"
			GeeIterator* _tmp4_;
			gboolean _tmp5_ = FALSE;
			GeeIterator* _tmp6_;
			gpointer _tmp7_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp8_;
			FolksIndividual* _tmp9_;
			gboolean _tmp10_;
			gboolean _tmp11_;
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp4_ = _i_it;
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp5_ = gee_iterator_next (_tmp4_);
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			if (!_tmp5_) {
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				break;
#line 1255 "link-personas.c"
			}
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp6_ = _i_it;
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp7_ = gee_iterator_get (_tmp6_);
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			i = (FolksIndividual*) _tmp7_;
#line 197 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp8_ = i;
#line 197 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			if (_tmp8_ == NULL) {
#line 199 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_g_object_unref0 (i);
#line 199 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				continue;
#line 1271 "link-personas.c"
			}
#line 204 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp9_ = i;
#line 204 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp10_ = folks_individual_get_is_user (_tmp9_);
#line 204 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp11_ = _tmp10_;
#line 204 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			if (!_tmp11_) {
#line 1281 "link-personas.c"
				FolksIndividual* _tmp12_;
				FolksIndividual* _tmp13_;
				FolksIndividual* _tmp14_;
#line 206 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_tmp12_ = i;
#line 206 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_link_personas_tests_check_personas (self, _tmp12_);
#line 207 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_tmp13_ = i;
#line 207 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				g_signal_connect_object ((GObject*) _tmp13_, "notify::full-name", (GCallback) __link_personas_tests_notify_cb_g_object_notify, self, 0);
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_tmp14_ = i;
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				g_signal_connect_object ((GObject*) _tmp14_, "notify::im-addresses", (GCallback) __link_personas_tests_notify_cb_g_object_notify, self, 0);
#line 1297 "link-personas.c"
			}
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_g_object_unref0 (i);
#line 1301 "link-personas.c"
		}
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_g_object_unref0 (_i_it);
#line 1305 "link-personas.c"
	}
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_object_unref0 (added);
#line 1309 "link-personas.c"
}


static void _link_personas_tests_notify_cb (LinkPersonasTests* self, GObject* individual_obj, GParamSpec* ps) {
	GObject* _tmp0_;
	FolksIndividual* _tmp1_;
	FolksIndividual* i;
#line 213 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_return_if_fail (self != NULL);
#line 213 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_return_if_fail (individual_obj != NULL);
#line 213 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_return_if_fail (ps != NULL);
#line 215 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp0_ = individual_obj;
#line 215 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, FOLKS_TYPE_INDIVIDUAL, FolksIndividual));
#line 215 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	i = _tmp1_;
#line 216 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_link_personas_tests_check_personas (self, i);
#line 213 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_object_unref0 (i);
#line 1333 "link-personas.c"
}


static gboolean ___lambda2_ (LinkPersonasTests* self) {
	gboolean result = FALSE;
	FolksIndividualAggregator* _tmp0_;
	GeeHashSet* _tmp1_;
#line 286 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp0_ = self->priv->_aggregator;
#line 286 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp1_ = self->priv->_personas;
#line 286 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	folks_individual_aggregator_link_personas (_tmp0_, (GeeSet*) _tmp1_, NULL, NULL);
#line 287 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	result = FALSE;
#line 287 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	return result;
#line 1351 "link-personas.c"
}


static gboolean ____lambda2__gsource_func (gpointer self) {
	gboolean result;
	result = ___lambda2_ (self);
#line 284 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	return result;
#line 1360 "link-personas.c"
}


static void _link_personas_tests_check_personas (LinkPersonasTests* self, FolksIndividual* i) {
	FolksPersona* first_persona;
	gboolean _tmp8_ = FALSE;
	FolksIndividual* _tmp9_;
	const gchar* _tmp10_;
	const gchar* _tmp11_;
	const gchar* _tmp12_;
	gboolean _tmp14_;
	gboolean _tmp81_ = FALSE;
	GeeHashSet* _tmp82_;
	gint _tmp83_;
	gint _tmp84_;
	gboolean _tmp86_;
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_return_if_fail (self != NULL);
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_return_if_fail (i != NULL);
#line 231 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	first_persona = NULL;
#line 1383 "link-personas.c"
	{
		FolksIndividual* _tmp0_;
		GeeSet* _tmp1_;
		GeeSet* _tmp2_;
		GeeIterator* _tmp3_ = NULL;
		GeeIterator* _p_it;
#line 232 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp0_ = i;
#line 232 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp1_ = folks_individual_get_personas (_tmp0_);
#line 232 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp2_ = _tmp1_;
#line 232 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp3_ = gee_iterable_iterator ((GeeIterable*) _tmp2_);
#line 232 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_p_it = _tmp3_;
#line 232 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		while (TRUE) {
#line 1402 "link-personas.c"
			gboolean _tmp4_ = FALSE;
			gpointer _tmp5_ = NULL;
			FolksPersona* p;
			FolksPersona* _tmp6_;
			FolksPersona* _tmp7_;
#line 232 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp4_ = gee_iterator_next (_p_it);
#line 232 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			if (!_tmp4_) {
#line 232 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				break;
#line 1414 "link-personas.c"
			}
#line 232 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp5_ = gee_iterator_get (_p_it);
#line 232 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			p = (FolksPersona*) _tmp5_;
#line 234 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp6_ = p;
#line 234 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp7_ = _g_object_ref0 (_tmp6_);
#line 234 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_g_object_unref0 (first_persona);
#line 234 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			first_persona = _tmp7_;
#line 235 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_g_object_unref0 (p);
#line 235 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			break;
#line 1432 "link-personas.c"
		}
#line 232 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_g_object_unref0 (_p_it);
#line 1436 "link-personas.c"
	}
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp9_ = i;
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp10_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp9_);
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp11_ = _tmp10_;
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp12_ = self->priv->_persona_fullname_1;
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	if (g_strcmp0 (_tmp11_, _tmp12_) == 0) {
#line 1448 "link-personas.c"
		const gchar* _tmp13_;
#line 239 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp13_ = self->priv->_persona_iid_1;
#line 239 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp8_ = g_strcmp0 (_tmp13_, "") == 0;
#line 1454 "link-personas.c"
	} else {
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp8_ = FALSE;
#line 1458 "link-personas.c"
	}
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp14_ = _tmp8_;
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	if (_tmp14_) {
#line 1464 "link-personas.c"
		FolksPersona* _tmp15_;
		const gchar* _tmp16_;
		const gchar* _tmp17_;
		gchar* _tmp18_;
		GeeHashSet* _tmp19_;
		FolksPersona* _tmp20_;
#line 241 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp15_ = first_persona;
#line 241 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp16_ = folks_persona_get_iid (_tmp15_);
#line 241 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp17_ = _tmp16_;
#line 241 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp18_ = g_strdup (_tmp17_);
#line 241 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_g_free0 (self->priv->_persona_iid_1);
#line 241 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		self->priv->_persona_iid_1 = _tmp18_;
#line 242 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp19_ = self->priv->_personas;
#line 242 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp20_ = first_persona;
#line 242 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		gee_abstract_collection_add ((GeeAbstractCollection*) _tmp19_, _tmp20_);
#line 1489 "link-personas.c"
	} else {
		gboolean _tmp21_ = FALSE;
		FolksIndividual* _tmp22_;
		const gchar* _tmp23_;
		const gchar* _tmp24_;
		const gchar* _tmp25_;
		gboolean _tmp27_;
#line 244 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp22_ = i;
#line 244 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp23_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp22_);
#line 244 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp24_ = _tmp23_;
#line 244 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp25_ = self->priv->_persona_fullname_2;
#line 244 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		if (g_strcmp0 (_tmp24_, _tmp25_) == 0) {
#line 1507 "link-personas.c"
			const gchar* _tmp26_;
#line 245 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp26_ = self->priv->_persona_iid_2;
#line 245 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp21_ = g_strcmp0 (_tmp26_, "") == 0;
#line 1513 "link-personas.c"
		} else {
#line 244 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp21_ = FALSE;
#line 1517 "link-personas.c"
		}
#line 244 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp27_ = _tmp21_;
#line 244 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		if (_tmp27_) {
#line 1523 "link-personas.c"
			FolksPersona* _tmp28_;
			const gchar* _tmp29_;
			const gchar* _tmp30_;
			gchar* _tmp31_;
			GeeHashSet* _tmp32_;
			FolksPersona* _tmp33_;
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp28_ = first_persona;
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp29_ = folks_persona_get_iid (_tmp28_);
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp30_ = _tmp29_;
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp31_ = g_strdup (_tmp30_);
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_g_free0 (self->priv->_persona_iid_2);
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			self->priv->_persona_iid_2 = _tmp31_;
#line 248 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp32_ = self->priv->_personas;
#line 248 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp33_ = first_persona;
#line 248 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp32_, _tmp33_);
#line 1548 "link-personas.c"
		} else {
			FolksIndividual* _tmp34_;
			GeeSet* _tmp35_;
			GeeSet* _tmp36_;
			gint _tmp37_;
			gint _tmp38_;
#line 250 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp34_ = i;
#line 250 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp35_ = folks_individual_get_personas (_tmp34_);
#line 250 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp36_ = _tmp35_;
#line 250 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp37_ = gee_collection_get_size ((GeeCollection*) _tmp36_);
#line 250 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			_tmp38_ = _tmp37_;
#line 250 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
			if (_tmp38_ > 1) {
#line 1567 "link-personas.c"
				GeeHashMap* _tmp77_;
				gint _tmp78_;
				gint _tmp79_;
				{
					FolksIndividual* _tmp39_;
					GeeMultiMap* _tmp40_;
					GeeMultiMap* _tmp41_;
					GeeSet* _tmp42_ = NULL;
					GeeSet* _tmp43_;
					GeeIterator* _tmp44_ = NULL;
					GeeIterator* _tmp45_;
					GeeIterator* _proto_it;
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
					_tmp39_ = i;
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
					_tmp40_ = folks_im_details_get_im_addresses ((FolksImDetails*) _tmp39_);
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
					_tmp41_ = _tmp40_;
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
					_tmp42_ = gee_multi_map_get_keys (_tmp41_);
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
					_tmp43_ = _tmp42_;
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
					_tmp44_ = gee_iterable_iterator ((GeeIterable*) _tmp43_);
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
					_tmp45_ = _tmp44_;
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
					_g_object_unref0 (_tmp43_);
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
					_proto_it = _tmp45_;
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
					while (TRUE) {
#line 1600 "link-personas.c"
						GeeIterator* _tmp46_;
						gboolean _tmp47_ = FALSE;
						GeeIterator* _tmp48_;
						gpointer _tmp49_ = NULL;
						gchar* proto;
						FolksIndividual* _tmp50_;
						GeeMultiMap* _tmp51_;
						GeeMultiMap* _tmp52_;
						const gchar* _tmp53_;
						GeeCollection* _tmp54_ = NULL;
						GeeCollection* addrs;
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
						_tmp46_ = _proto_it;
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
						_tmp47_ = gee_iterator_next (_tmp46_);
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
						if (!_tmp47_) {
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
							break;
#line 1620 "link-personas.c"
						}
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
						_tmp48_ = _proto_it;
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
						_tmp49_ = gee_iterator_get (_tmp48_);
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
						proto = (gchar*) _tmp49_;
#line 255 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
						_tmp50_ = i;
#line 255 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
						_tmp51_ = folks_im_details_get_im_addresses ((FolksImDetails*) _tmp50_);
#line 255 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
						_tmp52_ = _tmp51_;
#line 255 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
						_tmp53_ = proto;
#line 255 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
						_tmp54_ = gee_multi_map_get (_tmp52_, _tmp53_);
#line 255 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
						addrs = _tmp54_;
#line 1640 "link-personas.c"
						{
							GeeCollection* _tmp55_;
							GeeIterator* _tmp56_ = NULL;
							GeeIterator* _a_it;
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
							_tmp55_ = addrs;
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
							_tmp56_ = gee_iterable_iterator ((GeeIterable*) _tmp55_);
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
							_a_it = _tmp56_;
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
							while (TRUE) {
#line 1653 "link-personas.c"
								GeeIterator* _tmp57_;
								gboolean _tmp58_ = FALSE;
								GeeIterator* _tmp59_;
								gpointer _tmp60_ = NULL;
								FolksImFieldDetails* a;
								FolksImFieldDetails* _tmp61_;
								gconstpointer _tmp62_;
								const gchar* _tmp63_;
								GeeHashMap* _tmp64_;
								gpointer _tmp65_ = NULL;
								gchar* _tmp66_;
								gboolean _tmp67_;
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
								_tmp57_ = _a_it;
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
								_tmp58_ = gee_iterator_next (_tmp57_);
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
								if (!_tmp58_) {
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
									break;
#line 1674 "link-personas.c"
								}
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
								_tmp59_ = _a_it;
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
								_tmp60_ = gee_iterator_get (_tmp59_);
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
								a = (FolksImFieldDetails*) _tmp60_;
#line 258 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
								_tmp61_ = a;
#line 258 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
								_tmp62_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp61_);
#line 258 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
								_tmp63_ = _tmp62_;
#line 258 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
								_tmp64_ = self->priv->_linking_props;
#line 258 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
								_tmp65_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp64_, "prop1");
#line 258 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
								_tmp66_ = (gchar*) _tmp65_;
#line 258 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
								_tmp67_ = g_strcmp0 ((const gchar*) _tmp63_, _tmp66_) == 0;
#line 258 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
								_g_free0 (_tmp66_);
#line 258 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
								if (_tmp67_) {
#line 1700 "link-personas.c"
									GeeHashMap* _tmp68_;
#line 260 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
									_tmp68_ = self->priv->_linking_props;
#line 260 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
									gee_abstract_map_unset ((GeeAbstractMap*) _tmp68_, "prop1", NULL);
#line 1706 "link-personas.c"
								} else {
									FolksImFieldDetails* _tmp69_;
									gconstpointer _tmp70_;
									const gchar* _tmp71_;
									GeeHashMap* _tmp72_;
									gpointer _tmp73_ = NULL;
									gchar* _tmp74_;
									gboolean _tmp75_;
#line 262 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
									_tmp69_ = a;
#line 262 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
									_tmp70_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp69_);
#line 262 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
									_tmp71_ = _tmp70_;
#line 262 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
									_tmp72_ = self->priv->_linking_props;
#line 262 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
									_tmp73_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp72_, "prop2");
#line 262 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
									_tmp74_ = (gchar*) _tmp73_;
#line 262 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
									_tmp75_ = g_strcmp0 ((const gchar*) _tmp71_, _tmp74_) == 0;
#line 262 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
									_g_free0 (_tmp74_);
#line 262 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
									if (_tmp75_) {
#line 1733 "link-personas.c"
										GeeHashMap* _tmp76_;
#line 264 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
										_tmp76_ = self->priv->_linking_props;
#line 264 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
										gee_abstract_map_unset ((GeeAbstractMap*) _tmp76_, "prop2", NULL);
#line 1739 "link-personas.c"
									}
								}
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
								_g_object_unref0 (a);
#line 1744 "link-personas.c"
							}
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
							_g_object_unref0 (_a_it);
#line 1748 "link-personas.c"
						}
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
						_g_object_unref0 (addrs);
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
						_g_free0 (proto);
#line 1754 "link-personas.c"
					}
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
					_g_object_unref0 (_proto_it);
#line 1758 "link-personas.c"
				}
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_tmp77_ = self->priv->_linking_props;
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_tmp78_ = gee_abstract_map_get_size ((GeeMap*) _tmp77_);
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				_tmp79_ = _tmp78_;
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
				if (_tmp79_ == 0) {
#line 1768 "link-personas.c"
					GMainLoop* _tmp80_;
#line 271 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
					_tmp80_ = self->priv->_main_loop;
#line 271 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
					g_main_loop_quit (_tmp80_);
#line 1774 "link-personas.c"
				}
			}
		}
	}
#line 277 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp82_ = self->priv->_personas;
#line 277 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp83_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp82_);
#line 277 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp84_ = _tmp83_;
#line 277 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	if (_tmp84_ == 2) {
#line 1787 "link-personas.c"
		gboolean _tmp85_;
#line 278 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp85_ = self->priv->_linking_fired;
#line 278 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp81_ = _tmp85_ == FALSE;
#line 1793 "link-personas.c"
	} else {
#line 277 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		_tmp81_ = FALSE;
#line 1797 "link-personas.c"
	}
#line 277 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp86_ = _tmp81_;
#line 277 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	if (_tmp86_) {
#line 280 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		self->priv->_linking_fired = TRUE;
#line 284 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
		g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 2, ____lambda2__gsource_func, g_object_ref (self), g_object_unref);
#line 1807 "link-personas.c"
	}
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_object_unref0 (first_persona);
#line 1811 "link-personas.c"
}


static void link_personas_tests_class_init (LinkPersonasTestsClass * klass) {
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	link_personas_tests_parent_class = g_type_class_peek_parent (klass);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_type_class_add_private (klass, sizeof (LinkPersonasTestsPrivate));
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = link_personas_tests_real_set_up;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = link_personas_tests_real_tear_down;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	G_OBJECT_CLASS (klass)->finalize = link_personas_tests_finalize;
#line 1826 "link-personas.c"
}


static void link_personas_tests_instance_init (LinkPersonasTests * self) {
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	self->priv = LINK_PERSONAS_TESTS_GET_PRIVATE (self);
#line 33 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp0_ = g_strdup ("jabber");
#line 33 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	self->priv->_proto = _tmp0_;
#line 34 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp1_ = g_strdup ("someone-1@jabber.example.org");
#line 34 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	self->priv->_im_address_1 = _tmp1_;
#line 35 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp2_ = g_strdup ("someone-2@jabber.example.org");
#line 35 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	self->priv->_im_address_2 = _tmp2_;
#line 39 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp3_ = g_strdup ("");
#line 39 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	self->priv->_persona_iid_1 = _tmp3_;
#line 40 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp4_ = g_strdup ("");
#line 40 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	self->priv->_persona_iid_2 = _tmp4_;
#line 1858 "link-personas.c"
}


static void link_personas_tests_finalize (GObject* obj) {
	LinkPersonasTests * self;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_LINK_PERSONAS_TESTS, LinkPersonasTests);
#line 28 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 29 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 30 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 31 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_free0 (self->priv->_persona_fullname_1);
#line 32 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_free0 (self->priv->_persona_fullname_2);
#line 33 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_free0 (self->priv->_proto);
#line 34 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_free0 (self->priv->_im_address_1);
#line 35 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_free0 (self->priv->_im_address_2);
#line 39 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_free0 (self->priv->_persona_iid_1);
#line 40 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_free0 (self->priv->_persona_iid_2);
#line 41 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_object_unref0 (self->priv->_personas);
#line 42 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_object_unref0 (self->priv->_linking_props);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	G_OBJECT_CLASS (link_personas_tests_parent_class)->finalize (obj);
#line 1892 "link-personas.c"
}


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


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	LinkPersonasTests* _tmp1_;
	LinkPersonasTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 295 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_test_init (&args_length1, &args, NULL);
#line 297 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp0_ = g_test_get_root ();
#line 297 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	root = _tmp0_;
#line 298 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp1_ = link_personas_tests_new ();
#line 298 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp2_ = _tmp1_;
#line 298 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 298 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 298 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	_g_object_unref0 (_tmp2_);
#line 300 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	g_test_run ();
#line 302 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	result = 0;
#line 302 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/link-personas.vala"
	return result;
#line 1937 "link-personas.c"
}


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



