/* add-persona.c generated by valac 0.14.0.51-f9a867, 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 <eds-test.h>
#include <folks/folks.h>
#include <stdlib.h>
#include <string.h>
#include <folks/folks-eds.h>
#include <gio/gio.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 _eds_test_backend_unref0(var) ((var == NULL) ? NULL : (var = (eds_test_backend_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_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)))
#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
typedef struct _AddPersonaTestsAddPersonaData AddPersonaTestsAddPersonaData;
typedef struct _AddPersonaTestsCheckPropertiesData AddPersonaTestsCheckPropertiesData;

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

struct _AddPersonaTestsClass {
	FolksTestCaseClass parent_class;
};

struct _AddPersonaTestsPrivate {
	GMainLoop* _main_loop;
	EdsTestBackend* _eds_backend;
	FolksIndividualAggregator* _aggregator;
	gchar* _persona_fullname;
	gchar* _email_1;
	EdsfPersonaStore* _pstore;
	gboolean _added_persona;
	GStaticRecMutex __lock__added_persona;
	GHashTable* _properties_found;
	gchar* _avatar_path;
	gchar* _im_addr_1;
	gchar* _im_addr_2;
	gchar* _phone_1;
	gchar* _phone_1_type;
	gchar* _phone_2;
	gchar* _phone_2_type;
	FolksPostalAddressFieldDetails* _address;
	gchar* _po_box;
	gchar* _locality;
	gchar* _postal_code;
	gchar* _street;
	gchar* _extension;
	gchar* _country;
	gchar* _region;
	gchar* _family_name;
	gchar* _given_name;
	gchar* _note;
	FolksIndividual* _individual_received;
};

struct _AddPersonaTestsTestAddPersonaAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	AddPersonaTests* self;
	FolksBackendStore* _tmp0_;
	FolksBackendStore* store;
	FolksIndividualAggregator* _tmp1_;
	FolksIndividualAggregator* _tmp2_;
	FolksIndividualAggregator* _tmp3_;
	GeeMap* _tmp4_;
	GeeMap* _tmp5_;
	GeeCollection* _tmp6_;
	GeeCollection* _tmp7_;
	GeeCollection* _tmp8_;
	GeeIterator* _tmp9_;
	GeeIterator* _tmp10_;
	GeeIterator* _backend_it;
	GeeIterator* _tmp11_;
	gboolean _tmp12_;
	GeeIterator* _tmp13_;
	gpointer _tmp14_;
	FolksBackend* backend;
	FolksBackend* _tmp15_;
	GeeMap* _tmp16_;
	GeeMap* _tmp17_;
	EdsTestBackend* _tmp18_;
	const gchar* _tmp19_;
	const gchar* _tmp20_;
	gpointer _tmp21_;
	EdsfPersonaStore* _tmp22_;
	EdsfPersonaStore* _tmp23_;
	EdsfPersonaStore* _tmp24_;
	GError* e;
	GError* _tmp25_;
	const gchar* _tmp26_;
	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* v1;
	GValue* _tmp7_;
	const gchar* _tmp8_;
	const gchar* _tmp9_;
	gchar* _tmp10_;
	GValue* _tmp11_;
	GValue _tmp12_;
	GValue _tmp13_;
	GValue* _tmp14_;
	GValue* _tmp15_;
	GValue* v2;
	GeeHashSet* _tmp16_;
	GeeHashSet* emails;
	const gchar* _tmp17_;
	FolksEmailFieldDetails* _tmp18_;
	FolksEmailFieldDetails* email_1;
	GValue* _tmp19_;
	const gchar* _tmp20_;
	gchar* _tmp21_;
	GValue* _tmp22_;
	GValue _tmp23_;
	GValue _tmp24_;
	GValue* _tmp25_;
	GValue* _tmp26_;
	GValue* v3;
	const gchar* _tmp27_;
	GFile* _tmp28_;
	GFile* _tmp29_;
	GFileIcon* _tmp30_;
	GFileIcon* _tmp31_;
	GFileIcon* avatar;
	GValue* _tmp32_;
	const gchar* _tmp33_;
	gchar* _tmp34_;
	GValue* _tmp35_;
	GValue _tmp36_;
	GValue _tmp37_;
	GValue* _tmp38_;
	GValue* _tmp39_;
	GValue* v4;
	GeeHashMultiMap* _tmp40_;
	GeeHashMultiMap* im_fds;
	const gchar* _tmp41_;
	FolksImFieldDetails* _tmp42_;
	FolksImFieldDetails* _tmp43_;
	const gchar* _tmp44_;
	FolksImFieldDetails* _tmp45_;
	FolksImFieldDetails* _tmp46_;
	const gchar* _tmp47_;
	gchar* _tmp48_;
	GValue* _tmp49_;
	GValue _tmp50_;
	GValue _tmp51_;
	GValue* _tmp52_;
	GValue* _tmp53_;
	GValue* v5;
	GeeHashSet* _tmp54_;
	GeeHashSet* phones;
	const gchar* _tmp55_;
	FolksPhoneFieldDetails* _tmp56_;
	FolksPhoneFieldDetails* phone_1;
	const gchar* _tmp57_;
	const gchar* _tmp58_;
	FolksPhoneFieldDetails* _tmp59_;
	FolksPhoneFieldDetails* phone_2;
	const gchar* _tmp60_;
	GValue* _tmp61_;
	const gchar* _tmp62_;
	gchar* _tmp63_;
	GValue* _tmp64_;
	GValue _tmp65_;
	GValue _tmp66_;
	GValue* _tmp67_;
	GValue* _tmp68_;
	GValue* v6;
	GeeHashSet* _tmp69_;
	GeeHashSet* pa_fds;
	const gchar* _tmp70_;
	const gchar* _tmp71_;
	const gchar* _tmp72_;
	const gchar* _tmp73_;
	const gchar* _tmp74_;
	const gchar* _tmp75_;
	const gchar* _tmp76_;
	FolksPostalAddress* _tmp77_;
	FolksPostalAddress* pa_a;
	FolksPostalAddressFieldDetails* _tmp78_;
	FolksPostalAddressFieldDetails* pa_fd_a;
	GValue* _tmp79_;
	const gchar* _tmp80_;
	gchar* _tmp81_;
	GValue* _tmp82_;
	GValue _tmp83_;
	GValue _tmp84_;
	GValue* _tmp85_;
	GValue* _tmp86_;
	GValue* v7;
	const gchar* _tmp87_;
	const gchar* _tmp88_;
	FolksStructuredName* _tmp89_;
	FolksStructuredName* sname;
	GValue* _tmp90_;
	const gchar* _tmp91_;
	gchar* _tmp92_;
	GValue* _tmp93_;
	GValue _tmp94_;
	GValue _tmp95_;
	GValue* _tmp96_;
	GValue* _tmp97_;
	GValue* v8;
	GeeHashSet* _tmp98_;
	GeeHashSet* notes;
	const gchar* _tmp99_;
	FolksNoteFieldDetails* _tmp100_;
	FolksNoteFieldDetails* note;
	GValue* _tmp101_;
	const gchar* _tmp102_;
	gchar* _tmp103_;
	GValue* _tmp104_;
	GValue _tmp105_;
	GValue _tmp106_;
	GValue* _tmp107_;
	GValue* _tmp108_;
	GValue* v9;
	GDateTime* _tmp109_;
	GDateTime* dobj;
	GValue* _tmp110_;
	const gchar* _tmp111_;
	gchar* _tmp112_;
	GValue* _tmp113_;
	GValue _tmp114_;
	GValue _tmp115_;
	GValue* _tmp116_;
	GValue* _tmp117_;
	GValue* v10;
	GeeHashSet* _tmp118_;
	GeeHashSet* role_fds;
	FolksRole* _tmp119_;
	FolksRole* r1;
	FolksRoleFieldDetails* _tmp120_;
	FolksRoleFieldDetails* role_fd1;
	GValue* _tmp121_;
	const gchar* _tmp122_;
	gchar* _tmp123_;
	GValue* _tmp124_;
	GValue _tmp125_;
	GValue _tmp126_;
	GValue* _tmp127_;
	GValue* _tmp128_;
	GValue* v11;
	GValue* _tmp129_;
	const gchar* _tmp130_;
	gchar* _tmp131_;
	GValue* _tmp132_;
	FolksIndividualAggregator* _tmp133_;
	EdsfPersonaStore* _tmp134_;
	FolksPersona* _tmp135_;
	FolksPersona* _tmp136_;
	GError* e;
	GError* _tmp137_;
	const gchar* _tmp138_;
	GError * _inner_error_;
};

struct _AddPersonaTestsCheckPropertiesData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	AddPersonaTests* self;
	FolksIndividual* i;
	FolksIndividual* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	GHashTable* _tmp4_;
	gchar* _tmp5_;
	FolksIndividual* _tmp6_;
	GeeSet* _tmp7_;
	GeeSet* _tmp8_;
	GeeIterator* _tmp9_;
	GeeIterator* _e_it;
	GeeIterator* _tmp10_;
	gboolean _tmp11_;
	GeeIterator* _tmp12_;
	gpointer _tmp13_;
	FolksEmailFieldDetails* e;
	FolksEmailFieldDetails* _tmp14_;
	gconstpointer _tmp15_;
	const gchar* _tmp16_;
	const gchar* _tmp17_;
	GHashTable* _tmp18_;
	gchar* _tmp19_;
	FolksIndividual* _tmp20_;
	GeeMultiMap* _tmp21_;
	GeeMultiMap* _tmp22_;
	GeeSet* _tmp23_;
	GeeSet* _tmp24_;
	GeeIterator* _tmp25_;
	GeeIterator* _tmp26_;
	GeeIterator* _proto_it;
	GeeIterator* _tmp27_;
	gboolean _tmp28_;
	GeeIterator* _tmp29_;
	gpointer _tmp30_;
	gchar* proto;
	FolksIndividual* _tmp31_;
	GeeMultiMap* _tmp32_;
	GeeMultiMap* _tmp33_;
	const gchar* _tmp34_;
	GeeCollection* _tmp35_;
	GeeCollection* im_fds;
	GeeCollection* _tmp36_;
	GeeIterator* _tmp37_;
	GeeIterator* _im_fd_it;
	GeeIterator* _tmp38_;
	gboolean _tmp39_;
	GeeIterator* _tmp40_;
	gpointer _tmp41_;
	FolksImFieldDetails* im_fd;
	FolksImFieldDetails* _tmp42_;
	gconstpointer _tmp43_;
	const gchar* _tmp44_;
	const gchar* _tmp45_;
	GHashTable* _tmp46_;
	gchar* _tmp47_;
	FolksImFieldDetails* _tmp48_;
	gconstpointer _tmp49_;
	const gchar* _tmp50_;
	const gchar* _tmp51_;
	GHashTable* _tmp52_;
	gchar* _tmp53_;
	FolksIndividual* _tmp54_;
	GeeSet* _tmp55_;
	GeeSet* _tmp56_;
	GeeIterator* _tmp57_;
	GeeIterator* _phone_fd_it;
	GeeIterator* _tmp58_;
	gboolean _tmp59_;
	GeeIterator* _tmp60_;
	gpointer _tmp61_;
	FolksPhoneFieldDetails* phone_fd;
	const gchar* _tmp62_;
	FolksPhoneFieldDetails* _tmp63_;
	FolksPhoneFieldDetails* phone_1;
	FolksPhoneFieldDetails* _tmp64_;
	const gchar* _tmp65_;
	const gchar* _tmp66_;
	FolksPhoneFieldDetails* _tmp67_;
	FolksPhoneFieldDetails* phone_2;
	FolksPhoneFieldDetails* _tmp68_;
	const gchar* _tmp69_;
	FolksPhoneFieldDetails* _tmp70_;
	FolksPhoneFieldDetails* _tmp71_;
	gboolean _tmp72_;
	GHashTable* _tmp73_;
	gchar* _tmp74_;
	FolksPhoneFieldDetails* _tmp75_;
	FolksPhoneFieldDetails* _tmp76_;
	gboolean _tmp77_;
	GHashTable* _tmp78_;
	gchar* _tmp79_;
	FolksIndividual* _tmp80_;
	GeeSet* _tmp81_;
	GeeSet* _tmp82_;
	GeeIterator* _tmp83_;
	GeeIterator* _pa_fd_it;
	GeeIterator* _tmp84_;
	gboolean _tmp85_;
	GeeIterator* _tmp86_;
	gpointer _tmp87_;
	FolksPostalAddressFieldDetails* pa_fd;
	FolksPostalAddressFieldDetails* _tmp88_;
	FolksPostalAddressFieldDetails* _tmp89_;
	const gchar* _tmp90_;
	const gchar* _tmp91_;
	FolksPostalAddressFieldDetails* _tmp92_;
	FolksPostalAddressFieldDetails* _tmp93_;
	gboolean _tmp94_;
	GHashTable* _tmp95_;
	gchar* _tmp96_;
	gboolean _tmp97_;
	gboolean _tmp98_;
	FolksIndividual* _tmp99_;
	FolksStructuredName* _tmp100_;
	FolksStructuredName* _tmp101_;
	FolksIndividual* _tmp102_;
	FolksStructuredName* _tmp103_;
	FolksStructuredName* _tmp104_;
	const gchar* _tmp105_;
	const gchar* _tmp106_;
	const gchar* _tmp107_;
	gboolean _tmp108_;
	FolksIndividual* _tmp109_;
	FolksStructuredName* _tmp110_;
	FolksStructuredName* _tmp111_;
	const gchar* _tmp112_;
	const gchar* _tmp113_;
	const gchar* _tmp114_;
	gboolean _tmp115_;
	GHashTable* _tmp116_;
	gchar* _tmp117_;
	FolksIndividual* _tmp118_;
	GeeSet* _tmp119_;
	GeeSet* _tmp120_;
	GeeIterator* _tmp121_;
	GeeIterator* _note_it;
	GeeIterator* _tmp122_;
	gboolean _tmp123_;
	GeeIterator* _tmp124_;
	gpointer _tmp125_;
	FolksNoteFieldDetails* note;
	FolksNoteFieldDetails* _tmp126_;
	const gchar* _tmp127_;
	FolksNoteFieldDetails* _tmp128_;
	FolksNoteFieldDetails* _tmp129_;
	gboolean _tmp130_;
	gboolean _tmp131_;
	GHashTable* _tmp132_;
	gchar* _tmp133_;
	FolksIndividual* _tmp134_;
	GLoadableIcon* _tmp135_;
	GLoadableIcon* _tmp136_;
	const gchar* _tmp137_;
	GFile* _tmp138_;
	GFile* _tmp139_;
	GFileIcon* _tmp140_;
	GFileIcon* _tmp141_;
	GFileIcon* b;
	GFileIcon* _tmp142_;
	FolksIndividual* _tmp143_;
	GLoadableIcon* _tmp144_;
	GLoadableIcon* _tmp145_;
	gboolean _tmp146_;
	gboolean same;
	gboolean _tmp147_;
	GHashTable* _tmp148_;
	gchar* _tmp149_;
	FolksIndividual* _tmp150_;
	GDateTime* _tmp151_;
	GDateTime* _tmp152_;
	GDateTime* _tmp153_;
	GDateTime* _tmp154_;
	GDateTime* _tmp155_;
	GDateTime* _tmp156_;
	GDateTime* dobj;
	FolksIndividual* _tmp157_;
	GDateTime* _tmp158_;
	GDateTime* _tmp159_;
	GDateTime* _tmp160_;
	gboolean _tmp161_;
	GHashTable* _tmp162_;
	gchar* _tmp163_;
	FolksIndividual* _tmp164_;
	GeeSet* _tmp165_;
	GeeSet* _tmp166_;
	GeeIterator* _tmp167_;
	GeeIterator* _role_fd_it;
	GeeIterator* _tmp168_;
	gboolean _tmp169_;
	GeeIterator* _tmp170_;
	gpointer _tmp171_;
	FolksRoleFieldDetails* role_fd;
	FolksRole* _tmp172_;
	FolksRole* r1;
	FolksRole* _tmp173_;
	FolksRole* _tmp174_;
	FolksRoleFieldDetails* _tmp175_;
	FolksRoleFieldDetails* role_fd_expected;
	FolksRoleFieldDetails* _tmp176_;
	FolksRoleFieldDetails* _tmp177_;
	gboolean _tmp178_;
	GHashTable* _tmp179_;
	gchar* _tmp180_;
	FolksIndividual* _tmp181_;
	gboolean _tmp182_;
	gboolean _tmp183_;
	GHashTable* _tmp184_;
	gchar* _tmp185_;
};


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 __lambda2_ (AddPersonaTests* self);
static gboolean ___lambda2__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, GeeMultiMap* changes);
static void __add_persona_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, 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 guint _add_persona_tests_track_individual (AddPersonaTests* self, FolksIndividual* i);
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, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _add_persona_tests_check_properties_finish (AddPersonaTests* self, GAsyncResult* _res_);
static void _add_persona_tests_check_properties_data_free (gpointer _data);
static gboolean _add_persona_tests_check_properties_co (AddPersonaTestsCheckPropertiesData* _data_);
static void _add_persona_tests_check_properties_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
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) {
#line 58 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	add_persona_tests_test_add_persona (self);
#line 586 "add-persona.c"
}


AddPersonaTests* add_persona_tests_construct (GType object_type) {
	AddPersonaTests * self = NULL;
#line 56 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self = (AddPersonaTests*) folks_test_case_construct (object_type, "AddPersonaTests");
#line 58 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test adding a persona to e-d-s ", _add_persona_tests_test_add_persona_folks_test_case_test_method, self);
#line 54 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return self;
#line 598 "add-persona.c"
}


AddPersonaTests* add_persona_tests_new (void) {
#line 54 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return add_persona_tests_construct (TYPE_ADD_PERSONA_TESTS);
#line 605 "add-persona.c"
}


static void add_persona_tests_real_set_up (FolksTestCase* base) {
	AddPersonaTests * self;
	EdsTestBackend* _tmp0_;
	EdsTestBackend* _tmp1_;
	EdsTestBackend* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_ = NULL;
	gchar* config_val;
#line 61 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self = (AddPersonaTests*) base;
#line 63 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = eds_test_backend_new ();
#line 63 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 63 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_eds_backend = _tmp0_;
#line 64 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp1_ = self->priv->_eds_backend;
#line 64 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	eds_test_backend_set_up (_tmp1_, FALSE);
#line 67 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp2_ = self->priv->_eds_backend;
#line 67 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp3_ = eds_test_backend_get_address_book_uid (_tmp2_);
#line 67 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp4_ = _tmp3_;
#line 67 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp5_ = g_strdup_printf ("eds:%s", _tmp4_);
#line 67 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	config_val = _tmp5_;
#line 68 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_setenv ("FOLKS_PRIMARY_STORE", config_val, TRUE);
#line 61 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (config_val);
#line 644 "add-persona.c"
}


static void add_persona_tests_real_tear_down (FolksTestCase* base) {
	AddPersonaTests * self;
	EdsTestBackend* _tmp0_;
#line 71 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self = (AddPersonaTests*) base;
#line 73 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = self->priv->_eds_backend;
#line 73 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	eds_test_backend_tear_down (_tmp0_);
#line 657 "add-persona.c"
}


static void _g_free0_ (gpointer var) {
#line 98 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	var = (g_free (var), NULL);
#line 664 "add-persona.c"
}


static gboolean __lambda2_ (AddPersonaTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 118 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = self->priv->_main_loop;
#line 118 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_main_loop_quit (_tmp0_);
#line 119 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_assert_not_reached ();
#line 116 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return result;
#line 679 "add-persona.c"
}


static gboolean ___lambda2__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda2_ (self);
#line 116 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return result;
#line 688 "add-persona.c"
}


void add_persona_tests_test_add_persona (AddPersonaTests* self) {
	GMainLoop* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	gchar* _tmp9_;
	gchar* _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	const gchar* _tmp13_;
	const gchar* _tmp14_;
	const gchar* _tmp15_;
	const gchar* _tmp16_;
	const gchar* _tmp17_;
	const gchar* _tmp18_;
	const gchar* _tmp19_;
	FolksPostalAddress* _tmp20_;
	FolksPostalAddress* pa;
	FolksPostalAddress* _tmp21_;
	FolksPostalAddressFieldDetails* _tmp22_;
	FolksPostalAddressFieldDetails* _tmp23_;
	FolksPostalAddressFieldDetails* _tmp24_;
	FolksPostalAddressFieldDetails* _tmp25_;
	GHashFunc _tmp26_;
	GEqualFunc _tmp27_;
	GHashTable* _tmp28_;
	GHashTable* _tmp29_;
	gchar* _tmp30_;
	GHashTable* _tmp31_;
	gchar* _tmp32_;
	GHashTable* _tmp33_;
	gchar* _tmp34_;
	GHashTable* _tmp35_;
	gchar* _tmp36_;
	GHashTable* _tmp37_;
	gchar* _tmp38_;
	GHashTable* _tmp39_;
	gchar* _tmp40_;
	GHashTable* _tmp41_;
	gchar* _tmp42_;
	GHashTable* _tmp43_;
	gchar* _tmp44_;
	GHashTable* _tmp45_;
	gchar* _tmp46_;
	GHashTable* _tmp47_;
	gchar* _tmp48_;
	GHashTable* _tmp49_;
	gchar* _tmp50_;
	GHashTable* _tmp51_;
	gchar* _tmp52_;
	GHashTable* _tmp53_;
	gchar* _tmp54_;
	GMainLoop* _tmp55_;
	GHashTable* _tmp56_;
	GList* _tmp57_ = NULL;
#line 76 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_if_fail (self != NULL);
#line 78 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 78 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 78 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_main_loop = _tmp0_;
#line 79 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp1_ = g_strdup ("persona #1");
#line 79 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_persona_fullname);
#line 79 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_persona_fullname = _tmp1_;
#line 80 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp2_ = g_strdup ("someone-1@example.org");
#line 80 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_email_1);
#line 80 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_email_1 = _tmp2_;
#line 81 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp3_ = g_getenv ("AVATAR_FILE_PATH");
#line 81 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp4_ = g_strdup (_tmp3_);
#line 81 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_avatar_path);
#line 81 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_avatar_path = _tmp4_;
#line 82 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp5_ = g_strdup ("someone-1@jabber.example.org");
#line 82 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_im_addr_1);
#line 82 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_im_addr_1 = _tmp5_;
#line 83 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp6_ = g_strdup ("someone-2@jabber.example.org");
#line 83 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_im_addr_2);
#line 83 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_im_addr_2 = _tmp6_;
#line 84 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp7_ = g_strdup ("12345");
#line 84 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_phone_1);
#line 84 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_phone_1 = _tmp7_;
#line 85 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp8_ = g_strdup (FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE_HOME);
#line 85 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_phone_1_type);
#line 85 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_phone_1_type = _tmp8_;
#line 86 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp9_ = g_strdup ("54321");
#line 86 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_phone_2);
#line 86 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_phone_2 = _tmp9_;
#line 87 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp10_ = g_strdup (FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE_OTHER);
#line 87 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_phone_2_type);
#line 87 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_phone_2_type = _tmp10_;
#line 88 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp11_ = g_strdup ("family");
#line 88 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_family_name);
#line 88 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_family_name = _tmp11_;
#line 89 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp12_ = g_strdup ("given");
#line 89 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_given_name);
#line 89 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_given_name = _tmp12_;
#line 91 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp13_ = self->priv->_po_box;
#line 91 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp14_ = self->priv->_extension;
#line 91 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp15_ = self->priv->_street;
#line 91 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp16_ = self->priv->_locality;
#line 91 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp17_ = self->priv->_region;
#line 91 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp18_ = self->priv->_postal_code;
#line 91 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp19_ = self->priv->_country;
#line 91 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp20_ = folks_postal_address_new (_tmp13_, _tmp14_, _tmp15_, _tmp16_, _tmp17_, _tmp18_, _tmp19_, NULL, NULL);
#line 91 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	pa = _tmp20_;
#line 94 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp21_ = pa;
#line 94 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp22_ = folks_postal_address_field_details_new (_tmp21_, NULL);
#line 94 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (self->priv->_address);
#line 94 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_address = _tmp22_;
#line 95 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp23_ = self->priv->_address;
#line 95 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp24_ = self->priv->_address;
#line 95 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp25_ = self->priv->_address;
#line 95 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	folks_abstract_field_details_add_parameter ((FolksAbstractFieldDetails*) _tmp23_, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE_HOME);
#line 98 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp26_ = g_str_hash;
#line 98 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp27_ = g_str_equal;
#line 98 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp28_ = g_hash_table_new_full (_tmp26_, _tmp27_, _g_free0_, NULL);
#line 98 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_hash_table_unref0 (self->priv->_properties_found);
#line 98 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_properties_found = _tmp28_;
#line 100 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp29_ = self->priv->_properties_found;
#line 100 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp30_ = g_strdup ("full_name");
#line 100 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp29_, _tmp30_, GINT_TO_POINTER (FALSE));
#line 101 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp31_ = self->priv->_properties_found;
#line 101 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp32_ = g_strdup ("email-1");
#line 101 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp31_, _tmp32_, GINT_TO_POINTER (FALSE));
#line 102 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp33_ = self->priv->_properties_found;
#line 102 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp34_ = g_strdup ("avatar");
#line 102 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp33_, _tmp34_, GINT_TO_POINTER (FALSE));
#line 103 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp35_ = self->priv->_properties_found;
#line 103 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp36_ = g_strdup ("im-addr-1");
#line 103 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp35_, _tmp36_, GINT_TO_POINTER (FALSE));
#line 104 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp37_ = self->priv->_properties_found;
#line 104 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp38_ = g_strdup ("im-addr-2");
#line 104 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp37_, _tmp38_, GINT_TO_POINTER (FALSE));
#line 105 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp39_ = self->priv->_properties_found;
#line 105 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp40_ = g_strdup ("phone-1");
#line 105 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp39_, _tmp40_, GINT_TO_POINTER (FALSE));
#line 106 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp41_ = self->priv->_properties_found;
#line 106 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp42_ = g_strdup ("phone-2");
#line 106 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp41_, _tmp42_, GINT_TO_POINTER (FALSE));
#line 107 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp43_ = self->priv->_properties_found;
#line 107 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp44_ = g_strdup ("postal-address-1");
#line 107 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp43_, _tmp44_, GINT_TO_POINTER (FALSE));
#line 108 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp45_ = self->priv->_properties_found;
#line 108 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp46_ = g_strdup ("structured_name");
#line 108 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp45_, _tmp46_, GINT_TO_POINTER (FALSE));
#line 109 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp47_ = self->priv->_properties_found;
#line 109 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp48_ = g_strdup ("note");
#line 109 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp47_, _tmp48_, GINT_TO_POINTER (FALSE));
#line 110 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp49_ = self->priv->_properties_found;
#line 110 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp50_ = g_strdup ("birthday");
#line 110 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp49_, _tmp50_, GINT_TO_POINTER (FALSE));
#line 111 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp51_ = self->priv->_properties_found;
#line 111 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp52_ = g_strdup ("role-1");
#line 111 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp51_, _tmp52_, GINT_TO_POINTER (FALSE));
#line 112 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp53_ = self->priv->_properties_found;
#line 112 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp54_ = g_strdup ("is-favourite");
#line 112 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp53_, _tmp54_, GINT_TO_POINTER (FALSE));
#line 114 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_add_persona_tests_test_add_persona_async (self, NULL, NULL);
#line 116 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda2__gsource_func, g_object_ref (self), g_object_unref);
#line 122 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp55_ = self->priv->_main_loop;
#line 122 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_main_loop_run (_tmp55_);
#line 124 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp56_ = self->priv->_properties_found;
#line 124 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp57_ = g_hash_table_get_values (_tmp56_);
#line 962 "add-persona.c"
	{
		GList* k_collection = NULL;
		GList* k_it = NULL;
#line 124 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		k_collection = _tmp57_;
#line 124 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		for (k_it = k_collection; k_it != NULL; k_it = k_it->next) {
#line 970 "add-persona.c"
			gboolean k = FALSE;
#line 124 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			k = GPOINTER_TO_INT (k_it->data);
#line 974 "add-persona.c"
			{
				gboolean _tmp58_;
#line 126 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_tmp58_ = k;
#line 126 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				g_assert (_tmp58_);
#line 981 "add-persona.c"
			}
		}
#line 124 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_list_free0 (k_collection);
#line 986 "add-persona.c"
	}
#line 76 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (pa);
#line 990 "add-persona.c"
}


static void _add_persona_tests_test_add_persona_async_data_free (gpointer _data) {
	AddPersonaTestsTestAddPersonaAsyncData* _data_;
	_data_ = _data;
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_slice_free (AddPersonaTestsTestAddPersonaAsyncData, _data_);
#line 1001 "add-persona.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return self ? g_object_ref (self) : NULL;
#line 1008 "add-persona.c"
}


static void _add_persona_tests_test_add_persona_async (AddPersonaTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	AddPersonaTestsTestAddPersonaAsyncData* _data_;
	AddPersonaTests* _tmp0_;
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_ = g_slice_new0 (AddPersonaTestsTestAddPersonaAsyncData);
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _add_persona_tests_test_add_persona_async);
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _add_persona_tests_test_add_persona_async_data_free);
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->self = _tmp0_;
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_add_persona_tests_test_add_persona_async_co (_data_);
#line 1027 "add-persona.c"
}


static void _add_persona_tests_test_add_persona_finish (AddPersonaTests* self, GAsyncResult* _res_) {
	AddPersonaTestsTestAddPersonaAsyncData* _data_;
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1035 "add-persona.c"
}


static void _add_persona_tests_test_add_persona_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	AddPersonaTestsTestAddPersonaAsyncData* _data_;
#line 133 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_ = _user_data_;
#line 133 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_source_object_ = source_object;
#line 133 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_res_ = _res_;
#line 133 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_add_persona_tests_test_add_persona_async_co (_data_);
#line 1049 "add-persona.c"
}


static void __add_persona_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 135 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_add_persona_tests_individuals_changed_cb (self, changes);
#line 1056 "add-persona.c"
}


static void __add_persona_tests_notify_pstore_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 151 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_add_persona_tests_notify_pstore_cb (self, _sender, pspec);
#line 1063 "add-persona.c"
}


static gboolean _add_persona_tests_test_add_persona_async_co (AddPersonaTestsTestAddPersonaAsyncData* _data_) {
#line 130 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	switch (_data_->_state_) {
#line 130 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		case 0:
#line 1072 "add-persona.c"
		goto _state_0;
#line 130 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		case 1:
#line 1076 "add-persona.c"
		goto _state_1;
#line 130 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		case 2:
#line 1080 "add-persona.c"
		goto _state_2;
		default:
#line 130 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_assert_not_reached ();
#line 1085 "add-persona.c"
	}
	_state_0:
#line 132 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp0_ = NULL;
#line 132 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 132 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->store = _data_->_tmp0_;
#line 133 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_state_ = 1;
#line 133 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	folks_backend_store_prepare (_data_->store, _add_persona_tests_test_add_persona_async_ready, _data_);
#line 133 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return FALSE;
#line 1100 "add-persona.c"
	_state_1:
#line 133 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 135 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 135 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_signal_connect_object (_data_->_tmp2_, "individuals-changed-detailed", (GCallback) __add_persona_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed, _data_->self, 0);
#line 1114 "add-persona.c"
	{
#line 139 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 139 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_state_ = 2;
#line 139 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		folks_individual_aggregator_prepare (_data_->_tmp3_, _add_persona_tests_test_add_persona_async_ready, _data_);
#line 139 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		return FALSE;
#line 1124 "add-persona.c"
		_state_2:
#line 139 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 139 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		if (_data_->_inner_error_ != NULL) {
#line 1130 "add-persona.c"
			goto __catch0_g_error;
		}
#line 141 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->self->priv->_pstore);
#line 141 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->self->priv->_pstore = NULL;
#line 1137 "add-persona.c"
		{
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp4_ = folks_backend_store_get_enabled_backends (_data_->store);
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp5_ = _data_->_tmp4_;
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp6_ = gee_map_get_values (_data_->_tmp5_);
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp7_ = _data_->_tmp6_;
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp8_ = _data_->_tmp7_;
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp9_ = NULL;
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp9_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp8_);
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp10_ = _data_->_tmp9_;
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->_tmp8_);
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_backend_it = _data_->_tmp10_;
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			while (TRUE) {
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp11_ = _data_->_backend_it;
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp12_ = FALSE;
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp12_ = gee_iterator_next (_data_->_tmp11_);
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				if (!_data_->_tmp12_) {
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					break;
#line 1171 "add-persona.c"
				}
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp13_ = _data_->_backend_it;
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp14_ = NULL;
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp14_ = gee_iterator_get (_data_->_tmp13_);
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->backend = (FolksBackend*) _data_->_tmp14_;
#line 144 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp15_ = _data_->backend;
#line 144 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp16_ = folks_backend_get_persona_stores (_data_->_tmp15_);
#line 144 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp17_ = _data_->_tmp16_;
#line 144 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp18_ = _data_->self->priv->_eds_backend;
#line 144 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp19_ = eds_test_backend_get_address_book_uid (_data_->_tmp18_);
#line 144 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp20_ = _data_->_tmp19_;
#line 144 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp21_ = NULL;
#line 144 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp21_ = gee_map_get (_data_->_tmp17_, _data_->_tmp20_);
#line 144 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_g_object_unref0 (_data_->self->priv->_pstore);
#line 144 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->self->priv->_pstore = EDSF_PERSONA_STORE ((FolksPersonaStore*) _data_->_tmp21_);
#line 147 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp22_ = _data_->self->priv->_pstore;
#line 147 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				if (_data_->_tmp22_ != NULL) {
#line 148 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_g_object_unref0 (_data_->backend);
#line 148 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					break;
#line 1209 "add-persona.c"
				}
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_g_object_unref0 (_data_->backend);
#line 1213 "add-persona.c"
			}
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->_backend_it);
#line 1217 "add-persona.c"
		}
#line 150 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp23_ = _data_->self->priv->_pstore;
#line 150 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_assert (_data_->_tmp23_ != NULL);
#line 151 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp24_ = _data_->self->priv->_pstore;
#line 151 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _data_->_tmp24_, "notify::is-prepared", (GCallback) __add_persona_tests_notify_pstore_cb_g_object_notify, _data_->self, 0);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_add_persona_tests_try_to_add (_data_->self);
#line 1229 "add-persona.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 137 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->e = _data_->_inner_error_;
#line 137 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_inner_error_ = NULL;
#line 156 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp25_ = _data_->e;
#line 156 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp26_ = _data_->_tmp25_->message;
#line 156 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_warning ("add-persona.vala:156: Error when calling prepare: %s\n", _data_->_tmp26_);
#line 137 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_error_free0 (_data_->e);
#line 1246 "add-persona.c"
	}
	__finally0:
#line 137 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_inner_error_ != NULL) {
#line 137 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->store);
#line 137 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 137 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_clear_error (&_data_->_inner_error_);
#line 137 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		return FALSE;
#line 1259 "add-persona.c"
	}
#line 130 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->store);
#line 130 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_state_ == 0) {
#line 130 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1267 "add-persona.c"
	} else {
#line 130 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1271 "add-persona.c"
	}
#line 130 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_object_unref (_data_->_async_result);
#line 130 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return FALSE;
#line 1277 "add-persona.c"
}


static void _add_persona_tests_add_persona_data_free (gpointer _data) {
	AddPersonaTestsAddPersonaData* _data_;
	_data_ = _data;
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_slice_free (AddPersonaTestsAddPersonaData, _data_);
#line 1288 "add-persona.c"
}


static void _add_persona_tests_add_persona (AddPersonaTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	AddPersonaTestsAddPersonaData* _data_;
	AddPersonaTests* _tmp0_;
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_ = g_slice_new0 (AddPersonaTestsAddPersonaData);
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _add_persona_tests_add_persona);
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _add_persona_tests_add_persona_data_free);
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->self = _tmp0_;
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_add_persona_tests_add_persona_co (_data_);
#line 1307 "add-persona.c"
}


static void _add_persona_tests_add_persona_finish (AddPersonaTests* self, GAsyncResult* _res_) {
	AddPersonaTestsAddPersonaData* _data_;
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1315 "add-persona.c"
}


static void _vala_GValue_free (GValue* self) {
#line 162 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_unset (self);
#line 162 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_free (self);
#line 1324 "add-persona.c"
}


static void __vala_GValue_free0_ (gpointer var) {
#line 162 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	(var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL));
#line 1331 "add-persona.c"
}


static GValue* _g_value_dup (GValue* self) {
#line 165 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return g_boxed_copy (G_TYPE_VALUE, self);
#line 1338 "add-persona.c"
}


static gpointer __g_value_dup0 (gpointer self) {
#line 165 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return self ? _g_value_dup (self) : NULL;
#line 1345 "add-persona.c"
}


static void _add_persona_tests_add_persona_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	AddPersonaTestsAddPersonaData* _data_;
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_ = _user_data_;
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_source_object_ = source_object;
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_res_ = _res_;
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_add_persona_tests_add_persona_co (_data_);
#line 1359 "add-persona.c"
}


static gboolean _add_persona_tests_add_persona_co (AddPersonaTestsAddPersonaData* _data_) {
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	switch (_data_->_state_) {
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		case 0:
#line 1368 "add-persona.c"
		goto _state_0;
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		case 1:
#line 1372 "add-persona.c"
		goto _state_1;
		default:
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_assert_not_reached ();
#line 1377 "add-persona.c"
	}
	_state_0:
#line 162 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp0_ = g_str_hash;
#line 162 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp1_ = g_str_equal;
#line 162 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp2_ = g_hash_table_new_full (_data_->_tmp0_, _data_->_tmp1_, _g_free0_, __vala_GValue_free0_);
#line 162 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->details = _data_->_tmp2_;
#line 165 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp3_, 0, sizeof (GValue));
#line 165 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp3_, G_TYPE_STRING);
#line 165 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 165 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp5_ = __g_value_dup0 (&_data_->_tmp4_);
#line 165 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp6_ = _data_->_tmp5_;
#line 165 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp4_) ? (g_value_unset (&_data_->_tmp4_), NULL) : NULL;
#line 165 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v1 = _data_->_tmp6_;
#line 166 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp7_ = _data_->v1;
#line 166 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp8_ = _data_->self->priv->_persona_fullname;
#line 166 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_string (_data_->_tmp7_, _data_->_tmp8_);
#line 167 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp9_ = NULL;
#line 167 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp9_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_FULL_NAME);
#line 167 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp10_ = g_strdup (_data_->_tmp9_);
#line 167 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp11_ = _data_->v1;
#line 167 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v1 = NULL;
#line 167 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp10_, _data_->_tmp11_);
#line 170 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp12_, 0, sizeof (GValue));
#line 170 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp12_, GEE_TYPE_SET);
#line 170 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp13_ = _data_->_tmp12_;
#line 170 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp14_ = __g_value_dup0 (&_data_->_tmp13_);
#line 170 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp15_ = _data_->_tmp14_;
#line 170 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp13_) ? (g_value_unset (&_data_->_tmp13_), NULL) : NULL;
#line 170 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v2 = _data_->_tmp15_;
#line 171 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp16_ = 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);
#line 171 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->emails = _data_->_tmp16_;
#line 174 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp17_ = _data_->self->priv->_email_1;
#line 174 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp18_ = folks_email_field_details_new (_data_->_tmp17_, NULL);
#line 174 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->email_1 = _data_->_tmp18_;
#line 175 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	folks_abstract_field_details_set_parameter ((FolksAbstractFieldDetails*) _data_->email_1, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE_HOME);
#line 176 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->emails, _data_->email_1);
#line 177 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp19_ = _data_->v2;
#line 177 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_object (_data_->_tmp19_, (GObject*) _data_->emails);
#line 178 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp20_ = NULL;
#line 178 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp20_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_EMAIL_ADDRESSES);
#line 178 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp21_ = g_strdup (_data_->_tmp20_);
#line 178 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp22_ = _data_->v2;
#line 178 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v2 = NULL;
#line 178 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp21_, _data_->_tmp22_);
#line 182 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp23_, 0, sizeof (GValue));
#line 182 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp23_, G_TYPE_LOADABLE_ICON);
#line 182 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp24_ = _data_->_tmp23_;
#line 182 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp25_ = __g_value_dup0 (&_data_->_tmp24_);
#line 182 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp26_ = _data_->_tmp25_;
#line 182 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp24_) ? (g_value_unset (&_data_->_tmp24_), NULL) : NULL;
#line 182 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v3 = _data_->_tmp26_;
#line 183 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp27_ = _data_->self->priv->_avatar_path;
#line 183 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp28_ = NULL;
#line 183 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp28_ = g_file_new_for_path (_data_->_tmp27_);
#line 183 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp29_ = _data_->_tmp28_;
#line 183 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp30_ = (GFileIcon*) g_file_icon_new (_data_->_tmp29_);
#line 183 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp31_ = _data_->_tmp30_;
#line 183 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->_tmp29_);
#line 183 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->avatar = _data_->_tmp31_;
#line 184 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp32_ = _data_->v3;
#line 184 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_object (_data_->_tmp32_, (GObject*) _data_->avatar);
#line 185 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp33_ = NULL;
#line 185 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp33_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_AVATAR);
#line 185 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp34_ = g_strdup (_data_->_tmp33_);
#line 185 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp35_ = _data_->v3;
#line 185 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v3 = NULL;
#line 185 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp34_, _data_->_tmp35_);
#line 188 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp36_, 0, sizeof (GValue));
#line 188 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp36_, GEE_TYPE_MULTI_MAP);
#line 188 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp37_ = _data_->_tmp36_;
#line 188 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp38_ = __g_value_dup0 (&_data_->_tmp37_);
#line 188 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp39_ = _data_->_tmp38_;
#line 188 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp37_) ? (g_value_unset (&_data_->_tmp37_), NULL) : NULL;
#line 188 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v4 = _data_->_tmp39_;
#line 189 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp40_ = 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, NULL, NULL);
#line 189 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->im_fds = _data_->_tmp40_;
#line 190 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp41_ = _data_->self->priv->_im_addr_1;
#line 190 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp42_ = folks_im_field_details_new (_data_->_tmp41_, NULL);
#line 190 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp43_ = _data_->_tmp42_;
#line 190 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	gee_multi_map_set ((GeeMultiMap*) _data_->im_fds, "jabber", _data_->_tmp43_);
#line 190 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->_tmp43_);
#line 191 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp44_ = _data_->self->priv->_im_addr_2;
#line 191 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp45_ = folks_im_field_details_new (_data_->_tmp44_, NULL);
#line 191 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp46_ = _data_->_tmp45_;
#line 191 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	gee_multi_map_set ((GeeMultiMap*) _data_->im_fds, "yahoo", _data_->_tmp46_);
#line 191 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->_tmp46_);
#line 192 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_object (_data_->v4, (GObject*) _data_->im_fds);
#line 193 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp47_ = NULL;
#line 193 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp47_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_IM_ADDRESSES);
#line 193 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp48_ = g_strdup (_data_->_tmp47_);
#line 193 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp49_ = __g_value_dup0 (_data_->v4);
#line 193 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp48_, _data_->_tmp49_);
#line 196 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp50_, 0, sizeof (GValue));
#line 196 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp50_, GEE_TYPE_SET);
#line 196 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp51_ = _data_->_tmp50_;
#line 196 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp52_ = __g_value_dup0 (&_data_->_tmp51_);
#line 196 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp53_ = _data_->_tmp52_;
#line 196 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp51_) ? (g_value_unset (&_data_->_tmp51_), NULL) : NULL;
#line 196 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v5 = _data_->_tmp53_;
#line 197 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp54_ = 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);
#line 197 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->phones = _data_->_tmp54_;
#line 201 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp55_ = _data_->self->priv->_phone_1;
#line 201 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp56_ = folks_phone_field_details_new (_data_->_tmp55_, NULL);
#line 201 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->phone_1 = _data_->_tmp56_;
#line 202 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp57_ = _data_->self->priv->_phone_1_type;
#line 202 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	folks_abstract_field_details_set_parameter ((FolksAbstractFieldDetails*) _data_->phone_1, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE, _data_->_tmp57_);
#line 204 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->phones, _data_->phone_1);
#line 205 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp58_ = _data_->self->priv->_phone_2;
#line 205 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp59_ = folks_phone_field_details_new (_data_->_tmp58_, NULL);
#line 205 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->phone_2 = _data_->_tmp59_;
#line 206 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp60_ = _data_->self->priv->_phone_2_type;
#line 206 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	folks_abstract_field_details_set_parameter ((FolksAbstractFieldDetails*) _data_->phone_2, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE, _data_->_tmp60_);
#line 208 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->phones, _data_->phone_2);
#line 209 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp61_ = _data_->v5;
#line 209 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_object (_data_->_tmp61_, (GObject*) _data_->phones);
#line 210 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp62_ = NULL;
#line 210 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp62_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_PHONE_NUMBERS);
#line 210 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp63_ = g_strdup (_data_->_tmp62_);
#line 210 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp64_ = _data_->v5;
#line 210 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v5 = NULL;
#line 210 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp63_, _data_->_tmp64_);
#line 214 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp65_, 0, sizeof (GValue));
#line 214 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp65_, GEE_TYPE_SET);
#line 214 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp66_ = _data_->_tmp65_;
#line 214 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp67_ = __g_value_dup0 (&_data_->_tmp66_);
#line 214 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp68_ = _data_->_tmp67_;
#line 214 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp66_) ? (g_value_unset (&_data_->_tmp66_), NULL) : NULL;
#line 214 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v6 = _data_->_tmp68_;
#line 215 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp69_ = 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);
#line 215 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->pa_fds = _data_->_tmp69_;
#line 219 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp70_ = _data_->self->priv->_po_box;
#line 219 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp71_ = _data_->self->priv->_extension;
#line 219 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp72_ = _data_->self->priv->_street;
#line 219 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp73_ = _data_->self->priv->_locality;
#line 219 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp74_ = _data_->self->priv->_region;
#line 219 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp75_ = _data_->self->priv->_postal_code;
#line 219 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp76_ = _data_->self->priv->_country;
#line 219 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp77_ = folks_postal_address_new (_data_->_tmp70_, _data_->_tmp71_, _data_->_tmp72_, _data_->_tmp73_, _data_->_tmp74_, _data_->_tmp75_, _data_->_tmp76_, NULL, NULL);
#line 219 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->pa_a = _data_->_tmp77_;
#line 222 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp78_ = folks_postal_address_field_details_new (_data_->pa_a, NULL);
#line 222 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->pa_fd_a = _data_->_tmp78_;
#line 223 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	folks_abstract_field_details_add_parameter ((FolksAbstractFieldDetails*) _data_->pa_fd_a, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE_HOME);
#line 224 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->pa_fds, _data_->pa_fd_a);
#line 225 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp79_ = _data_->v6;
#line 225 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_object (_data_->_tmp79_, (GObject*) _data_->pa_fds);
#line 226 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp80_ = NULL;
#line 226 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp80_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_POSTAL_ADDRESSES);
#line 226 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp81_ = g_strdup (_data_->_tmp80_);
#line 226 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp82_ = _data_->v6;
#line 226 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v6 = NULL;
#line 226 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp81_, _data_->_tmp82_);
#line 230 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp83_, 0, sizeof (GValue));
#line 230 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp83_, FOLKS_TYPE_STRUCTURED_NAME);
#line 230 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp84_ = _data_->_tmp83_;
#line 230 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp85_ = __g_value_dup0 (&_data_->_tmp84_);
#line 230 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp86_ = _data_->_tmp85_;
#line 230 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp84_) ? (g_value_unset (&_data_->_tmp84_), NULL) : NULL;
#line 230 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v7 = _data_->_tmp86_;
#line 231 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp87_ = _data_->self->priv->_family_name;
#line 231 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp88_ = _data_->self->priv->_given_name;
#line 231 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp89_ = folks_structured_name_new (_data_->_tmp87_, _data_->_tmp88_, NULL, NULL, NULL);
#line 231 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->sname = _data_->_tmp89_;
#line 233 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp90_ = _data_->v7;
#line 233 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_object (_data_->_tmp90_, (GObject*) _data_->sname);
#line 234 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp91_ = NULL;
#line 234 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp91_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_STRUCTURED_NAME);
#line 234 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp92_ = g_strdup (_data_->_tmp91_);
#line 234 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp93_ = _data_->v7;
#line 234 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v7 = NULL;
#line 234 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp92_, _data_->_tmp93_);
#line 238 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp94_, 0, sizeof (GValue));
#line 238 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp94_, GEE_TYPE_SET);
#line 238 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp95_ = _data_->_tmp94_;
#line 238 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp96_ = __g_value_dup0 (&_data_->_tmp95_);
#line 238 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp97_ = _data_->_tmp96_;
#line 238 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp95_) ? (g_value_unset (&_data_->_tmp95_), NULL) : NULL;
#line 238 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v8 = _data_->_tmp97_;
#line 239 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp98_ = 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);
#line 239 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->notes = _data_->_tmp98_;
#line 242 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp99_ = _data_->self->priv->_note;
#line 242 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp100_ = folks_note_field_details_new (_data_->_tmp99_, NULL, NULL);
#line 242 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->note = _data_->_tmp100_;
#line 243 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->notes, _data_->note);
#line 244 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp101_ = _data_->v8;
#line 244 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_object (_data_->_tmp101_, (GObject*) _data_->notes);
#line 245 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp102_ = NULL;
#line 245 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp102_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_NOTES);
#line 245 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp103_ = g_strdup (_data_->_tmp102_);
#line 245 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp104_ = _data_->v8;
#line 245 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v8 = NULL;
#line 245 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp103_, _data_->_tmp104_);
#line 249 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp105_, 0, sizeof (GValue));
#line 249 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp105_, G_TYPE_DATE_TIME);
#line 249 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp106_ = _data_->_tmp105_;
#line 249 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp107_ = __g_value_dup0 (&_data_->_tmp106_);
#line 249 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp108_ = _data_->_tmp107_;
#line 249 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp106_) ? (g_value_unset (&_data_->_tmp106_), NULL) : NULL;
#line 249 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v9 = _data_->_tmp108_;
#line 250 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp109_ = g_date_time_new_utc (1980, 1, 1, 0, 0, 0.0);
#line 250 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->dobj = _data_->_tmp109_;
#line 251 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp110_ = _data_->v9;
#line 251 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_boxed (_data_->_tmp110_, _data_->dobj);
#line 252 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp111_ = NULL;
#line 252 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp111_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_BIRTHDAY);
#line 252 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp112_ = g_strdup (_data_->_tmp111_);
#line 252 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp113_ = _data_->v9;
#line 252 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v9 = NULL;
#line 252 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp112_, _data_->_tmp113_);
#line 255 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp114_, 0, sizeof (GValue));
#line 255 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp114_, GEE_TYPE_SET);
#line 255 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp115_ = _data_->_tmp114_;
#line 255 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp116_ = __g_value_dup0 (&_data_->_tmp115_);
#line 255 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp117_ = _data_->_tmp116_;
#line 255 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp115_) ? (g_value_unset (&_data_->_tmp115_), NULL) : NULL;
#line 255 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v10 = _data_->_tmp117_;
#line 256 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp118_ = 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);
#line 256 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->role_fds = _data_->_tmp118_;
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp119_ = folks_role_new ("Dr.", "The Nut House Ltd", NULL);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->r1 = _data_->_tmp119_;
#line 260 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	folks_role_set_role (_data_->r1, "The Manager");
#line 261 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp120_ = folks_role_field_details_new (_data_->r1, NULL);
#line 261 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->role_fd1 = _data_->_tmp120_;
#line 262 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->role_fds, _data_->role_fd1);
#line 263 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp121_ = _data_->v10;
#line 263 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_object (_data_->_tmp121_, (GObject*) _data_->role_fds);
#line 264 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp122_ = NULL;
#line 264 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp122_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_ROLES);
#line 264 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp123_ = g_strdup (_data_->_tmp122_);
#line 264 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp124_ = _data_->v10;
#line 264 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v10 = NULL;
#line 264 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp123_, _data_->_tmp124_);
#line 267 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp125_, 0, sizeof (GValue));
#line 267 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp125_, G_TYPE_BOOLEAN);
#line 267 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp126_ = _data_->_tmp125_;
#line 267 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp127_ = __g_value_dup0 (&_data_->_tmp126_);
#line 267 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp128_ = _data_->_tmp127_;
#line 267 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp126_) ? (g_value_unset (&_data_->_tmp126_), NULL) : NULL;
#line 267 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v11 = _data_->_tmp128_;
#line 268 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp129_ = _data_->v11;
#line 268 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_boolean (_data_->_tmp129_, TRUE);
#line 269 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp130_ = NULL;
#line 269 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp130_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_IS_FAVOURITE);
#line 269 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp131_ = g_strdup (_data_->_tmp130_);
#line 269 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp132_ = _data_->v11;
#line 269 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v11 = NULL;
#line 269 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp131_, _data_->_tmp132_);
#line 1868 "add-persona.c"
	{
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp133_ = _data_->self->priv->_aggregator;
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp134_ = _data_->self->priv->_pstore;
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_state_ = 1;
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp133_, NULL, (FolksPersonaStore*) _data_->_tmp134_, _data_->details, _add_persona_tests_add_persona_ready, _data_);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		return FALSE;
#line 1880 "add-persona.c"
		_state_1:
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp135_ = NULL;
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp135_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp133_, _data_->_res_, &_data_->_inner_error_);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp136_ = _data_->_tmp135_;
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->_tmp136_);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		if (_data_->_inner_error_ != NULL) {
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1894 "add-persona.c"
				goto __catch1_folks_individual_aggregator_error;
			}
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v11);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->role_fd1);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->r1);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->role_fds);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v10);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_date_time_unref0 (_data_->dobj);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v9);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->note);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->notes);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v8);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->sname);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v7);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->pa_fd_a);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->pa_a);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->pa_fds);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v6);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->phone_2);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->phone_1);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->phones);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v5);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->im_fds);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v4);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->avatar);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v3);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->email_1);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->emails);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v2);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v1);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_hash_table_unref0 (_data_->details);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_clear_error (&_data_->_inner_error_);
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			return FALSE;
#line 1961 "add-persona.c"
		}
	}
	goto __finally1;
	__catch1_folks_individual_aggregator_error:
	{
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->e = _data_->_inner_error_;
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_inner_error_ = NULL;
#line 280 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp137_ = _data_->e;
#line 280 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp138_ = _data_->_tmp137_->message;
#line 280 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_warning ("add-persona.vala:280: [AddPersonaError] add_persona_from_details: %s\n", _data_->_tmp138_);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_error_free0 (_data_->e);
#line 1979 "add-persona.c"
	}
	__finally1:
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_inner_error_ != NULL) {
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v11);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->role_fd1);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->r1);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->role_fds);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v10);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_date_time_unref0 (_data_->dobj);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v9);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->note);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->notes);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v8);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->sname);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v7);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->pa_fd_a);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->pa_a);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->pa_fds);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v6);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->phone_2);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->phone_1);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->phones);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v5);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->im_fds);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v4);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->avatar);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v3);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->email_1);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->emails);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v2);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v1);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_hash_table_unref0 (_data_->details);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_clear_error (&_data_->_inner_error_);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		return FALSE;
#line 2048 "add-persona.c"
	}
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v11);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->role_fd1);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->r1);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->role_fds);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v10);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_date_time_unref0 (_data_->dobj);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v9);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->note);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->notes);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v8);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->sname);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v7);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->pa_fd_a);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->pa_a);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->pa_fds);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v6);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->phone_2);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->phone_1);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->phones);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v5);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->im_fds);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v4);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->avatar);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v3);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->email_1);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->emails);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v2);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v1);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_hash_table_unref0 (_data_->details);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_state_ == 0) {
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2112 "add-persona.c"
	} else {
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2116 "add-persona.c"
	}
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_object_unref (_data_->_async_result);
#line 160 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return FALSE;
#line 2122 "add-persona.c"
}


static void _add_persona_tests_individuals_changed_cb (AddPersonaTests* self, GeeMultiMap* changes) {
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
	guint num_replaces;
	GeeSet* _tmp13_;
	gint _tmp14_;
	gint _tmp15_;
	guint _tmp16_;
#line 285 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_if_fail (self != NULL);
#line 285 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_if_fail (changes != NULL);
#line 288 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = changes;
#line 288 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 288 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	added = _tmp1_;
#line 289 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp2_ = changes;
#line 289 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 289 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	removed = _tmp3_;
#line 291 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	num_replaces = (guint) 0;
#line 2156 "add-persona.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 293 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp4_ = added;
#line 293 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 293 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_i_it = _tmp5_;
#line 293 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		while (TRUE) {
#line 2169 "add-persona.c"
			GeeIterator* _tmp6_;
			gboolean _tmp7_ = FALSE;
			GeeIterator* _tmp8_;
			gpointer _tmp9_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp10_;
			FolksIndividual* _tmp11_;
			guint _tmp12_ = 0U;
#line 293 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp6_ = _i_it;
#line 293 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 293 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (!_tmp7_) {
#line 293 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				break;
#line 2186 "add-persona.c"
			}
#line 293 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp8_ = _i_it;
#line 293 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 293 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			i = (FolksIndividual*) _tmp9_;
#line 295 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp10_ = i;
#line 295 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (_tmp10_ == NULL) {
#line 297 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_g_object_unref0 (i);
#line 297 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				continue;
#line 2202 "add-persona.c"
			}
#line 300 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp11_ = i;
#line 300 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp12_ = _add_persona_tests_track_individual (self, _tmp11_);
#line 300 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			num_replaces = _tmp12_;
#line 293 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (i);
#line 2212 "add-persona.c"
		}
#line 293 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_i_it);
#line 2216 "add-persona.c"
	}
#line 303 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp13_ = removed;
#line 303 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp14_ = gee_collection_get_size ((GeeCollection*) _tmp13_);
#line 303 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp15_ = _tmp14_;
#line 303 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp16_ = num_replaces;
#line 303 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_assert (((guint) _tmp15_) <= (_tmp16_ + 1));
#line 285 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (removed);
#line 285 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (added);
#line 2232 "add-persona.c"
}


static void __add_persona_tests_notify_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 320 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_add_persona_tests_notify_cb (self, _sender, pspec);
#line 2239 "add-persona.c"
}


static guint _add_persona_tests_track_individual (AddPersonaTests* self, FolksIndividual* i) {
	guint result = 0U;
	guint retval;
	FolksIndividual* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
#line 306 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_val_if_fail (self != NULL, 0U);
#line 306 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_val_if_fail (i != NULL, 0U);
#line 308 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	retval = (guint) 0;
#line 310 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = i;
#line 310 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp1_ = folks_individual_get_is_user (_tmp0_);
#line 310 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp2_ = _tmp1_;
#line 310 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_tmp2_ == FALSE) {
#line 2263 "add-persona.c"
		gboolean _tmp3_ = FALSE;
		FolksIndividual* _tmp4_;
		gboolean _tmp11_;
		FolksIndividual* _tmp12_;
		FolksIndividual* _tmp47_;
		FolksIndividual* _tmp48_;
		guint _tmp49_;
		FolksIndividual* _tmp50_;
		FolksIndividual* _tmp51_;
		FolksIndividual* _tmp52_;
		FolksIndividual* _tmp53_;
		FolksIndividual* _tmp54_;
		FolksIndividual* _tmp55_;
		FolksIndividual* _tmp56_;
		FolksIndividual* _tmp57_;
		FolksIndividual* _tmp58_;
		FolksIndividual* _tmp59_;
		FolksIndividual* _tmp60_;
		FolksIndividual* _tmp61_;
#line 314 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp4_ = self->priv->_individual_received;
#line 314 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		if (_tmp4_ == NULL) {
#line 314 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp3_ = TRUE;
#line 2289 "add-persona.c"
		} else {
			FolksIndividual* _tmp5_;
			const gchar* _tmp6_;
			const gchar* _tmp7_;
			FolksIndividual* _tmp8_;
			const gchar* _tmp9_;
			const gchar* _tmp10_;
#line 315 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp5_ = self->priv->_individual_received;
#line 315 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp6_ = folks_individual_get_id (_tmp5_);
#line 315 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp7_ = _tmp6_;
#line 315 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp8_ = i;
#line 315 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp9_ = folks_individual_get_id (_tmp8_);
#line 315 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp10_ = _tmp9_;
#line 315 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp3_ = g_strcmp0 (_tmp7_, _tmp10_) == 0;
#line 2311 "add-persona.c"
		}
#line 314 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp11_ = _tmp3_;
#line 314 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_assert (_tmp11_);
#line 318 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp12_ = self->priv->_individual_received;
#line 318 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		if (_tmp12_ != NULL) {
#line 2321 "add-persona.c"
			FolksIndividual* _tmp13_;
			guint _tmp14_ = 0U;
			GQuark _tmp15_ = 0U;
			FolksIndividual* _tmp16_;
			guint _tmp17_ = 0U;
			GQuark _tmp18_ = 0U;
			FolksIndividual* _tmp19_;
			guint _tmp20_ = 0U;
			GQuark _tmp21_ = 0U;
			FolksIndividual* _tmp22_;
			guint _tmp23_ = 0U;
			GQuark _tmp24_ = 0U;
			FolksIndividual* _tmp25_;
			guint _tmp26_ = 0U;
			GQuark _tmp27_ = 0U;
			FolksIndividual* _tmp28_;
			guint _tmp29_ = 0U;
			GQuark _tmp30_ = 0U;
			FolksIndividual* _tmp31_;
			guint _tmp32_ = 0U;
			GQuark _tmp33_ = 0U;
			FolksIndividual* _tmp34_;
			guint _tmp35_ = 0U;
			GQuark _tmp36_ = 0U;
			FolksIndividual* _tmp37_;
			guint _tmp38_ = 0U;
			GQuark _tmp39_ = 0U;
			FolksIndividual* _tmp40_;
			guint _tmp41_ = 0U;
			GQuark _tmp42_ = 0U;
			FolksIndividual* _tmp43_;
			guint _tmp44_ = 0U;
			GQuark _tmp45_ = 0U;
			GHashTable* _tmp46_;
#line 320 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp13_ = i;
#line 320 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::full-name", G_TYPE_OBJECT, &_tmp14_, &_tmp15_, TRUE);
#line 320 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_handlers_disconnect_matched ((GObject*) _tmp13_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_DETAIL | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, _tmp15_, NULL, (GCallback) __add_persona_tests_notify_cb_g_object_notify, self);
#line 321 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp16_ = i;
#line 321 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::email-addresses", G_TYPE_OBJECT, &_tmp17_, &_tmp18_, TRUE);
#line 321 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_handlers_disconnect_matched ((GObject*) _tmp16_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_DETAIL | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp17_, _tmp18_, NULL, (GCallback) __add_persona_tests_notify_cb_g_object_notify, self);
#line 322 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp19_ = i;
#line 322 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::avatar", G_TYPE_OBJECT, &_tmp20_, &_tmp21_, TRUE);
#line 322 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_handlers_disconnect_matched ((GObject*) _tmp19_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_DETAIL | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp20_, _tmp21_, NULL, (GCallback) __add_persona_tests_notify_cb_g_object_notify, self);
#line 323 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp22_ = i;
#line 323 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::im-addresses", G_TYPE_OBJECT, &_tmp23_, &_tmp24_, TRUE);
#line 323 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_handlers_disconnect_matched ((GObject*) _tmp22_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_DETAIL | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp23_, _tmp24_, NULL, (GCallback) __add_persona_tests_notify_cb_g_object_notify, self);
#line 324 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp25_ = i;
#line 324 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::phone-numbers", G_TYPE_OBJECT, &_tmp26_, &_tmp27_, TRUE);
#line 324 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_handlers_disconnect_matched ((GObject*) _tmp25_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_DETAIL | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp26_, _tmp27_, NULL, (GCallback) __add_persona_tests_notify_cb_g_object_notify, self);
#line 325 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp28_ = i;
#line 325 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::postal-addresses", G_TYPE_OBJECT, &_tmp29_, &_tmp30_, TRUE);
#line 325 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_handlers_disconnect_matched ((GObject*) _tmp28_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_DETAIL | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp29_, _tmp30_, NULL, (GCallback) __add_persona_tests_notify_cb_g_object_notify, self);
#line 326 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp31_ = i;
#line 326 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::structured-name", G_TYPE_OBJECT, &_tmp32_, &_tmp33_, TRUE);
#line 326 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_handlers_disconnect_matched ((GObject*) _tmp31_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_DETAIL | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp32_, _tmp33_, NULL, (GCallback) __add_persona_tests_notify_cb_g_object_notify, self);
#line 327 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp34_ = i;
#line 327 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::notes", G_TYPE_OBJECT, &_tmp35_, &_tmp36_, TRUE);
#line 327 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_handlers_disconnect_matched ((GObject*) _tmp34_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_DETAIL | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp35_, _tmp36_, NULL, (GCallback) __add_persona_tests_notify_cb_g_object_notify, self);
#line 328 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp37_ = i;
#line 328 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::birthday", G_TYPE_OBJECT, &_tmp38_, &_tmp39_, TRUE);
#line 328 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_handlers_disconnect_matched ((GObject*) _tmp37_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_DETAIL | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp38_, _tmp39_, NULL, (GCallback) __add_persona_tests_notify_cb_g_object_notify, self);
#line 329 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp40_ = i;
#line 329 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::roles", G_TYPE_OBJECT, &_tmp41_, &_tmp42_, TRUE);
#line 329 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_handlers_disconnect_matched ((GObject*) _tmp40_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_DETAIL | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp41_, _tmp42_, NULL, (GCallback) __add_persona_tests_notify_cb_g_object_notify, self);
#line 330 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp43_ = i;
#line 330 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::is-favourite", G_TYPE_OBJECT, &_tmp44_, &_tmp45_, TRUE);
#line 330 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_handlers_disconnect_matched ((GObject*) _tmp43_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_DETAIL | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp44_, _tmp45_, NULL, (GCallback) __add_persona_tests_notify_cb_g_object_notify, self);
#line 332 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp46_ = self->priv->_properties_found;
#line 332 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_hash_table_remove_all (_tmp46_);
#line 2426 "add-persona.c"
		}
#line 335 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp47_ = i;
#line 335 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp48_ = _g_object_ref0 (_tmp47_);
#line 335 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (self->priv->_individual_received);
#line 335 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		self->priv->_individual_received = _tmp48_;
#line 336 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp49_ = retval;
#line 336 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		retval = _tmp49_ + 1;
#line 338 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp50_ = i;
#line 338 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp50_, "notify::full-name", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 339 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp51_ = i;
#line 339 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp51_, "notify::email-addresses", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 340 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp52_ = i;
#line 340 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp52_, "notify::avatar", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 341 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp53_ = i;
#line 341 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp53_, "notify::im-addresses", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 342 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp54_ = i;
#line 342 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp54_, "notify::phone-numbers", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 343 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp55_ = i;
#line 343 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp55_, "notify::postal-addresses", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 344 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp56_ = i;
#line 344 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp56_, "notify::structured-name", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 345 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp57_ = i;
#line 345 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp57_, "notify::notes", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 346 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp58_ = i;
#line 346 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp58_, "notify::birthday", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 347 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp59_ = i;
#line 347 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp59_, "notify::roles", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 348 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp60_ = i;
#line 348 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp60_, "notify::is-favourite", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 350 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp61_ = i;
#line 350 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_add_persona_tests_check_properties (self, _tmp61_, NULL, NULL);
#line 2488 "add-persona.c"
	}
#line 353 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	result = retval;
#line 353 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return result;
#line 2494 "add-persona.c"
}


static void _add_persona_tests_notify_cb (AddPersonaTests* self, GObject* individual_obj, GParamSpec* ps) {
	GObject* _tmp0_;
	FolksIndividual* _tmp1_;
	FolksIndividual* i;
#line 356 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_if_fail (self != NULL);
#line 356 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_if_fail (individual_obj != NULL);
#line 356 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_if_fail (ps != NULL);
#line 358 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = individual_obj;
#line 358 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp1_ = _g_object_ref0 (FOLKS_INDIVIDUAL (_tmp0_));
#line 358 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	i = _tmp1_;
#line 359 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_add_persona_tests_check_properties (self, i, NULL, NULL);
#line 356 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (i);
#line 2518 "add-persona.c"
}


static void _add_persona_tests_notify_pstore_cb (AddPersonaTests* self, GObject* _pstore, GParamSpec* ps) {
#line 362 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_if_fail (self != NULL);
#line 362 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_if_fail (_pstore != NULL);
#line 362 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_if_fail (ps != NULL);
#line 364 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_add_persona_tests_try_to_add (self);
#line 2531 "add-persona.c"
}


static void _add_persona_tests_try_to_add (AddPersonaTests* self) {
	GError * _inner_error_ = NULL;
#line 367 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_if_fail (self != NULL);
#line 2539 "add-persona.c"
	{
		gboolean _tmp0_;
#line 369 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp0_ = self->priv->_added_persona;
#line 369 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_static_rec_mutex_lock (&self->priv->__lock__added_persona);
#line 2546 "add-persona.c"
		{
			gboolean _tmp1_ = FALSE;
			EdsfPersonaStore* _tmp2_;
			gboolean _tmp3_;
			gboolean _tmp4_;
			gboolean _tmp6_;
#line 371 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp2_ = self->priv->_pstore;
#line 371 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp3_ = folks_persona_store_get_is_prepared ((FolksPersonaStore*) _tmp2_);
#line 371 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp4_ = _tmp3_;
#line 371 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (_tmp4_) {
#line 2561 "add-persona.c"
				gboolean _tmp5_;
#line 372 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_tmp5_ = self->priv->_added_persona;
#line 372 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_tmp1_ = _tmp5_ == FALSE;
#line 2567 "add-persona.c"
			} else {
#line 371 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_tmp1_ = FALSE;
#line 2571 "add-persona.c"
			}
#line 371 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp6_ = _tmp1_;
#line 371 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (_tmp6_) {
#line 374 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				self->priv->_added_persona = TRUE;
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_add_persona_tests_add_persona (self, NULL, NULL);
#line 2581 "add-persona.c"
			}
		}
		__finally2:
		{
			gboolean _tmp7_;
#line 369 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp7_ = self->priv->_added_persona;
#line 369 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_static_rec_mutex_unlock (&self->priv->__lock__added_persona);
#line 2591 "add-persona.c"
		}
#line 369 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		if (_inner_error_ != NULL) {
#line 369 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			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);
#line 369 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_clear_error (&_inner_error_);
#line 369 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			return;
#line 2601 "add-persona.c"
		}
	}
}


static void _add_persona_tests_check_properties_data_free (gpointer _data) {
	AddPersonaTestsCheckPropertiesData* _data_;
	_data_ = _data;
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->i);
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_slice_free (AddPersonaTestsCheckPropertiesData, _data_);
#line 2616 "add-persona.c"
}


static void _add_persona_tests_check_properties (AddPersonaTests* self, FolksIndividual* i, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	AddPersonaTestsCheckPropertiesData* _data_;
	AddPersonaTests* _tmp0_;
	FolksIndividual* _tmp1_;
	FolksIndividual* _tmp2_;
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_ = g_slice_new0 (AddPersonaTestsCheckPropertiesData);
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _add_persona_tests_check_properties);
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _add_persona_tests_check_properties_data_free);
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->self = _tmp0_;
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp1_ = i;
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->i = _tmp2_;
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_add_persona_tests_check_properties_co (_data_);
#line 2643 "add-persona.c"
}


static void _add_persona_tests_check_properties_finish (AddPersonaTests* self, GAsyncResult* _res_) {
	AddPersonaTestsCheckPropertiesData* _data_;
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 2651 "add-persona.c"
}


static void _add_persona_tests_check_properties_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	AddPersonaTestsCheckPropertiesData* _data_;
#line 449 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_ = _user_data_;
#line 449 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_source_object_ = source_object;
#line 449 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_res_ = _res_;
#line 449 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_add_persona_tests_check_properties_co (_data_);
#line 2665 "add-persona.c"
}


static gboolean _add_persona_tests_check_properties_co (AddPersonaTestsCheckPropertiesData* _data_) {
#line 380 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	switch (_data_->_state_) {
#line 380 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		case 0:
#line 2674 "add-persona.c"
		goto _state_0;
#line 380 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		case 1:
#line 2678 "add-persona.c"
		goto _state_1;
		default:
#line 380 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_assert_not_reached ();
#line 2683 "add-persona.c"
	}
	_state_0:
#line 382 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp0_ = _data_->i;
#line 382 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp1_ = folks_name_details_get_full_name ((FolksNameDetails*) _data_->_tmp0_);
#line 382 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp2_ = _data_->_tmp1_;
#line 382 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp3_ = _data_->self->priv->_persona_fullname;
#line 382 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (g_strcmp0 (_data_->_tmp2_, _data_->_tmp3_) == 0) {
#line 383 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp4_ = _data_->self->priv->_properties_found;
#line 383 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp5_ = g_strdup ("full_name");
#line 383 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_hash_table_replace (_data_->_tmp4_, _data_->_tmp5_, GINT_TO_POINTER (TRUE));
#line 2702 "add-persona.c"
	}
	{
#line 385 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp6_ = _data_->i;
#line 385 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp7_ = folks_email_details_get_email_addresses ((FolksEmailDetails*) _data_->_tmp6_);
#line 385 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp8_ = _data_->_tmp7_;
#line 385 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp9_ = NULL;
#line 385 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp9_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp8_);
#line 385 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_e_it = _data_->_tmp9_;
#line 385 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		while (TRUE) {
#line 385 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp10_ = _data_->_e_it;
#line 385 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp11_ = FALSE;
#line 385 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp11_ = gee_iterator_next (_data_->_tmp10_);
#line 385 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (!_data_->_tmp11_) {
#line 385 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				break;
#line 2729 "add-persona.c"
			}
#line 385 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp12_ = _data_->_e_it;
#line 385 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp13_ = NULL;
#line 385 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp13_ = gee_iterator_get (_data_->_tmp12_);
#line 385 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->e = (FolksEmailFieldDetails*) _data_->_tmp13_;
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp14_ = _data_->e;
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp15_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _data_->_tmp14_);
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp16_ = _data_->_tmp15_;
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp17_ = _data_->self->priv->_email_1;
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (g_strcmp0 ((const gchar*) _data_->_tmp16_, _data_->_tmp17_) == 0) {
#line 389 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp18_ = _data_->self->priv->_properties_found;
#line 389 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp19_ = g_strdup ("email-1");
#line 389 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				g_hash_table_replace (_data_->_tmp18_, _data_->_tmp19_, GINT_TO_POINTER (TRUE));
#line 2755 "add-persona.c"
			}
#line 385 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->e);
#line 2759 "add-persona.c"
		}
#line 385 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->_e_it);
#line 2763 "add-persona.c"
	}
	{
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp20_ = _data_->i;
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp21_ = folks_im_details_get_im_addresses ((FolksImDetails*) _data_->_tmp20_);
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp22_ = _data_->_tmp21_;
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp23_ = NULL;
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp23_ = gee_multi_map_get_keys (_data_->_tmp22_);
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp24_ = _data_->_tmp23_;
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp25_ = NULL;
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp25_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp24_);
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp26_ = _data_->_tmp25_;
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->_tmp24_);
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_proto_it = _data_->_tmp26_;
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		while (TRUE) {
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp27_ = _data_->_proto_it;
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp28_ = FALSE;
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp28_ = gee_iterator_next (_data_->_tmp27_);
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (!_data_->_tmp28_) {
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				break;
#line 2800 "add-persona.c"
			}
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp29_ = _data_->_proto_it;
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp30_ = NULL;
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp30_ = gee_iterator_get (_data_->_tmp29_);
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->proto = (gchar*) _data_->_tmp30_;
#line 395 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp31_ = _data_->i;
#line 395 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp32_ = folks_im_details_get_im_addresses ((FolksImDetails*) _data_->_tmp31_);
#line 395 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp33_ = _data_->_tmp32_;
#line 395 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp34_ = _data_->proto;
#line 395 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp35_ = NULL;
#line 395 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp35_ = gee_multi_map_get (_data_->_tmp33_, _data_->_tmp34_);
#line 395 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->im_fds = _data_->_tmp35_;
#line 2824 "add-persona.c"
			{
#line 396 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp36_ = _data_->im_fds;
#line 396 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp37_ = NULL;
#line 396 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp37_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp36_);
#line 396 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_im_fd_it = _data_->_tmp37_;
#line 396 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				while (TRUE) {
#line 396 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp38_ = _data_->_im_fd_it;
#line 396 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp39_ = FALSE;
#line 396 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp39_ = gee_iterator_next (_data_->_tmp38_);
#line 396 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					if (!_data_->_tmp39_) {
#line 396 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
						break;
#line 2846 "add-persona.c"
					}
#line 396 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp40_ = _data_->_im_fd_it;
#line 396 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp41_ = NULL;
#line 396 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp41_ = gee_iterator_get (_data_->_tmp40_);
#line 396 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->im_fd = (FolksImFieldDetails*) _data_->_tmp41_;
#line 398 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp42_ = _data_->im_fd;
#line 398 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp43_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _data_->_tmp42_);
#line 398 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp44_ = _data_->_tmp43_;
#line 398 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp45_ = _data_->self->priv->_im_addr_1;
#line 398 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					if (g_strcmp0 ((const gchar*) _data_->_tmp44_, _data_->_tmp45_) == 0) {
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
						_data_->_tmp46_ = _data_->self->priv->_properties_found;
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
						_data_->_tmp47_ = g_strdup ("im-addr-1");
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
						g_hash_table_replace (_data_->_tmp46_, _data_->_tmp47_, GINT_TO_POINTER (TRUE));
#line 2872 "add-persona.c"
					} else {
#line 400 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
						_data_->_tmp48_ = _data_->im_fd;
#line 400 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
						_data_->_tmp49_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _data_->_tmp48_);
#line 400 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
						_data_->_tmp50_ = _data_->_tmp49_;
#line 400 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
						_data_->_tmp51_ = _data_->self->priv->_im_addr_2;
#line 400 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
						if (g_strcmp0 ((const gchar*) _data_->_tmp50_, _data_->_tmp51_) == 0) {
#line 401 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
							_data_->_tmp52_ = _data_->self->priv->_properties_found;
#line 401 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
							_data_->_tmp53_ = g_strdup ("im-addr-2");
#line 401 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
							g_hash_table_replace (_data_->_tmp52_, _data_->_tmp53_, GINT_TO_POINTER (TRUE));
#line 2890 "add-persona.c"
						}
					}
#line 396 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_g_object_unref0 (_data_->im_fd);
#line 2895 "add-persona.c"
				}
#line 396 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_g_object_unref0 (_data_->_im_fd_it);
#line 2899 "add-persona.c"
			}
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->im_fds);
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_free0 (_data_->proto);
#line 2905 "add-persona.c"
		}
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->_proto_it);
#line 2909 "add-persona.c"
	}
	{
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp54_ = _data_->i;
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp55_ = folks_phone_details_get_phone_numbers ((FolksPhoneDetails*) _data_->_tmp54_);
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp56_ = _data_->_tmp55_;
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp57_ = NULL;
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp57_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp56_);
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_phone_fd_it = _data_->_tmp57_;
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		while (TRUE) {
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp58_ = _data_->_phone_fd_it;
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp59_ = FALSE;
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp59_ = gee_iterator_next (_data_->_tmp58_);
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (!_data_->_tmp59_) {
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				break;
#line 2936 "add-persona.c"
			}
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp60_ = _data_->_phone_fd_it;
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp61_ = NULL;
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp61_ = gee_iterator_get (_data_->_tmp60_);
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->phone_fd = (FolksPhoneFieldDetails*) _data_->_tmp61_;
#line 407 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp62_ = _data_->self->priv->_phone_1;
#line 407 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp63_ = folks_phone_field_details_new (_data_->_tmp62_, NULL);
#line 407 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->phone_1 = _data_->_tmp63_;
#line 408 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp64_ = _data_->phone_1;
#line 408 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp65_ = _data_->self->priv->_phone_1_type;
#line 408 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			folks_abstract_field_details_set_parameter ((FolksAbstractFieldDetails*) _data_->_tmp64_, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE, _data_->_tmp65_);
#line 410 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp66_ = _data_->self->priv->_phone_2;
#line 410 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp67_ = folks_phone_field_details_new (_data_->_tmp66_, NULL);
#line 410 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->phone_2 = _data_->_tmp67_;
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp68_ = _data_->phone_2;
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp69_ = _data_->self->priv->_phone_2_type;
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			folks_abstract_field_details_set_parameter ((FolksAbstractFieldDetails*) _data_->_tmp68_, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE, _data_->_tmp69_);
#line 414 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp70_ = _data_->phone_fd;
#line 414 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp71_ = _data_->phone_1;
#line 414 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp72_ = FALSE;
#line 414 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp72_ = folks_abstract_field_details_equal ((FolksAbstractFieldDetails*) _data_->_tmp70_, (FolksAbstractFieldDetails*) _data_->_tmp71_);
#line 414 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (_data_->_tmp72_) {
#line 416 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp73_ = _data_->self->priv->_properties_found;
#line 416 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp74_ = g_strdup ("phone-1");
#line 416 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				g_hash_table_replace (_data_->_tmp73_, _data_->_tmp74_, GINT_TO_POINTER (TRUE));
#line 2986 "add-persona.c"
			} else {
#line 418 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp75_ = _data_->phone_fd;
#line 418 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp76_ = _data_->phone_2;
#line 418 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp77_ = FALSE;
#line 418 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp77_ = folks_abstract_field_details_equal ((FolksAbstractFieldDetails*) _data_->_tmp75_, (FolksAbstractFieldDetails*) _data_->_tmp76_);
#line 418 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				if (_data_->_tmp77_) {
#line 420 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp78_ = _data_->self->priv->_properties_found;
#line 420 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp79_ = g_strdup ("phone-2");
#line 420 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					g_hash_table_replace (_data_->_tmp78_, _data_->_tmp79_, GINT_TO_POINTER (TRUE));
#line 3004 "add-persona.c"
				}
			}
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->phone_2);
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->phone_1);
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->phone_fd);
#line 3013 "add-persona.c"
		}
#line 405 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->_phone_fd_it);
#line 3017 "add-persona.c"
	}
	{
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp80_ = _data_->i;
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp81_ = folks_postal_address_details_get_postal_addresses ((FolksPostalAddressDetails*) _data_->_tmp80_);
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp82_ = _data_->_tmp81_;
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp83_ = NULL;
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp83_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp82_);
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_pa_fd_it = _data_->_tmp83_;
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		while (TRUE) {
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp84_ = _data_->_pa_fd_it;
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp85_ = FALSE;
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp85_ = gee_iterator_next (_data_->_tmp84_);
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (!_data_->_tmp85_) {
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				break;
#line 3044 "add-persona.c"
			}
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp86_ = _data_->_pa_fd_it;
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp87_ = NULL;
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp87_ = gee_iterator_get (_data_->_tmp86_);
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->pa_fd = (FolksPostalAddressFieldDetails*) _data_->_tmp87_;
#line 426 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp88_ = _data_->self->priv->_address;
#line 426 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp89_ = _data_->pa_fd;
#line 426 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp90_ = folks_abstract_field_details_get_id ((FolksAbstractFieldDetails*) _data_->_tmp89_);
#line 426 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp91_ = _data_->_tmp90_;
#line 426 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			folks_abstract_field_details_set_id ((FolksAbstractFieldDetails*) _data_->_tmp88_, _data_->_tmp91_);
#line 427 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp92_ = _data_->pa_fd;
#line 427 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp93_ = _data_->self->priv->_address;
#line 427 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp94_ = FALSE;
#line 427 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp94_ = folks_abstract_field_details_equal ((FolksAbstractFieldDetails*) _data_->_tmp92_, (FolksAbstractFieldDetails*) _data_->_tmp93_);
#line 427 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (_data_->_tmp94_) {
#line 428 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp95_ = _data_->self->priv->_properties_found;
#line 428 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp96_ = g_strdup ("postal-address-1");
#line 428 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				g_hash_table_replace (_data_->_tmp95_, _data_->_tmp96_, GINT_TO_POINTER (TRUE));
#line 3080 "add-persona.c"
			}
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->pa_fd);
#line 3084 "add-persona.c"
		}
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->_pa_fd_it);
#line 3088 "add-persona.c"
	}
#line 431 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp99_ = _data_->i;
#line 431 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp100_ = folks_name_details_get_structured_name ((FolksNameDetails*) _data_->_tmp99_);
#line 431 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp101_ = _data_->_tmp100_;
#line 431 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_tmp101_ != NULL) {
#line 432 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp102_ = _data_->i;
#line 432 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp103_ = folks_name_details_get_structured_name ((FolksNameDetails*) _data_->_tmp102_);
#line 432 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp104_ = _data_->_tmp103_;
#line 432 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp105_ = folks_structured_name_get_family_name (_data_->_tmp104_);
#line 432 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp106_ = _data_->_tmp105_;
#line 432 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp107_ = _data_->self->priv->_family_name;
#line 432 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp98_ = g_strcmp0 (_data_->_tmp106_, _data_->_tmp107_) == 0;
#line 3112 "add-persona.c"
	} else {
#line 431 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp98_ = FALSE;
#line 3116 "add-persona.c"
	}
#line 431 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp108_ = _data_->_tmp98_;
#line 431 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_tmp108_) {
#line 433 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp109_ = _data_->i;
#line 433 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp110_ = folks_name_details_get_structured_name ((FolksNameDetails*) _data_->_tmp109_);
#line 433 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp111_ = _data_->_tmp110_;
#line 433 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp112_ = folks_structured_name_get_given_name (_data_->_tmp111_);
#line 433 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp113_ = _data_->_tmp112_;
#line 433 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp114_ = _data_->self->priv->_given_name;
#line 433 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp97_ = g_strcmp0 (_data_->_tmp113_, _data_->_tmp114_) == 0;
#line 3136 "add-persona.c"
	} else {
#line 431 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp97_ = FALSE;
#line 3140 "add-persona.c"
	}
#line 431 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp115_ = _data_->_tmp97_;
#line 431 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_tmp115_) {
#line 434 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp116_ = _data_->self->priv->_properties_found;
#line 434 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp117_ = g_strdup ("structured_name");
#line 434 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_hash_table_replace (_data_->_tmp116_, _data_->_tmp117_, GINT_TO_POINTER (TRUE));
#line 3152 "add-persona.c"
	}
	{
#line 436 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp118_ = _data_->i;
#line 436 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp119_ = folks_note_details_get_notes ((FolksNoteDetails*) _data_->_tmp118_);
#line 436 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp120_ = _data_->_tmp119_;
#line 436 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp121_ = NULL;
#line 436 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp121_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp120_);
#line 436 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_note_it = _data_->_tmp121_;
#line 436 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		while (TRUE) {
#line 436 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp122_ = _data_->_note_it;
#line 436 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp123_ = FALSE;
#line 436 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp123_ = gee_iterator_next (_data_->_tmp122_);
#line 436 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (!_data_->_tmp123_) {
#line 436 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				break;
#line 3179 "add-persona.c"
			}
#line 436 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp124_ = _data_->_note_it;
#line 436 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp125_ = NULL;
#line 436 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp125_ = gee_iterator_get (_data_->_tmp124_);
#line 436 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->note = (FolksNoteFieldDetails*) _data_->_tmp125_;
#line 438 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp126_ = _data_->note;
#line 438 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp127_ = _data_->self->priv->_note;
#line 438 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp128_ = folks_note_field_details_new (_data_->_tmp127_, NULL, NULL);
#line 438 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp129_ = _data_->_tmp128_;
#line 438 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp130_ = FALSE;
#line 438 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp130_ = folks_abstract_field_details_equal ((FolksAbstractFieldDetails*) _data_->_tmp126_, (FolksAbstractFieldDetails*) _data_->_tmp129_);
#line 438 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp131_ = _data_->_tmp130_;
#line 438 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->_tmp129_);
#line 438 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (_data_->_tmp131_) {
#line 440 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp132_ = _data_->self->priv->_properties_found;
#line 440 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp133_ = g_strdup ("note");
#line 440 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				g_hash_table_replace (_data_->_tmp132_, _data_->_tmp133_, GINT_TO_POINTER (TRUE));
#line 441 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_g_object_unref0 (_data_->note);
#line 441 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				break;
#line 3217 "add-persona.c"
			}
#line 436 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->note);
#line 3221 "add-persona.c"
		}
#line 436 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->_note_it);
#line 3225 "add-persona.c"
	}
#line 445 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp134_ = _data_->i;
#line 445 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp135_ = folks_avatar_details_get_avatar ((FolksAvatarDetails*) _data_->_tmp134_);
#line 445 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp136_ = _data_->_tmp135_;
#line 445 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_tmp136_ != NULL) {
#line 447 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp137_ = _data_->self->priv->_avatar_path;
#line 447 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp138_ = NULL;
#line 447 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp138_ = g_file_new_for_path (_data_->_tmp137_);
#line 447 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp139_ = _data_->_tmp138_;
#line 447 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp140_ = (GFileIcon*) g_file_icon_new (_data_->_tmp139_);
#line 447 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp141_ = _data_->_tmp140_;
#line 447 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->_tmp139_);
#line 447 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->b = _data_->_tmp141_;
#line 449 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp142_ = _data_->b;
#line 449 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp143_ = _data_->i;
#line 449 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp144_ = folks_avatar_details_get_avatar ((FolksAvatarDetails*) _data_->_tmp143_);
#line 449 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp145_ = _data_->_tmp144_;
#line 449 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_state_ = 1;
#line 449 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		folks_test_utils_loadable_icons_content_equal ((GLoadableIcon*) _data_->_tmp142_, _data_->_tmp145_, -1, _add_persona_tests_check_properties_ready, _data_);
#line 449 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		return FALSE;
#line 3265 "add-persona.c"
		_state_1:
#line 449 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp146_ = FALSE;
#line 449 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp146_ = folks_test_utils_loadable_icons_content_equal_finish (_data_->_res_);
#line 449 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->same = _data_->_tmp146_;
#line 451 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp147_ = _data_->same;
#line 451 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		if (_data_->_tmp147_) {
#line 452 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp148_ = _data_->self->priv->_properties_found;
#line 452 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp149_ = g_strdup ("avatar");
#line 452 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_hash_table_replace (_data_->_tmp148_, _data_->_tmp149_, GINT_TO_POINTER (TRUE));
#line 3283 "add-persona.c"
		}
#line 445 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->b);
#line 3287 "add-persona.c"
	}
#line 455 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp150_ = _data_->i;
#line 455 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp151_ = folks_birthday_details_get_birthday ((FolksBirthdayDetails*) _data_->_tmp150_);
#line 455 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp152_ = _data_->_tmp151_;
#line 455 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_tmp152_ != NULL) {
#line 457 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp153_ = g_date_time_new_local (1980, 1, 1, 0, 0, 0.0);
#line 457 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp154_ = _data_->_tmp153_;
#line 457 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp155_ = NULL;
#line 457 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp155_ = g_date_time_to_utc (_data_->_tmp154_);
#line 457 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp156_ = _data_->_tmp155_;
#line 457 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_date_time_unref0 (_data_->_tmp154_);
#line 457 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->dobj = _data_->_tmp156_;
#line 458 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp157_ = _data_->i;
#line 458 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp158_ = folks_birthday_details_get_birthday ((FolksBirthdayDetails*) _data_->_tmp157_);
#line 458 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp159_ = _data_->_tmp158_;
#line 458 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp160_ = _data_->dobj;
#line 458 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp161_ = FALSE;
#line 458 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp161_ = g_date_time_equal (_data_->_tmp159_, _data_->_tmp160_);
#line 458 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		if (_data_->_tmp161_) {
#line 459 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp162_ = _data_->self->priv->_properties_found;
#line 459 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp163_ = g_strdup ("birthday");
#line 459 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_hash_table_replace (_data_->_tmp162_, _data_->_tmp163_, GINT_TO_POINTER (TRUE));
#line 3331 "add-persona.c"
		}
#line 455 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_date_time_unref0 (_data_->dobj);
#line 3335 "add-persona.c"
	}
	{
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp164_ = _data_->i;
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp165_ = folks_role_details_get_roles ((FolksRoleDetails*) _data_->_tmp164_);
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp166_ = _data_->_tmp165_;
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp167_ = NULL;
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp167_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp166_);
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_role_fd_it = _data_->_tmp167_;
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		while (TRUE) {
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp168_ = _data_->_role_fd_it;
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp169_ = FALSE;
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp169_ = gee_iterator_next (_data_->_tmp168_);
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (!_data_->_tmp169_) {
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				break;
#line 3362 "add-persona.c"
			}
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp170_ = _data_->_role_fd_it;
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp171_ = NULL;
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp171_ = gee_iterator_get (_data_->_tmp170_);
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->role_fd = (FolksRoleFieldDetails*) _data_->_tmp171_;
#line 464 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp172_ = folks_role_new ("Dr.", "The Nut House Ltd", NULL);
#line 464 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->r1 = _data_->_tmp172_;
#line 465 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp173_ = _data_->r1;
#line 465 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			folks_role_set_role (_data_->_tmp173_, "The Manager");
#line 466 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp174_ = _data_->r1;
#line 466 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp175_ = folks_role_field_details_new (_data_->_tmp174_, NULL);
#line 466 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->role_fd_expected = _data_->_tmp175_;
#line 467 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp176_ = _data_->role_fd;
#line 467 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp177_ = _data_->role_fd_expected;
#line 467 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp178_ = FALSE;
#line 467 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp178_ = folks_abstract_field_details_equal ((FolksAbstractFieldDetails*) _data_->_tmp176_, (FolksAbstractFieldDetails*) _data_->_tmp177_);
#line 467 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (_data_->_tmp178_) {
#line 468 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp179_ = _data_->self->priv->_properties_found;
#line 468 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp180_ = g_strdup ("role-1");
#line 468 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				g_hash_table_replace (_data_->_tmp179_, _data_->_tmp180_, GINT_TO_POINTER (TRUE));
#line 3402 "add-persona.c"
			}
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->role_fd_expected);
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->r1);
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->role_fd);
#line 3410 "add-persona.c"
		}
#line 462 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->_role_fd_it);
#line 3414 "add-persona.c"
	}
#line 471 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp181_ = _data_->i;
#line 471 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp182_ = folks_favourite_details_get_is_favourite ((FolksFavouriteDetails*) _data_->_tmp181_);
#line 471 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp183_ = _data_->_tmp182_;
#line 471 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_tmp183_) {
#line 473 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp184_ = _data_->self->priv->_properties_found;
#line 473 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp185_ = g_strdup ("is-favourite");
#line 473 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_hash_table_replace (_data_->_tmp184_, _data_->_tmp185_, GINT_TO_POINTER (TRUE));
#line 3430 "add-persona.c"
	}
#line 476 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_add_persona_tests_exit_if_all_properties_found (_data_->self);
#line 380 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_state_ == 0) {
#line 380 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3438 "add-persona.c"
	} else {
#line 380 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 3442 "add-persona.c"
	}
#line 380 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_object_unref (_data_->_async_result);
#line 380 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return FALSE;
#line 3448 "add-persona.c"
}


static void _add_persona_tests_exit_if_all_properties_found (AddPersonaTests* self) {
	GHashTable* _tmp0_;
	GList* _tmp1_ = NULL;
	GMainLoop* _tmp6_;
#line 479 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_if_fail (self != NULL);
#line 481 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = self->priv->_properties_found;
#line 481 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp1_ = g_hash_table_get_keys (_tmp0_);
#line 3462 "add-persona.c"
	{
		GList* k_collection = NULL;
		GList* k_it = NULL;
#line 481 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		k_collection = _tmp1_;
#line 481 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		for (k_it = k_collection; k_it != NULL; k_it = k_it->next) {
#line 3470 "add-persona.c"
			const gchar* k = NULL;
#line 481 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			k = (const gchar*) k_it->data;
#line 3474 "add-persona.c"
			{
				GHashTable* _tmp2_;
				const gchar* _tmp3_;
				gconstpointer _tmp4_ = NULL;
				gboolean v;
				gboolean _tmp5_;
#line 483 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_tmp2_ = self->priv->_properties_found;
#line 483 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_tmp3_ = k;
#line 483 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_tmp4_ = g_hash_table_lookup (_tmp2_, _tmp3_);
#line 483 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				v = GPOINTER_TO_INT (_tmp4_);
#line 484 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_tmp5_ = v;
#line 484 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				if (_tmp5_ == FALSE) {
#line 485 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_g_list_free0 (k_collection);
#line 485 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					return;
#line 3497 "add-persona.c"
				}
			}
		}
#line 481 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_list_free0 (k_collection);
#line 3503 "add-persona.c"
	}
#line 487 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp6_ = self->priv->_main_loop;
#line 487 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_main_loop_quit (_tmp6_);
#line 3509 "add-persona.c"
}


static void add_persona_tests_class_init (AddPersonaTestsClass * klass) {
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	add_persona_tests_parent_class = g_type_class_peek_parent (klass);
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_type_class_add_private (klass, sizeof (AddPersonaTestsPrivate));
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = add_persona_tests_real_set_up;
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = add_persona_tests_real_tear_down;
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_OBJECT_CLASS (klass)->finalize = add_persona_tests_finalize;
#line 3524 "add-persona.c"
}


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_;
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv = ADD_PERSONA_TESTS_GET_PRIVATE (self);
#line 32 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_static_rec_mutex_init (&self->priv->__lock__added_persona);
#line 32 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_added_persona = FALSE;
#line 42 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = g_strdup ("12345");
#line 42 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_po_box = _tmp0_;
#line 43 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp1_ = g_strdup ("locality");
#line 43 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_locality = _tmp1_;
#line 44 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp2_ = g_strdup ("code");
#line 44 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_postal_code = _tmp2_;
#line 45 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp3_ = g_strdup ("some street");
#line 45 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_street = _tmp3_;
#line 46 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp4_ = g_strdup ("some extension");
#line 46 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_extension = _tmp4_;
#line 47 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp5_ = g_strdup ("some country");
#line 47 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_country = _tmp5_;
#line 48 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp6_ = g_strdup ("some region");
#line 48 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_region = _tmp6_;
#line 51 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp7_ = g_strdup ("This is a note.");
#line 51 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_note = _tmp7_;
#line 3575 "add-persona.c"
}


static void add_persona_tests_finalize (GObject* obj) {
	AddPersonaTests * self;
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self = ADD_PERSONA_TESTS (obj);
#line 26 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 27 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 28 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 29 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_persona_fullname);
#line 30 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_email_1);
#line 31 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (self->priv->_pstore);
#line 32 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_static_rec_mutex_free (&self->priv->__lock__added_persona);
#line 33 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_hash_table_unref0 (self->priv->_properties_found);
#line 34 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_avatar_path);
#line 35 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_im_addr_1);
#line 36 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_im_addr_2);
#line 37 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_phone_1);
#line 38 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_phone_1_type);
#line 39 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_phone_2);
#line 40 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_phone_2_type);
#line 41 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (self->priv->_address);
#line 42 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_po_box);
#line 43 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_locality);
#line 44 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_postal_code);
#line 45 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_street);
#line 46 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_extension);
#line 47 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_country);
#line 48 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_region);
#line 49 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_family_name);
#line 50 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_given_name);
#line 51 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_note);
#line 52 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (self->priv->_individual_received);
#line 24 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_OBJECT_CLASS (add_persona_tests_parent_class)->finalize (obj);
#line 3639 "add-persona.c"
}


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;
	AddPersonaTests* _tmp1_;
	AddPersonaTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 493 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_test_init (&args_length1, &args, NULL);
#line 495 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = g_test_get_root ();
#line 495 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	root = _tmp0_;
#line 496 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp1_ = add_persona_tests_new ();
#line 496 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp2_ = _tmp1_;
#line 496 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 496 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 496 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_tmp2_);
#line 498 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_test_run ();
#line 500 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	result = 0;
#line 500 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return result;
#line 3684 "add-persona.c"
}


int main (int argc, char ** argv) {
#line 491 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_type_init ();
#line 491 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return _vala_main (argv, argc);
#line 3693 "add-persona.c"
}



