/* add-persona.c generated by valac 0.13.1.106-1068, the Vala compiler
 * generated from add-persona.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 <gio/gio.h>
#include <folks/folks-tracker.h>
#include <gee.h>


#define TYPE_ADD_PERSONA_TESTS (add_persona_tests_get_type ())
#define ADD_PERSONA_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_PERSONA_TESTS, AddPersonaTests))
#define ADD_PERSONA_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_PERSONA_TESTS, AddPersonaTestsClass))
#define IS_ADD_PERSONA_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_PERSONA_TESTS))
#define IS_ADD_PERSONA_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_PERSONA_TESTS))
#define ADD_PERSONA_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_PERSONA_TESTS, AddPersonaTestsClass))

typedef struct _AddPersonaTests AddPersonaTests;
typedef struct _AddPersonaTestsClass AddPersonaTestsClass;
typedef struct _AddPersonaTestsPrivate AddPersonaTestsPrivate;
#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_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _AddPersonaTestsTestAddPersonaAsyncData AddPersonaTestsTestAddPersonaAsyncData;
#define __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL)))
typedef struct _AddPersonaTestsAddPersonaData AddPersonaTestsAddPersonaData;

struct _AddPersonaTests {
	FolksTestCase parent_instance;
	AddPersonaTestsPrivate * priv;
};

struct _AddPersonaTestsClass {
	FolksTestCaseClass parent_class;
};

struct _AddPersonaTestsPrivate {
	GMainLoop* _main_loop;
	TrackerTestBackend* _tracker_backend;
	FolksIndividualAggregator* _aggregator;
	gchar* _persona_fullname;
	gchar* _persona_nickname;
	gchar* _family_name;
	gchar* _given_name;
	GHashTable* _properties_found;
	gchar* _persona_iid;
	GLoadableIcon* _avatar;
	gchar* _file_uri;
	gchar* _birthday;
	GDateTime* _bday;
	gchar* _email_1;
	gchar* _email_2;
	gchar* _im_addr_1;
	gchar* _im_addr_2;
	gchar* _note_1;
	gchar* _phone_1;
	gchar* _phone_2;
	gchar* _title_1;
	gchar* _organisation_1;
	gchar* _role_1;
	FolksPostalAddressFieldDetails* _postal_address_fd;
	gchar* _po_box;
	gchar* _locality;
	gchar* _postal_code;
	gchar* _street;
	gchar* _extension;
	gchar* _country;
	gchar* _region;
	gchar* _url_1;
	gchar* _url_2;
	TrfPersonaStore* _pstore;
	gboolean _added_persona;
	GStaticRecMutex __lock__added_persona;
};

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

struct _AddPersonaTestsAddPersonaData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	AddPersonaTests* self;
	GHashFunc _tmp0_;
	GEqualFunc _tmp1_;
	GHashTable* _tmp2_;
	GHashTable* details;
	GValue _tmp3_;
	GValue _tmp4_;
	GValue _tmp5_;
	GValue* _tmp6_;
	GValue* _tmp7_;
	GValue* v1;
	GValue* _tmp8_;
	const gchar* _tmp9_;
	GHashTable* _tmp10_;
	const gchar* _tmp11_;
	gchar* _tmp12_;
	GValue* _tmp13_;
	GValue _tmp14_;
	GValue _tmp15_;
	GValue _tmp16_;
	GValue* _tmp17_;
	GValue* _tmp18_;
	GValue* v2;
	GValue* _tmp19_;
	const gchar* _tmp20_;
	GHashTable* _tmp21_;
	const gchar* _tmp22_;
	gchar* _tmp23_;
	GValue* _tmp24_;
	GValue _tmp25_;
	GValue _tmp26_;
	GValue _tmp27_;
	GValue* _tmp28_;
	GValue* _tmp29_;
	GValue* v3;
	GValue* _tmp30_;
	GHashTable* _tmp31_;
	const gchar* _tmp32_;
	gchar* _tmp33_;
	GValue* _tmp34_;
	GValue _tmp35_;
	GValue _tmp36_;
	GValue _tmp37_;
	GValue* _tmp38_;
	GValue* _tmp39_;
	GValue* v4;
	const gchar* _tmp40_;
	const gchar* _tmp41_;
	FolksStructuredName* _tmp42_;
	FolksStructuredName* sname;
	GValue* _tmp43_;
	FolksStructuredName* _tmp44_;
	GHashTable* _tmp45_;
	const gchar* _tmp46_;
	gchar* _tmp47_;
	GValue* _tmp48_;
	GValue _tmp49_;
	GValue _tmp50_;
	GValue _tmp51_;
	GValue* _tmp52_;
	GValue* _tmp53_;
	GValue* v5;
	GValue* _tmp54_;
	GLoadableIcon* _tmp55_;
	GHashTable* _tmp56_;
	const gchar* _tmp57_;
	gchar* _tmp58_;
	GValue* _tmp59_;
	GValue _tmp60_;
	GValue _tmp61_;
	GValue _tmp62_;
	GValue* _tmp63_;
	GValue* _tmp64_;
	GValue* v6;
	GTimeVal t;
	const gchar* _tmp65_;
	GTimeVal _tmp66_;
	GDateTime* _tmp67_;
	GDateTime* dobj;
	GValue* _tmp68_;
	GDateTime* _tmp69_;
	GHashTable* _tmp70_;
	const gchar* _tmp71_;
	gchar* _tmp72_;
	GValue* _tmp73_;
	GValue _tmp74_;
	GValue _tmp75_;
	GValue _tmp76_;
	GValue* _tmp77_;
	GValue* _tmp78_;
	GValue* v7;
	GValue* _tmp79_;
	GHashTable* _tmp80_;
	const gchar* _tmp81_;
	gchar* _tmp82_;
	GValue* _tmp83_;
	GValue _tmp84_;
	GValue _tmp85_;
	GValue _tmp86_;
	GValue* _tmp87_;
	GValue* _tmp88_;
	GValue* v8;
	GeeHashSet* _tmp89_;
	GeeHashSet* emails;
	const gchar* _tmp90_;
	FolksEmailFieldDetails* _tmp91_;
	FolksEmailFieldDetails* email_1;
	GeeHashSet* _tmp92_;
	FolksEmailFieldDetails* _tmp93_;
	const gchar* _tmp94_;
	FolksEmailFieldDetails* _tmp95_;
	FolksEmailFieldDetails* email_2;
	GeeHashSet* _tmp96_;
	FolksEmailFieldDetails* _tmp97_;
	GValue* _tmp98_;
	GeeHashSet* _tmp99_;
	GHashTable* _tmp100_;
	const gchar* _tmp101_;
	gchar* _tmp102_;
	GValue* _tmp103_;
	GValue _tmp104_;
	GValue _tmp105_;
	GValue _tmp106_;
	GValue* _tmp107_;
	GValue* _tmp108_;
	GValue* v9;
	GeeHashMultiMap* _tmp109_;
	GeeHashMultiMap* im_addrs;
	GeeHashMultiMap* _tmp110_;
	const gchar* _tmp111_;
	FolksImFieldDetails* _tmp112_;
	FolksImFieldDetails* _tmp113_;
	GeeHashMultiMap* _tmp114_;
	const gchar* _tmp115_;
	FolksImFieldDetails* _tmp116_;
	FolksImFieldDetails* _tmp117_;
	GValue* _tmp118_;
	GeeHashMultiMap* _tmp119_;
	GHashTable* _tmp120_;
	const gchar* _tmp121_;
	gchar* _tmp122_;
	GValue* _tmp123_;
	GValue* _tmp124_;
	GValue _tmp125_;
	GValue _tmp126_;
	GValue _tmp127_;
	GValue* _tmp128_;
	GValue* _tmp129_;
	GValue* v10;
	GeeHashSet* _tmp130_;
	GeeHashSet* notes;
	const gchar* _tmp131_;
	FolksNoteFieldDetails* _tmp132_;
	FolksNoteFieldDetails* note_fd_1;
	GeeHashSet* _tmp133_;
	FolksNoteFieldDetails* _tmp134_;
	GValue* _tmp135_;
	GeeHashSet* _tmp136_;
	GHashTable* _tmp137_;
	const gchar* _tmp138_;
	gchar* _tmp139_;
	GValue* _tmp140_;
	GValue _tmp141_;
	GValue _tmp142_;
	GValue _tmp143_;
	GValue* _tmp144_;
	GValue* _tmp145_;
	GValue* v11;
	GeeHashSet* _tmp146_;
	GeeHashSet* phones;
	const gchar* _tmp147_;
	FolksPhoneFieldDetails* _tmp148_;
	FolksPhoneFieldDetails* phone_1;
	GeeHashSet* _tmp149_;
	FolksPhoneFieldDetails* _tmp150_;
	const gchar* _tmp151_;
	FolksPhoneFieldDetails* _tmp152_;
	FolksPhoneFieldDetails* phone_2;
	GeeHashSet* _tmp153_;
	FolksPhoneFieldDetails* _tmp154_;
	GValue* _tmp155_;
	GeeHashSet* _tmp156_;
	GHashTable* _tmp157_;
	const gchar* _tmp158_;
	gchar* _tmp159_;
	GValue* _tmp160_;
	GValue _tmp161_;
	GValue _tmp162_;
	GValue _tmp163_;
	GValue* _tmp164_;
	GValue* _tmp165_;
	GValue* v12;
	GeeHashSet* _tmp166_;
	GeeHashSet* role_fds;
	const gchar* _tmp167_;
	const gchar* _tmp168_;
	FolksRole* _tmp169_;
	FolksRole* r1;
	FolksRole* _tmp170_;
	const gchar* _tmp171_;
	FolksRole* _tmp172_;
	FolksRoleFieldDetails* _tmp173_;
	FolksRoleFieldDetails* role_fd1;
	GeeHashSet* _tmp174_;
	FolksRoleFieldDetails* _tmp175_;
	GValue* _tmp176_;
	GeeHashSet* _tmp177_;
	GHashTable* _tmp178_;
	const gchar* _tmp179_;
	gchar* _tmp180_;
	GValue* _tmp181_;
	GValue _tmp182_;
	GValue _tmp183_;
	GValue _tmp184_;
	GValue* _tmp185_;
	GValue* _tmp186_;
	GValue* v13;
	GeeHashSet* _tmp187_;
	GeeHashSet* postal_addresses;
	const gchar* _tmp188_;
	const gchar* _tmp189_;
	const gchar* _tmp190_;
	const gchar* _tmp191_;
	const gchar* _tmp192_;
	const gchar* _tmp193_;
	const gchar* _tmp194_;
	FolksPostalAddress* _tmp195_;
	FolksPostalAddress* postal_a;
	FolksPostalAddress* _tmp196_;
	FolksPostalAddressFieldDetails* _tmp197_;
	FolksPostalAddressFieldDetails* postal_a_fd;
	GeeHashSet* _tmp198_;
	FolksPostalAddressFieldDetails* _tmp199_;
	GValue* _tmp200_;
	GeeHashSet* _tmp201_;
	GHashTable* _tmp202_;
	const gchar* _tmp203_;
	gchar* _tmp204_;
	GValue* _tmp205_;
	GValue _tmp206_;
	GValue _tmp207_;
	GValue _tmp208_;
	GValue* _tmp209_;
	GValue* _tmp210_;
	GValue* v14;
	GeeHashSet* _tmp211_;
	GeeHashSet* urls;
	const gchar* _tmp212_;
	FolksUrlFieldDetails* _tmp213_;
	FolksUrlFieldDetails* url_1;
	GeeHashSet* _tmp214_;
	FolksUrlFieldDetails* _tmp215_;
	const gchar* _tmp216_;
	FolksUrlFieldDetails* _tmp217_;
	FolksUrlFieldDetails* url_2;
	GeeHashSet* _tmp218_;
	FolksUrlFieldDetails* _tmp219_;
	GValue* _tmp220_;
	GeeHashSet* _tmp221_;
	GHashTable* _tmp222_;
	const gchar* _tmp223_;
	gchar* _tmp224_;
	GValue* _tmp225_;
	FolksIndividualAggregator* _tmp226_;
	TrfPersonaStore* _tmp227_;
	GHashTable* _tmp228_;
	FolksPersona* _tmp229_;
	FolksPersona* _tmp230_;
	FolksPersona* _tmp231_;
	TrfPersona* persona;
	TrfPersona* _tmp232_;
	const gchar* _tmp233_;
	const gchar* _tmp234_;
	gchar* _tmp235_;
	GError* e;
	GError* _tmp236_;
	const gchar* _tmp237_;
	GError * _inner_error_;
};


static gpointer add_persona_tests_parent_class = NULL;

GType add_persona_tests_get_type (void) G_GNUC_CONST;
#define ADD_PERSONA_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADD_PERSONA_TESTS, AddPersonaTestsPrivate))
enum  {
	ADD_PERSONA_TESTS_DUMMY_PROPERTY
};
AddPersonaTests* add_persona_tests_new (void);
AddPersonaTests* add_persona_tests_construct (GType object_type);
void add_persona_tests_test_add_persona (AddPersonaTests* self);
static void _add_persona_tests_test_add_persona_folks_test_case_test_method (gpointer self);
static void add_persona_tests_real_set_up (FolksTestCase* base);
static void add_persona_tests_real_tear_down (FolksTestCase* base);
static void _g_free0_ (gpointer var);
static void _add_persona_tests_test_add_persona_async (AddPersonaTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _add_persona_tests_test_add_persona_finish (AddPersonaTests* self, GAsyncResult* _res_);
static gboolean _lambda0_ (AddPersonaTests* self);
static gboolean __lambda0__gsource_func (gpointer self);
static void _add_persona_tests_test_add_persona_async_data_free (gpointer _data);
static gboolean _add_persona_tests_test_add_persona_async_co (AddPersonaTestsTestAddPersonaAsyncData* _data_);
static void _add_persona_tests_test_add_persona_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _add_persona_tests_individuals_changed_cb (AddPersonaTests* self, GeeSet* added, GeeSet* removed, const gchar* message, FolksPersona* actor, FolksGroupDetailsChangeReason reason);
static void __add_persona_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed (FolksIndividualAggregator* _sender, GeeSet* added, GeeSet* removed, const gchar* message, FolksPersona* actor, FolksGroupDetailsChangeReason reason, gpointer self);
static void _add_persona_tests_notify_pstore_cb (AddPersonaTests* self, GObject* _pstore, GParamSpec* ps);
static void __add_persona_tests_notify_pstore_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void _add_persona_tests_try_to_add (AddPersonaTests* self);
static void _add_persona_tests_add_persona_data_free (gpointer _data);
static void _add_persona_tests_add_persona (AddPersonaTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _add_persona_tests_add_persona_finish (AddPersonaTests* self, GAsyncResult* _res_);
static gboolean _add_persona_tests_add_persona_co (AddPersonaTestsAddPersonaData* _data_);
static void _vala_GValue_free (GValue* self);
static void __vala_GValue_free0_ (gpointer var);
static GValue* _g_value_dup (GValue* self);
static void _add_persona_tests_add_persona_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _add_persona_tests_notify_persona_sname (AddPersonaTests* self, GObject* persona_p, GParamSpec* ps);
static void __add_persona_tests_notify_persona_sname_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void _add_persona_tests_notify_cb (AddPersonaTests* self, GObject* individual_obj, GParamSpec* ps);
static void __add_persona_tests_notify_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void _add_persona_tests_check_properties (AddPersonaTests* self, FolksIndividual* i);
static void _add_persona_tests_check_sname (AddPersonaTests* self, FolksStructuredName* sname);
static void _add_persona_tests_exit_if_all_properties_found (AddPersonaTests* self);
static void add_persona_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _add_persona_tests_test_add_persona_folks_test_case_test_method (gpointer self) {
	add_persona_tests_test_add_persona (self);
}


AddPersonaTests* add_persona_tests_construct (GType object_type) {
	AddPersonaTests * self = NULL;
	TrackerTestBackend* _tmp0_;
	self = (AddPersonaTests*) folks_test_case_construct (object_type, "AddPersonaTests");
	_tmp0_ = tracker_test_backend_new ();
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
	self->priv->_tracker_backend = _tmp0_;
	folks_test_case_add_test ((FolksTestCase*) self, "test adding personas to Tracker ", _add_persona_tests_test_add_persona_folks_test_case_test_method, self);
	return self;
}


AddPersonaTests* add_persona_tests_new (void) {
	return add_persona_tests_construct (TYPE_ADD_PERSONA_TESTS);
}


static void add_persona_tests_real_set_up (FolksTestCase* base) {
	AddPersonaTests * self;
	self = (AddPersonaTests*) base;
}


static void add_persona_tests_real_tear_down (FolksTestCase* base) {
	AddPersonaTests * self;
	self = (AddPersonaTests*) base;
}


static void _g_free0_ (gpointer var) {
	var = (g_free (var), NULL);
}


static gboolean _lambda0_ (AddPersonaTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
	_tmp0_ = self->priv->_main_loop;
	g_main_loop_quit (_tmp0_);
	g_assert_not_reached ();
	return result;
}


static gboolean __lambda0__gsource_func (gpointer self) {
	gboolean result;
	result = _lambda0_ (self);
	return result;
}


void add_persona_tests_test_add_persona (AddPersonaTests* self) {
	GMainLoop* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	const gchar* _tmp7_;
	GFile* _tmp8_ = NULL;
	GFile* _tmp9_;
	GFileIcon* _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	gchar* _tmp13_;
	gchar* _tmp14_;
	gchar* _tmp15_;
	gchar* _tmp16_;
	gchar* _tmp17_;
	gchar* _tmp18_;
	gchar* _tmp19_;
	gchar* _tmp20_;
	gchar* _tmp21_;
	const gchar* _tmp22_;
	const gchar* _tmp23_;
	const gchar* _tmp24_;
	const gchar* _tmp25_;
	const gchar* _tmp26_;
	const gchar* _tmp27_;
	const gchar* _tmp28_;
	FolksPostalAddress* _tmp29_;
	FolksPostalAddress* address;
	FolksPostalAddress* _tmp30_;
	FolksPostalAddressFieldDetails* _tmp31_;
	GTimeVal t = {0};
	const gchar* _tmp32_;
	GTimeVal _tmp33_;
	GDateTime* _tmp34_;
	GHashFunc _tmp35_;
	GEqualFunc _tmp36_;
	GHashTable* _tmp37_;
	GHashTable* _tmp38_;
	gchar* _tmp39_;
	GHashTable* _tmp40_;
	gchar* _tmp41_;
	GHashTable* _tmp42_;
	gchar* _tmp43_;
	GHashTable* _tmp44_;
	gchar* _tmp45_;
	GHashTable* _tmp46_;
	gchar* _tmp47_;
	GHashTable* _tmp48_;
	gchar* _tmp49_;
	GHashTable* _tmp50_;
	gchar* _tmp51_;
	GHashTable* _tmp52_;
	gchar* _tmp53_;
	GHashTable* _tmp54_;
	gchar* _tmp55_;
	GHashTable* _tmp56_;
	gchar* _tmp57_;
	GHashTable* _tmp58_;
	gchar* _tmp59_;
	GHashTable* _tmp60_;
	gchar* _tmp61_;
	GHashTable* _tmp62_;
	gchar* _tmp63_;
	GHashTable* _tmp64_;
	gchar* _tmp65_;
	GHashTable* _tmp66_;
	gchar* _tmp67_;
	GHashTable* _tmp68_;
	gchar* _tmp69_;
	GHashTable* _tmp70_;
	gchar* _tmp71_;
	GHashTable* _tmp72_;
	gchar* _tmp73_;
	GMainLoop* _tmp74_;
	GHashTable* _tmp75_;
	GList* _tmp76_ = NULL;
	TrackerTestBackend* _tmp78_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_main_loop_new (NULL, FALSE);
	_g_main_loop_unref0 (self->priv->_main_loop);
	self->priv->_main_loop = _tmp0_;
	_tmp1_ = g_strdup ("persona #1");
	_g_free0 (self->priv->_persona_fullname);
	self->priv->_persona_fullname = _tmp1_;
	_tmp2_ = g_strdup ("nickname");
	_g_free0 (self->priv->_persona_nickname);
	self->priv->_persona_nickname = _tmp2_;
	_tmp3_ = g_strdup ("family");
	_g_free0 (self->priv->_family_name);
	self->priv->_family_name = _tmp3_;
	_tmp4_ = g_strdup ("given");
	_g_free0 (self->priv->_given_name);
	self->priv->_given_name = _tmp4_;
	_tmp5_ = g_strdup ("");
	_g_free0 (self->priv->_persona_iid);
	self->priv->_persona_iid = _tmp5_;
	_tmp6_ = g_strdup ("file:///tmp/some-avatar.jpg");
	_g_free0 (self->priv->_file_uri);
	self->priv->_file_uri = _tmp6_;
	_tmp7_ = self->priv->_file_uri;
	_tmp8_ = g_file_new_for_uri (_tmp7_);
	_tmp9_ = _tmp8_;
	_tmp10_ = (GFileIcon*) g_file_icon_new (_tmp9_);
	_g_object_unref0 (self->priv->_avatar);
	self->priv->_avatar = (GLoadableIcon*) _tmp10_;
	_g_object_unref0 (_tmp9_);
	_tmp11_ = g_strdup ("2001-10-26T20:32:52Z");
	_g_free0 (self->priv->_birthday);
	self->priv->_birthday = _tmp11_;
	_tmp12_ = g_strdup ("someone-1@example.org");
	_g_free0 (self->priv->_email_1);
	self->priv->_email_1 = _tmp12_;
	_tmp13_ = g_strdup ("someone-2@example.org");
	_g_free0 (self->priv->_email_2);
	self->priv->_email_2 = _tmp13_;
	_tmp14_ = g_strdup ("someone-1@jabber.example.org");
	_g_free0 (self->priv->_im_addr_1);
	self->priv->_im_addr_1 = _tmp14_;
	_tmp15_ = g_strdup ("someone-2@jabber.example.org");
	_g_free0 (self->priv->_im_addr_2);
	self->priv->_im_addr_2 = _tmp15_;
	_tmp16_ = g_strdup ("this is a note");
	_g_free0 (self->priv->_note_1);
	self->priv->_note_1 = _tmp16_;
	_tmp17_ = g_strdup ("12345");
	_g_free0 (self->priv->_phone_1);
	self->priv->_phone_1 = _tmp17_;
	_tmp18_ = g_strdup ("54321");
	_g_free0 (self->priv->_phone_2);
	self->priv->_phone_2 = _tmp18_;
	_tmp19_ = g_strdup ("CFO");
	_g_free0 (self->priv->_title_1);
	self->priv->_title_1 = _tmp19_;
	_tmp20_ = g_strdup ("Example Inc.");
	_g_free0 (self->priv->_organisation_1);
	self->priv->_organisation_1 = _tmp20_;
	_tmp21_ = g_strdup ("Role");
	_g_free0 (self->priv->_role_1);
	self->priv->_role_1 = _tmp21_;
	_tmp22_ = self->priv->_po_box;
	_tmp23_ = self->priv->_extension;
	_tmp24_ = self->priv->_street;
	_tmp25_ = self->priv->_locality;
	_tmp26_ = self->priv->_region;
	_tmp27_ = self->priv->_postal_code;
	_tmp28_ = self->priv->_country;
	_tmp29_ = folks_postal_address_new (_tmp22_, _tmp23_, _tmp24_, _tmp25_, _tmp26_, _tmp27_, _tmp28_, NULL, NULL);
	address = _tmp29_;
	_tmp30_ = address;
	_tmp31_ = folks_postal_address_field_details_new (_tmp30_, NULL);
	_g_object_unref0 (self->priv->_postal_address_fd);
	self->priv->_postal_address_fd = _tmp31_;
	g_get_current_time (&t);
	_tmp32_ = self->priv->_birthday;
	g_time_val_from_iso8601 (_tmp32_, &t);
	_tmp33_ = t;
	_tmp34_ = g_date_time_new_from_timeval_utc (&_tmp33_);
	_g_date_time_unref0 (self->priv->_bday);
	self->priv->_bday = _tmp34_;
	_tmp35_ = g_str_hash;
	_tmp36_ = g_str_equal;
	_tmp37_ = g_hash_table_new_full (_tmp35_, _tmp36_, _g_free0_, NULL);
	_g_hash_table_unref0 (self->priv->_properties_found);
	self->priv->_properties_found = _tmp37_;
	_tmp38_ = self->priv->_properties_found;
	_tmp39_ = g_strdup ("full_name");
	g_hash_table_insert (_tmp38_, _tmp39_, GINT_TO_POINTER (FALSE));
	_tmp40_ = self->priv->_properties_found;
	_tmp41_ = g_strdup ("nickname");
	g_hash_table_insert (_tmp40_, _tmp41_, GINT_TO_POINTER (FALSE));
	_tmp42_ = self->priv->_properties_found;
	_tmp43_ = g_strdup ("is_favourite");
	g_hash_table_insert (_tmp42_, _tmp43_, GINT_TO_POINTER (FALSE));
	_tmp44_ = self->priv->_properties_found;
	_tmp45_ = g_strdup ("structured_name");
	g_hash_table_insert (_tmp44_, _tmp45_, GINT_TO_POINTER (FALSE));
	_tmp46_ = self->priv->_properties_found;
	_tmp47_ = g_strdup ("avatar");
	g_hash_table_insert (_tmp46_, _tmp47_, GINT_TO_POINTER (FALSE));
	_tmp48_ = self->priv->_properties_found;
	_tmp49_ = g_strdup ("birthday");
	g_hash_table_insert (_tmp48_, _tmp49_, GINT_TO_POINTER (FALSE));
	_tmp50_ = self->priv->_properties_found;
	_tmp51_ = g_strdup ("gender");
	g_hash_table_insert (_tmp50_, _tmp51_, GINT_TO_POINTER (FALSE));
	_tmp52_ = self->priv->_properties_found;
	_tmp53_ = g_strdup ("email-1");
	g_hash_table_insert (_tmp52_, _tmp53_, GINT_TO_POINTER (FALSE));
	_tmp54_ = self->priv->_properties_found;
	_tmp55_ = g_strdup ("email-2");
	g_hash_table_insert (_tmp54_, _tmp55_, GINT_TO_POINTER (FALSE));
	_tmp56_ = self->priv->_properties_found;
	_tmp57_ = g_strdup ("im-addr-1");
	g_hash_table_insert (_tmp56_, _tmp57_, GINT_TO_POINTER (FALSE));
	_tmp58_ = self->priv->_properties_found;
	_tmp59_ = g_strdup ("im-addr-2");
	g_hash_table_insert (_tmp58_, _tmp59_, GINT_TO_POINTER (FALSE));
	_tmp60_ = self->priv->_properties_found;
	_tmp61_ = g_strdup ("note-1");
	g_hash_table_insert (_tmp60_, _tmp61_, GINT_TO_POINTER (FALSE));
	_tmp62_ = self->priv->_properties_found;
	_tmp63_ = g_strdup ("phone-1");
	g_hash_table_insert (_tmp62_, _tmp63_, GINT_TO_POINTER (FALSE));
	_tmp64_ = self->priv->_properties_found;
	_tmp65_ = g_strdup ("phone-2");
	g_hash_table_insert (_tmp64_, _tmp65_, GINT_TO_POINTER (FALSE));
	_tmp66_ = self->priv->_properties_found;
	_tmp67_ = g_strdup ("role-1");
	g_hash_table_insert (_tmp66_, _tmp67_, GINT_TO_POINTER (FALSE));
	_tmp68_ = self->priv->_properties_found;
	_tmp69_ = g_strdup ("postal-address-1");
	g_hash_table_insert (_tmp68_, _tmp69_, GINT_TO_POINTER (FALSE));
	_tmp70_ = self->priv->_properties_found;
	_tmp71_ = g_strdup ("url-1");
	g_hash_table_insert (_tmp70_, _tmp71_, GINT_TO_POINTER (FALSE));
	_tmp72_ = self->priv->_properties_found;
	_tmp73_ = g_strdup ("url-2");
	g_hash_table_insert (_tmp72_, _tmp73_, GINT_TO_POINTER (FALSE));
	_add_persona_tests_test_add_persona_async (self, NULL, NULL);
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, __lambda0__gsource_func, g_object_ref (self), g_object_unref);
	_tmp74_ = self->priv->_main_loop;
	g_main_loop_run (_tmp74_);
	_tmp75_ = self->priv->_properties_found;
	_tmp76_ = g_hash_table_get_values (_tmp75_);
	{
		GList* k_collection = NULL;
		GList* k_it = NULL;
		k_collection = _tmp76_;
		for (k_it = k_collection; k_it != NULL; k_it = k_it->next) {
			gboolean k = FALSE;
			k = GPOINTER_TO_INT (k_it->data);
			{
				gboolean _tmp77_;
				_tmp77_ = k;
				g_assert (_tmp77_);
			}
		}
		_g_list_free0 (k_collection);
	}
	_tmp78_ = self->priv->_tracker_backend;
	tracker_test_backend_tear_down (_tmp78_);
	_g_object_unref0 (address);
}


static void _add_persona_tests_test_add_persona_async_data_free (gpointer _data) {
	AddPersonaTestsTestAddPersonaAsyncData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (AddPersonaTestsTestAddPersonaAsyncData, _data_);
}


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


static void _add_persona_tests_test_add_persona_async (AddPersonaTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	AddPersonaTestsTestAddPersonaAsyncData* _data_;
	AddPersonaTests* _tmp0_;
	_data_ = g_slice_new0 (AddPersonaTestsTestAddPersonaAsyncData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _add_persona_tests_test_add_persona_async);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _add_persona_tests_test_add_persona_async_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_add_persona_tests_test_add_persona_async_co (_data_);
}


static void _add_persona_tests_test_add_persona_finish (AddPersonaTests* self, GAsyncResult* _res_) {
	AddPersonaTestsTestAddPersonaAsyncData* _data_;
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static void _add_persona_tests_test_add_persona_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	AddPersonaTestsTestAddPersonaAsyncData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	_add_persona_tests_test_add_persona_async_co (_data_);
}


static void __add_persona_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed (FolksIndividualAggregator* _sender, GeeSet* added, GeeSet* removed, const gchar* message, FolksPersona* actor, FolksGroupDetailsChangeReason reason, gpointer self) {
	_add_persona_tests_individuals_changed_cb (self, added, removed, message, actor, reason);
}


static void __add_persona_tests_notify_pstore_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
	_add_persona_tests_notify_pstore_cb (self, _sender, pspec);
}


static gboolean _add_persona_tests_test_add_persona_async_co (AddPersonaTestsTestAddPersonaAsyncData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		case 2:
		goto _state_2;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = NULL;
	_data_->_tmp0_ = folks_backend_store_dup ();
	_data_->store = _data_->_tmp0_;
	_data_->_tmp1_ = _data_->store;
	_data_->_state_ = 1;
	folks_backend_store_prepare (_data_->_tmp1_, _add_persona_tests_test_add_persona_async_ready, _data_);
	return FALSE;
	_state_1:
	folks_backend_store_prepare_finish (_data_->_tmp1_, _data_->_res_);
	_data_->_tmp2_ = folks_individual_aggregator_new ();
	_g_object_unref0 (_data_->self->priv->_aggregator);
	_data_->self->priv->_aggregator = _data_->_tmp2_;
	_data_->_tmp3_ = _data_->self->priv->_aggregator;
	g_signal_connect_object (_data_->_tmp3_, "individuals-changed", (GCallback) __add_persona_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed, _data_->self, 0);
	{
		_data_->_tmp4_ = _data_->self->priv->_aggregator;
		_data_->_state_ = 2;
		folks_individual_aggregator_prepare (_data_->_tmp4_, _add_persona_tests_test_add_persona_async_ready, _data_);
		return FALSE;
		_state_2:
		folks_individual_aggregator_prepare_finish (_data_->_tmp4_, _data_->_res_, &_data_->_inner_error_);
		if (_data_->_inner_error_ != NULL) {
			goto __catch0_g_error;
		}
		_g_object_unref0 (_data_->self->priv->_pstore);
		_data_->self->priv->_pstore = NULL;
		{
			_data_->_tmp5_ = _data_->store;
			_data_->_tmp6_ = folks_backend_store_get_enabled_backends (_data_->_tmp5_);
			_data_->_tmp7_ = _data_->_tmp6_;
			_data_->_tmp8_ = gee_map_get_values (_data_->_tmp7_);
			_data_->_tmp9_ = _data_->_tmp8_;
			_data_->_tmp10_ = _data_->_tmp9_;
			_data_->_tmp11_ = NULL;
			_data_->_tmp11_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp10_);
			_data_->_tmp12_ = _data_->_tmp11_;
			_g_object_unref0 (_data_->_tmp10_);
			_data_->_backend_it = _data_->_tmp12_;
			while (TRUE) {
				_data_->_tmp13_ = _data_->_backend_it;
				_data_->_tmp14_ = FALSE;
				_data_->_tmp14_ = gee_iterator_next (_data_->_tmp13_);
				if (!_data_->_tmp14_) {
					break;
				}
				_data_->_tmp15_ = _data_->_backend_it;
				_data_->_tmp16_ = NULL;
				_data_->_tmp16_ = gee_iterator_get (_data_->_tmp15_);
				_data_->backend = (FolksBackend*) _data_->_tmp16_;
				_data_->_tmp17_ = _data_->backend;
				_data_->_tmp18_ = folks_backend_get_persona_stores (_data_->_tmp17_);
				_data_->_tmp19_ = _data_->_tmp18_;
				_data_->_tmp20_ = NULL;
				_data_->_tmp20_ = gee_map_get (_data_->_tmp19_, "tracker");
				_g_object_unref0 (_data_->self->priv->_pstore);
				_data_->self->priv->_pstore = TRF_PERSONA_STORE ((FolksPersonaStore*) _data_->_tmp20_);
				_data_->_tmp21_ = _data_->self->priv->_pstore;
				if (_data_->_tmp21_ != NULL) {
					_g_object_unref0 (_data_->backend);
					break;
				}
				_g_object_unref0 (_data_->backend);
			}
			_g_object_unref0 (_data_->_backend_it);
		}
		_data_->_tmp22_ = _data_->self->priv->_pstore;
		g_assert (_data_->_tmp22_ != NULL);
		_data_->_tmp23_ = _data_->self->priv->_pstore;
		g_signal_connect_object ((GObject*) _data_->_tmp23_, "notify::is-prepared", (GCallback) __add_persona_tests_notify_pstore_cb_g_object_notify, _data_->self, 0);
		_add_persona_tests_try_to_add (_data_->self);
	}
	goto __finally0;
	__catch0_g_error:
	{
		_data_->e = _data_->_inner_error_;
		_data_->_inner_error_ = NULL;
		_data_->_tmp24_ = _data_->e;
		_data_->_tmp25_ = _data_->_tmp24_->message;
		g_warning ("add-persona.vala:176: Error when calling prepare: %s\n", _data_->_tmp25_);
		_g_error_free0 (_data_->e);
	}
	__finally0:
	if (_data_->_inner_error_ != NULL) {
		_g_object_unref0 (_data_->store);
		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);
		g_clear_error (&_data_->_inner_error_);
		return FALSE;
	}
	_g_object_unref0 (_data_->store);
	if (_data_->_state_ == 0) {
		g_simple_async_result_complete_in_idle (_data_->_async_result);
	} else {
		g_simple_async_result_complete (_data_->_async_result);
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}


static void _add_persona_tests_add_persona_data_free (gpointer _data) {
	AddPersonaTestsAddPersonaData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (AddPersonaTestsAddPersonaData, _data_);
}


static void _add_persona_tests_add_persona (AddPersonaTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	AddPersonaTestsAddPersonaData* _data_;
	AddPersonaTests* _tmp0_;
	_data_ = g_slice_new0 (AddPersonaTestsAddPersonaData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _add_persona_tests_add_persona);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _add_persona_tests_add_persona_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_add_persona_tests_add_persona_co (_data_);
}


static void _add_persona_tests_add_persona_finish (AddPersonaTests* self, GAsyncResult* _res_) {
	AddPersonaTestsAddPersonaData* _data_;
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static void _vala_GValue_free (GValue* self) {
	g_value_unset (self);
	g_free (self);
}


static void __vala_GValue_free0_ (gpointer var) {
	(var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL));
}


static GValue* _g_value_dup (GValue* self) {
	return g_boxed_copy (G_TYPE_VALUE, self);
}


static gpointer __g_value_dup0 (gpointer self) {
	return self ? _g_value_dup (self) : NULL;
}


static void _add_persona_tests_add_persona_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	AddPersonaTestsAddPersonaData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	_add_persona_tests_add_persona_co (_data_);
}


static gboolean _add_persona_tests_add_persona_co (AddPersonaTestsAddPersonaData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = g_str_hash;
	_data_->_tmp1_ = g_str_equal;
	_data_->_tmp2_ = g_hash_table_new_full (_data_->_tmp0_, _data_->_tmp1_, _g_free0_, __vala_GValue_free0_);
	_data_->details = _data_->_tmp2_;
	memset (&_data_->_tmp3_, 0, sizeof (GValue));
	g_value_init (&_data_->_tmp3_, G_TYPE_STRING);
	_data_->_tmp4_ = _data_->_tmp3_;
	_data_->_tmp5_ = _data_->_tmp4_;
	_data_->_tmp6_ = __g_value_dup0 (&_data_->_tmp5_);
	_data_->_tmp7_ = _data_->_tmp6_;
	G_IS_VALUE (&_data_->_tmp5_) ? (g_value_unset (&_data_->_tmp5_), NULL) : NULL;
	_data_->v1 = _data_->_tmp7_;
	_data_->_tmp8_ = _data_->v1;
	_data_->_tmp9_ = _data_->self->priv->_persona_fullname;
	g_value_set_string (_data_->_tmp8_, _data_->_tmp9_);
	_data_->_tmp10_ = _data_->details;
	_data_->_tmp11_ = NULL;
	_data_->_tmp11_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_FULL_NAME);
	_data_->_tmp12_ = g_strdup (_data_->_tmp11_);
	_data_->_tmp13_ = _data_->v1;
	_data_->v1 = NULL;
	g_hash_table_insert (_data_->_tmp10_, _data_->_tmp12_, _data_->_tmp13_);
	memset (&_data_->_tmp14_, 0, sizeof (GValue));
	g_value_init (&_data_->_tmp14_, G_TYPE_STRING);
	_data_->_tmp15_ = _data_->_tmp14_;
	_data_->_tmp16_ = _data_->_tmp15_;
	_data_->_tmp17_ = __g_value_dup0 (&_data_->_tmp16_);
	_data_->_tmp18_ = _data_->_tmp17_;
	G_IS_VALUE (&_data_->_tmp16_) ? (g_value_unset (&_data_->_tmp16_), NULL) : NULL;
	_data_->v2 = _data_->_tmp18_;
	_data_->_tmp19_ = _data_->v2;
	_data_->_tmp20_ = _data_->self->priv->_persona_nickname;
	g_value_set_string (_data_->_tmp19_, _data_->_tmp20_);
	_data_->_tmp21_ = _data_->details;
	_data_->_tmp22_ = NULL;
	_data_->_tmp22_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_NICKNAME);
	_data_->_tmp23_ = g_strdup (_data_->_tmp22_);
	_data_->_tmp24_ = _data_->v2;
	_data_->v2 = NULL;
	g_hash_table_insert (_data_->_tmp21_, _data_->_tmp23_, _data_->_tmp24_);
	memset (&_data_->_tmp25_, 0, sizeof (GValue));
	g_value_init (&_data_->_tmp25_, G_TYPE_BOOLEAN);
	_data_->_tmp26_ = _data_->_tmp25_;
	_data_->_tmp27_ = _data_->_tmp26_;
	_data_->_tmp28_ = __g_value_dup0 (&_data_->_tmp27_);
	_data_->_tmp29_ = _data_->_tmp28_;
	G_IS_VALUE (&_data_->_tmp27_) ? (g_value_unset (&_data_->_tmp27_), NULL) : NULL;
	_data_->v3 = _data_->_tmp29_;
	_data_->_tmp30_ = _data_->v3;
	g_value_set_boolean (_data_->_tmp30_, TRUE);
	_data_->_tmp31_ = _data_->details;
	_data_->_tmp32_ = NULL;
	_data_->_tmp32_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_IS_FAVOURITE);
	_data_->_tmp33_ = g_strdup (_data_->_tmp32_);
	_data_->_tmp34_ = _data_->v3;
	_data_->v3 = NULL;
	g_hash_table_insert (_data_->_tmp31_, _data_->_tmp33_, _data_->_tmp34_);
	memset (&_data_->_tmp35_, 0, sizeof (GValue));
	g_value_init (&_data_->_tmp35_, FOLKS_TYPE_STRUCTURED_NAME);
	_data_->_tmp36_ = _data_->_tmp35_;
	_data_->_tmp37_ = _data_->_tmp36_;
	_data_->_tmp38_ = __g_value_dup0 (&_data_->_tmp37_);
	_data_->_tmp39_ = _data_->_tmp38_;
	G_IS_VALUE (&_data_->_tmp37_) ? (g_value_unset (&_data_->_tmp37_), NULL) : NULL;
	_data_->v4 = _data_->_tmp39_;
	_data_->_tmp40_ = _data_->self->priv->_family_name;
	_data_->_tmp41_ = _data_->self->priv->_given_name;
	_data_->_tmp42_ = folks_structured_name_new (_data_->_tmp40_, _data_->_tmp41_, NULL, NULL, NULL);
	_data_->sname = _data_->_tmp42_;
	_data_->_tmp43_ = _data_->v4;
	_data_->_tmp44_ = _data_->sname;
	g_value_set_object (_data_->_tmp43_, (GObject*) _data_->_tmp44_);
	_data_->_tmp45_ = _data_->details;
	_data_->_tmp46_ = NULL;
	_data_->_tmp46_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_STRUCTURED_NAME);
	_data_->_tmp47_ = g_strdup (_data_->_tmp46_);
	_data_->_tmp48_ = _data_->v4;
	_data_->v4 = NULL;
	g_hash_table_insert (_data_->_tmp45_, _data_->_tmp47_, _data_->_tmp48_);
	memset (&_data_->_tmp49_, 0, sizeof (GValue));
	g_value_init (&_data_->_tmp49_, G_TYPE_LOADABLE_ICON);
	_data_->_tmp50_ = _data_->_tmp49_;
	_data_->_tmp51_ = _data_->_tmp50_;
	_data_->_tmp52_ = __g_value_dup0 (&_data_->_tmp51_);
	_data_->_tmp53_ = _data_->_tmp52_;
	G_IS_VALUE (&_data_->_tmp51_) ? (g_value_unset (&_data_->_tmp51_), NULL) : NULL;
	_data_->v5 = _data_->_tmp53_;
	_data_->_tmp54_ = _data_->v5;
	_data_->_tmp55_ = _data_->self->priv->_avatar;
	g_value_set_object (_data_->_tmp54_, (GObject*) _data_->_tmp55_);
	_data_->_tmp56_ = _data_->details;
	_data_->_tmp57_ = NULL;
	_data_->_tmp57_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_AVATAR);
	_data_->_tmp58_ = g_strdup (_data_->_tmp57_);
	_data_->_tmp59_ = _data_->v5;
	_data_->v5 = NULL;
	g_hash_table_insert (_data_->_tmp56_, _data_->_tmp58_, _data_->_tmp59_);
	memset (&_data_->_tmp60_, 0, sizeof (GValue));
	g_value_init (&_data_->_tmp60_, G_TYPE_DATE_TIME);
	_data_->_tmp61_ = _data_->_tmp60_;
	_data_->_tmp62_ = _data_->_tmp61_;
	_data_->_tmp63_ = __g_value_dup0 (&_data_->_tmp62_);
	_data_->_tmp64_ = _data_->_tmp63_;
	G_IS_VALUE (&_data_->_tmp62_) ? (g_value_unset (&_data_->_tmp62_), NULL) : NULL;
	_data_->v6 = _data_->_tmp64_;
	g_get_current_time (&_data_->t);
	_data_->_tmp65_ = _data_->self->priv->_birthday;
	g_time_val_from_iso8601 (_data_->_tmp65_, &_data_->t);
	_data_->_tmp66_ = _data_->t;
	_data_->_tmp67_ = g_date_time_new_from_timeval_utc (&_data_->_tmp66_);
	_data_->dobj = _data_->_tmp67_;
	_data_->_tmp68_ = _data_->v6;
	_data_->_tmp69_ = _data_->dobj;
	g_value_set_boxed (_data_->_tmp68_, _data_->_tmp69_);
	_data_->_tmp70_ = _data_->details;
	_data_->_tmp71_ = NULL;
	_data_->_tmp71_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_BIRTHDAY);
	_data_->_tmp72_ = g_strdup (_data_->_tmp71_);
	_data_->_tmp73_ = _data_->v6;
	_data_->v6 = NULL;
	g_hash_table_insert (_data_->_tmp70_, _data_->_tmp72_, _data_->_tmp73_);
	memset (&_data_->_tmp74_, 0, sizeof (GValue));
	g_value_init (&_data_->_tmp74_, FOLKS_TYPE_GENDER);
	_data_->_tmp75_ = _data_->_tmp74_;
	_data_->_tmp76_ = _data_->_tmp75_;
	_data_->_tmp77_ = __g_value_dup0 (&_data_->_tmp76_);
	_data_->_tmp78_ = _data_->_tmp77_;
	G_IS_VALUE (&_data_->_tmp76_) ? (g_value_unset (&_data_->_tmp76_), NULL) : NULL;
	_data_->v7 = _data_->_tmp78_;
	_data_->_tmp79_ = _data_->v7;
	g_value_set_enum (_data_->_tmp79_, (gint) FOLKS_GENDER_MALE);
	_data_->_tmp80_ = _data_->details;
	_data_->_tmp81_ = NULL;
	_data_->_tmp81_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_GENDER);
	_data_->_tmp82_ = g_strdup (_data_->_tmp81_);
	_data_->_tmp83_ = _data_->v7;
	_data_->v7 = NULL;
	g_hash_table_insert (_data_->_tmp80_, _data_->_tmp82_, _data_->_tmp83_);
	memset (&_data_->_tmp84_, 0, sizeof (GValue));
	g_value_init (&_data_->_tmp84_, GEE_TYPE_SET);
	_data_->_tmp85_ = _data_->_tmp84_;
	_data_->_tmp86_ = _data_->_tmp85_;
	_data_->_tmp87_ = __g_value_dup0 (&_data_->_tmp86_);
	_data_->_tmp88_ = _data_->_tmp87_;
	G_IS_VALUE (&_data_->_tmp86_) ? (g_value_unset (&_data_->_tmp86_), NULL) : NULL;
	_data_->v8 = _data_->_tmp88_;
	_data_->_tmp89_ = gee_hash_set_new (FOLKS_TYPE_EMAIL_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
	_data_->emails = _data_->_tmp89_;
	_data_->_tmp90_ = _data_->self->priv->_email_1;
	_data_->_tmp91_ = folks_email_field_details_new (_data_->_tmp90_, NULL);
	_data_->email_1 = _data_->_tmp91_;
	_data_->_tmp92_ = _data_->emails;
	_data_->_tmp93_ = _data_->email_1;
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp92_, _data_->_tmp93_);
	_data_->_tmp94_ = _data_->self->priv->_email_2;
	_data_->_tmp95_ = folks_email_field_details_new (_data_->_tmp94_, NULL);
	_data_->email_2 = _data_->_tmp95_;
	_data_->_tmp96_ = _data_->emails;
	_data_->_tmp97_ = _data_->email_2;
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp96_, _data_->_tmp97_);
	_data_->_tmp98_ = _data_->v8;
	_data_->_tmp99_ = _data_->emails;
	g_value_set_object (_data_->_tmp98_, (GObject*) _data_->_tmp99_);
	_data_->_tmp100_ = _data_->details;
	_data_->_tmp101_ = NULL;
	_data_->_tmp101_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_EMAIL_ADDRESSES);
	_data_->_tmp102_ = g_strdup (_data_->_tmp101_);
	_data_->_tmp103_ = _data_->v8;
	_data_->v8 = NULL;
	g_hash_table_insert (_data_->_tmp100_, _data_->_tmp102_, _data_->_tmp103_);
	memset (&_data_->_tmp104_, 0, sizeof (GValue));
	g_value_init (&_data_->_tmp104_, GEE_TYPE_MULTI_MAP);
	_data_->_tmp105_ = _data_->_tmp104_;
	_data_->_tmp106_ = _data_->_tmp105_;
	_data_->_tmp107_ = __g_value_dup0 (&_data_->_tmp106_);
	_data_->_tmp108_ = _data_->_tmp107_;
	G_IS_VALUE (&_data_->_tmp106_) ? (g_value_unset (&_data_->_tmp106_), NULL) : NULL;
	_data_->v9 = _data_->_tmp108_;
	_data_->_tmp109_ = 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);
	_data_->im_addrs = _data_->_tmp109_;
	_data_->_tmp110_ = _data_->im_addrs;
	_data_->_tmp111_ = _data_->self->priv->_im_addr_1;
	_data_->_tmp112_ = folks_im_field_details_new (_data_->_tmp111_, NULL);
	_data_->_tmp113_ = _data_->_tmp112_;
	gee_multi_map_set ((GeeMultiMap*) _data_->_tmp110_, "jabber", _data_->_tmp113_);
	_g_object_unref0 (_data_->_tmp113_);
	_data_->_tmp114_ = _data_->im_addrs;
	_data_->_tmp115_ = _data_->self->priv->_im_addr_2;
	_data_->_tmp116_ = folks_im_field_details_new (_data_->_tmp115_, NULL);
	_data_->_tmp117_ = _data_->_tmp116_;
	gee_multi_map_set ((GeeMultiMap*) _data_->_tmp114_, "yahoo", _data_->_tmp117_);
	_g_object_unref0 (_data_->_tmp117_);
	_data_->_tmp118_ = _data_->v9;
	_data_->_tmp119_ = _data_->im_addrs;
	g_value_set_object (_data_->_tmp118_, (GObject*) _data_->_tmp119_);
	_data_->_tmp120_ = _data_->details;
	_data_->_tmp121_ = NULL;
	_data_->_tmp121_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_IM_ADDRESSES);
	_data_->_tmp122_ = g_strdup (_data_->_tmp121_);
	_data_->_tmp123_ = _data_->v9;
	_data_->_tmp124_ = __g_value_dup0 (_data_->_tmp123_);
	g_hash_table_insert (_data_->_tmp120_, _data_->_tmp122_, _data_->_tmp124_);
	memset (&_data_->_tmp125_, 0, sizeof (GValue));
	g_value_init (&_data_->_tmp125_, GEE_TYPE_SET);
	_data_->_tmp126_ = _data_->_tmp125_;
	_data_->_tmp127_ = _data_->_tmp126_;
	_data_->_tmp128_ = __g_value_dup0 (&_data_->_tmp127_);
	_data_->_tmp129_ = _data_->_tmp128_;
	G_IS_VALUE (&_data_->_tmp127_) ? (g_value_unset (&_data_->_tmp127_), NULL) : NULL;
	_data_->v10 = _data_->_tmp129_;
	_data_->_tmp130_ = gee_hash_set_new (FOLKS_TYPE_NOTE_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
	_data_->notes = _data_->_tmp130_;
	_data_->_tmp131_ = _data_->self->priv->_note_1;
	_data_->_tmp132_ = folks_note_field_details_new (_data_->_tmp131_, NULL, NULL);
	_data_->note_fd_1 = _data_->_tmp132_;
	_data_->_tmp133_ = _data_->notes;
	_data_->_tmp134_ = _data_->note_fd_1;
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp133_, _data_->_tmp134_);
	_data_->_tmp135_ = _data_->v10;
	_data_->_tmp136_ = _data_->notes;
	g_value_set_object (_data_->_tmp135_, (GObject*) _data_->_tmp136_);
	_data_->_tmp137_ = _data_->details;
	_data_->_tmp138_ = NULL;
	_data_->_tmp138_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_NOTES);
	_data_->_tmp139_ = g_strdup (_data_->_tmp138_);
	_data_->_tmp140_ = _data_->v10;
	_data_->v10 = NULL;
	g_hash_table_insert (_data_->_tmp137_, _data_->_tmp139_, _data_->_tmp140_);
	memset (&_data_->_tmp141_, 0, sizeof (GValue));
	g_value_init (&_data_->_tmp141_, GEE_TYPE_SET);
	_data_->_tmp142_ = _data_->_tmp141_;
	_data_->_tmp143_ = _data_->_tmp142_;
	_data_->_tmp144_ = __g_value_dup0 (&_data_->_tmp143_);
	_data_->_tmp145_ = _data_->_tmp144_;
	G_IS_VALUE (&_data_->_tmp143_) ? (g_value_unset (&_data_->_tmp143_), NULL) : NULL;
	_data_->v11 = _data_->_tmp145_;
	_data_->_tmp146_ = gee_hash_set_new (FOLKS_TYPE_PHONE_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
	_data_->phones = _data_->_tmp146_;
	_data_->_tmp147_ = _data_->self->priv->_phone_1;
	_data_->_tmp148_ = folks_phone_field_details_new (_data_->_tmp147_, NULL);
	_data_->phone_1 = _data_->_tmp148_;
	_data_->_tmp149_ = _data_->phones;
	_data_->_tmp150_ = _data_->phone_1;
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp149_, _data_->_tmp150_);
	_data_->_tmp151_ = _data_->self->priv->_phone_2;
	_data_->_tmp152_ = folks_phone_field_details_new (_data_->_tmp151_, NULL);
	_data_->phone_2 = _data_->_tmp152_;
	_data_->_tmp153_ = _data_->phones;
	_data_->_tmp154_ = _data_->phone_2;
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp153_, _data_->_tmp154_);
	_data_->_tmp155_ = _data_->v11;
	_data_->_tmp156_ = _data_->phones;
	g_value_set_object (_data_->_tmp155_, (GObject*) _data_->_tmp156_);
	_data_->_tmp157_ = _data_->details;
	_data_->_tmp158_ = NULL;
	_data_->_tmp158_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_PHONE_NUMBERS);
	_data_->_tmp159_ = g_strdup (_data_->_tmp158_);
	_data_->_tmp160_ = _data_->v11;
	_data_->v11 = NULL;
	g_hash_table_insert (_data_->_tmp157_, _data_->_tmp159_, _data_->_tmp160_);
	memset (&_data_->_tmp161_, 0, sizeof (GValue));
	g_value_init (&_data_->_tmp161_, GEE_TYPE_SET);
	_data_->_tmp162_ = _data_->_tmp161_;
	_data_->_tmp163_ = _data_->_tmp162_;
	_data_->_tmp164_ = __g_value_dup0 (&_data_->_tmp163_);
	_data_->_tmp165_ = _data_->_tmp164_;
	G_IS_VALUE (&_data_->_tmp163_) ? (g_value_unset (&_data_->_tmp163_), NULL) : NULL;
	_data_->v12 = _data_->_tmp165_;
	_data_->_tmp166_ = gee_hash_set_new (FOLKS_TYPE_ROLE_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
	_data_->role_fds = _data_->_tmp166_;
	_data_->_tmp167_ = _data_->self->priv->_title_1;
	_data_->_tmp168_ = _data_->self->priv->_organisation_1;
	_data_->_tmp169_ = folks_role_new (_data_->_tmp167_, _data_->_tmp168_, NULL);
	_data_->r1 = _data_->_tmp169_;
	_data_->_tmp170_ = _data_->r1;
	_data_->_tmp171_ = _data_->self->priv->_role_1;
	folks_role_set_role (_data_->_tmp170_, _data_->_tmp171_);
	_data_->_tmp172_ = _data_->r1;
	_data_->_tmp173_ = folks_role_field_details_new (_data_->_tmp172_, NULL);
	_data_->role_fd1 = _data_->_tmp173_;
	_data_->_tmp174_ = _data_->role_fds;
	_data_->_tmp175_ = _data_->role_fd1;
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp174_, _data_->_tmp175_);
	_data_->_tmp176_ = _data_->v12;
	_data_->_tmp177_ = _data_->role_fds;
	g_value_set_object (_data_->_tmp176_, (GObject*) _data_->_tmp177_);
	_data_->_tmp178_ = _data_->details;
	_data_->_tmp179_ = NULL;
	_data_->_tmp179_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_ROLES);
	_data_->_tmp180_ = g_strdup (_data_->_tmp179_);
	_data_->_tmp181_ = _data_->v12;
	_data_->v12 = NULL;
	g_hash_table_insert (_data_->_tmp178_, _data_->_tmp180_, _data_->_tmp181_);
	memset (&_data_->_tmp182_, 0, sizeof (GValue));
	g_value_init (&_data_->_tmp182_, GEE_TYPE_SET);
	_data_->_tmp183_ = _data_->_tmp182_;
	_data_->_tmp184_ = _data_->_tmp183_;
	_data_->_tmp185_ = __g_value_dup0 (&_data_->_tmp184_);
	_data_->_tmp186_ = _data_->_tmp185_;
	G_IS_VALUE (&_data_->_tmp184_) ? (g_value_unset (&_data_->_tmp184_), NULL) : NULL;
	_data_->v13 = _data_->_tmp186_;
	_data_->_tmp187_ = gee_hash_set_new (FOLKS_TYPE_POSTAL_ADDRESS_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
	_data_->postal_addresses = _data_->_tmp187_;
	_data_->_tmp188_ = _data_->self->priv->_po_box;
	_data_->_tmp189_ = _data_->self->priv->_extension;
	_data_->_tmp190_ = _data_->self->priv->_street;
	_data_->_tmp191_ = _data_->self->priv->_locality;
	_data_->_tmp192_ = _data_->self->priv->_region;
	_data_->_tmp193_ = _data_->self->priv->_postal_code;
	_data_->_tmp194_ = _data_->self->priv->_country;
	_data_->_tmp195_ = folks_postal_address_new (_data_->_tmp188_, _data_->_tmp189_, _data_->_tmp190_, _data_->_tmp191_, _data_->_tmp192_, _data_->_tmp193_, _data_->_tmp194_, NULL, NULL);
	_data_->postal_a = _data_->_tmp195_;
	_data_->_tmp196_ = _data_->postal_a;
	_data_->_tmp197_ = folks_postal_address_field_details_new (_data_->_tmp196_, NULL);
	_data_->postal_a_fd = _data_->_tmp197_;
	_data_->_tmp198_ = _data_->postal_addresses;
	_data_->_tmp199_ = _data_->postal_a_fd;
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp198_, _data_->_tmp199_);
	_data_->_tmp200_ = _data_->v13;
	_data_->_tmp201_ = _data_->postal_addresses;
	g_value_set_object (_data_->_tmp200_, (GObject*) _data_->_tmp201_);
	_data_->_tmp202_ = _data_->details;
	_data_->_tmp203_ = NULL;
	_data_->_tmp203_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_POSTAL_ADDRESSES);
	_data_->_tmp204_ = g_strdup (_data_->_tmp203_);
	_data_->_tmp205_ = _data_->v13;
	_data_->v13 = NULL;
	g_hash_table_insert (_data_->_tmp202_, _data_->_tmp204_, _data_->_tmp205_);
	memset (&_data_->_tmp206_, 0, sizeof (GValue));
	g_value_init (&_data_->_tmp206_, GEE_TYPE_SET);
	_data_->_tmp207_ = _data_->_tmp206_;
	_data_->_tmp208_ = _data_->_tmp207_;
	_data_->_tmp209_ = __g_value_dup0 (&_data_->_tmp208_);
	_data_->_tmp210_ = _data_->_tmp209_;
	G_IS_VALUE (&_data_->_tmp208_) ? (g_value_unset (&_data_->_tmp208_), NULL) : NULL;
	_data_->v14 = _data_->_tmp210_;
	_data_->_tmp211_ = gee_hash_set_new (FOLKS_TYPE_URL_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
	_data_->urls = _data_->_tmp211_;
	_data_->_tmp212_ = _data_->self->priv->_url_1;
	_data_->_tmp213_ = folks_url_field_details_new (_data_->_tmp212_, NULL);
	_data_->url_1 = _data_->_tmp213_;
	_data_->_tmp214_ = _data_->urls;
	_data_->_tmp215_ = _data_->url_1;
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp214_, _data_->_tmp215_);
	_data_->_tmp216_ = _data_->self->priv->_url_2;
	_data_->_tmp217_ = folks_url_field_details_new (_data_->_tmp216_, NULL);
	_data_->url_2 = _data_->_tmp217_;
	_data_->_tmp218_ = _data_->urls;
	_data_->_tmp219_ = _data_->url_2;
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp218_, _data_->_tmp219_);
	_data_->_tmp220_ = _data_->v14;
	_data_->_tmp221_ = _data_->urls;
	g_value_set_object (_data_->_tmp220_, (GObject*) _data_->_tmp221_);
	_data_->_tmp222_ = _data_->details;
	_data_->_tmp223_ = NULL;
	_data_->_tmp223_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_URLS);
	_data_->_tmp224_ = g_strdup (_data_->_tmp223_);
	_data_->_tmp225_ = _data_->v14;
	_data_->v14 = NULL;
	g_hash_table_insert (_data_->_tmp222_, _data_->_tmp224_, _data_->_tmp225_);
	{
		_data_->_tmp226_ = _data_->self->priv->_aggregator;
		_data_->_tmp227_ = _data_->self->priv->_pstore;
		_data_->_tmp228_ = _data_->details;
		_data_->_state_ = 1;
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp226_, NULL, (FolksPersonaStore*) _data_->_tmp227_, _data_->_tmp228_, _add_persona_tests_add_persona_ready, _data_);
		return FALSE;
		_state_1:
		_data_->_tmp229_ = NULL;
		_data_->_tmp229_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp226_, _data_->_res_, &_data_->_inner_error_);
		_data_->_tmp230_ = _data_->_tmp229_;
		if (_data_->_inner_error_ != NULL) {
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
				goto __catch1_folks_individual_aggregator_error;
			}
			_g_object_unref0 (_data_->url_2);
			_g_object_unref0 (_data_->url_1);
			_g_object_unref0 (_data_->urls);
			__vala_GValue_free0 (_data_->v14);
			_g_object_unref0 (_data_->postal_a_fd);
			_g_object_unref0 (_data_->postal_a);
			_g_object_unref0 (_data_->postal_addresses);
			__vala_GValue_free0 (_data_->v13);
			_g_object_unref0 (_data_->role_fd1);
			_g_object_unref0 (_data_->r1);
			_g_object_unref0 (_data_->role_fds);
			__vala_GValue_free0 (_data_->v12);
			_g_object_unref0 (_data_->phone_2);
			_g_object_unref0 (_data_->phone_1);
			_g_object_unref0 (_data_->phones);
			__vala_GValue_free0 (_data_->v11);
			_g_object_unref0 (_data_->note_fd_1);
			_g_object_unref0 (_data_->notes);
			__vala_GValue_free0 (_data_->v10);
			_g_object_unref0 (_data_->im_addrs);
			__vala_GValue_free0 (_data_->v9);
			_g_object_unref0 (_data_->email_2);
			_g_object_unref0 (_data_->email_1);
			_g_object_unref0 (_data_->emails);
			__vala_GValue_free0 (_data_->v8);
			__vala_GValue_free0 (_data_->v7);
			_g_date_time_unref0 (_data_->dobj);
			__vala_GValue_free0 (_data_->v6);
			__vala_GValue_free0 (_data_->v5);
			_g_object_unref0 (_data_->sname);
			__vala_GValue_free0 (_data_->v4);
			__vala_GValue_free0 (_data_->v3);
			__vala_GValue_free0 (_data_->v2);
			__vala_GValue_free0 (_data_->v1);
			_g_hash_table_unref0 (_data_->details);
			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);
			g_clear_error (&_data_->_inner_error_);
			return FALSE;
		}
		_data_->_tmp231_ = _data_->_tmp230_;
		_data_->persona = TRF_PERSONA (_data_->_tmp231_);
		_data_->_tmp232_ = _data_->persona;
		_data_->_tmp233_ = folks_persona_get_iid ((FolksPersona*) _data_->_tmp232_);
		_data_->_tmp234_ = _data_->_tmp233_;
		_data_->_tmp235_ = g_strdup (_data_->_tmp234_);
		_g_free0 (_data_->self->priv->_persona_iid);
		_data_->self->priv->_persona_iid = _data_->_tmp235_;
		_g_object_unref0 (_data_->persona);
	}
	goto __finally1;
	__catch1_folks_individual_aggregator_error:
	{
		_data_->e = _data_->_inner_error_;
		_data_->_inner_error_ = NULL;
		_data_->_tmp236_ = _data_->e;
		_data_->_tmp237_ = _data_->_tmp236_->message;
		g_warning ("add-persona.vala:323: [AddPersonaError] add_persona_from_details: %s\n", _data_->_tmp237_);
		_g_error_free0 (_data_->e);
	}
	__finally1:
	if (_data_->_inner_error_ != NULL) {
		_g_object_unref0 (_data_->url_2);
		_g_object_unref0 (_data_->url_1);
		_g_object_unref0 (_data_->urls);
		__vala_GValue_free0 (_data_->v14);
		_g_object_unref0 (_data_->postal_a_fd);
		_g_object_unref0 (_data_->postal_a);
		_g_object_unref0 (_data_->postal_addresses);
		__vala_GValue_free0 (_data_->v13);
		_g_object_unref0 (_data_->role_fd1);
		_g_object_unref0 (_data_->r1);
		_g_object_unref0 (_data_->role_fds);
		__vala_GValue_free0 (_data_->v12);
		_g_object_unref0 (_data_->phone_2);
		_g_object_unref0 (_data_->phone_1);
		_g_object_unref0 (_data_->phones);
		__vala_GValue_free0 (_data_->v11);
		_g_object_unref0 (_data_->note_fd_1);
		_g_object_unref0 (_data_->notes);
		__vala_GValue_free0 (_data_->v10);
		_g_object_unref0 (_data_->im_addrs);
		__vala_GValue_free0 (_data_->v9);
		_g_object_unref0 (_data_->email_2);
		_g_object_unref0 (_data_->email_1);
		_g_object_unref0 (_data_->emails);
		__vala_GValue_free0 (_data_->v8);
		__vala_GValue_free0 (_data_->v7);
		_g_date_time_unref0 (_data_->dobj);
		__vala_GValue_free0 (_data_->v6);
		__vala_GValue_free0 (_data_->v5);
		_g_object_unref0 (_data_->sname);
		__vala_GValue_free0 (_data_->v4);
		__vala_GValue_free0 (_data_->v3);
		__vala_GValue_free0 (_data_->v2);
		__vala_GValue_free0 (_data_->v1);
		_g_hash_table_unref0 (_data_->details);
		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);
		g_clear_error (&_data_->_inner_error_);
		return FALSE;
	}
	_g_object_unref0 (_data_->url_2);
	_g_object_unref0 (_data_->url_1);
	_g_object_unref0 (_data_->urls);
	__vala_GValue_free0 (_data_->v14);
	_g_object_unref0 (_data_->postal_a_fd);
	_g_object_unref0 (_data_->postal_a);
	_g_object_unref0 (_data_->postal_addresses);
	__vala_GValue_free0 (_data_->v13);
	_g_object_unref0 (_data_->role_fd1);
	_g_object_unref0 (_data_->r1);
	_g_object_unref0 (_data_->role_fds);
	__vala_GValue_free0 (_data_->v12);
	_g_object_unref0 (_data_->phone_2);
	_g_object_unref0 (_data_->phone_1);
	_g_object_unref0 (_data_->phones);
	__vala_GValue_free0 (_data_->v11);
	_g_object_unref0 (_data_->note_fd_1);
	_g_object_unref0 (_data_->notes);
	__vala_GValue_free0 (_data_->v10);
	_g_object_unref0 (_data_->im_addrs);
	__vala_GValue_free0 (_data_->v9);
	_g_object_unref0 (_data_->email_2);
	_g_object_unref0 (_data_->email_1);
	_g_object_unref0 (_data_->emails);
	__vala_GValue_free0 (_data_->v8);
	__vala_GValue_free0 (_data_->v7);
	_g_date_time_unref0 (_data_->dobj);
	__vala_GValue_free0 (_data_->v6);
	__vala_GValue_free0 (_data_->v5);
	_g_object_unref0 (_data_->sname);
	__vala_GValue_free0 (_data_->v4);
	__vala_GValue_free0 (_data_->v3);
	__vala_GValue_free0 (_data_->v2);
	__vala_GValue_free0 (_data_->v1);
	_g_hash_table_unref0 (_data_->details);
	if (_data_->_state_ == 0) {
		g_simple_async_result_complete_in_idle (_data_->_async_result);
	} else {
		g_simple_async_result_complete (_data_->_async_result);
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}


static void __add_persona_tests_notify_persona_sname_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
	_add_persona_tests_notify_persona_sname (self, _sender, pspec);
}


static void __add_persona_tests_notify_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
	_add_persona_tests_notify_cb (self, _sender, pspec);
}


static void _add_persona_tests_individuals_changed_cb (AddPersonaTests* self, GeeSet* added, GeeSet* removed, const gchar* message, FolksPersona* actor, FolksGroupDetailsChangeReason reason) {
	GeeSet* _tmp42_;
	gint _tmp43_;
	gint _tmp44_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (added != NULL);
	g_return_if_fail (removed != NULL);
	{
		GeeSet* _tmp0_;
		GeeIterator* _tmp1_ = NULL;
		GeeIterator* _i_it;
		_tmp0_ = added;
		_tmp1_ = gee_iterable_iterator ((GeeIterable*) _tmp0_);
		_i_it = _tmp1_;
		while (TRUE) {
			GeeIterator* _tmp2_;
			gboolean _tmp3_ = FALSE;
			GeeIterator* _tmp4_;
			gpointer _tmp5_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp6_;
			gboolean _tmp7_;
			gboolean _tmp8_;
			_tmp2_ = _i_it;
			_tmp3_ = gee_iterator_next (_tmp2_);
			if (!_tmp3_) {
				break;
			}
			_tmp4_ = _i_it;
			_tmp5_ = gee_iterator_get (_tmp4_);
			i = (FolksIndividual*) _tmp5_;
			_tmp6_ = i;
			_tmp7_ = folks_individual_get_is_user (_tmp6_);
			_tmp8_ = _tmp7_;
			if (_tmp8_ == FALSE) {
				FolksIndividual* _tmp24_;
				FolksIndividual* _tmp25_;
				FolksIndividual* _tmp26_;
				FolksIndividual* _tmp27_;
				FolksIndividual* _tmp28_;
				FolksIndividual* _tmp29_;
				FolksIndividual* _tmp30_;
				FolksIndividual* _tmp31_;
				FolksIndividual* _tmp32_;
				FolksIndividual* _tmp33_;
				FolksIndividual* _tmp34_;
				FolksIndividual* _tmp35_;
				FolksIndividual* _tmp36_;
				FolksIndividual* _tmp37_;
				FolksIndividual* _tmp38_;
				FolksIndividual* _tmp39_;
				FolksIndividual* _tmp40_;
				FolksIndividual* _tmp41_;
				{
					FolksIndividual* _tmp9_;
					GeeSet* _tmp10_;
					GeeSet* _tmp11_;
					GeeIterator* _tmp12_ = NULL;
					GeeIterator* _p_it;
					_tmp9_ = i;
					_tmp10_ = folks_individual_get_personas (_tmp9_);
					_tmp11_ = _tmp10_;
					_tmp12_ = gee_iterable_iterator ((GeeIterable*) _tmp11_);
					_p_it = _tmp12_;
					while (TRUE) {
						GeeIterator* _tmp13_;
						gboolean _tmp14_ = FALSE;
						GeeIterator* _tmp15_;
						gpointer _tmp16_ = NULL;
						FolksPersona* p;
						gboolean _tmp17_ = FALSE;
						FolksPersona* _tmp18_;
						gboolean _tmp22_;
						_tmp13_ = _p_it;
						_tmp14_ = gee_iterator_next (_tmp13_);
						if (!_tmp14_) {
							break;
						}
						_tmp15_ = _p_it;
						_tmp16_ = gee_iterator_get (_tmp15_);
						p = (FolksPersona*) _tmp16_;
						_tmp18_ = p;
						if (FOLKS_IS_NAME_DETAILS (_tmp18_)) {
							FolksPersona* _tmp19_;
							FolksStructuredName* _tmp20_;
							FolksStructuredName* _tmp21_;
							_tmp19_ = p;
							_tmp20_ = folks_name_details_get_structured_name (FOLKS_NAME_DETAILS (_tmp19_));
							_tmp21_ = _tmp20_;
							_tmp17_ = _tmp21_ != NULL;
						} else {
							_tmp17_ = FALSE;
						}
						_tmp22_ = _tmp17_;
						if (_tmp22_) {
							FolksPersona* _tmp23_;
							_tmp23_ = p;
							g_signal_connect_object ((GObject*) _tmp23_, "notify::structured-name", (GCallback) __add_persona_tests_notify_persona_sname_g_object_notify, self, 0);
						}
						_g_object_unref0 (p);
					}
					_g_object_unref0 (_p_it);
				}
				_tmp24_ = i;
				g_signal_connect_object ((GObject*) _tmp24_, "notify::full-name", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
				_tmp25_ = i;
				g_signal_connect_object ((GObject*) _tmp25_, "notify::nickname", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
				_tmp26_ = i;
				g_signal_connect_object ((GObject*) _tmp26_, "notify::avatar", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
				_tmp27_ = i;
				g_signal_connect_object ((GObject*) _tmp27_, "notify::is-favourite", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
				_tmp28_ = i;
				g_signal_connect_object ((GObject*) _tmp28_, "notify::structured-name", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
				_tmp29_ = i;
				g_signal_connect_object ((GObject*) _tmp29_, "notify::family-name", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
				_tmp30_ = i;
				g_signal_connect_object ((GObject*) _tmp30_, "notify::given-name", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
				_tmp31_ = i;
				g_signal_connect_object ((GObject*) _tmp31_, "notify::avatar", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
				_tmp32_ = i;
				g_signal_connect_object ((GObject*) _tmp32_, "notify::birthday", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
				_tmp33_ = i;
				g_signal_connect_object ((GObject*) _tmp33_, "notify::gender", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
				_tmp34_ = i;
				g_signal_connect_object ((GObject*) _tmp34_, "notify::email-addresses", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
				_tmp35_ = i;
				g_signal_connect_object ((GObject*) _tmp35_, "notify::im-addresses", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
				_tmp36_ = i;
				g_signal_connect_object ((GObject*) _tmp36_, "notify::notes", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
				_tmp37_ = i;
				g_signal_connect_object ((GObject*) _tmp37_, "notify::phone-numbers", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
				_tmp38_ = i;
				g_signal_connect_object ((GObject*) _tmp38_, "notify::roles", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
				_tmp39_ = i;
				g_signal_connect_object ((GObject*) _tmp39_, "notify::postal-addresses", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
				_tmp40_ = i;
				g_signal_connect_object ((GObject*) _tmp40_, "notify::urls", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
				_tmp41_ = i;
				_add_persona_tests_check_properties (self, _tmp41_);
			}
			_g_object_unref0 (i);
		}
		_g_object_unref0 (_i_it);
	}
	_tmp42_ = removed;
	_tmp43_ = gee_collection_get_size ((GeeCollection*) _tmp42_);
	_tmp44_ = _tmp43_;
	g_assert (_tmp44_ == 0);
}


static void _add_persona_tests_notify_cb (AddPersonaTests* self, GObject* individual_obj, GParamSpec* ps) {
	GObject* _tmp0_;
	FolksIndividual* _tmp1_;
	FolksIndividual* i;
	FolksIndividual* _tmp2_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (individual_obj != NULL);
	g_return_if_fail (ps != NULL);
	_tmp0_ = individual_obj;
	_tmp1_ = _g_object_ref0 (FOLKS_INDIVIDUAL (_tmp0_));
	i = _tmp1_;
	_tmp2_ = i;
	_add_persona_tests_check_properties (self, _tmp2_);
	_g_object_unref0 (i);
}


static void _add_persona_tests_notify_persona_sname (AddPersonaTests* self, GObject* persona_p, GParamSpec* ps) {
	GObject* _tmp0_;
	TrfPersona* _tmp1_;
	TrfPersona* persona;
	TrfPersona* _tmp2_;
	FolksStructuredName* _tmp3_;
	FolksStructuredName* _tmp4_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (persona_p != NULL);
	g_return_if_fail (ps != NULL);
	_tmp0_ = persona_p;
	_tmp1_ = _g_object_ref0 (TRF_PERSONA (_tmp0_));
	persona = _tmp1_;
	_tmp2_ = persona;
	_tmp3_ = folks_name_details_get_structured_name ((FolksNameDetails*) _tmp2_);
	_tmp4_ = _tmp3_;
	_add_persona_tests_check_sname (self, _tmp4_);
	_add_persona_tests_exit_if_all_properties_found (self);
	_g_object_unref0 (persona);
}


static void _add_persona_tests_notify_pstore_cb (AddPersonaTests* self, GObject* _pstore, GParamSpec* ps) {
	g_return_if_fail (self != NULL);
	g_return_if_fail (_pstore != NULL);
	g_return_if_fail (ps != NULL);
	_add_persona_tests_try_to_add (self);
}


static void _add_persona_tests_try_to_add (AddPersonaTests* self) {
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	{
		gboolean _tmp0_;
		_tmp0_ = self->priv->_added_persona;
		g_static_rec_mutex_lock (&self->priv->__lock__added_persona);
		{
			gboolean _tmp1_ = FALSE;
			TrfPersonaStore* _tmp2_;
			gboolean _tmp3_;
			gboolean _tmp4_;
			gboolean _tmp6_;
			_tmp2_ = self->priv->_pstore;
			_tmp3_ = folks_persona_store_get_is_prepared ((FolksPersonaStore*) _tmp2_);
			_tmp4_ = _tmp3_;
			if (_tmp4_) {
				gboolean _tmp5_;
				_tmp5_ = self->priv->_added_persona;
				_tmp1_ = _tmp5_ == FALSE;
			} else {
				_tmp1_ = FALSE;
			}
			_tmp6_ = _tmp1_;
			if (_tmp6_) {
				self->priv->_added_persona = TRUE;
				_add_persona_tests_add_persona (self, NULL, NULL);
			}
		}
		__finally2:
		{
			gboolean _tmp7_;
			_tmp7_ = self->priv->_added_persona;
			g_static_rec_mutex_unlock (&self->priv->__lock__added_persona);
		}
		if (_inner_error_ != NULL) {
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
			g_clear_error (&_inner_error_);
			return;
		}
	}
}


static void _add_persona_tests_check_properties (AddPersonaTests* self, FolksIndividual* i) {
	FolksIndividual* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	FolksIndividual* _tmp6_;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	const gchar* _tmp9_;
	FolksIndividual* _tmp12_;
	gboolean _tmp13_;
	gboolean _tmp14_;
	FolksIndividual* _tmp17_;
	FolksStructuredName* _tmp18_;
	FolksStructuredName* _tmp19_;
	gboolean _tmp23_ = FALSE;
	FolksIndividual* _tmp24_;
	GLoadableIcon* _tmp25_;
	GLoadableIcon* _tmp26_;
	gboolean _tmp32_;
	gboolean _tmp35_ = FALSE;
	FolksIndividual* _tmp36_;
	GDateTime* _tmp37_;
	GDateTime* _tmp38_;
	gboolean _tmp44_;
	FolksIndividual* _tmp47_;
	FolksGender _tmp48_;
	FolksGender _tmp49_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (i != NULL);
	_tmp0_ = i;
	_tmp1_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = self->priv->_persona_fullname;
	if (g_strcmp0 (_tmp2_, _tmp3_) == 0) {
		GHashTable* _tmp4_;
		gchar* _tmp5_;
		_tmp4_ = self->priv->_properties_found;
		_tmp5_ = g_strdup ("full_name");
		g_hash_table_replace (_tmp4_, _tmp5_, GINT_TO_POINTER (TRUE));
	}
	_tmp6_ = i;
	_tmp7_ = folks_name_details_get_nickname ((FolksNameDetails*) _tmp6_);
	_tmp8_ = _tmp7_;
	_tmp9_ = self->priv->_persona_nickname;
	if (g_strcmp0 (_tmp8_, _tmp9_) == 0) {
		GHashTable* _tmp10_;
		gchar* _tmp11_;
		_tmp10_ = self->priv->_properties_found;
		_tmp11_ = g_strdup ("nickname");
		g_hash_table_replace (_tmp10_, _tmp11_, GINT_TO_POINTER (TRUE));
	}
	_tmp12_ = i;
	_tmp13_ = folks_favourite_details_get_is_favourite ((FolksFavouriteDetails*) _tmp12_);
	_tmp14_ = _tmp13_;
	if (_tmp14_) {
		GHashTable* _tmp15_;
		gchar* _tmp16_;
		_tmp15_ = self->priv->_properties_found;
		_tmp16_ = g_strdup ("is_favourite");
		g_hash_table_replace (_tmp15_, _tmp16_, GINT_TO_POINTER (TRUE));
	}
	_tmp17_ = i;
	_tmp18_ = folks_name_details_get_structured_name ((FolksNameDetails*) _tmp17_);
	_tmp19_ = _tmp18_;
	if (_tmp19_ != NULL) {
		FolksIndividual* _tmp20_;
		FolksStructuredName* _tmp21_;
		FolksStructuredName* _tmp22_;
		_tmp20_ = i;
		_tmp21_ = folks_name_details_get_structured_name ((FolksNameDetails*) _tmp20_);
		_tmp22_ = _tmp21_;
		_add_persona_tests_check_sname (self, _tmp22_);
	}
	_tmp24_ = i;
	_tmp25_ = folks_avatar_details_get_avatar ((FolksAvatarDetails*) _tmp24_);
	_tmp26_ = _tmp25_;
	if (_tmp26_ != NULL) {
		FolksIndividual* _tmp27_;
		GLoadableIcon* _tmp28_;
		GLoadableIcon* _tmp29_;
		GLoadableIcon* _tmp30_;
		gboolean _tmp31_ = FALSE;
		_tmp27_ = i;
		_tmp28_ = folks_avatar_details_get_avatar ((FolksAvatarDetails*) _tmp27_);
		_tmp29_ = _tmp28_;
		_tmp30_ = self->priv->_avatar;
		_tmp31_ = g_icon_equal ((GIcon*) _tmp29_, (GIcon*) _tmp30_);
		_tmp23_ = _tmp31_;
	} else {
		_tmp23_ = FALSE;
	}
	_tmp32_ = _tmp23_;
	if (_tmp32_) {
		GHashTable* _tmp33_;
		gchar* _tmp34_;
		_tmp33_ = self->priv->_properties_found;
		_tmp34_ = g_strdup ("avatar");
		g_hash_table_replace (_tmp33_, _tmp34_, GINT_TO_POINTER (TRUE));
	}
	_tmp36_ = i;
	_tmp37_ = folks_birthday_details_get_birthday ((FolksBirthdayDetails*) _tmp36_);
	_tmp38_ = _tmp37_;
	if (_tmp38_ != NULL) {
		FolksIndividual* _tmp39_;
		GDateTime* _tmp40_;
		GDateTime* _tmp41_;
		GDateTime* _tmp42_;
		gint _tmp43_ = 0;
		_tmp39_ = i;
		_tmp40_ = folks_birthday_details_get_birthday ((FolksBirthdayDetails*) _tmp39_);
		_tmp41_ = _tmp40_;
		_tmp42_ = self->priv->_bday;
		_tmp43_ = g_date_time_compare (_tmp41_, _tmp42_);
		_tmp35_ = _tmp43_ == 0;
	} else {
		_tmp35_ = FALSE;
	}
	_tmp44_ = _tmp35_;
	if (_tmp44_) {
		GHashTable* _tmp45_;
		gchar* _tmp46_;
		_tmp45_ = self->priv->_properties_found;
		_tmp46_ = g_strdup ("birthday");
		g_hash_table_replace (_tmp45_, _tmp46_, GINT_TO_POINTER (TRUE));
	}
	_tmp47_ = i;
	_tmp48_ = folks_gender_details_get_gender ((FolksGenderDetails*) _tmp47_);
	_tmp49_ = _tmp48_;
	if (_tmp49_ == FOLKS_GENDER_MALE) {
		GHashTable* _tmp50_;
		gchar* _tmp51_;
		_tmp50_ = self->priv->_properties_found;
		_tmp51_ = g_strdup ("gender");
		g_hash_table_replace (_tmp50_, _tmp51_, GINT_TO_POINTER (TRUE));
	}
	{
		FolksIndividual* _tmp52_;
		GeeSet* _tmp53_;
		GeeSet* _tmp54_;
		GeeIterator* _tmp55_ = NULL;
		GeeIterator* _e_it;
		_tmp52_ = i;
		_tmp53_ = folks_email_details_get_email_addresses ((FolksEmailDetails*) _tmp52_);
		_tmp54_ = _tmp53_;
		_tmp55_ = gee_iterable_iterator ((GeeIterable*) _tmp54_);
		_e_it = _tmp55_;
		while (TRUE) {
			GeeIterator* _tmp56_;
			gboolean _tmp57_ = FALSE;
			GeeIterator* _tmp58_;
			gpointer _tmp59_ = NULL;
			FolksEmailFieldDetails* e;
			FolksEmailFieldDetails* _tmp60_;
			gconstpointer _tmp61_;
			const gchar* _tmp62_;
			const gchar* _tmp63_;
			_tmp56_ = _e_it;
			_tmp57_ = gee_iterator_next (_tmp56_);
			if (!_tmp57_) {
				break;
			}
			_tmp58_ = _e_it;
			_tmp59_ = gee_iterator_get (_tmp58_);
			e = (FolksEmailFieldDetails*) _tmp59_;
			_tmp60_ = e;
			_tmp61_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp60_);
			_tmp62_ = _tmp61_;
			_tmp63_ = self->priv->_email_1;
			if (g_strcmp0 ((const gchar*) _tmp62_, _tmp63_) == 0) {
				GHashTable* _tmp64_;
				gchar* _tmp65_;
				_tmp64_ = self->priv->_properties_found;
				_tmp65_ = g_strdup ("email-1");
				g_hash_table_replace (_tmp64_, _tmp65_, GINT_TO_POINTER (TRUE));
			} else {
				FolksEmailFieldDetails* _tmp66_;
				gconstpointer _tmp67_;
				const gchar* _tmp68_;
				const gchar* _tmp69_;
				_tmp66_ = e;
				_tmp67_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp66_);
				_tmp68_ = _tmp67_;
				_tmp69_ = self->priv->_email_2;
				if (g_strcmp0 ((const gchar*) _tmp68_, _tmp69_) == 0) {
					GHashTable* _tmp70_;
					gchar* _tmp71_;
					_tmp70_ = self->priv->_properties_found;
					_tmp71_ = g_strdup ("email-2");
					g_hash_table_replace (_tmp70_, _tmp71_, GINT_TO_POINTER (TRUE));
				}
			}
			_g_object_unref0 (e);
		}
		_g_object_unref0 (_e_it);
	}
	{
		FolksIndividual* _tmp72_;
		GeeMultiMap* _tmp73_;
		GeeMultiMap* _tmp74_;
		GeeSet* _tmp75_ = NULL;
		GeeSet* _tmp76_;
		GeeIterator* _tmp77_ = NULL;
		GeeIterator* _tmp78_;
		GeeIterator* _proto_it;
		_tmp72_ = i;
		_tmp73_ = folks_im_details_get_im_addresses ((FolksImDetails*) _tmp72_);
		_tmp74_ = _tmp73_;
		_tmp75_ = gee_multi_map_get_keys (_tmp74_);
		_tmp76_ = _tmp75_;
		_tmp77_ = gee_iterable_iterator ((GeeIterable*) _tmp76_);
		_tmp78_ = _tmp77_;
		_g_object_unref0 (_tmp76_);
		_proto_it = _tmp78_;
		while (TRUE) {
			GeeIterator* _tmp79_;
			gboolean _tmp80_ = FALSE;
			GeeIterator* _tmp81_;
			gpointer _tmp82_ = NULL;
			gchar* proto;
			FolksIndividual* _tmp83_;
			GeeMultiMap* _tmp84_;
			GeeMultiMap* _tmp85_;
			const gchar* _tmp86_;
			GeeCollection* _tmp87_ = NULL;
			GeeCollection* addrs;
			_tmp79_ = _proto_it;
			_tmp80_ = gee_iterator_next (_tmp79_);
			if (!_tmp80_) {
				break;
			}
			_tmp81_ = _proto_it;
			_tmp82_ = gee_iterator_get (_tmp81_);
			proto = (gchar*) _tmp82_;
			_tmp83_ = i;
			_tmp84_ = folks_im_details_get_im_addresses ((FolksImDetails*) _tmp83_);
			_tmp85_ = _tmp84_;
			_tmp86_ = proto;
			_tmp87_ = gee_multi_map_get (_tmp85_, _tmp86_);
			addrs = _tmp87_;
			{
				GeeCollection* _tmp88_;
				GeeIterator* _tmp89_ = NULL;
				GeeIterator* _a_it;
				_tmp88_ = addrs;
				_tmp89_ = gee_iterable_iterator ((GeeIterable*) _tmp88_);
				_a_it = _tmp89_;
				while (TRUE) {
					GeeIterator* _tmp90_;
					gboolean _tmp91_ = FALSE;
					GeeIterator* _tmp92_;
					gpointer _tmp93_ = NULL;
					FolksImFieldDetails* a;
					FolksImFieldDetails* _tmp94_;
					gconstpointer _tmp95_;
					const gchar* _tmp96_;
					const gchar* _tmp97_;
					_tmp90_ = _a_it;
					_tmp91_ = gee_iterator_next (_tmp90_);
					if (!_tmp91_) {
						break;
					}
					_tmp92_ = _a_it;
					_tmp93_ = gee_iterator_get (_tmp92_);
					a = (FolksImFieldDetails*) _tmp93_;
					_tmp94_ = a;
					_tmp95_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp94_);
					_tmp96_ = _tmp95_;
					_tmp97_ = self->priv->_im_addr_1;
					if (g_strcmp0 ((const gchar*) _tmp96_, _tmp97_) == 0) {
						GHashTable* _tmp98_;
						gchar* _tmp99_;
						_tmp98_ = self->priv->_properties_found;
						_tmp99_ = g_strdup ("im-addr-1");
						g_hash_table_replace (_tmp98_, _tmp99_, GINT_TO_POINTER (TRUE));
					} else {
						FolksImFieldDetails* _tmp100_;
						gconstpointer _tmp101_;
						const gchar* _tmp102_;
						const gchar* _tmp103_;
						_tmp100_ = a;
						_tmp101_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp100_);
						_tmp102_ = _tmp101_;
						_tmp103_ = self->priv->_im_addr_2;
						if (g_strcmp0 ((const gchar*) _tmp102_, _tmp103_) == 0) {
							GHashTable* _tmp104_;
							gchar* _tmp105_;
							_tmp104_ = self->priv->_properties_found;
							_tmp105_ = g_strdup ("im-addr-2");
							g_hash_table_replace (_tmp104_, _tmp105_, GINT_TO_POINTER (TRUE));
						}
					}
					_g_object_unref0 (a);
				}
				_g_object_unref0 (_a_it);
			}
			_g_object_unref0 (addrs);
			_g_free0 (proto);
		}
		_g_object_unref0 (_proto_it);
	}
	{
		FolksIndividual* _tmp106_;
		GeeSet* _tmp107_;
		GeeSet* _tmp108_;
		GeeIterator* _tmp109_ = NULL;
		GeeIterator* _n_it;
		_tmp106_ = i;
		_tmp107_ = folks_note_details_get_notes ((FolksNoteDetails*) _tmp106_);
		_tmp108_ = _tmp107_;
		_tmp109_ = gee_iterable_iterator ((GeeIterable*) _tmp108_);
		_n_it = _tmp109_;
		while (TRUE) {
			GeeIterator* _tmp110_;
			gboolean _tmp111_ = FALSE;
			GeeIterator* _tmp112_;
			gpointer _tmp113_ = NULL;
			FolksNoteFieldDetails* n;
			FolksNoteFieldDetails* _tmp114_;
			const gchar* _tmp115_;
			FolksNoteFieldDetails* _tmp116_;
			FolksNoteFieldDetails* _tmp117_;
			gboolean _tmp118_ = FALSE;
			gboolean _tmp119_;
			_tmp110_ = _n_it;
			_tmp111_ = gee_iterator_next (_tmp110_);
			if (!_tmp111_) {
				break;
			}
			_tmp112_ = _n_it;
			_tmp113_ = gee_iterator_get (_tmp112_);
			n = (FolksNoteFieldDetails*) _tmp113_;
			_tmp114_ = n;
			_tmp115_ = self->priv->_note_1;
			_tmp116_ = folks_note_field_details_new (_tmp115_, NULL, NULL);
			_tmp117_ = _tmp116_;
			_tmp118_ = folks_abstract_field_details_equal ((FolksAbstractFieldDetails*) _tmp114_, (FolksAbstractFieldDetails*) _tmp117_);
			_tmp119_ = _tmp118_;
			_g_object_unref0 (_tmp117_);
			if (_tmp119_) {
				GHashTable* _tmp120_;
				gchar* _tmp121_;
				_tmp120_ = self->priv->_properties_found;
				_tmp121_ = g_strdup ("note-1");
				g_hash_table_replace (_tmp120_, _tmp121_, GINT_TO_POINTER (TRUE));
			}
			_g_object_unref0 (n);
		}
		_g_object_unref0 (_n_it);
	}
	{
		FolksIndividual* _tmp122_;
		GeeSet* _tmp123_;
		GeeSet* _tmp124_;
		GeeIterator* _tmp125_ = NULL;
		GeeIterator* _phone_fd_it;
		_tmp122_ = i;
		_tmp123_ = folks_phone_details_get_phone_numbers ((FolksPhoneDetails*) _tmp122_);
		_tmp124_ = _tmp123_;
		_tmp125_ = gee_iterable_iterator ((GeeIterable*) _tmp124_);
		_phone_fd_it = _tmp125_;
		while (TRUE) {
			GeeIterator* _tmp126_;
			gboolean _tmp127_ = FALSE;
			GeeIterator* _tmp128_;
			gpointer _tmp129_ = NULL;
			FolksPhoneFieldDetails* phone_fd;
			FolksPhoneFieldDetails* _tmp130_;
			const gchar* _tmp131_;
			FolksPhoneFieldDetails* _tmp132_;
			FolksPhoneFieldDetails* _tmp133_;
			gboolean _tmp134_ = FALSE;
			gboolean _tmp135_;
			_tmp126_ = _phone_fd_it;
			_tmp127_ = gee_iterator_next (_tmp126_);
			if (!_tmp127_) {
				break;
			}
			_tmp128_ = _phone_fd_it;
			_tmp129_ = gee_iterator_get (_tmp128_);
			phone_fd = (FolksPhoneFieldDetails*) _tmp129_;
			_tmp130_ = phone_fd;
			_tmp131_ = self->priv->_phone_1;
			_tmp132_ = folks_phone_field_details_new (_tmp131_, NULL);
			_tmp133_ = _tmp132_;
			_tmp134_ = folks_abstract_field_details_equal ((FolksAbstractFieldDetails*) _tmp130_, (FolksAbstractFieldDetails*) _tmp133_);
			_tmp135_ = _tmp134_;
			_g_object_unref0 (_tmp133_);
			if (_tmp135_) {
				GHashTable* _tmp136_;
				gchar* _tmp137_;
				_tmp136_ = self->priv->_properties_found;
				_tmp137_ = g_strdup ("phone-1");
				g_hash_table_replace (_tmp136_, _tmp137_, GINT_TO_POINTER (TRUE));
			} else {
				FolksPhoneFieldDetails* _tmp138_;
				const gchar* _tmp139_;
				FolksPhoneFieldDetails* _tmp140_;
				FolksPhoneFieldDetails* _tmp141_;
				gboolean _tmp142_ = FALSE;
				gboolean _tmp143_;
				_tmp138_ = phone_fd;
				_tmp139_ = self->priv->_phone_2;
				_tmp140_ = folks_phone_field_details_new (_tmp139_, NULL);
				_tmp141_ = _tmp140_;
				_tmp142_ = folks_abstract_field_details_equal ((FolksAbstractFieldDetails*) _tmp138_, (FolksAbstractFieldDetails*) _tmp141_);
				_tmp143_ = _tmp142_;
				_g_object_unref0 (_tmp141_);
				if (_tmp143_) {
					GHashTable* _tmp144_;
					gchar* _tmp145_;
					_tmp144_ = self->priv->_properties_found;
					_tmp145_ = g_strdup ("phone-2");
					g_hash_table_replace (_tmp144_, _tmp145_, GINT_TO_POINTER (TRUE));
				}
			}
			_g_object_unref0 (phone_fd);
		}
		_g_object_unref0 (_phone_fd_it);
	}
	{
		FolksIndividual* _tmp146_;
		GeeSet* _tmp147_;
		GeeSet* _tmp148_;
		GeeIterator* _tmp149_ = NULL;
		GeeIterator* _role_fd_it;
		_tmp146_ = i;
		_tmp147_ = folks_role_details_get_roles ((FolksRoleDetails*) _tmp146_);
		_tmp148_ = _tmp147_;
		_tmp149_ = gee_iterable_iterator ((GeeIterable*) _tmp148_);
		_role_fd_it = _tmp149_;
		while (TRUE) {
			GeeIterator* _tmp150_;
			gboolean _tmp151_ = FALSE;
			GeeIterator* _tmp152_;
			gpointer _tmp153_ = NULL;
			FolksRoleFieldDetails* role_fd;
			const gchar* _tmp154_;
			const gchar* _tmp155_;
			FolksRole* _tmp156_;
			FolksRole* role_expected;
			FolksRole* _tmp157_;
			const gchar* _tmp158_;
			FolksRole* _tmp159_;
			FolksRoleFieldDetails* _tmp160_;
			FolksRoleFieldDetails* role_fd_expected;
			FolksRoleFieldDetails* _tmp161_;
			FolksRoleFieldDetails* _tmp162_;
			gboolean _tmp163_ = FALSE;
			_tmp150_ = _role_fd_it;
			_tmp151_ = gee_iterator_next (_tmp150_);
			if (!_tmp151_) {
				break;
			}
			_tmp152_ = _role_fd_it;
			_tmp153_ = gee_iterator_get (_tmp152_);
			role_fd = (FolksRoleFieldDetails*) _tmp153_;
			_tmp154_ = self->priv->_title_1;
			_tmp155_ = self->priv->_organisation_1;
			_tmp156_ = folks_role_new (_tmp154_, _tmp155_, NULL);
			role_expected = _tmp156_;
			_tmp157_ = role_expected;
			_tmp158_ = self->priv->_role_1;
			folks_role_set_role (_tmp157_, _tmp158_);
			_tmp159_ = role_expected;
			_tmp160_ = folks_role_field_details_new (_tmp159_, NULL);
			role_fd_expected = _tmp160_;
			_tmp161_ = role_fd;
			_tmp162_ = role_fd_expected;
			_tmp163_ = folks_abstract_field_details_equal ((FolksAbstractFieldDetails*) _tmp161_, (FolksAbstractFieldDetails*) _tmp162_);
			if (_tmp163_) {
				GHashTable* _tmp164_;
				gchar* _tmp165_;
				_tmp164_ = self->priv->_properties_found;
				_tmp165_ = g_strdup ("role-1");
				g_hash_table_replace (_tmp164_, _tmp165_, GINT_TO_POINTER (TRUE));
			}
			_g_object_unref0 (role_fd_expected);
			_g_object_unref0 (role_expected);
			_g_object_unref0 (role_fd);
		}
		_g_object_unref0 (_role_fd_it);
	}
	{
		FolksIndividual* _tmp166_;
		GeeSet* _tmp167_;
		GeeSet* _tmp168_;
		GeeIterator* _tmp169_ = NULL;
		GeeIterator* _pafd_it;
		_tmp166_ = i;
		_tmp167_ = folks_postal_address_details_get_postal_addresses ((FolksPostalAddressDetails*) _tmp166_);
		_tmp168_ = _tmp167_;
		_tmp169_ = gee_iterable_iterator ((GeeIterable*) _tmp168_);
		_pafd_it = _tmp169_;
		while (TRUE) {
			GeeIterator* _tmp170_;
			gboolean _tmp171_ = FALSE;
			GeeIterator* _tmp172_;
			gpointer _tmp173_ = NULL;
			FolksPostalAddressFieldDetails* pafd;
			FolksPostalAddressFieldDetails* _tmp174_;
			gconstpointer _tmp175_;
			FolksPostalAddress* _tmp176_;
			FolksPostalAddressFieldDetails* _tmp177_;
			gconstpointer _tmp178_;
			FolksPostalAddress* _tmp179_;
			const gchar* _tmp180_;
			const gchar* _tmp181_;
			FolksPostalAddressFieldDetails* _tmp182_;
			gconstpointer _tmp183_;
			FolksPostalAddress* _tmp184_;
			FolksPostalAddressFieldDetails* _tmp185_;
			gconstpointer _tmp186_;
			FolksPostalAddress* _tmp187_;
			gboolean _tmp188_ = FALSE;
			_tmp170_ = _pafd_it;
			_tmp171_ = gee_iterator_next (_tmp170_);
			if (!_tmp171_) {
				break;
			}
			_tmp172_ = _pafd_it;
			_tmp173_ = gee_iterator_get (_tmp172_);
			pafd = (FolksPostalAddressFieldDetails*) _tmp173_;
			_tmp174_ = self->priv->_postal_address_fd;
			_tmp175_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp174_);
			_tmp176_ = _tmp175_;
			_tmp177_ = pafd;
			_tmp178_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp177_);
			_tmp179_ = _tmp178_;
			_tmp180_ = folks_postal_address_get_uid ((FolksPostalAddress*) _tmp179_);
			_tmp181_ = _tmp180_;
			folks_postal_address_set_uid ((FolksPostalAddress*) _tmp176_, _tmp181_);
			_tmp182_ = pafd;
			_tmp183_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp182_);
			_tmp184_ = _tmp183_;
			_tmp185_ = self->priv->_postal_address_fd;
			_tmp186_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp185_);
			_tmp187_ = _tmp186_;
			_tmp188_ = folks_postal_address_equal ((FolksPostalAddress*) _tmp184_, (FolksPostalAddress*) _tmp187_);
			if (_tmp188_) {
				GHashTable* _tmp189_;
				gchar* _tmp190_;
				_tmp189_ = self->priv->_properties_found;
				_tmp190_ = g_strdup ("postal-address-1");
				g_hash_table_replace (_tmp189_, _tmp190_, GINT_TO_POINTER (TRUE));
			}
			_g_object_unref0 (pafd);
		}
		_g_object_unref0 (_pafd_it);
	}
	{
		FolksIndividual* _tmp191_;
		GeeSet* _tmp192_;
		GeeSet* _tmp193_;
		GeeIterator* _tmp194_ = NULL;
		GeeIterator* _u_it;
		_tmp191_ = i;
		_tmp192_ = folks_url_details_get_urls ((FolksUrlDetails*) _tmp191_);
		_tmp193_ = _tmp192_;
		_tmp194_ = gee_iterable_iterator ((GeeIterable*) _tmp193_);
		_u_it = _tmp194_;
		while (TRUE) {
			GeeIterator* _tmp195_;
			gboolean _tmp196_ = FALSE;
			GeeIterator* _tmp197_;
			gpointer _tmp198_ = NULL;
			FolksUrlFieldDetails* u;
			FolksUrlFieldDetails* _tmp199_;
			gconstpointer _tmp200_;
			const gchar* _tmp201_;
			const gchar* _tmp202_;
			FolksUrlFieldDetails* _tmp205_;
			gconstpointer _tmp206_;
			const gchar* _tmp207_;
			const gchar* _tmp208_;
			_tmp195_ = _u_it;
			_tmp196_ = gee_iterator_next (_tmp195_);
			if (!_tmp196_) {
				break;
			}
			_tmp197_ = _u_it;
			_tmp198_ = gee_iterator_get (_tmp197_);
			u = (FolksUrlFieldDetails*) _tmp198_;
			_tmp199_ = u;
			_tmp200_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp199_);
			_tmp201_ = _tmp200_;
			_tmp202_ = self->priv->_url_1;
			if (g_strcmp0 ((const gchar*) _tmp201_, _tmp202_) == 0) {
				GHashTable* _tmp203_;
				gchar* _tmp204_;
				_tmp203_ = self->priv->_properties_found;
				_tmp204_ = g_strdup ("url-1");
				g_hash_table_replace (_tmp203_, _tmp204_, GINT_TO_POINTER (TRUE));
			}
			_tmp205_ = u;
			_tmp206_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp205_);
			_tmp207_ = _tmp206_;
			_tmp208_ = self->priv->_url_2;
			if (g_strcmp0 ((const gchar*) _tmp207_, _tmp208_) == 0) {
				GHashTable* _tmp209_;
				gchar* _tmp210_;
				_tmp209_ = self->priv->_properties_found;
				_tmp210_ = g_strdup ("url-2");
				g_hash_table_replace (_tmp209_, _tmp210_, GINT_TO_POINTER (TRUE));
			}
			_g_object_unref0 (u);
		}
		_g_object_unref0 (_u_it);
	}
	_add_persona_tests_exit_if_all_properties_found (self);
}


static void _add_persona_tests_exit_if_all_properties_found (AddPersonaTests* self) {
	GHashTable* _tmp0_;
	GList* _tmp1_ = NULL;
	GMainLoop* _tmp6_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->_properties_found;
	_tmp1_ = g_hash_table_get_keys (_tmp0_);
	{
		GList* k_collection = NULL;
		GList* k_it = NULL;
		k_collection = _tmp1_;
		for (k_it = k_collection; k_it != NULL; k_it = k_it->next) {
			const gchar* k = NULL;
			k = (const gchar*) k_it->data;
			{
				GHashTable* _tmp2_;
				const gchar* _tmp3_;
				gconstpointer _tmp4_ = NULL;
				gboolean v;
				gboolean _tmp5_;
				_tmp2_ = self->priv->_properties_found;
				_tmp3_ = k;
				_tmp4_ = g_hash_table_lookup (_tmp2_, _tmp3_);
				v = GPOINTER_TO_INT (_tmp4_);
				_tmp5_ = v;
				if (_tmp5_ == FALSE) {
					_g_list_free0 (k_collection);
					return;
				}
			}
		}
		_g_list_free0 (k_collection);
	}
	_tmp6_ = self->priv->_main_loop;
	g_main_loop_quit (_tmp6_);
}


static void _add_persona_tests_check_sname (AddPersonaTests* self, FolksStructuredName* sname) {
	gboolean _tmp0_ = FALSE;
	FolksStructuredName* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	gboolean _tmp9_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (sname != NULL);
	_tmp1_ = sname;
	_tmp2_ = folks_structured_name_get_family_name (_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = self->priv->_family_name;
	if (g_strcmp0 (_tmp3_, _tmp4_) == 0) {
		FolksStructuredName* _tmp5_;
		const gchar* _tmp6_;
		const gchar* _tmp7_;
		const gchar* _tmp8_;
		_tmp5_ = sname;
		_tmp6_ = folks_structured_name_get_given_name (_tmp5_);
		_tmp7_ = _tmp6_;
		_tmp8_ = self->priv->_given_name;
		_tmp0_ = g_strcmp0 (_tmp7_, _tmp8_) == 0;
	} else {
		_tmp0_ = FALSE;
	}
	_tmp9_ = _tmp0_;
	if (_tmp9_) {
		GHashTable* _tmp10_;
		gchar* _tmp11_;
		_tmp10_ = self->priv->_properties_found;
		_tmp11_ = g_strdup ("structured_name");
		g_hash_table_replace (_tmp10_, _tmp11_, GINT_TO_POINTER (TRUE));
	}
}


static void add_persona_tests_class_init (AddPersonaTestsClass * klass) {
	add_persona_tests_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (AddPersonaTestsPrivate));
	FOLKS_TEST_CASE_CLASS (klass)->set_up = add_persona_tests_real_set_up;
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = add_persona_tests_real_tear_down;
	G_OBJECT_CLASS (klass)->finalize = add_persona_tests_finalize;
}


static void add_persona_tests_instance_init (AddPersonaTests * self) {
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	self->priv = ADD_PERSONA_TESTS_GET_PRIVATE (self);
	_tmp0_ = g_strdup ("12345");
	self->priv->_po_box = _tmp0_;
	_tmp1_ = g_strdup ("locality");
	self->priv->_locality = _tmp1_;
	_tmp2_ = g_strdup ("code");
	self->priv->_postal_code = _tmp2_;
	_tmp3_ = g_strdup ("some street");
	self->priv->_street = _tmp3_;
	_tmp4_ = g_strdup ("some extension");
	self->priv->_extension = _tmp4_;
	_tmp5_ = g_strdup ("some country");
	self->priv->_country = _tmp5_;
	_tmp6_ = g_strdup ("some region");
	self->priv->_region = _tmp6_;
	_tmp7_ = g_strdup ("http://www-1.example.org");
	self->priv->_url_1 = _tmp7_;
	_tmp8_ = g_strdup ("http://www-1.example.org");
	self->priv->_url_2 = _tmp8_;
	g_static_rec_mutex_init (&self->priv->__lock__added_persona);
	self->priv->_added_persona = FALSE;
}


static void add_persona_tests_finalize (GObject* obj) {
	AddPersonaTests * self;
	self = ADD_PERSONA_TESTS (obj);
	_g_main_loop_unref0 (self->priv->_main_loop);
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
	_g_object_unref0 (self->priv->_aggregator);
	_g_free0 (self->priv->_persona_fullname);
	_g_free0 (self->priv->_persona_nickname);
	_g_free0 (self->priv->_family_name);
	_g_free0 (self->priv->_given_name);
	_g_hash_table_unref0 (self->priv->_properties_found);
	_g_free0 (self->priv->_persona_iid);
	_g_object_unref0 (self->priv->_avatar);
	_g_free0 (self->priv->_file_uri);
	_g_free0 (self->priv->_birthday);
	_g_date_time_unref0 (self->priv->_bday);
	_g_free0 (self->priv->_email_1);
	_g_free0 (self->priv->_email_2);
	_g_free0 (self->priv->_im_addr_1);
	_g_free0 (self->priv->_im_addr_2);
	_g_free0 (self->priv->_note_1);
	_g_free0 (self->priv->_phone_1);
	_g_free0 (self->priv->_phone_2);
	_g_free0 (self->priv->_title_1);
	_g_free0 (self->priv->_organisation_1);
	_g_free0 (self->priv->_role_1);
	_g_object_unref0 (self->priv->_postal_address_fd);
	_g_free0 (self->priv->_po_box);
	_g_free0 (self->priv->_locality);
	_g_free0 (self->priv->_postal_code);
	_g_free0 (self->priv->_street);
	_g_free0 (self->priv->_extension);
	_g_free0 (self->priv->_country);
	_g_free0 (self->priv->_region);
	_g_free0 (self->priv->_url_1);
	_g_free0 (self->priv->_url_2);
	_g_object_unref0 (self->priv->_pstore);
	g_static_rec_mutex_free (&self->priv->__lock__added_persona);
	G_OBJECT_CLASS (add_persona_tests_parent_class)->finalize (obj);
}


GType add_persona_tests_get_type (void) {
	static volatile gsize add_persona_tests_type_id__volatile = 0;
	if (g_once_init_enter (&add_persona_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (AddPersonaTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) add_persona_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AddPersonaTests), 0, (GInstanceInitFunc) add_persona_tests_instance_init, NULL };
		GType add_persona_tests_type_id;
		add_persona_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "AddPersonaTests", &g_define_type_info, 0);
		g_once_init_leave (&add_persona_tests_type_id__volatile, add_persona_tests_type_id);
	}
	return add_persona_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	GTestSuite* _tmp1_;
	AddPersonaTests* _tmp2_;
	AddPersonaTests* _tmp3_;
	GTestSuite* _tmp4_ = NULL;
	g_test_init (&args_length1, &args, NULL);
	_tmp0_ = g_test_get_root ();
	root = _tmp0_;
	_tmp1_ = root;
	_tmp2_ = add_persona_tests_new ();
	_tmp3_ = _tmp2_;
	_tmp4_ = folks_test_case_get_suite ((FolksTestCase*) _tmp3_);
	g_test_suite_add_suite (_tmp1_, _tmp4_);
	_g_object_unref0 (_tmp3_);
	g_test_run ();
	result = 0;
	return result;
}


int main (int argc, char ** argv) {
	g_type_init ();
	return _vala_main (argv, argc);
}



