/* postal-address-details.c generated by valac 0.17.6.3-6918, the Vala compiler
 * generated from postal-address-details.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 <folks/folks.h>
#include <eds-test.h>
#include <stdlib.h>
#include <string.h>
#include <gee.h>
#include <folks/folks-eds.h>
#include <gio/gio.h>


#define TYPE_POSTAL_ADDRESS_DETAILS_TESTS (postal_address_details_tests_get_type ())
#define POSTAL_ADDRESS_DETAILS_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_POSTAL_ADDRESS_DETAILS_TESTS, PostalAddressDetailsTests))
#define POSTAL_ADDRESS_DETAILS_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_POSTAL_ADDRESS_DETAILS_TESTS, PostalAddressDetailsTestsClass))
#define IS_POSTAL_ADDRESS_DETAILS_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_POSTAL_ADDRESS_DETAILS_TESTS))
#define IS_POSTAL_ADDRESS_DETAILS_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_POSTAL_ADDRESS_DETAILS_TESTS))
#define POSTAL_ADDRESS_DETAILS_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_POSTAL_ADDRESS_DETAILS_TESTS, PostalAddressDetailsTestsClass))

typedef struct _PostalAddressDetailsTests PostalAddressDetailsTests;
typedef struct _PostalAddressDetailsTestsClass PostalAddressDetailsTestsClass;
typedef struct _PostalAddressDetailsTestsPrivate PostalAddressDetailsTestsPrivate;
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _eds_test_backend_unref0(var) ((var == NULL) ? NULL : (var = (eds_test_backend_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _PostalAddressDetailsTestsTestPostalAddressDetailsInterfaceAsyncData PostalAddressDetailsTestsTestPostalAddressDetailsInterfaceAsyncData;
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

struct _PostalAddressDetailsTests {
	FolksTestCase parent_instance;
	PostalAddressDetailsTestsPrivate * priv;
};

struct _PostalAddressDetailsTestsClass {
	FolksTestCaseClass parent_class;
};

struct _PostalAddressDetailsTestsPrivate {
	GMainLoop* _main_loop;
	FolksIndividualAggregator* _aggregator;
	EdsTestBackend* _eds_backend;
	gchar* _pobox;
	gchar* _locality;
	gchar* _postalcode;
	gchar* _street;
	gchar* _extended;
	gchar* _country;
	gchar* _region;
	FolksPostalAddressFieldDetails* _postal_address;
	gboolean _found_postal_address;
	gchar* _fullname;
};

struct _PostalAddressDetailsTestsTestPostalAddressDetailsInterfaceAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	PostalAddressDetailsTests* self;
	EdsTestBackend* _tmp0_;
	FolksBackendStore* _tmp1_;
	FolksBackendStore* store;
	FolksIndividualAggregator* _tmp2_;
	FolksIndividualAggregator* _tmp3_;
	FolksIndividualAggregator* _tmp4_;
	GError* e;
	GError* _tmp5_;
	const gchar* _tmp6_;
	GError * _inner_error_;
};


static gpointer postal_address_details_tests_parent_class = NULL;

GType postal_address_details_tests_get_type (void) G_GNUC_CONST;
#define POSTAL_ADDRESS_DETAILS_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_POSTAL_ADDRESS_DETAILS_TESTS, PostalAddressDetailsTestsPrivate))
enum  {
	POSTAL_ADDRESS_DETAILS_TESTS_DUMMY_PROPERTY
};
PostalAddressDetailsTests* postal_address_details_tests_new (void);
PostalAddressDetailsTests* postal_address_details_tests_construct (GType object_type);
void postal_address_details_tests_test_postal_address_details_interface (PostalAddressDetailsTests* self);
static void _postal_address_details_tests_test_postal_address_details_interface_folks_test_case_test_method (gpointer self);
static void postal_address_details_tests_real_set_up (FolksTestCase* base);
static void postal_address_details_tests_real_tear_down (FolksTestCase* base);
static GValue* _g_value_dup (GValue* self);
static void _vala_GValue_free (GValue* self);
static void _postal_address_details_tests_test_postal_address_details_interface_async (PostalAddressDetailsTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _postal_address_details_tests_test_postal_address_details_interface_finish (PostalAddressDetailsTests* self, GAsyncResult* _res_);
static gboolean __lambda2_ (PostalAddressDetailsTests* self);
static gboolean ___lambda2__gsource_func (gpointer self);
static void _postal_address_details_tests_test_postal_address_details_interface_async_data_free (gpointer _data);
static gboolean _postal_address_details_tests_test_postal_address_details_interface_async_co (PostalAddressDetailsTestsTestPostalAddressDetailsInterfaceAsyncData* _data_);
static void _postal_address_details_tests_test_postal_address_details_interface_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _postal_address_details_tests_individuals_changed_cb (PostalAddressDetailsTests* self, GeeMultiMap* changes);
static void __postal_address_details_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static void postal_address_details_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _postal_address_details_tests_test_postal_address_details_interface_folks_test_case_test_method (gpointer self) {
#line 44 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	postal_address_details_tests_test_postal_address_details_interface (self);
#line 131 "postal-address-details.c"
}


PostalAddressDetailsTests* postal_address_details_tests_construct (GType object_type) {
	PostalAddressDetailsTests * self = NULL;
#line 42 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	self = (PostalAddressDetailsTests*) folks_test_case_construct (object_type, "PostalAddressDetailsTests");
#line 44 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test postal address details interface", _postal_address_details_tests_test_postal_address_details_interface_folks_test_case_test_method, self);
#line 40 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	return self;
#line 143 "postal-address-details.c"
}


PostalAddressDetailsTests* postal_address_details_tests_new (void) {
#line 40 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	return postal_address_details_tests_construct (TYPE_POSTAL_ADDRESS_DETAILS_TESTS);
#line 150 "postal-address-details.c"
}


static void postal_address_details_tests_real_set_up (FolksTestCase* base) {
	PostalAddressDetailsTests * self;
	EdsTestBackend* _tmp0_;
	EdsTestBackend* _tmp1_;
	EdsTestBackend* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_ = NULL;
	gchar* config_val;
#line 48 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	self = (PostalAddressDetailsTests*) base;
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = eds_test_backend_new ();
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	self->priv->_eds_backend = _tmp0_;
#line 51 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp1_ = self->priv->_eds_backend;
#line 51 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	eds_test_backend_set_up (_tmp1_, FALSE, "test");
#line 54 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp2_ = self->priv->_eds_backend;
#line 54 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp3_ = eds_test_backend_get_address_book_uid (_tmp2_);
#line 54 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp4_ = _tmp3_;
#line 54 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp5_ = g_strdup_printf ("eds:%s", _tmp4_);
#line 54 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	config_val = _tmp5_;
#line 55 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_setenv ("FOLKS_PRIMARY_STORE", config_val, TRUE);
#line 48 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_free0 (config_val);
#line 189 "postal-address-details.c"
}


static void postal_address_details_tests_real_tear_down (FolksTestCase* base) {
	PostalAddressDetailsTests * self;
	EdsTestBackend* _tmp0_;
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	self = (PostalAddressDetailsTests*) base;
#line 60 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = self->priv->_eds_backend;
#line 60 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	eds_test_backend_tear_down (_tmp0_);
#line 202 "postal-address-details.c"
}


static GValue* _g_value_dup (GValue* self) {
#line 66 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	return g_boxed_copy (G_TYPE_VALUE, self);
#line 209 "postal-address-details.c"
}


static void _vala_GValue_free (GValue* self) {
#line 66 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_value_unset (self);
#line 66 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_free (self);
#line 218 "postal-address-details.c"
}


static gpointer __g_value_dup0 (gpointer self) {
#line 83 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	return self ? _g_value_dup (self) : NULL;
#line 225 "postal-address-details.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	return self ? g_object_ref (self) : NULL;
#line 232 "postal-address-details.c"
}


static gboolean __lambda2_ (PostalAddressDetailsTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = self->priv->_main_loop;
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_main_loop_quit (_tmp0_);
#line 112 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_assert_not_reached ();
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	return result;
#line 247 "postal-address-details.c"
}


static gboolean ___lambda2__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda2_ (self);
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	return result;
#line 256 "postal-address-details.c"
}


void postal_address_details_tests_test_postal_address_details_interface (PostalAddressDetailsTests* self) {
	GMainLoop* _tmp0_;
	GeeHashMap* _tmp1_;
	GeeHashMap* c1;
	gchar* _tmp2_;
	GValue* v = NULL;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	const gchar* _tmp9_;
	FolksPostalAddress* _tmp10_;
	FolksPostalAddress* pa;
	FolksPostalAddressFieldDetails* _tmp11_;
	FolksPostalAddressFieldDetails* _tmp12_;
	GValue _tmp13_ = {0};
	GValue _tmp14_;
	GValue* _tmp15_;
	GValue* _tmp16_;
	const gchar* _tmp17_;
	GValue* _tmp18_;
	GValue* _tmp19_;
	const gchar* _tmp20_;
	const gchar* _tmp21_;
	const gchar* _tmp22_;
	const gchar* _tmp23_;
	const gchar* _tmp24_;
	const gchar* _tmp25_;
	const gchar* _tmp26_;
	FolksPostalAddress* _tmp27_;
	FolksPostalAddress* pa_copy;
	FolksPostalAddressFieldDetails* _tmp28_;
	FolksPostalAddressFieldDetails* pa_fd_copy;
	GValue _tmp29_ = {0};
	GValue _tmp30_;
	GValue* _tmp31_;
	GValue* _tmp32_;
	const gchar* _tmp33_;
	GValue* _tmp34_;
	GValue* _tmp35_;
	EdsTestBackend* _tmp36_;
	GeeHashMap* _tmp37_;
	GMainLoop* _tmp38_;
	gboolean _tmp39_;
#line 63 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_return_if_fail (self != NULL);
#line 65 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 65 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 65 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	self->priv->_main_loop = _tmp0_;
#line 66 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_VALUE, (GBoxedCopyFunc) _g_value_dup, _vala_GValue_free, NULL, NULL, NULL);
#line 66 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	c1 = _tmp1_;
#line 67 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp2_ = g_strdup ("persona #1");
#line 67 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_free0 (self->priv->_fullname);
#line 67 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	self->priv->_fullname = _tmp2_;
#line 70 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp3_ = self->priv->_pobox;
#line 70 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp4_ = self->priv->_extended;
#line 70 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp5_ = self->priv->_street;
#line 70 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp6_ = self->priv->_locality;
#line 70 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp7_ = self->priv->_region;
#line 70 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp8_ = self->priv->_postalcode;
#line 70 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp9_ = self->priv->_country;
#line 70 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp10_ = folks_postal_address_new (_tmp3_, _tmp4_, _tmp5_, _tmp6_, _tmp7_, _tmp8_, _tmp9_, NULL, "eds_id");
#line 70 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	pa = _tmp10_;
#line 79 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp11_ = folks_postal_address_field_details_new (pa, NULL);
#line 79 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (self->priv->_postal_address);
#line 79 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	self->priv->_postal_address = _tmp11_;
#line 80 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp12_ = self->priv->_postal_address;
#line 80 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	folks_abstract_field_details_add_parameter ((FolksAbstractFieldDetails*) _tmp12_, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE_HOME);
#line 83 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_value_init (&_tmp13_, G_TYPE_STRING);
#line 83 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp14_ = _tmp13_;
#line 83 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp15_ = __g_value_dup0 (&_tmp14_);
#line 83 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	__vala_GValue_free0 (v);
#line 83 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	v = _tmp15_;
#line 83 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	G_IS_VALUE (&_tmp14_) ? (g_value_unset (&_tmp14_), NULL) : NULL;
#line 84 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp16_ = v;
#line 84 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp17_ = self->priv->_fullname;
#line 84 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_value_set_string (_tmp16_, _tmp17_);
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp18_ = v;
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	v = NULL;
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp19_ = _tmp18_;
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	gee_abstract_map_set ((GeeAbstractMap*) c1, "full_name", _tmp19_);
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	__vala_GValue_free0 (_tmp19_);
#line 86 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp20_ = self->priv->_pobox;
#line 86 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp21_ = self->priv->_extended;
#line 86 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp22_ = self->priv->_street;
#line 86 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp23_ = self->priv->_locality;
#line 86 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp24_ = self->priv->_region;
#line 86 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp25_ = self->priv->_postalcode;
#line 86 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp26_ = self->priv->_country;
#line 86 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp27_ = folks_postal_address_new (_tmp20_, _tmp21_, _tmp22_, _tmp23_, _tmp24_, _tmp25_, _tmp26_, NULL, "eds_id");
#line 86 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	pa_copy = _tmp27_;
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp28_ = folks_postal_address_field_details_new (pa_copy, NULL);
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	pa_fd_copy = _tmp28_;
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	folks_abstract_field_details_add_parameter ((FolksAbstractFieldDetails*) pa_fd_copy, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE_HOME);
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_value_init (&_tmp29_, FOLKS_TYPE_POSTAL_ADDRESS_FIELD_DETAILS);
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp30_ = _tmp29_;
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp31_ = __g_value_dup0 (&_tmp30_);
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	__vala_GValue_free0 (v);
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	v = _tmp31_;
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	G_IS_VALUE (&_tmp30_) ? (g_value_unset (&_tmp30_), NULL) : NULL;
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp32_ = v;
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_value_set_object (_tmp32_, (GObject*) pa_fd_copy);
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp33_ = EDSF_PERSONA_address_fields[0];
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp34_ = v;
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	v = NULL;
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp35_ = _tmp34_;
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	gee_abstract_map_set ((GeeAbstractMap*) c1, _tmp33_, _tmp35_);
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	__vala_GValue_free0 (_tmp35_);
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp36_ = self->priv->_eds_backend;
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp37_ = _g_object_ref0 (c1);
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	eds_test_backend_add_contact (_tmp36_, _tmp37_);
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	self->priv->_found_postal_address = FALSE;
#line 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_postal_address_details_tests_test_postal_address_details_interface_async (self, NULL, NULL);
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda2__gsource_func, g_object_ref (self), g_object_unref);
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp38_ = self->priv->_main_loop;
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_main_loop_run (_tmp38_);
#line 117 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp39_ = self->priv->_found_postal_address;
#line 117 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_vala_assert (_tmp39_ == TRUE, "this._found_postal_address == true");
#line 63 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (pa_fd_copy);
#line 63 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (pa_copy);
#line 63 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (pa);
#line 63 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	__vala_GValue_free0 (v);
#line 63 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (c1);
#line 462 "postal-address-details.c"
}


static void _postal_address_details_tests_test_postal_address_details_interface_async_data_free (gpointer _data) {
	PostalAddressDetailsTestsTestPostalAddressDetailsInterfaceAsyncData* _data_;
	_data_ = _data;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_slice_free (PostalAddressDetailsTestsTestPostalAddressDetailsInterfaceAsyncData, _data_);
#line 473 "postal-address-details.c"
}


static void _postal_address_details_tests_test_postal_address_details_interface_async (PostalAddressDetailsTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	PostalAddressDetailsTestsTestPostalAddressDetailsInterfaceAsyncData* _data_;
	PostalAddressDetailsTests* _tmp0_;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_data_ = g_slice_new0 (PostalAddressDetailsTestsTestPostalAddressDetailsInterfaceAsyncData);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _postal_address_details_tests_test_postal_address_details_interface_async);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _postal_address_details_tests_test_postal_address_details_interface_async_data_free);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_data_->self = _tmp0_;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_postal_address_details_tests_test_postal_address_details_interface_async_co (_data_);
#line 492 "postal-address-details.c"
}


static void _postal_address_details_tests_test_postal_address_details_interface_finish (PostalAddressDetailsTests* self, GAsyncResult* _res_) {
	PostalAddressDetailsTestsTestPostalAddressDetailsInterfaceAsyncData* _data_;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 500 "postal-address-details.c"
}


static void _postal_address_details_tests_test_postal_address_details_interface_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	PostalAddressDetailsTestsTestPostalAddressDetailsInterfaceAsyncData* _data_;
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_data_ = _user_data_;
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_data_->_source_object_ = source_object;
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_data_->_res_ = _res_;
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_postal_address_details_tests_test_postal_address_details_interface_async_co (_data_);
#line 514 "postal-address-details.c"
}


static void __postal_address_details_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_postal_address_details_tests_individuals_changed_cb (self, changes);
#line 521 "postal-address-details.c"
}


static gboolean _postal_address_details_tests_test_postal_address_details_interface_async_co (PostalAddressDetailsTestsTestPostalAddressDetailsInterfaceAsyncData* _data_) {
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	switch (_data_->_state_) {
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		case 0:
#line 530 "postal-address-details.c"
		goto _state_0;
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		case 1:
#line 534 "postal-address-details.c"
		goto _state_1;
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		case 2:
#line 538 "postal-address-details.c"
		goto _state_2;
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		case 3:
#line 542 "postal-address-details.c"
		goto _state_3;
		default:
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		g_assert_not_reached ();
#line 547 "postal-address-details.c"
	}
	_state_0:
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_data_->_tmp0_ = _data_->self->priv->_eds_backend;
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_data_->_state_ = 1;
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	eds_test_backend_commit_contacts_to_addressbook (_data_->_tmp0_, _postal_address_details_tests_test_postal_address_details_interface_async_ready, _data_);
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	return FALSE;
#line 558 "postal-address-details.c"
	_state_1:
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	eds_test_backend_commit_contacts_to_addressbook_finish (_data_->_tmp0_, _data_->_res_);
#line 125 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_data_->_tmp1_ = NULL;
#line 125 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_data_->_tmp1_ = folks_backend_store_dup ();
#line 125 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_data_->store = _data_->_tmp1_;
#line 126 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_data_->_state_ = 2;
#line 126 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	folks_backend_store_prepare (_data_->store, _postal_address_details_tests_test_postal_address_details_interface_async_ready, _data_);
#line 126 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	return FALSE;
#line 574 "postal-address-details.c"
	_state_2:
#line 126 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_data_->_tmp2_ = folks_individual_aggregator_new ();
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_data_->self->priv->_aggregator = _data_->_tmp2_;
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_signal_connect_object (_data_->_tmp3_, "individuals-changed-detailed", (GCallback) __postal_address_details_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed, _data_->self, 0);
#line 588 "postal-address-details.c"
	{
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		_data_->_tmp4_ = _data_->self->priv->_aggregator;
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		_data_->_state_ = 3;
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		folks_individual_aggregator_prepare (_data_->_tmp4_, _postal_address_details_tests_test_postal_address_details_interface_async_ready, _data_);
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		return FALSE;
#line 598 "postal-address-details.c"
		_state_3:
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp4_, _data_->_res_, &_data_->_inner_error_);
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		if (_data_->_inner_error_ != NULL) {
#line 604 "postal-address-details.c"
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		_data_->e = _data_->_inner_error_;
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		_data_->_inner_error_ = NULL;
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		_data_->_tmp5_ = _data_->e;
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		_data_->_tmp6_ = _data_->_tmp5_->message;
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		g_warning ("postal-address-details.vala:136: Error when calling prepare: %s\n", _data_->_tmp6_);
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		_g_error_free0 (_data_->e);
#line 623 "postal-address-details.c"
	}
	__finally0:
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	if (_data_->_inner_error_ != NULL) {
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		_g_object_unref0 (_data_->store);
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.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 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		g_clear_error (&_data_->_inner_error_);
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		return FALSE;
#line 636 "postal-address-details.c"
	}
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (_data_->store);
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	if (_data_->_state_ == 0) {
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 644 "postal-address-details.c"
	} else {
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 648 "postal-address-details.c"
	}
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_object_unref (_data_->_async_result);
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	return FALSE;
#line 654 "postal-address-details.c"
}


static void _postal_address_details_tests_individuals_changed_cb (PostalAddressDetailsTests* self, GeeMultiMap* changes) {
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
	GeeSet* _tmp31_;
	gint _tmp32_;
	gint _tmp33_;
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_return_if_fail (self != NULL);
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_return_if_fail (changes != NULL);
#line 144 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = changes;
#line 144 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 144 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	added = _tmp1_;
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp2_ = changes;
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	removed = _tmp3_;
#line 684 "postal-address-details.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		_tmp4_ = added;
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		_i_it = _tmp5_;
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		while (TRUE) {
#line 697 "postal-address-details.c"
			GeeIterator* _tmp6_;
			gboolean _tmp7_ = FALSE;
			GeeIterator* _tmp8_;
			gpointer _tmp9_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp10_;
			FolksIndividual* _tmp11_;
			const gchar* _tmp12_;
			const gchar* _tmp13_;
			const gchar* _tmp14_;
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			_tmp6_ = _i_it;
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			if (!_tmp7_) {
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
				break;
#line 716 "postal-address-details.c"
			}
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			_tmp8_ = _i_it;
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			i = (FolksIndividual*) _tmp9_;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			_tmp10_ = i;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			_vala_assert (_tmp10_ != NULL, "i != null");
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			_tmp11_ = i;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			_tmp12_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp11_);
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			_tmp13_ = _tmp12_;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			_tmp14_ = self->priv->_fullname;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			if (g_strcmp0 (_tmp13_, _tmp14_) == 0) {
#line 738 "postal-address-details.c"
				{
					FolksIndividual* _tmp15_;
					GeeSet* _tmp16_;
					GeeSet* _tmp17_;
					GeeIterator* _tmp18_ = NULL;
					GeeIterator* _pa_fd_it;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
					_tmp15_ = i;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
					_tmp16_ = folks_postal_address_details_get_postal_addresses ((FolksPostalAddressDetails*) _tmp15_);
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
					_tmp17_ = _tmp16_;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
					_tmp18_ = gee_iterable_iterator ((GeeIterable*) _tmp17_);
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
					_pa_fd_it = _tmp18_;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
					while (TRUE) {
#line 757 "postal-address-details.c"
						GeeIterator* _tmp19_;
						gboolean _tmp20_ = FALSE;
						GeeIterator* _tmp21_;
						gpointer _tmp22_ = NULL;
						FolksPostalAddressFieldDetails* pa_fd;
						FolksPostalAddressFieldDetails* _tmp23_;
						FolksPostalAddressFieldDetails* _tmp24_;
						const gchar* _tmp25_;
						const gchar* _tmp26_;
						FolksPostalAddressFieldDetails* _tmp27_;
						FolksPostalAddressFieldDetails* _tmp28_;
						gboolean _tmp29_ = FALSE;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
						_tmp19_ = _pa_fd_it;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
						_tmp20_ = gee_iterator_next (_tmp19_);
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
						if (!_tmp20_) {
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
							break;
#line 778 "postal-address-details.c"
						}
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
						_tmp21_ = _pa_fd_it;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
						_tmp22_ = gee_iterator_get (_tmp21_);
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
						pa_fd = (FolksPostalAddressFieldDetails*) _tmp22_;
#line 159 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
						_tmp23_ = self->priv->_postal_address;
#line 159 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
						_tmp24_ = pa_fd;
#line 159 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
						_tmp25_ = folks_abstract_field_details_get_id ((FolksAbstractFieldDetails*) _tmp24_);
#line 159 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
						_tmp26_ = _tmp25_;
#line 159 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
						folks_abstract_field_details_set_id ((FolksAbstractFieldDetails*) _tmp23_, _tmp26_);
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
						_tmp27_ = pa_fd;
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
						_tmp28_ = self->priv->_postal_address;
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
						_tmp29_ = folks_abstract_field_details_equal ((FolksAbstractFieldDetails*) _tmp27_, (FolksAbstractFieldDetails*) _tmp28_);
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
						if (_tmp29_) {
#line 804 "postal-address-details.c"
							GMainLoop* _tmp30_;
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
							self->priv->_found_postal_address = TRUE;
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
							_tmp30_ = self->priv->_main_loop;
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
							g_main_loop_quit (_tmp30_);
#line 812 "postal-address-details.c"
						}
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
						_g_object_unref0 (pa_fd);
#line 816 "postal-address-details.c"
					}
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
					_g_object_unref0 (_pa_fd_it);
#line 820 "postal-address-details.c"
				}
			}
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			_g_object_unref0 (i);
#line 825 "postal-address-details.c"
		}
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		_g_object_unref0 (_i_it);
#line 829 "postal-address-details.c"
	}
#line 170 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp31_ = removed;
#line 170 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp32_ = gee_collection_get_size ((GeeCollection*) _tmp31_);
#line 170 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp33_ = _tmp32_;
#line 170 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_vala_assert (_tmp33_ == 1, "removed.size == 1");
#line 839 "postal-address-details.c"
	{
		GeeSet* _tmp34_;
		GeeIterator* _tmp35_ = NULL;
		GeeIterator* _i_it;
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		_tmp34_ = removed;
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		_tmp35_ = gee_iterable_iterator ((GeeIterable*) _tmp34_);
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		_i_it = _tmp35_;
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		while (TRUE) {
#line 852 "postal-address-details.c"
			GeeIterator* _tmp36_;
			gboolean _tmp37_ = FALSE;
			GeeIterator* _tmp38_;
			gpointer _tmp39_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp40_;
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			_tmp36_ = _i_it;
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			_tmp37_ = gee_iterator_next (_tmp36_);
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			if (!_tmp37_) {
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
				break;
#line 867 "postal-address-details.c"
			}
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			_tmp38_ = _i_it;
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			_tmp39_ = gee_iterator_get (_tmp38_);
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			i = (FolksIndividual*) _tmp39_;
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			_tmp40_ = i;
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			_vala_assert (_tmp40_ == NULL, "i == null");
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
			_g_object_unref0 (i);
#line 881 "postal-address-details.c"
		}
#line 172 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
		_g_object_unref0 (_i_it);
#line 885 "postal-address-details.c"
	}
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (removed);
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (added);
#line 891 "postal-address-details.c"
}


static void postal_address_details_tests_class_init (PostalAddressDetailsTestsClass * klass) {
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	postal_address_details_tests_parent_class = g_type_class_peek_parent (klass);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_type_class_add_private (klass, sizeof (PostalAddressDetailsTestsPrivate));
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = postal_address_details_tests_real_set_up;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = postal_address_details_tests_real_tear_down;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	G_OBJECT_CLASS (klass)->finalize = postal_address_details_tests_finalize;
#line 906 "postal-address-details.c"
}


static void postal_address_details_tests_instance_init (PostalAddressDetailsTests * self) {
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	self->priv = POSTAL_ADDRESS_DETAILS_TESTS_GET_PRIVATE (self);
#line 29 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = g_strdup ("12345");
#line 29 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	self->priv->_pobox = _tmp0_;
#line 30 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp1_ = g_strdup ("example locality");
#line 30 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	self->priv->_locality = _tmp1_;
#line 31 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp2_ = g_strdup ("example postalcode");
#line 31 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	self->priv->_postalcode = _tmp2_;
#line 32 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp3_ = g_strdup ("example street");
#line 32 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	self->priv->_street = _tmp3_;
#line 33 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp4_ = g_strdup ("example extended address");
#line 33 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	self->priv->_extended = _tmp4_;
#line 34 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp5_ = g_strdup ("example country");
#line 34 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	self->priv->_country = _tmp5_;
#line 35 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp6_ = g_strdup ("example region");
#line 35 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	self->priv->_region = _tmp6_;
#line 948 "postal-address-details.c"
}


static void postal_address_details_tests_finalize (GObject* obj) {
	PostalAddressDetailsTests * self;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_POSTAL_ADDRESS_DETAILS_TESTS, PostalAddressDetailsTests);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 27 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 28 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 29 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_free0 (self->priv->_pobox);
#line 30 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_free0 (self->priv->_locality);
#line 31 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_free0 (self->priv->_postalcode);
#line 32 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_free0 (self->priv->_street);
#line 33 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_free0 (self->priv->_extended);
#line 34 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_free0 (self->priv->_country);
#line 35 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_free0 (self->priv->_region);
#line 36 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (self->priv->_postal_address);
#line 38 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_free0 (self->priv->_fullname);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	G_OBJECT_CLASS (postal_address_details_tests_parent_class)->finalize (obj);
#line 982 "postal-address-details.c"
}


GType postal_address_details_tests_get_type (void) {
	static volatile gsize postal_address_details_tests_type_id__volatile = 0;
	if (g_once_init_enter (&postal_address_details_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (PostalAddressDetailsTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) postal_address_details_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PostalAddressDetailsTests), 0, (GInstanceInitFunc) postal_address_details_tests_instance_init, NULL };
		GType postal_address_details_tests_type_id;
		postal_address_details_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "PostalAddressDetailsTests", &g_define_type_info, 0);
		g_once_init_leave (&postal_address_details_tests_type_id__volatile, postal_address_details_tests_type_id);
	}
	return postal_address_details_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	PostalAddressDetailsTests* _tmp1_;
	PostalAddressDetailsTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 181 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_test_init (&args_length1, &args, NULL);
#line 183 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = g_test_get_root ();
#line 183 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	root = _tmp0_;
#line 184 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp1_ = postal_address_details_tests_new ();
#line 184 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp2_ = _tmp1_;
#line 184 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 184 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 184 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (_tmp2_);
#line 186 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_test_run ();
#line 188 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	result = 0;
#line 188 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	return result;
#line 1027 "postal-address-details.c"
}


int main (int argc, char ** argv) {
#line 179 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	g_type_init ();
#line 179 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/postal-address-details.vala"
	return _vala_main (argv, argc);
#line 1036 "postal-address-details.c"
}



