/* add-persona.c generated by valac 0.14.0.3-1a311, 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_2;
	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;
	const gchar* _tmp19_;
	GValue* _tmp20_;
	const gchar* _tmp21_;
	gchar* _tmp22_;
	GValue* _tmp23_;
	GValue _tmp24_;
	GValue _tmp25_;
	GValue* _tmp26_;
	GValue* _tmp27_;
	GValue* v3;
	const gchar* _tmp28_;
	GFile* _tmp29_;
	GFile* _tmp30_;
	GFileIcon* _tmp31_;
	GFileIcon* _tmp32_;
	GFileIcon* avatar;
	GValue* _tmp33_;
	const gchar* _tmp34_;
	gchar* _tmp35_;
	GValue* _tmp36_;
	GValue _tmp37_;
	GValue _tmp38_;
	GValue* _tmp39_;
	GValue* _tmp40_;
	GValue* v4;
	GeeHashMultiMap* _tmp41_;
	GeeHashMultiMap* im_fds;
	const gchar* _tmp42_;
	FolksImFieldDetails* _tmp43_;
	FolksImFieldDetails* _tmp44_;
	const gchar* _tmp45_;
	FolksImFieldDetails* _tmp46_;
	FolksImFieldDetails* _tmp47_;
	const gchar* _tmp48_;
	gchar* _tmp49_;
	GValue* _tmp50_;
	GValue _tmp51_;
	GValue _tmp52_;
	GValue* _tmp53_;
	GValue* _tmp54_;
	GValue* v5;
	GeeHashSet* _tmp55_;
	GeeHashSet* phones;
	const gchar* _tmp56_;
	FolksPhoneFieldDetails* _tmp57_;
	FolksPhoneFieldDetails* phone_1;
	const gchar* _tmp58_;
	const gchar* _tmp59_;
	FolksPhoneFieldDetails* _tmp60_;
	FolksPhoneFieldDetails* phone_2;
	const gchar* _tmp61_;
	GValue* _tmp62_;
	const gchar* _tmp63_;
	gchar* _tmp64_;
	GValue* _tmp65_;
	GValue _tmp66_;
	GValue _tmp67_;
	GValue* _tmp68_;
	GValue* _tmp69_;
	GValue* v6;
	GeeHashSet* _tmp70_;
	GeeHashSet* pa_fds;
	const gchar* _tmp71_;
	const gchar* _tmp72_;
	const gchar* _tmp73_;
	const gchar* _tmp74_;
	const gchar* _tmp75_;
	const gchar* _tmp76_;
	const gchar* _tmp77_;
	FolksPostalAddress* _tmp78_;
	FolksPostalAddress* pa_a;
	FolksPostalAddressFieldDetails* _tmp79_;
	FolksPostalAddressFieldDetails* pa_fd_a;
	const gchar* _tmp80_;
	GValue* _tmp81_;
	const gchar* _tmp82_;
	gchar* _tmp83_;
	GValue* _tmp84_;
	GValue _tmp85_;
	GValue _tmp86_;
	GValue* _tmp87_;
	GValue* _tmp88_;
	GValue* v7;
	const gchar* _tmp89_;
	const gchar* _tmp90_;
	FolksStructuredName* _tmp91_;
	FolksStructuredName* sname;
	GValue* _tmp92_;
	const gchar* _tmp93_;
	gchar* _tmp94_;
	GValue* _tmp95_;
	GValue _tmp96_;
	GValue _tmp97_;
	GValue* _tmp98_;
	GValue* _tmp99_;
	GValue* v8;
	GeeHashSet* _tmp100_;
	GeeHashSet* notes;
	const gchar* _tmp101_;
	FolksNoteFieldDetails* _tmp102_;
	FolksNoteFieldDetails* note;
	GValue* _tmp103_;
	const gchar* _tmp104_;
	gchar* _tmp105_;
	GValue* _tmp106_;
	GValue _tmp107_;
	GValue _tmp108_;
	GValue* _tmp109_;
	GValue* _tmp110_;
	GValue* v9;
	GDateTime* _tmp111_;
	GDateTime* dobj;
	GValue* _tmp112_;
	const gchar* _tmp113_;
	gchar* _tmp114_;
	GValue* _tmp115_;
	GValue _tmp116_;
	GValue _tmp117_;
	GValue* _tmp118_;
	GValue* _tmp119_;
	GValue* v10;
	GeeHashSet* _tmp120_;
	GeeHashSet* role_fds;
	FolksRole* _tmp121_;
	FolksRole* r1;
	FolksRoleFieldDetails* _tmp122_;
	FolksRoleFieldDetails* role_fd1;
	GValue* _tmp123_;
	const gchar* _tmp124_;
	gchar* _tmp125_;
	GValue* _tmp126_;
	FolksIndividualAggregator* _tmp127_;
	EdsfPersonaStore* _tmp128_;
	FolksPersona* _tmp129_;
	FolksPersona* _tmp130_;
	GError* e;
	GError* _tmp131_;
	const gchar* _tmp132_;
	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;
	FolksPhoneFieldDetails* _tmp62_;
	const gchar* _tmp63_;
	FolksPhoneFieldDetails* _tmp64_;
	FolksPhoneFieldDetails* _tmp65_;
	gboolean _tmp66_;
	gboolean _tmp67_;
	GHashTable* _tmp68_;
	gchar* _tmp69_;
	FolksPhoneFieldDetails* _tmp70_;
	const gchar* _tmp71_;
	FolksPhoneFieldDetails* _tmp72_;
	FolksPhoneFieldDetails* _tmp73_;
	gboolean _tmp74_;
	gboolean _tmp75_;
	GHashTable* _tmp76_;
	gchar* _tmp77_;
	FolksIndividual* _tmp78_;
	GeeSet* _tmp79_;
	GeeSet* _tmp80_;
	GeeIterator* _tmp81_;
	GeeIterator* _pa_fd_it;
	GeeIterator* _tmp82_;
	gboolean _tmp83_;
	GeeIterator* _tmp84_;
	gpointer _tmp85_;
	FolksPostalAddressFieldDetails* pa_fd;
	FolksPostalAddressFieldDetails* _tmp86_;
	gconstpointer _tmp87_;
	FolksPostalAddress* _tmp88_;
	FolksPostalAddressFieldDetails* _tmp89_;
	gconstpointer _tmp90_;
	FolksPostalAddress* _tmp91_;
	const gchar* _tmp92_;
	const gchar* _tmp93_;
	FolksPostalAddressFieldDetails* _tmp94_;
	FolksPostalAddressFieldDetails* _tmp95_;
	gboolean _tmp96_;
	GHashTable* _tmp97_;
	gchar* _tmp98_;
	gboolean _tmp99_;
	gboolean _tmp100_;
	FolksIndividual* _tmp101_;
	FolksStructuredName* _tmp102_;
	FolksStructuredName* _tmp103_;
	FolksIndividual* _tmp104_;
	FolksStructuredName* _tmp105_;
	FolksStructuredName* _tmp106_;
	const gchar* _tmp107_;
	const gchar* _tmp108_;
	const gchar* _tmp109_;
	gboolean _tmp110_;
	FolksIndividual* _tmp111_;
	FolksStructuredName* _tmp112_;
	FolksStructuredName* _tmp113_;
	const gchar* _tmp114_;
	const gchar* _tmp115_;
	const gchar* _tmp116_;
	gboolean _tmp117_;
	GHashTable* _tmp118_;
	gchar* _tmp119_;
	FolksIndividual* _tmp120_;
	GeeSet* _tmp121_;
	GeeSet* _tmp122_;
	GeeIterator* _tmp123_;
	GeeIterator* _note_it;
	GeeIterator* _tmp124_;
	gboolean _tmp125_;
	GeeIterator* _tmp126_;
	gpointer _tmp127_;
	FolksNoteFieldDetails* note;
	FolksNoteFieldDetails* _tmp128_;
	const gchar* _tmp129_;
	FolksNoteFieldDetails* _tmp130_;
	FolksNoteFieldDetails* _tmp131_;
	gboolean _tmp132_;
	gboolean _tmp133_;
	GHashTable* _tmp134_;
	gchar* _tmp135_;
	FolksIndividual* _tmp136_;
	GLoadableIcon* _tmp137_;
	GLoadableIcon* _tmp138_;
	const gchar* _tmp139_;
	GFile* _tmp140_;
	GFile* _tmp141_;
	GFileIcon* _tmp142_;
	GFileIcon* _tmp143_;
	GFileIcon* b;
	GFileIcon* _tmp144_;
	FolksIndividual* _tmp145_;
	GLoadableIcon* _tmp146_;
	GLoadableIcon* _tmp147_;
	gboolean _tmp148_;
	gboolean same;
	gboolean _tmp149_;
	GHashTable* _tmp150_;
	gchar* _tmp151_;
	FolksIndividual* _tmp152_;
	GDateTime* _tmp153_;
	GDateTime* _tmp154_;
	GDateTime* _tmp155_;
	GDateTime* _tmp156_;
	GDateTime* _tmp157_;
	GDateTime* _tmp158_;
	GDateTime* dobj;
	FolksIndividual* _tmp159_;
	GDateTime* _tmp160_;
	GDateTime* _tmp161_;
	GDateTime* _tmp162_;
	gboolean _tmp163_;
	GHashTable* _tmp164_;
	gchar* _tmp165_;
	FolksIndividual* _tmp166_;
	GeeSet* _tmp167_;
	GeeSet* _tmp168_;
	GeeIterator* _tmp169_;
	GeeIterator* _role_fd_it;
	GeeIterator* _tmp170_;
	gboolean _tmp171_;
	GeeIterator* _tmp172_;
	gpointer _tmp173_;
	FolksRoleFieldDetails* role_fd;
	FolksRole* _tmp174_;
	FolksRole* r1;
	FolksRole* _tmp175_;
	FolksRole* _tmp176_;
	FolksRoleFieldDetails* _tmp177_;
	FolksRoleFieldDetails* role_fd_expected;
	FolksRoleFieldDetails* _tmp178_;
	FolksRoleFieldDetails* _tmp179_;
	gboolean _tmp180_;
	GHashTable* _tmp181_;
	gchar* _tmp182_;
};


static gpointer add_persona_tests_parent_class = NULL;

GType add_persona_tests_get_type (void) G_GNUC_CONST;
#define ADD_PERSONA_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADD_PERSONA_TESTS, AddPersonaTestsPrivate))
enum  {
	ADD_PERSONA_TESTS_DUMMY_PROPERTY
};
AddPersonaTests* add_persona_tests_new (void);
AddPersonaTests* add_persona_tests_construct (GType object_type);
void add_persona_tests_test_add_persona (AddPersonaTests* self);
static void _add_persona_tests_test_add_persona_folks_test_case_test_method (gpointer self);
static void add_persona_tests_real_set_up (FolksTestCase* base);
static void add_persona_tests_real_tear_down (FolksTestCase* base);
static void _g_free0_ (gpointer var);
static void _add_persona_tests_test_add_persona_async (AddPersonaTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _add_persona_tests_test_add_persona_finish (AddPersonaTests* self, GAsyncResult* _res_);
static gboolean __lambda0_ (AddPersonaTests* self);
static gboolean ___lambda0__gsource_func (gpointer self);
static void _add_persona_tests_test_add_persona_async_data_free (gpointer _data);
static gboolean _add_persona_tests_test_add_persona_async_co (AddPersonaTestsTestAddPersonaAsyncData* _data_);
static void _add_persona_tests_test_add_persona_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _add_persona_tests_individuals_changed_cb (AddPersonaTests* self, 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 572 "add-persona.c"
}


AddPersonaTests* add_persona_tests_construct (GType object_type) {
	AddPersonaTests * self = NULL;
	EdsTestBackend* _tmp0_;
#line 54 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self = (AddPersonaTests*) folks_test_case_construct (object_type, "AddPersonaTests");
#line 56 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = eds_test_backend_new ();
#line 56 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 56 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_eds_backend = _tmp0_;
#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 52 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return self;
#line 591 "add-persona.c"
}


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


static void add_persona_tests_real_set_up (FolksTestCase* base) {
	AddPersonaTests * self;
	EdsTestBackend* _tmp0_;
#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_ = self->priv->_eds_backend;
#line 63 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	eds_test_backend_set_up (_tmp0_, FALSE);
#line 611 "add-persona.c"
}


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


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


static gboolean __lambda0_ (AddPersonaTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 110 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = self->priv->_main_loop;
#line 110 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_main_loop_quit (_tmp0_);
#line 111 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_assert_not_reached ();
#line 108 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return result;
#line 646 "add-persona.c"
}


static gboolean ___lambda0__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda0_ (self);
#line 108 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return result;
#line 655 "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_;
	const gchar* _tmp11_;
	const gchar* _tmp12_;
	const gchar* _tmp13_;
	const gchar* _tmp14_;
	const gchar* _tmp15_;
	const gchar* _tmp16_;
	const gchar* _tmp17_;
	FolksPostalAddress* _tmp18_;
	FolksPostalAddress* pa;
	FolksPostalAddress* _tmp19_;
	FolksPostalAddressFieldDetails* _tmp20_;
	FolksPostalAddressFieldDetails* _tmp21_;
	FolksPostalAddressFieldDetails* _tmp22_;
	const gchar* _tmp23_;
	GHashFunc _tmp24_;
	GEqualFunc _tmp25_;
	GHashTable* _tmp26_;
	GHashTable* _tmp27_;
	gchar* _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_;
	GMainLoop* _tmp51_;
	GHashTable* _tmp52_;
	GList* _tmp53_ = NULL;
#line 71 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_if_fail (self != NULL);
#line 73 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 73 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 73 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_main_loop = _tmp0_;
#line 74 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp1_ = g_strdup ("persona #1");
#line 74 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_persona_fullname);
#line 74 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_persona_fullname = _tmp1_;
#line 75 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp2_ = g_strdup ("someone-1@example.org");
#line 75 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_email_1);
#line 75 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_email_1 = _tmp2_;
#line 76 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp3_ = g_getenv ("AVATAR_FILE_PATH");
#line 76 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp4_ = g_strdup (_tmp3_);
#line 76 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_avatar_path);
#line 76 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_avatar_path = _tmp4_;
#line 77 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp5_ = g_strdup ("someone-1@jabber.example.org");
#line 77 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_im_addr_1);
#line 77 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_im_addr_1 = _tmp5_;
#line 78 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp6_ = g_strdup ("someone-2@jabber.example.org");
#line 78 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_im_addr_2);
#line 78 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_im_addr_2 = _tmp6_;
#line 79 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp7_ = g_strdup ("12345");
#line 79 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_phone_1);
#line 79 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_phone_1 = _tmp7_;
#line 80 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp8_ = g_strdup ("54321");
#line 80 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_phone_2);
#line 80 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_phone_2 = _tmp8_;
#line 81 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp9_ = g_strdup ("family");
#line 81 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_family_name);
#line 81 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_family_name = _tmp9_;
#line 82 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp10_ = g_strdup ("given");
#line 82 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_given_name);
#line 82 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_given_name = _tmp10_;
#line 84 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp11_ = self->priv->_po_box;
#line 84 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp12_ = self->priv->_extension;
#line 84 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp13_ = self->priv->_street;
#line 84 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp14_ = self->priv->_locality;
#line 84 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp15_ = self->priv->_region;
#line 84 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp16_ = self->priv->_postal_code;
#line 84 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp17_ = self->priv->_country;
#line 84 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp18_ = folks_postal_address_new (_tmp11_, _tmp12_, _tmp13_, _tmp14_, _tmp15_, _tmp16_, _tmp17_, NULL, NULL);
#line 84 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	pa = _tmp18_;
#line 87 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp19_ = pa;
#line 87 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp20_ = folks_postal_address_field_details_new (_tmp19_, NULL);
#line 87 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (self->priv->_address);
#line 87 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_address = _tmp20_;
#line 88 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp21_ = self->priv->_address;
#line 88 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp22_ = self->priv->_address;
#line 88 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp23_ = EDSF_PERSONA_address_fields[0];
#line 88 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	folks_abstract_field_details_add_parameter ((FolksAbstractFieldDetails*) _tmp21_, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE, _tmp23_);
#line 91 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp24_ = g_str_hash;
#line 91 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp25_ = g_str_equal;
#line 91 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp26_ = g_hash_table_new_full (_tmp24_, _tmp25_, _g_free0_, NULL);
#line 91 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_hash_table_unref0 (self->priv->_properties_found);
#line 91 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_properties_found = _tmp26_;
#line 93 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp27_ = self->priv->_properties_found;
#line 93 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp28_ = g_strdup ("full_name");
#line 93 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp27_, _tmp28_, GINT_TO_POINTER (FALSE));
#line 94 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp29_ = self->priv->_properties_found;
#line 94 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp30_ = g_strdup ("email-1");
#line 94 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp29_, _tmp30_, GINT_TO_POINTER (FALSE));
#line 95 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp31_ = self->priv->_properties_found;
#line 95 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp32_ = g_strdup ("avatar");
#line 95 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp31_, _tmp32_, GINT_TO_POINTER (FALSE));
#line 96 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp33_ = self->priv->_properties_found;
#line 96 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp34_ = g_strdup ("im-addr-1");
#line 96 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp33_, _tmp34_, GINT_TO_POINTER (FALSE));
#line 97 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp35_ = self->priv->_properties_found;
#line 97 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp36_ = g_strdup ("im-addr-2");
#line 97 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp35_, _tmp36_, GINT_TO_POINTER (FALSE));
#line 98 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp37_ = self->priv->_properties_found;
#line 98 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp38_ = g_strdup ("phone-1");
#line 98 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp37_, _tmp38_, GINT_TO_POINTER (FALSE));
#line 99 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp39_ = self->priv->_properties_found;
#line 99 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp40_ = g_strdup ("phone-2");
#line 99 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp39_, _tmp40_, GINT_TO_POINTER (FALSE));
#line 100 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp41_ = self->priv->_properties_found;
#line 100 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp42_ = g_strdup ("postal-address-1");
#line 100 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp41_, _tmp42_, GINT_TO_POINTER (FALSE));
#line 101 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp43_ = self->priv->_properties_found;
#line 101 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp44_ = g_strdup ("structured_name");
#line 101 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp43_, _tmp44_, GINT_TO_POINTER (FALSE));
#line 102 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp45_ = self->priv->_properties_found;
#line 102 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp46_ = g_strdup ("note");
#line 102 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp45_, _tmp46_, GINT_TO_POINTER (FALSE));
#line 103 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp47_ = self->priv->_properties_found;
#line 103 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp48_ = g_strdup ("birthday");
#line 103 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp47_, _tmp48_, GINT_TO_POINTER (FALSE));
#line 104 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp49_ = self->priv->_properties_found;
#line 104 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp50_ = g_strdup ("role-1");
#line 104 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_tmp49_, _tmp50_, GINT_TO_POINTER (FALSE));
#line 106 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_add_persona_tests_test_add_persona_async (self, NULL, NULL);
#line 108 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda0__gsource_func, g_object_ref (self), g_object_unref);
#line 114 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp51_ = self->priv->_main_loop;
#line 114 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_main_loop_run (_tmp51_);
#line 116 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp52_ = self->priv->_properties_found;
#line 116 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp53_ = g_hash_table_get_values (_tmp52_);
#line 907 "add-persona.c"
	{
		GList* k_collection = NULL;
		GList* k_it = NULL;
#line 116 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		k_collection = _tmp53_;
#line 116 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		for (k_it = k_collection; k_it != NULL; k_it = k_it->next) {
#line 915 "add-persona.c"
			gboolean k = FALSE;
#line 116 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			k = GPOINTER_TO_INT (k_it->data);
#line 919 "add-persona.c"
			{
				gboolean _tmp54_;
#line 118 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_tmp54_ = k;
#line 118 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				g_assert (_tmp54_);
#line 926 "add-persona.c"
			}
		}
#line 116 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_list_free0 (k_collection);
#line 931 "add-persona.c"
	}
#line 71 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (pa);
#line 935 "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 946 "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 953 "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 972 "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 980 "add-persona.c"
}


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


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


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


static gboolean _add_persona_tests_test_add_persona_async_co (AddPersonaTestsTestAddPersonaAsyncData* _data_) {
#line 122 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	switch (_data_->_state_) {
#line 122 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		case 0:
#line 1017 "add-persona.c"
		goto _state_0;
#line 122 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		case 1:
#line 1021 "add-persona.c"
		goto _state_1;
#line 122 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		case 2:
#line 1025 "add-persona.c"
		goto _state_2;
		default:
#line 122 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_assert_not_reached ();
#line 1030 "add-persona.c"
	}
	_state_0:
#line 124 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp0_ = NULL;
#line 124 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 124 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->store = _data_->_tmp0_;
#line 125 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_state_ = 1;
#line 125 "/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 125 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return FALSE;
#line 1045 "add-persona.c"
	_state_1:
#line 125 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 126 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 126 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 126 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 127 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 127 "/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 1059 "add-persona.c"
	{
#line 131 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 131 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_state_ = 2;
#line 131 "/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 131 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		return FALSE;
#line 1069 "add-persona.c"
		_state_2:
#line 131 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 131 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		if (_data_->_inner_error_ != NULL) {
#line 1075 "add-persona.c"
			goto __catch0_g_error;
		}
#line 133 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->self->priv->_pstore);
#line 133 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->self->priv->_pstore = NULL;
#line 1082 "add-persona.c"
		{
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp4_ = folks_backend_store_get_enabled_backends (_data_->store);
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp5_ = _data_->_tmp4_;
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp6_ = gee_map_get_values (_data_->_tmp5_);
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp7_ = _data_->_tmp6_;
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp8_ = _data_->_tmp7_;
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp9_ = NULL;
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp9_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp8_);
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp10_ = _data_->_tmp9_;
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->_tmp8_);
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_backend_it = _data_->_tmp10_;
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			while (TRUE) {
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp11_ = _data_->_backend_it;
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp12_ = FALSE;
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp12_ = gee_iterator_next (_data_->_tmp11_);
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				if (!_data_->_tmp12_) {
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					break;
#line 1116 "add-persona.c"
				}
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp13_ = _data_->_backend_it;
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp14_ = NULL;
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp14_ = gee_iterator_get (_data_->_tmp13_);
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->backend = (FolksBackend*) _data_->_tmp14_;
#line 136 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp15_ = _data_->backend;
#line 136 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp16_ = folks_backend_get_persona_stores (_data_->_tmp15_);
#line 136 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp17_ = _data_->_tmp16_;
#line 136 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp18_ = _data_->self->priv->_eds_backend;
#line 136 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp19_ = eds_test_backend_get_address_book_uid (_data_->_tmp18_);
#line 136 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp20_ = _data_->_tmp19_;
#line 136 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp21_ = NULL;
#line 136 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp21_ = gee_map_get (_data_->_tmp17_, _data_->_tmp20_);
#line 136 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_g_object_unref0 (_data_->self->priv->_pstore);
#line 136 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->self->priv->_pstore = EDSF_PERSONA_STORE ((FolksPersonaStore*) _data_->_tmp21_);
#line 139 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp22_ = _data_->self->priv->_pstore;
#line 139 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				if (_data_->_tmp22_ != NULL) {
#line 140 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_g_object_unref0 (_data_->backend);
#line 140 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					break;
#line 1154 "add-persona.c"
				}
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_g_object_unref0 (_data_->backend);
#line 1158 "add-persona.c"
			}
#line 134 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->_backend_it);
#line 1162 "add-persona.c"
		}
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp23_ = _data_->self->priv->_pstore;
#line 142 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_assert (_data_->_tmp23_ != NULL);
#line 143 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp24_ = _data_->self->priv->_pstore;
#line 143 "/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 144 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_add_persona_tests_try_to_add (_data_->self);
#line 1174 "add-persona.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 129 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->e = _data_->_inner_error_;
#line 129 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_inner_error_ = NULL;
#line 148 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp25_ = _data_->e;
#line 148 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp26_ = _data_->_tmp25_->message;
#line 148 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_warning ("add-persona.vala:148: Error when calling prepare: %s\n", _data_->_tmp26_);
#line 129 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_error_free0 (_data_->e);
#line 1191 "add-persona.c"
	}
	__finally0:
#line 129 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_inner_error_ != NULL) {
#line 129 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->store);
#line 129 "/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 129 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_clear_error (&_data_->_inner_error_);
#line 129 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		return FALSE;
#line 1204 "add-persona.c"
	}
#line 122 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->store);
#line 122 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_state_ == 0) {
#line 122 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1212 "add-persona.c"
	} else {
#line 122 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1216 "add-persona.c"
	}
#line 122 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_object_unref (_data_->_async_result);
#line 122 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return FALSE;
#line 1222 "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 1233 "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 1252 "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 1260 "add-persona.c"
}


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


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


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


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


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


static gboolean _add_persona_tests_add_persona_co (AddPersonaTestsAddPersonaData* _data_) {
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	switch (_data_->_state_) {
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		case 0:
#line 1313 "add-persona.c"
		goto _state_0;
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		case 1:
#line 1317 "add-persona.c"
		goto _state_1;
		default:
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_assert_not_reached ();
#line 1322 "add-persona.c"
	}
	_state_0:
#line 154 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp0_ = g_str_hash;
#line 154 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp1_ = g_str_equal;
#line 154 "/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 154 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->details = _data_->_tmp2_;
#line 157 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp3_, 0, sizeof (GValue));
#line 157 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp3_, G_TYPE_STRING);
#line 157 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 157 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp5_ = __g_value_dup0 (&_data_->_tmp4_);
#line 157 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp6_ = _data_->_tmp5_;
#line 157 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp4_) ? (g_value_unset (&_data_->_tmp4_), NULL) : NULL;
#line 157 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v1 = _data_->_tmp6_;
#line 158 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp7_ = _data_->v1;
#line 158 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp8_ = _data_->self->priv->_persona_fullname;
#line 158 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_string (_data_->_tmp7_, _data_->_tmp8_);
#line 159 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp9_ = NULL;
#line 159 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp9_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_FULL_NAME);
#line 159 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp10_ = g_strdup (_data_->_tmp9_);
#line 159 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp11_ = _data_->v1;
#line 159 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v1 = NULL;
#line 159 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp10_, _data_->_tmp11_);
#line 162 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp12_, 0, sizeof (GValue));
#line 162 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp12_, GEE_TYPE_SET);
#line 162 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp13_ = _data_->_tmp12_;
#line 162 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp14_ = __g_value_dup0 (&_data_->_tmp13_);
#line 162 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp15_ = _data_->_tmp14_;
#line 162 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp13_) ? (g_value_unset (&_data_->_tmp13_), NULL) : NULL;
#line 162 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v2 = _data_->_tmp15_;
#line 163 "/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 163 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->emails = _data_->_tmp16_;
#line 166 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp17_ = _data_->self->priv->_email_1;
#line 166 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp18_ = folks_email_field_details_new (_data_->_tmp17_, NULL);
#line 166 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->email_1 = _data_->_tmp18_;
#line 167 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp19_ = EDSF_PERSONA_email_fields[0];
#line 167 "/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, _data_->_tmp19_);
#line 168 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->emails, _data_->email_1);
#line 169 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp20_ = _data_->v2;
#line 169 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_object (_data_->_tmp20_, (GObject*) _data_->emails);
#line 170 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp21_ = NULL;
#line 170 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp21_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_EMAIL_ADDRESSES);
#line 170 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp22_ = g_strdup (_data_->_tmp21_);
#line 170 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp23_ = _data_->v2;
#line 170 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v2 = NULL;
#line 170 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp22_, _data_->_tmp23_);
#line 174 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp24_, 0, sizeof (GValue));
#line 174 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp24_, G_TYPE_LOADABLE_ICON);
#line 174 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp25_ = _data_->_tmp24_;
#line 174 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp26_ = __g_value_dup0 (&_data_->_tmp25_);
#line 174 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp27_ = _data_->_tmp26_;
#line 174 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp25_) ? (g_value_unset (&_data_->_tmp25_), NULL) : NULL;
#line 174 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v3 = _data_->_tmp27_;
#line 175 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp28_ = _data_->self->priv->_avatar_path;
#line 175 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp29_ = NULL;
#line 175 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp29_ = g_file_new_for_path (_data_->_tmp28_);
#line 175 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp30_ = _data_->_tmp29_;
#line 175 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp31_ = (GFileIcon*) g_file_icon_new (_data_->_tmp30_);
#line 175 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp32_ = _data_->_tmp31_;
#line 175 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->_tmp30_);
#line 175 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->avatar = _data_->_tmp32_;
#line 176 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp33_ = _data_->v3;
#line 176 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_object (_data_->_tmp33_, (GObject*) _data_->avatar);
#line 177 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp34_ = NULL;
#line 177 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp34_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_AVATAR);
#line 177 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp35_ = g_strdup (_data_->_tmp34_);
#line 177 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp36_ = _data_->v3;
#line 177 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v3 = NULL;
#line 177 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp35_, _data_->_tmp36_);
#line 180 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp37_, 0, sizeof (GValue));
#line 180 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp37_, GEE_TYPE_MULTI_MAP);
#line 180 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp38_ = _data_->_tmp37_;
#line 180 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp39_ = __g_value_dup0 (&_data_->_tmp38_);
#line 180 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp40_ = _data_->_tmp39_;
#line 180 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp38_) ? (g_value_unset (&_data_->_tmp38_), NULL) : NULL;
#line 180 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v4 = _data_->_tmp40_;
#line 181 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp41_ = 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 181 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->im_fds = _data_->_tmp41_;
#line 182 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp42_ = _data_->self->priv->_im_addr_1;
#line 182 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp43_ = folks_im_field_details_new (_data_->_tmp42_, NULL);
#line 182 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp44_ = _data_->_tmp43_;
#line 182 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	gee_multi_map_set ((GeeMultiMap*) _data_->im_fds, "jabber", _data_->_tmp44_);
#line 182 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->_tmp44_);
#line 183 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp45_ = _data_->self->priv->_im_addr_2;
#line 183 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp46_ = folks_im_field_details_new (_data_->_tmp45_, NULL);
#line 183 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp47_ = _data_->_tmp46_;
#line 183 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	gee_multi_map_set ((GeeMultiMap*) _data_->im_fds, "yahoo", _data_->_tmp47_);
#line 183 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->_tmp47_);
#line 184 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_object (_data_->v4, (GObject*) _data_->im_fds);
#line 185 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp48_ = NULL;
#line 185 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp48_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_IM_ADDRESSES);
#line 185 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp49_ = g_strdup (_data_->_tmp48_);
#line 185 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp50_ = __g_value_dup0 (_data_->v4);
#line 185 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp49_, _data_->_tmp50_);
#line 188 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp51_, 0, sizeof (GValue));
#line 188 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp51_, GEE_TYPE_SET);
#line 188 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp52_ = _data_->_tmp51_;
#line 188 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp53_ = __g_value_dup0 (&_data_->_tmp52_);
#line 188 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp54_ = _data_->_tmp53_;
#line 188 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp52_) ? (g_value_unset (&_data_->_tmp52_), NULL) : NULL;
#line 188 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v5 = _data_->_tmp54_;
#line 189 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp55_ = 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 189 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->phones = _data_->_tmp55_;
#line 193 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp56_ = _data_->self->priv->_phone_1;
#line 193 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp57_ = folks_phone_field_details_new (_data_->_tmp56_, NULL);
#line 193 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->phone_1 = _data_->_tmp57_;
#line 194 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp58_ = EDSF_PERSONA_phone_fields[0];
#line 194 "/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_->_tmp58_);
#line 195 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->phones, _data_->phone_1);
#line 196 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp59_ = _data_->self->priv->_phone_2;
#line 196 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp60_ = folks_phone_field_details_new (_data_->_tmp59_, NULL);
#line 196 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->phone_2 = _data_->_tmp60_;
#line 197 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp61_ = EDSF_PERSONA_phone_fields[1];
#line 197 "/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_->_tmp61_);
#line 198 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->phones, _data_->phone_2);
#line 199 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp62_ = _data_->v5;
#line 199 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_object (_data_->_tmp62_, (GObject*) _data_->phones);
#line 200 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp63_ = NULL;
#line 200 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp63_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_PHONE_NUMBERS);
#line 200 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp64_ = g_strdup (_data_->_tmp63_);
#line 200 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp65_ = _data_->v5;
#line 200 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v5 = NULL;
#line 200 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp64_, _data_->_tmp65_);
#line 204 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp66_, 0, sizeof (GValue));
#line 204 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp66_, GEE_TYPE_SET);
#line 204 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp67_ = _data_->_tmp66_;
#line 204 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp68_ = __g_value_dup0 (&_data_->_tmp67_);
#line 204 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp69_ = _data_->_tmp68_;
#line 204 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp67_) ? (g_value_unset (&_data_->_tmp67_), NULL) : NULL;
#line 204 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v6 = _data_->_tmp69_;
#line 205 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp70_ = 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 205 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->pa_fds = _data_->_tmp70_;
#line 209 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp71_ = _data_->self->priv->_po_box;
#line 209 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp72_ = _data_->self->priv->_extension;
#line 209 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp73_ = _data_->self->priv->_street;
#line 209 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp74_ = _data_->self->priv->_locality;
#line 209 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp75_ = _data_->self->priv->_region;
#line 209 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp76_ = _data_->self->priv->_postal_code;
#line 209 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp77_ = _data_->self->priv->_country;
#line 209 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp78_ = folks_postal_address_new (_data_->_tmp71_, _data_->_tmp72_, _data_->_tmp73_, _data_->_tmp74_, _data_->_tmp75_, _data_->_tmp76_, _data_->_tmp77_, NULL, NULL);
#line 209 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->pa_a = _data_->_tmp78_;
#line 212 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp79_ = folks_postal_address_field_details_new (_data_->pa_a, NULL);
#line 212 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->pa_fd_a = _data_->_tmp79_;
#line 213 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp80_ = EDSF_PERSONA_address_fields[0];
#line 213 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	folks_abstract_field_details_add_parameter ((FolksAbstractFieldDetails*) _data_->pa_fd_a, "types", _data_->_tmp80_);
#line 214 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->pa_fds, _data_->pa_fd_a);
#line 215 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp81_ = _data_->v6;
#line 215 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_object (_data_->_tmp81_, (GObject*) _data_->pa_fds);
#line 216 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp82_ = NULL;
#line 216 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp82_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_POSTAL_ADDRESSES);
#line 216 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp83_ = g_strdup (_data_->_tmp82_);
#line 216 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp84_ = _data_->v6;
#line 216 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v6 = NULL;
#line 216 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp83_, _data_->_tmp84_);
#line 220 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp85_, 0, sizeof (GValue));
#line 220 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp85_, FOLKS_TYPE_STRUCTURED_NAME);
#line 220 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp86_ = _data_->_tmp85_;
#line 220 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp87_ = __g_value_dup0 (&_data_->_tmp86_);
#line 220 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp88_ = _data_->_tmp87_;
#line 220 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp86_) ? (g_value_unset (&_data_->_tmp86_), NULL) : NULL;
#line 220 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v7 = _data_->_tmp88_;
#line 221 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp89_ = _data_->self->priv->_family_name;
#line 221 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp90_ = _data_->self->priv->_given_name;
#line 221 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp91_ = folks_structured_name_new (_data_->_tmp89_, _data_->_tmp90_, NULL, NULL, NULL);
#line 221 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->sname = _data_->_tmp91_;
#line 223 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp92_ = _data_->v7;
#line 223 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_object (_data_->_tmp92_, (GObject*) _data_->sname);
#line 224 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp93_ = NULL;
#line 224 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp93_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_STRUCTURED_NAME);
#line 224 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp94_ = g_strdup (_data_->_tmp93_);
#line 224 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp95_ = _data_->v7;
#line 224 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v7 = NULL;
#line 224 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp94_, _data_->_tmp95_);
#line 228 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp96_, 0, sizeof (GValue));
#line 228 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp96_, GEE_TYPE_SET);
#line 228 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp97_ = _data_->_tmp96_;
#line 228 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp98_ = __g_value_dup0 (&_data_->_tmp97_);
#line 228 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp99_ = _data_->_tmp98_;
#line 228 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp97_) ? (g_value_unset (&_data_->_tmp97_), NULL) : NULL;
#line 228 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v8 = _data_->_tmp99_;
#line 229 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp100_ = 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 229 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->notes = _data_->_tmp100_;
#line 232 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp101_ = _data_->self->priv->_note;
#line 232 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp102_ = folks_note_field_details_new (_data_->_tmp101_, NULL, NULL);
#line 232 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->note = _data_->_tmp102_;
#line 233 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->notes, _data_->note);
#line 234 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp103_ = _data_->v8;
#line 234 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_object (_data_->_tmp103_, (GObject*) _data_->notes);
#line 235 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp104_ = NULL;
#line 235 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp104_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_NOTES);
#line 235 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp105_ = g_strdup (_data_->_tmp104_);
#line 235 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp106_ = _data_->v8;
#line 235 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v8 = NULL;
#line 235 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp105_, _data_->_tmp106_);
#line 239 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp107_, 0, sizeof (GValue));
#line 239 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp107_, G_TYPE_DATE_TIME);
#line 239 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp108_ = _data_->_tmp107_;
#line 239 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp109_ = __g_value_dup0 (&_data_->_tmp108_);
#line 239 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp110_ = _data_->_tmp109_;
#line 239 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp108_) ? (g_value_unset (&_data_->_tmp108_), NULL) : NULL;
#line 239 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v9 = _data_->_tmp110_;
#line 240 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp111_ = g_date_time_new_utc (1980, 1, 1, 0, 0, 0.0);
#line 240 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->dobj = _data_->_tmp111_;
#line 241 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp112_ = _data_->v9;
#line 241 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_boxed (_data_->_tmp112_, _data_->dobj);
#line 242 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp113_ = NULL;
#line 242 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp113_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_BIRTHDAY);
#line 242 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp114_ = g_strdup (_data_->_tmp113_);
#line 242 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp115_ = _data_->v9;
#line 242 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v9 = NULL;
#line 242 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp114_, _data_->_tmp115_);
#line 245 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	memset (&_data_->_tmp116_, 0, sizeof (GValue));
#line 245 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_init (&_data_->_tmp116_, GEE_TYPE_SET);
#line 245 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp117_ = _data_->_tmp116_;
#line 245 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp118_ = __g_value_dup0 (&_data_->_tmp117_);
#line 245 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp119_ = _data_->_tmp118_;
#line 245 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	G_IS_VALUE (&_data_->_tmp117_) ? (g_value_unset (&_data_->_tmp117_), NULL) : NULL;
#line 245 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v10 = _data_->_tmp119_;
#line 246 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp120_ = 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 246 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->role_fds = _data_->_tmp120_;
#line 249 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp121_ = folks_role_new ("Dr.", "The Nut House Ltd", NULL);
#line 249 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->r1 = _data_->_tmp121_;
#line 250 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	folks_role_set_role (_data_->r1, "The Manager");
#line 251 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp122_ = folks_role_field_details_new (_data_->r1, NULL);
#line 251 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->role_fd1 = _data_->_tmp122_;
#line 252 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->role_fds, _data_->role_fd1);
#line 253 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp123_ = _data_->v10;
#line 253 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_value_set_object (_data_->_tmp123_, (GObject*) _data_->role_fds);
#line 254 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp124_ = NULL;
#line 254 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp124_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_ROLES);
#line 254 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp125_ = g_strdup (_data_->_tmp124_);
#line 254 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp126_ = _data_->v10;
#line 254 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->v10 = NULL;
#line 254 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_hash_table_insert (_data_->details, _data_->_tmp125_, _data_->_tmp126_);
#line 1787 "add-persona.c"
	{
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp127_ = _data_->self->priv->_aggregator;
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp128_ = _data_->self->priv->_pstore;
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_state_ = 1;
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp127_, NULL, (FolksPersonaStore*) _data_->_tmp128_, _data_->details, _add_persona_tests_add_persona_ready, _data_);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		return FALSE;
#line 1799 "add-persona.c"
		_state_1:
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp129_ = NULL;
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp129_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp127_, _data_->_res_, &_data_->_inner_error_);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp130_ = _data_->_tmp129_;
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->_tmp130_);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		if (_data_->_inner_error_ != NULL) {
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1813 "add-persona.c"
				goto __catch1_folks_individual_aggregator_error;
			}
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->role_fd1);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->r1);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->role_fds);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v10);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_date_time_unref0 (_data_->dobj);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v9);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->note);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->notes);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v8);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->sname);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v7);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->pa_fd_a);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->pa_a);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->pa_fds);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v6);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->phone_2);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->phone_1);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->phones);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v5);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->im_fds);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v4);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->avatar);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v3);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->email_1);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->emails);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v2);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			__vala_GValue_free0 (_data_->v1);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_hash_table_unref0 (_data_->details);
#line 259 "/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 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_clear_error (&_data_->_inner_error_);
#line 259 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			return FALSE;
#line 1878 "add-persona.c"
		}
	}
	goto __finally1;
	__catch1_folks_individual_aggregator_error:
	{
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->e = _data_->_inner_error_;
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_inner_error_ = NULL;
#line 264 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp131_ = _data_->e;
#line 264 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp132_ = _data_->_tmp131_->message;
#line 264 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_warning ("add-persona.vala:264: [AddPersonaError] add_persona_from_details: %s\n", _data_->_tmp132_);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_error_free0 (_data_->e);
#line 1896 "add-persona.c"
	}
	__finally1:
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_inner_error_ != NULL) {
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->role_fd1);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->r1);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->role_fds);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v10);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_date_time_unref0 (_data_->dobj);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v9);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->note);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->notes);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v8);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->sname);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v7);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->pa_fd_a);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->pa_a);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->pa_fds);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v6);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->phone_2);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->phone_1);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->phones);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v5);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->im_fds);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v4);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->avatar);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v3);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->email_1);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->emails);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v2);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		__vala_GValue_free0 (_data_->v1);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_hash_table_unref0 (_data_->details);
#line 257 "/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 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_clear_error (&_data_->_inner_error_);
#line 257 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		return FALSE;
#line 1963 "add-persona.c"
	}
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->role_fd1);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->r1);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->role_fds);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v10);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_date_time_unref0 (_data_->dobj);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v9);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->note);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->notes);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v8);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->sname);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v7);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->pa_fd_a);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->pa_a);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->pa_fds);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v6);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->phone_2);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->phone_1);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->phones);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v5);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->im_fds);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v4);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->avatar);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v3);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->email_1);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_data_->emails);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v2);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	__vala_GValue_free0 (_data_->v1);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_hash_table_unref0 (_data_->details);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_state_ == 0) {
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2025 "add-persona.c"
	} else {
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2029 "add-persona.c"
	}
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_object_unref (_data_->_async_result);
#line 152 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return FALSE;
#line 2035 "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 269 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_if_fail (self != NULL);
#line 269 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_if_fail (changes != NULL);
#line 272 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = changes;
#line 272 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 272 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	added = _tmp1_;
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp2_ = changes;
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 273 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	removed = _tmp3_;
#line 275 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	num_replaces = (guint) 0;
#line 2069 "add-persona.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 277 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp4_ = added;
#line 277 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 277 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_i_it = _tmp5_;
#line 277 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		while (TRUE) {
#line 2082 "add-persona.c"
			GeeIterator* _tmp6_;
			gboolean _tmp7_ = FALSE;
			GeeIterator* _tmp8_;
			gpointer _tmp9_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp10_;
			FolksIndividual* _tmp11_;
			guint _tmp12_ = 0U;
#line 277 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp6_ = _i_it;
#line 277 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 277 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (!_tmp7_) {
#line 277 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				break;
#line 2099 "add-persona.c"
			}
#line 277 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp8_ = _i_it;
#line 277 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 277 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			i = (FolksIndividual*) _tmp9_;
#line 279 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp10_ = i;
#line 279 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (_tmp10_ == NULL) {
#line 281 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_g_object_unref0 (i);
#line 281 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				continue;
#line 2115 "add-persona.c"
			}
#line 284 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp11_ = i;
#line 284 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp12_ = _add_persona_tests_track_individual (self, _tmp11_);
#line 284 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			num_replaces = _tmp12_;
#line 277 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (i);
#line 2125 "add-persona.c"
		}
#line 277 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_i_it);
#line 2129 "add-persona.c"
	}
#line 287 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp13_ = removed;
#line 287 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp14_ = gee_collection_get_size ((GeeCollection*) _tmp13_);
#line 287 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp15_ = _tmp14_;
#line 287 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp16_ = num_replaces;
#line 287 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_assert (((guint) _tmp15_) <= (_tmp16_ + 1));
#line 269 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (removed);
#line 269 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (added);
#line 2145 "add-persona.c"
}


static void __add_persona_tests_notify_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 304 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_add_persona_tests_notify_cb (self, _sender, pspec);
#line 2152 "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 290 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_val_if_fail (self != NULL, 0U);
#line 290 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_val_if_fail (i != NULL, 0U);
#line 292 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	retval = (guint) 0;
#line 294 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = i;
#line 294 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp1_ = folks_individual_get_is_user (_tmp0_);
#line 294 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp2_ = _tmp1_;
#line 294 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_tmp2_ == FALSE) {
#line 2176 "add-persona.c"
		gboolean _tmp3_ = FALSE;
		FolksIndividual* _tmp4_;
		gboolean _tmp11_;
		FolksIndividual* _tmp12_;
		FolksIndividual* _tmp44_;
		FolksIndividual* _tmp45_;
		guint _tmp46_;
		FolksIndividual* _tmp47_;
		FolksIndividual* _tmp48_;
		FolksIndividual* _tmp49_;
		FolksIndividual* _tmp50_;
		FolksIndividual* _tmp51_;
		FolksIndividual* _tmp52_;
		FolksIndividual* _tmp53_;
		FolksIndividual* _tmp54_;
		FolksIndividual* _tmp55_;
		FolksIndividual* _tmp56_;
		FolksIndividual* _tmp57_;
#line 298 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp4_ = self->priv->_individual_received;
#line 298 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		if (_tmp4_ == NULL) {
#line 298 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp3_ = TRUE;
#line 2201 "add-persona.c"
		} else {
			FolksIndividual* _tmp5_;
			const gchar* _tmp6_;
			const gchar* _tmp7_;
			FolksIndividual* _tmp8_;
			const gchar* _tmp9_;
			const gchar* _tmp10_;
#line 299 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp5_ = self->priv->_individual_received;
#line 299 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp6_ = folks_individual_get_id (_tmp5_);
#line 299 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp7_ = _tmp6_;
#line 299 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp8_ = i;
#line 299 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp9_ = folks_individual_get_id (_tmp8_);
#line 299 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp10_ = _tmp9_;
#line 299 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp3_ = g_strcmp0 (_tmp7_, _tmp10_) == 0;
#line 2223 "add-persona.c"
		}
#line 298 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp11_ = _tmp3_;
#line 298 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_assert (_tmp11_);
#line 302 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp12_ = self->priv->_individual_received;
#line 302 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		if (_tmp12_ != NULL) {
#line 2233 "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;
			GHashTable* _tmp43_;
#line 304 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp13_ = i;
#line 304 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::full-name", G_TYPE_OBJECT, &_tmp14_, &_tmp15_, TRUE);
#line 304 "/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 305 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp16_ = i;
#line 305 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::email-addresses", G_TYPE_OBJECT, &_tmp17_, &_tmp18_, TRUE);
#line 305 "/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 306 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp19_ = i;
#line 306 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::avatar", G_TYPE_OBJECT, &_tmp20_, &_tmp21_, TRUE);
#line 306 "/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 307 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp22_ = i;
#line 307 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::im-addresses", G_TYPE_OBJECT, &_tmp23_, &_tmp24_, TRUE);
#line 307 "/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 308 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp25_ = i;
#line 308 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::phone-numbers", G_TYPE_OBJECT, &_tmp26_, &_tmp27_, TRUE);
#line 308 "/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 309 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp28_ = i;
#line 309 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::postal-addresses", G_TYPE_OBJECT, &_tmp29_, &_tmp30_, TRUE);
#line 309 "/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 310 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp31_ = i;
#line 310 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::structured-name", G_TYPE_OBJECT, &_tmp32_, &_tmp33_, TRUE);
#line 310 "/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 311 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp34_ = i;
#line 311 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::notes", G_TYPE_OBJECT, &_tmp35_, &_tmp36_, TRUE);
#line 311 "/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 312 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp37_ = i;
#line 312 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::birthday", G_TYPE_OBJECT, &_tmp38_, &_tmp39_, TRUE);
#line 312 "/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 313 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp40_ = i;
#line 313 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_signal_parse_name ("notify::roles", G_TYPE_OBJECT, &_tmp41_, &_tmp42_, TRUE);
#line 313 "/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 315 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp43_ = self->priv->_properties_found;
#line 315 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_hash_table_remove_all (_tmp43_);
#line 2329 "add-persona.c"
		}
#line 318 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp44_ = i;
#line 318 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp45_ = _g_object_ref0 (_tmp44_);
#line 318 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (self->priv->_individual_received);
#line 318 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		self->priv->_individual_received = _tmp45_;
#line 319 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp46_ = retval;
#line 319 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		retval = _tmp46_ + 1;
#line 321 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp47_ = i;
#line 321 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp47_, "notify::full-name", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 322 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp48_ = i;
#line 322 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp48_, "notify::email-addresses", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 323 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp49_ = i;
#line 323 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp49_, "notify::avatar", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 324 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp50_ = i;
#line 324 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp50_, "notify::im-addresses", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 325 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp51_ = i;
#line 325 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp51_, "notify::phone-numbers", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 326 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp52_ = i;
#line 326 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp52_, "notify::postal-addresses", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 327 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp53_ = i;
#line 327 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp53_, "notify::structured-name", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 328 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp54_ = i;
#line 328 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp54_, "notify::notes", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 329 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp55_ = i;
#line 329 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp55_, "notify::birthday", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 330 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp56_ = i;
#line 330 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_signal_connect_object ((GObject*) _tmp56_, "notify::roles", (GCallback) __add_persona_tests_notify_cb_g_object_notify, self, 0);
#line 332 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp57_ = i;
#line 332 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_add_persona_tests_check_properties (self, _tmp57_, NULL, NULL);
#line 2387 "add-persona.c"
	}
#line 335 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	result = retval;
#line 335 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return result;
#line 2393 "add-persona.c"
}


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


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


static void _add_persona_tests_try_to_add (AddPersonaTests* self) {
	GError * _inner_error_ = NULL;
#line 349 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_if_fail (self != NULL);
#line 2438 "add-persona.c"
	{
		gboolean _tmp0_;
#line 351 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_tmp0_ = self->priv->_added_persona;
#line 351 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_static_rec_mutex_lock (&self->priv->__lock__added_persona);
#line 2445 "add-persona.c"
		{
			gboolean _tmp1_ = FALSE;
			EdsfPersonaStore* _tmp2_;
			gboolean _tmp3_;
			gboolean _tmp4_;
			gboolean _tmp6_;
#line 353 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp2_ = self->priv->_pstore;
#line 353 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp3_ = folks_persona_store_get_is_prepared ((FolksPersonaStore*) _tmp2_);
#line 353 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp4_ = _tmp3_;
#line 353 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (_tmp4_) {
#line 2460 "add-persona.c"
				gboolean _tmp5_;
#line 354 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_tmp5_ = self->priv->_added_persona;
#line 354 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_tmp1_ = _tmp5_ == FALSE;
#line 2466 "add-persona.c"
			} else {
#line 353 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_tmp1_ = FALSE;
#line 2470 "add-persona.c"
			}
#line 353 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp6_ = _tmp1_;
#line 353 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (_tmp6_) {
#line 356 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				self->priv->_added_persona = TRUE;
#line 357 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_add_persona_tests_add_persona (self, NULL, NULL);
#line 2480 "add-persona.c"
			}
		}
		__finally2:
		{
			gboolean _tmp7_;
#line 351 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_tmp7_ = self->priv->_added_persona;
#line 351 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_static_rec_mutex_unlock (&self->priv->__lock__added_persona);
#line 2490 "add-persona.c"
		}
#line 351 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		if (_inner_error_ != NULL) {
#line 351 "/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 351 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_clear_error (&_inner_error_);
#line 351 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			return;
#line 2500 "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 2515 "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 2542 "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 2550 "add-persona.c"
}


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


static gboolean _add_persona_tests_check_properties_co (AddPersonaTestsCheckPropertiesData* _data_) {
#line 362 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	switch (_data_->_state_) {
#line 362 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		case 0:
#line 2573 "add-persona.c"
		goto _state_0;
#line 362 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		case 1:
#line 2577 "add-persona.c"
		goto _state_1;
		default:
#line 362 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_assert_not_reached ();
#line 2582 "add-persona.c"
	}
	_state_0:
#line 364 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp0_ = _data_->i;
#line 364 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp1_ = folks_name_details_get_full_name ((FolksNameDetails*) _data_->_tmp0_);
#line 364 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp2_ = _data_->_tmp1_;
#line 364 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp3_ = _data_->self->priv->_persona_fullname;
#line 364 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (g_strcmp0 (_data_->_tmp2_, _data_->_tmp3_) == 0) {
#line 365 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp4_ = _data_->self->priv->_properties_found;
#line 365 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp5_ = g_strdup ("full_name");
#line 365 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_hash_table_replace (_data_->_tmp4_, _data_->_tmp5_, GINT_TO_POINTER (TRUE));
#line 2601 "add-persona.c"
	}
	{
#line 367 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp6_ = _data_->i;
#line 367 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp7_ = folks_email_details_get_email_addresses ((FolksEmailDetails*) _data_->_tmp6_);
#line 367 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp8_ = _data_->_tmp7_;
#line 367 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp9_ = NULL;
#line 367 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp9_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp8_);
#line 367 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_e_it = _data_->_tmp9_;
#line 367 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		while (TRUE) {
#line 367 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp10_ = _data_->_e_it;
#line 367 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp11_ = FALSE;
#line 367 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp11_ = gee_iterator_next (_data_->_tmp10_);
#line 367 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (!_data_->_tmp11_) {
#line 367 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				break;
#line 2628 "add-persona.c"
			}
#line 367 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp12_ = _data_->_e_it;
#line 367 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp13_ = NULL;
#line 367 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp13_ = gee_iterator_get (_data_->_tmp12_);
#line 367 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->e = (FolksEmailFieldDetails*) _data_->_tmp13_;
#line 369 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp14_ = _data_->e;
#line 369 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp15_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _data_->_tmp14_);
#line 369 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp16_ = _data_->_tmp15_;
#line 369 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp17_ = _data_->self->priv->_email_1;
#line 369 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (g_strcmp0 ((const gchar*) _data_->_tmp16_, _data_->_tmp17_) == 0) {
#line 371 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp18_ = _data_->self->priv->_properties_found;
#line 371 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp19_ = g_strdup ("email-1");
#line 371 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				g_hash_table_replace (_data_->_tmp18_, _data_->_tmp19_, GINT_TO_POINTER (TRUE));
#line 2654 "add-persona.c"
			}
#line 367 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->e);
#line 2658 "add-persona.c"
		}
#line 367 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->_e_it);
#line 2662 "add-persona.c"
	}
	{
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp20_ = _data_->i;
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp21_ = folks_im_details_get_im_addresses ((FolksImDetails*) _data_->_tmp20_);
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp22_ = _data_->_tmp21_;
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp23_ = NULL;
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp23_ = gee_multi_map_get_keys (_data_->_tmp22_);
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp24_ = _data_->_tmp23_;
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp25_ = NULL;
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp25_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp24_);
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp26_ = _data_->_tmp25_;
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->_tmp24_);
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_proto_it = _data_->_tmp26_;
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		while (TRUE) {
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp27_ = _data_->_proto_it;
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp28_ = FALSE;
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp28_ = gee_iterator_next (_data_->_tmp27_);
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (!_data_->_tmp28_) {
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				break;
#line 2699 "add-persona.c"
			}
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp29_ = _data_->_proto_it;
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp30_ = NULL;
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp30_ = gee_iterator_get (_data_->_tmp29_);
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->proto = (gchar*) _data_->_tmp30_;
#line 377 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp31_ = _data_->i;
#line 377 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp32_ = folks_im_details_get_im_addresses ((FolksImDetails*) _data_->_tmp31_);
#line 377 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp33_ = _data_->_tmp32_;
#line 377 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp34_ = _data_->proto;
#line 377 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp35_ = NULL;
#line 377 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp35_ = gee_multi_map_get (_data_->_tmp33_, _data_->_tmp34_);
#line 377 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->im_fds = _data_->_tmp35_;
#line 2723 "add-persona.c"
			{
#line 378 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp36_ = _data_->im_fds;
#line 378 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp37_ = NULL;
#line 378 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp37_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp36_);
#line 378 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_im_fd_it = _data_->_tmp37_;
#line 378 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				while (TRUE) {
#line 378 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp38_ = _data_->_im_fd_it;
#line 378 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp39_ = FALSE;
#line 378 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp39_ = gee_iterator_next (_data_->_tmp38_);
#line 378 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					if (!_data_->_tmp39_) {
#line 378 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
						break;
#line 2745 "add-persona.c"
					}
#line 378 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp40_ = _data_->_im_fd_it;
#line 378 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp41_ = NULL;
#line 378 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp41_ = gee_iterator_get (_data_->_tmp40_);
#line 378 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->im_fd = (FolksImFieldDetails*) _data_->_tmp41_;
#line 380 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp42_ = _data_->im_fd;
#line 380 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp43_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _data_->_tmp42_);
#line 380 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp44_ = _data_->_tmp43_;
#line 380 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp45_ = _data_->self->priv->_im_addr_1;
#line 380 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					if (g_strcmp0 ((const gchar*) _data_->_tmp44_, _data_->_tmp45_) == 0) {
#line 381 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
						_data_->_tmp46_ = _data_->self->priv->_properties_found;
#line 381 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
						_data_->_tmp47_ = g_strdup ("im-addr-1");
#line 381 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
						g_hash_table_replace (_data_->_tmp46_, _data_->_tmp47_, GINT_TO_POINTER (TRUE));
#line 2771 "add-persona.c"
					} else {
#line 382 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
						_data_->_tmp48_ = _data_->im_fd;
#line 382 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
						_data_->_tmp49_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _data_->_tmp48_);
#line 382 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
						_data_->_tmp50_ = _data_->_tmp49_;
#line 382 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
						_data_->_tmp51_ = _data_->self->priv->_im_addr_2;
#line 382 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
						if (g_strcmp0 ((const gchar*) _data_->_tmp50_, _data_->_tmp51_) == 0) {
#line 383 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
							_data_->_tmp52_ = _data_->self->priv->_properties_found;
#line 383 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
							_data_->_tmp53_ = g_strdup ("im-addr-2");
#line 383 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
							g_hash_table_replace (_data_->_tmp52_, _data_->_tmp53_, GINT_TO_POINTER (TRUE));
#line 2789 "add-persona.c"
						}
					}
#line 378 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_g_object_unref0 (_data_->im_fd);
#line 2794 "add-persona.c"
				}
#line 378 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_g_object_unref0 (_data_->_im_fd_it);
#line 2798 "add-persona.c"
			}
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->im_fds);
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_free0 (_data_->proto);
#line 2804 "add-persona.c"
		}
#line 375 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->_proto_it);
#line 2808 "add-persona.c"
	}
	{
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp54_ = _data_->i;
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp55_ = folks_phone_details_get_phone_numbers ((FolksPhoneDetails*) _data_->_tmp54_);
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp56_ = _data_->_tmp55_;
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp57_ = NULL;
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp57_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp56_);
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_phone_fd_it = _data_->_tmp57_;
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		while (TRUE) {
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp58_ = _data_->_phone_fd_it;
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp59_ = FALSE;
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp59_ = gee_iterator_next (_data_->_tmp58_);
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (!_data_->_tmp59_) {
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				break;
#line 2835 "add-persona.c"
			}
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp60_ = _data_->_phone_fd_it;
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp61_ = NULL;
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp61_ = gee_iterator_get (_data_->_tmp60_);
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->phone_fd = (FolksPhoneFieldDetails*) _data_->_tmp61_;
#line 389 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp62_ = _data_->phone_fd;
#line 389 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp63_ = _data_->self->priv->_phone_1;
#line 389 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp64_ = folks_phone_field_details_new (_data_->_tmp63_, NULL);
#line 389 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp65_ = _data_->_tmp64_;
#line 389 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp66_ = FALSE;
#line 389 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp66_ = folks_abstract_field_details_equal ((FolksAbstractFieldDetails*) _data_->_tmp62_, (FolksAbstractFieldDetails*) _data_->_tmp65_);
#line 389 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp67_ = _data_->_tmp66_;
#line 389 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->_tmp65_);
#line 389 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (_data_->_tmp67_) {
#line 391 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp68_ = _data_->self->priv->_properties_found;
#line 391 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp69_ = g_strdup ("phone-1");
#line 391 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				g_hash_table_replace (_data_->_tmp68_, _data_->_tmp69_, GINT_TO_POINTER (TRUE));
#line 2869 "add-persona.c"
			} else {
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp70_ = _data_->phone_fd;
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp71_ = _data_->self->priv->_phone_2;
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp72_ = folks_phone_field_details_new (_data_->_tmp71_, NULL);
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp73_ = _data_->_tmp72_;
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp74_ = FALSE;
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp74_ = folks_abstract_field_details_equal ((FolksAbstractFieldDetails*) _data_->_tmp70_, (FolksAbstractFieldDetails*) _data_->_tmp73_);
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp75_ = _data_->_tmp74_;
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_g_object_unref0 (_data_->_tmp73_);
#line 393 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				if (_data_->_tmp75_) {
#line 395 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp76_ = _data_->self->priv->_properties_found;
#line 395 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_data_->_tmp77_ = g_strdup ("phone-2");
#line 395 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					g_hash_table_replace (_data_->_tmp76_, _data_->_tmp77_, GINT_TO_POINTER (TRUE));
#line 2895 "add-persona.c"
				}
			}
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->phone_fd);
#line 2900 "add-persona.c"
		}
#line 387 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->_phone_fd_it);
#line 2904 "add-persona.c"
	}
	{
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp78_ = _data_->i;
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp79_ = folks_postal_address_details_get_postal_addresses ((FolksPostalAddressDetails*) _data_->_tmp78_);
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp80_ = _data_->_tmp79_;
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp81_ = NULL;
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp81_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp80_);
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_pa_fd_it = _data_->_tmp81_;
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		while (TRUE) {
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp82_ = _data_->_pa_fd_it;
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp83_ = FALSE;
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp83_ = gee_iterator_next (_data_->_tmp82_);
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (!_data_->_tmp83_) {
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				break;
#line 2931 "add-persona.c"
			}
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp84_ = _data_->_pa_fd_it;
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp85_ = NULL;
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp85_ = gee_iterator_get (_data_->_tmp84_);
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->pa_fd = (FolksPostalAddressFieldDetails*) _data_->_tmp85_;
#line 401 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp86_ = _data_->self->priv->_address;
#line 401 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp87_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _data_->_tmp86_);
#line 401 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp88_ = _data_->_tmp87_;
#line 401 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp89_ = _data_->pa_fd;
#line 401 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp90_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _data_->_tmp89_);
#line 401 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp91_ = _data_->_tmp90_;
#line 401 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp92_ = folks_postal_address_get_uid ((FolksPostalAddress*) _data_->_tmp91_);
#line 401 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp93_ = _data_->_tmp92_;
#line 401 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			folks_postal_address_set_uid ((FolksPostalAddress*) _data_->_tmp88_, _data_->_tmp93_);
#line 402 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp94_ = _data_->pa_fd;
#line 402 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp95_ = _data_->self->priv->_address;
#line 402 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp96_ = FALSE;
#line 402 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp96_ = folks_abstract_field_details_equal ((FolksAbstractFieldDetails*) _data_->_tmp94_, (FolksAbstractFieldDetails*) _data_->_tmp95_);
#line 402 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (_data_->_tmp96_) {
#line 403 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp97_ = _data_->self->priv->_properties_found;
#line 403 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp98_ = g_strdup ("postal-address-1");
#line 403 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				g_hash_table_replace (_data_->_tmp97_, _data_->_tmp98_, GINT_TO_POINTER (TRUE));
#line 2975 "add-persona.c"
			}
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->pa_fd);
#line 2979 "add-persona.c"
		}
#line 399 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->_pa_fd_it);
#line 2983 "add-persona.c"
	}
#line 406 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp101_ = _data_->i;
#line 406 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp102_ = folks_name_details_get_structured_name ((FolksNameDetails*) _data_->_tmp101_);
#line 406 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp103_ = _data_->_tmp102_;
#line 406 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_tmp103_ != NULL) {
#line 407 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp104_ = _data_->i;
#line 407 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp105_ = folks_name_details_get_structured_name ((FolksNameDetails*) _data_->_tmp104_);
#line 407 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp106_ = _data_->_tmp105_;
#line 407 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp107_ = folks_structured_name_get_family_name (_data_->_tmp106_);
#line 407 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp108_ = _data_->_tmp107_;
#line 407 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp109_ = _data_->self->priv->_family_name;
#line 407 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp100_ = g_strcmp0 (_data_->_tmp108_, _data_->_tmp109_) == 0;
#line 3007 "add-persona.c"
	} else {
#line 406 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp100_ = FALSE;
#line 3011 "add-persona.c"
	}
#line 406 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp110_ = _data_->_tmp100_;
#line 406 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_tmp110_) {
#line 408 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp111_ = _data_->i;
#line 408 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp112_ = folks_name_details_get_structured_name ((FolksNameDetails*) _data_->_tmp111_);
#line 408 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp113_ = _data_->_tmp112_;
#line 408 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp114_ = folks_structured_name_get_given_name (_data_->_tmp113_);
#line 408 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp115_ = _data_->_tmp114_;
#line 408 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp116_ = _data_->self->priv->_given_name;
#line 408 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp99_ = g_strcmp0 (_data_->_tmp115_, _data_->_tmp116_) == 0;
#line 3031 "add-persona.c"
	} else {
#line 406 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp99_ = FALSE;
#line 3035 "add-persona.c"
	}
#line 406 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp117_ = _data_->_tmp99_;
#line 406 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_tmp117_) {
#line 409 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp118_ = _data_->self->priv->_properties_found;
#line 409 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp119_ = g_strdup ("structured_name");
#line 409 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_hash_table_replace (_data_->_tmp118_, _data_->_tmp119_, GINT_TO_POINTER (TRUE));
#line 3047 "add-persona.c"
	}
	{
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp120_ = _data_->i;
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp121_ = folks_note_details_get_notes ((FolksNoteDetails*) _data_->_tmp120_);
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp122_ = _data_->_tmp121_;
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp123_ = NULL;
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp123_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp122_);
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_note_it = _data_->_tmp123_;
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		while (TRUE) {
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp124_ = _data_->_note_it;
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp125_ = FALSE;
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp125_ = gee_iterator_next (_data_->_tmp124_);
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (!_data_->_tmp125_) {
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				break;
#line 3074 "add-persona.c"
			}
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp126_ = _data_->_note_it;
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp127_ = NULL;
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp127_ = gee_iterator_get (_data_->_tmp126_);
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->note = (FolksNoteFieldDetails*) _data_->_tmp127_;
#line 413 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp128_ = _data_->note;
#line 413 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp129_ = _data_->self->priv->_note;
#line 413 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp130_ = folks_note_field_details_new (_data_->_tmp129_, NULL, NULL);
#line 413 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp131_ = _data_->_tmp130_;
#line 413 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp132_ = FALSE;
#line 413 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp132_ = folks_abstract_field_details_equal ((FolksAbstractFieldDetails*) _data_->_tmp128_, (FolksAbstractFieldDetails*) _data_->_tmp131_);
#line 413 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp133_ = _data_->_tmp132_;
#line 413 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->_tmp131_);
#line 413 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (_data_->_tmp133_) {
#line 415 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp134_ = _data_->self->priv->_properties_found;
#line 415 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp135_ = g_strdup ("note");
#line 415 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				g_hash_table_replace (_data_->_tmp134_, _data_->_tmp135_, GINT_TO_POINTER (TRUE));
#line 416 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_g_object_unref0 (_data_->note);
#line 416 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				break;
#line 3112 "add-persona.c"
			}
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->note);
#line 3116 "add-persona.c"
		}
#line 411 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->_note_it);
#line 3120 "add-persona.c"
	}
#line 420 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp136_ = _data_->i;
#line 420 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp137_ = folks_avatar_details_get_avatar ((FolksAvatarDetails*) _data_->_tmp136_);
#line 420 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp138_ = _data_->_tmp137_;
#line 420 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_tmp138_ != NULL) {
#line 422 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp139_ = _data_->self->priv->_avatar_path;
#line 422 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp140_ = NULL;
#line 422 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp140_ = g_file_new_for_path (_data_->_tmp139_);
#line 422 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp141_ = _data_->_tmp140_;
#line 422 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp142_ = (GFileIcon*) g_file_icon_new (_data_->_tmp141_);
#line 422 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp143_ = _data_->_tmp142_;
#line 422 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->_tmp141_);
#line 422 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->b = _data_->_tmp143_;
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp144_ = _data_->b;
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp145_ = _data_->i;
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp146_ = folks_avatar_details_get_avatar ((FolksAvatarDetails*) _data_->_tmp145_);
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp147_ = _data_->_tmp146_;
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_state_ = 1;
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		folks_test_utils_loadable_icons_content_equal ((GLoadableIcon*) _data_->_tmp144_, _data_->_tmp147_, -1, _add_persona_tests_check_properties_ready, _data_);
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		return FALSE;
#line 3160 "add-persona.c"
		_state_1:
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp148_ = FALSE;
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp148_ = folks_test_utils_loadable_icons_content_equal_finish (_data_->_res_);
#line 424 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->same = _data_->_tmp148_;
#line 426 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp149_ = _data_->same;
#line 426 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		if (_data_->_tmp149_) {
#line 427 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp150_ = _data_->self->priv->_properties_found;
#line 427 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp151_ = g_strdup ("avatar");
#line 427 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_hash_table_replace (_data_->_tmp150_, _data_->_tmp151_, GINT_TO_POINTER (TRUE));
#line 3178 "add-persona.c"
		}
#line 420 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->b);
#line 3182 "add-persona.c"
	}
#line 430 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp152_ = _data_->i;
#line 430 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp153_ = folks_birthday_details_get_birthday ((FolksBirthdayDetails*) _data_->_tmp152_);
#line 430 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_data_->_tmp154_ = _data_->_tmp153_;
#line 430 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_tmp154_ != NULL) {
#line 432 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp155_ = g_date_time_new_local (1980, 1, 1, 0, 0, 0.0);
#line 432 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp156_ = _data_->_tmp155_;
#line 432 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp157_ = NULL;
#line 432 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp157_ = g_date_time_to_utc (_data_->_tmp156_);
#line 432 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp158_ = _data_->_tmp157_;
#line 432 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_date_time_unref0 (_data_->_tmp156_);
#line 432 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->dobj = _data_->_tmp158_;
#line 433 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp159_ = _data_->i;
#line 433 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp160_ = folks_birthday_details_get_birthday ((FolksBirthdayDetails*) _data_->_tmp159_);
#line 433 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp161_ = _data_->_tmp160_;
#line 433 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp162_ = _data_->dobj;
#line 433 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp163_ = FALSE;
#line 433 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp163_ = g_date_time_equal (_data_->_tmp161_, _data_->_tmp162_);
#line 433 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		if (_data_->_tmp163_) {
#line 434 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp164_ = _data_->self->priv->_properties_found;
#line 434 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp165_ = g_strdup ("birthday");
#line 434 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			g_hash_table_replace (_data_->_tmp164_, _data_->_tmp165_, GINT_TO_POINTER (TRUE));
#line 3226 "add-persona.c"
		}
#line 430 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_date_time_unref0 (_data_->dobj);
#line 3230 "add-persona.c"
	}
	{
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp166_ = _data_->i;
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp167_ = folks_role_details_get_roles ((FolksRoleDetails*) _data_->_tmp166_);
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp168_ = _data_->_tmp167_;
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp169_ = NULL;
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_tmp169_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp168_);
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_data_->_role_fd_it = _data_->_tmp169_;
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		while (TRUE) {
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp170_ = _data_->_role_fd_it;
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp171_ = FALSE;
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp171_ = gee_iterator_next (_data_->_tmp170_);
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (!_data_->_tmp171_) {
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				break;
#line 3257 "add-persona.c"
			}
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp172_ = _data_->_role_fd_it;
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp173_ = NULL;
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp173_ = gee_iterator_get (_data_->_tmp172_);
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->role_fd = (FolksRoleFieldDetails*) _data_->_tmp173_;
#line 439 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp174_ = folks_role_new ("Dr.", "The Nut House Ltd", NULL);
#line 439 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->r1 = _data_->_tmp174_;
#line 440 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp175_ = _data_->r1;
#line 440 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			folks_role_set_role (_data_->_tmp175_, "The Manager");
#line 441 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp176_ = _data_->r1;
#line 441 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp177_ = folks_role_field_details_new (_data_->_tmp176_, NULL);
#line 441 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->role_fd_expected = _data_->_tmp177_;
#line 442 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp178_ = _data_->role_fd;
#line 442 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp179_ = _data_->role_fd_expected;
#line 442 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp180_ = FALSE;
#line 442 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_data_->_tmp180_ = folks_abstract_field_details_equal ((FolksAbstractFieldDetails*) _data_->_tmp178_, (FolksAbstractFieldDetails*) _data_->_tmp179_);
#line 442 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			if (_data_->_tmp180_) {
#line 443 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp181_ = _data_->self->priv->_properties_found;
#line 443 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_data_->_tmp182_ = g_strdup ("role-1");
#line 443 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				g_hash_table_replace (_data_->_tmp181_, _data_->_tmp182_, GINT_TO_POINTER (TRUE));
#line 3297 "add-persona.c"
			}
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->role_fd_expected);
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->r1);
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			_g_object_unref0 (_data_->role_fd);
#line 3305 "add-persona.c"
		}
#line 437 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_object_unref0 (_data_->_role_fd_it);
#line 3309 "add-persona.c"
	}
#line 446 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_add_persona_tests_exit_if_all_properties_found (_data_->self);
#line 362 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	if (_data_->_state_ == 0) {
#line 362 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3317 "add-persona.c"
	} else {
#line 362 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 3321 "add-persona.c"
	}
#line 362 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_object_unref (_data_->_async_result);
#line 362 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return FALSE;
#line 3327 "add-persona.c"
}


static void _add_persona_tests_exit_if_all_properties_found (AddPersonaTests* self) {
	GHashTable* _tmp0_;
	GList* _tmp1_ = NULL;
	GMainLoop* _tmp6_;
#line 449 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_return_if_fail (self != NULL);
#line 451 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = self->priv->_properties_found;
#line 451 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp1_ = g_hash_table_get_keys (_tmp0_);
#line 3341 "add-persona.c"
	{
		GList* k_collection = NULL;
		GList* k_it = NULL;
#line 451 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		k_collection = _tmp1_;
#line 451 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		for (k_it = k_collection; k_it != NULL; k_it = k_it->next) {
#line 3349 "add-persona.c"
			const gchar* k = NULL;
#line 451 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
			k = (const gchar*) k_it->data;
#line 3353 "add-persona.c"
			{
				GHashTable* _tmp2_;
				const gchar* _tmp3_;
				gconstpointer _tmp4_ = NULL;
				gboolean v;
				gboolean _tmp5_;
#line 453 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_tmp2_ = self->priv->_properties_found;
#line 453 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_tmp3_ = k;
#line 453 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_tmp4_ = g_hash_table_lookup (_tmp2_, _tmp3_);
#line 453 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				v = GPOINTER_TO_INT (_tmp4_);
#line 454 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				_tmp5_ = v;
#line 454 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
				if (_tmp5_ == FALSE) {
#line 455 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					_g_list_free0 (k_collection);
#line 455 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
					return;
#line 3376 "add-persona.c"
				}
			}
		}
#line 451 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
		_g_list_free0 (k_collection);
#line 3382 "add-persona.c"
	}
#line 457 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp6_ = self->priv->_main_loop;
#line 457 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_main_loop_quit (_tmp6_);
#line 3388 "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 3403 "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 40 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = g_strdup ("12345");
#line 40 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_po_box = _tmp0_;
#line 41 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp1_ = g_strdup ("locality");
#line 41 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_locality = _tmp1_;
#line 42 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp2_ = g_strdup ("code");
#line 42 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_postal_code = _tmp2_;
#line 43 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp3_ = g_strdup ("some street");
#line 43 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_street = _tmp3_;
#line 44 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp4_ = g_strdup ("some extension");
#line 44 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_extension = _tmp4_;
#line 45 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp5_ = g_strdup ("some country");
#line 45 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_country = _tmp5_;
#line 46 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp6_ = g_strdup ("some region");
#line 46 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_region = _tmp6_;
#line 49 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp7_ = g_strdup ("This is a note.");
#line 49 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	self->priv->_note = _tmp7_;
#line 3454 "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_2);
#line 39 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (self->priv->_address);
#line 40 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_po_box);
#line 41 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_locality);
#line 42 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_postal_code);
#line 43 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_street);
#line 44 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_extension);
#line 45 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_country);
#line 46 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_region);
#line 47 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_family_name);
#line 48 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_given_name);
#line 49 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_free0 (self->priv->_note);
#line 50 "/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 3514 "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 463 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_test_init (&args_length1, &args, NULL);
#line 465 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp0_ = g_test_get_root ();
#line 465 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	root = _tmp0_;
#line 466 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp1_ = add_persona_tests_new ();
#line 466 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp2_ = _tmp1_;
#line 466 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 466 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 466 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	_g_object_unref0 (_tmp2_);
#line 468 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	g_test_run ();
#line 470 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	result = 0;
#line 470 "/home/treitter/collabora/folks/tests/eds/add-persona.vala"
	return result;
#line 3559 "add-persona.c"
}


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



