/* postal-address-details.c generated by valac 0.14.0.3-1a311, 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;

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 __lambda0_ (PostalAddressDetailsTests* self);
static gboolean ___lambda0__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 46 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	postal_address_details_tests_test_postal_address_details_interface (self);
#line 130 "postal-address-details.c"
}


PostalAddressDetailsTests* postal_address_details_tests_construct (GType object_type) {
	PostalAddressDetailsTests * self = NULL;
	EdsTestBackend* _tmp0_;
#line 42 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	self = (PostalAddressDetailsTests*) folks_test_case_construct (object_type, "PostalAddressDetailsTests");
#line 44 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = eds_test_backend_new ();
#line 44 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 44 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	self->priv->_eds_backend = _tmp0_;
#line 46 "/home/treitter/collabora/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/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	return self;
#line 149 "postal-address-details.c"
}


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


static void postal_address_details_tests_real_set_up (FolksTestCase* base) {
	PostalAddressDetailsTests * self;
	EdsTestBackend* _tmp0_;
#line 50 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	self = (PostalAddressDetailsTests*) base;
#line 52 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = self->priv->_eds_backend;
#line 52 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	eds_test_backend_set_up (_tmp0_, FALSE);
#line 169 "postal-address-details.c"
}


static void postal_address_details_tests_real_tear_down (FolksTestCase* base) {
	PostalAddressDetailsTests * self;
	EdsTestBackend* _tmp0_;
#line 55 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	self = (PostalAddressDetailsTests*) base;
#line 57 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = self->priv->_eds_backend;
#line 57 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	eds_test_backend_tear_down (_tmp0_);
#line 182 "postal-address-details.c"
}


static GValue* _g_value_dup (GValue* self) {
#line 63 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	return g_boxed_copy (G_TYPE_VALUE, self);
#line 189 "postal-address-details.c"
}


static void _vala_GValue_free (GValue* self) {
#line 63 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_value_unset (self);
#line 63 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_free (self);
#line 198 "postal-address-details.c"
}


static gpointer __g_value_dup0 (gpointer self) {
#line 80 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	return self ? _g_value_dup (self) : NULL;
#line 205 "postal-address-details.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 99 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	return self ? g_object_ref (self) : NULL;
#line 212 "postal-address-details.c"
}


static gboolean __lambda0_ (PostalAddressDetailsTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 107 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = self->priv->_main_loop;
#line 107 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_main_loop_quit (_tmp0_);
#line 108 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_assert_not_reached ();
#line 105 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	return result;
#line 227 "postal-address-details.c"
}


static gboolean ___lambda0__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda0_ (self);
#line 105 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	return result;
#line 236 "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_;
	FolksPostalAddressFieldDetails* _tmp13_;
	const gchar* _tmp14_;
	GValue _tmp15_ = {0};
	GValue _tmp16_;
	GValue* _tmp17_;
	GValue* _tmp18_;
	const gchar* _tmp19_;
	GValue* _tmp20_;
	GValue* _tmp21_;
	const gchar* _tmp22_;
	const gchar* _tmp23_;
	const gchar* _tmp24_;
	const gchar* _tmp25_;
	const gchar* _tmp26_;
	const gchar* _tmp27_;
	const gchar* _tmp28_;
	FolksPostalAddress* _tmp29_;
	FolksPostalAddress* pa_copy;
	FolksPostalAddressFieldDetails* _tmp30_;
	FolksPostalAddressFieldDetails* pa_fd_copy;
	const gchar* _tmp31_;
	GValue _tmp32_ = {0};
	GValue _tmp33_;
	GValue* _tmp34_;
	GValue* _tmp35_;
	const gchar* _tmp36_;
	GValue* _tmp37_;
	GValue* _tmp38_;
	EdsTestBackend* _tmp39_;
	GeeHashMap* _tmp40_;
	GMainLoop* _tmp41_;
	gboolean _tmp42_;
#line 60 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_return_if_fail (self != NULL);
#line 62 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 62 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 62 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	self->priv->_main_loop = _tmp0_;
#line 63 "/home/treitter/collabora/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 63 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	c1 = _tmp1_;
#line 64 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp2_ = g_strdup ("persona #1");
#line 64 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_free0 (self->priv->_fullname);
#line 64 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	self->priv->_fullname = _tmp2_;
#line 67 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp3_ = self->priv->_pobox;
#line 67 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp4_ = self->priv->_extended;
#line 67 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp5_ = self->priv->_street;
#line 67 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp6_ = self->priv->_locality;
#line 67 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp7_ = self->priv->_region;
#line 67 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp8_ = self->priv->_postalcode;
#line 67 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp9_ = self->priv->_country;
#line 67 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp10_ = folks_postal_address_new (_tmp3_, _tmp4_, _tmp5_, _tmp6_, _tmp7_, _tmp8_, _tmp9_, NULL, "eds_id");
#line 67 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	pa = _tmp10_;
#line 76 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp11_ = folks_postal_address_field_details_new (pa, NULL);
#line 76 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (self->priv->_postal_address);
#line 76 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	self->priv->_postal_address = _tmp11_;
#line 77 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp12_ = self->priv->_postal_address;
#line 77 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp13_ = self->priv->_postal_address;
#line 77 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp14_ = EDSF_PERSONA_address_fields[0];
#line 77 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	folks_abstract_field_details_add_parameter ((FolksAbstractFieldDetails*) _tmp12_, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE, _tmp14_);
#line 80 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_value_init (&_tmp15_, G_TYPE_STRING);
#line 80 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp16_ = _tmp15_;
#line 80 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp17_ = __g_value_dup0 (&_tmp16_);
#line 80 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	__vala_GValue_free0 (v);
#line 80 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	v = _tmp17_;
#line 80 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	G_IS_VALUE (&_tmp16_) ? (g_value_unset (&_tmp16_), NULL) : NULL;
#line 81 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp18_ = v;
#line 81 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp19_ = self->priv->_fullname;
#line 81 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_value_set_string (_tmp18_, _tmp19_);
#line 82 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp20_ = v;
#line 82 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	v = NULL;
#line 82 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp21_ = _tmp20_;
#line 82 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	gee_abstract_map_set ((GeeAbstractMap*) c1, "full_name", _tmp21_);
#line 82 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	__vala_GValue_free0 (_tmp21_);
#line 83 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp22_ = self->priv->_pobox;
#line 83 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp23_ = self->priv->_extended;
#line 83 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp24_ = self->priv->_street;
#line 83 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp25_ = self->priv->_locality;
#line 83 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp26_ = self->priv->_region;
#line 83 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp27_ = self->priv->_postalcode;
#line 83 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp28_ = self->priv->_country;
#line 83 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp29_ = folks_postal_address_new (_tmp22_, _tmp23_, _tmp24_, _tmp25_, _tmp26_, _tmp27_, _tmp28_, NULL, "eds_id");
#line 83 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	pa_copy = _tmp29_;
#line 92 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp30_ = folks_postal_address_field_details_new (pa_copy, NULL);
#line 92 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	pa_fd_copy = _tmp30_;
#line 93 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp31_ = EDSF_PERSONA_address_fields[0];
#line 93 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	folks_abstract_field_details_add_parameter ((FolksAbstractFieldDetails*) pa_fd_copy, FOLKS_ABSTRACT_FIELD_DETAILS_PARAM_TYPE, _tmp31_);
#line 95 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_value_init (&_tmp32_, FOLKS_TYPE_POSTAL_ADDRESS_FIELD_DETAILS);
#line 95 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp33_ = _tmp32_;
#line 95 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp34_ = __g_value_dup0 (&_tmp33_);
#line 95 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	__vala_GValue_free0 (v);
#line 95 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	v = _tmp34_;
#line 95 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	G_IS_VALUE (&_tmp33_) ? (g_value_unset (&_tmp33_), NULL) : NULL;
#line 96 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp35_ = v;
#line 96 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_value_set_object (_tmp35_, (GObject*) pa_fd_copy);
#line 97 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp36_ = EDSF_PERSONA_address_fields[0];
#line 97 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp37_ = v;
#line 97 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	v = NULL;
#line 97 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp38_ = _tmp37_;
#line 97 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	gee_abstract_map_set ((GeeAbstractMap*) c1, _tmp36_, _tmp38_);
#line 97 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	__vala_GValue_free0 (_tmp38_);
#line 99 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp39_ = self->priv->_eds_backend;
#line 99 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp40_ = _g_object_ref0 (c1);
#line 99 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	eds_test_backend_add_contact (_tmp39_, _tmp40_);
#line 101 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	self->priv->_found_postal_address = FALSE;
#line 103 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_postal_address_details_tests_test_postal_address_details_interface_async (self, NULL, NULL);
#line 105 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda0__gsource_func, g_object_ref (self), g_object_unref);
#line 111 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp41_ = self->priv->_main_loop;
#line 111 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_main_loop_run (_tmp41_);
#line 113 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp42_ = self->priv->_found_postal_address;
#line 113 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_assert (_tmp42_ == TRUE);
#line 60 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (pa_fd_copy);
#line 60 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (pa_copy);
#line 60 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (pa);
#line 60 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	__vala_GValue_free0 (v);
#line 60 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (c1);
#line 451 "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/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_slice_free (PostalAddressDetailsTestsTestPostalAddressDetailsInterfaceAsyncData, _data_);
#line 462 "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/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_data_ = g_slice_new0 (PostalAddressDetailsTestsTestPostalAddressDetailsInterfaceAsyncData);
#line 24 "/home/treitter/collabora/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/treitter/collabora/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/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_data_->self = _tmp0_;
#line 24 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_postal_address_details_tests_test_postal_address_details_interface_async_co (_data_);
#line 481 "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/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 489 "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 119 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_data_ = _user_data_;
#line 119 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_data_->_source_object_ = source_object;
#line 119 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_data_->_res_ = _res_;
#line 119 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_postal_address_details_tests_test_postal_address_details_interface_async_co (_data_);
#line 503 "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 124 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_postal_address_details_tests_individuals_changed_cb (self, changes);
#line 510 "postal-address-details.c"
}


static gboolean _postal_address_details_tests_test_postal_address_details_interface_async_co (PostalAddressDetailsTestsTestPostalAddressDetailsInterfaceAsyncData* _data_) {
#line 116 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	switch (_data_->_state_) {
#line 116 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		case 0:
#line 519 "postal-address-details.c"
		goto _state_0;
#line 116 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		case 1:
#line 523 "postal-address-details.c"
		goto _state_1;
#line 116 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		case 2:
#line 527 "postal-address-details.c"
		goto _state_2;
#line 116 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		case 3:
#line 531 "postal-address-details.c"
		goto _state_3;
		default:
#line 116 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		g_assert_not_reached ();
#line 536 "postal-address-details.c"
	}
	_state_0:
#line 119 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_data_->_tmp0_ = _data_->self->priv->_eds_backend;
#line 119 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_data_->_state_ = 1;
#line 119 "/home/treitter/collabora/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 119 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	return FALSE;
#line 547 "postal-address-details.c"
	_state_1:
#line 119 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	eds_test_backend_commit_contacts_to_addressbook_finish (_data_->_tmp0_, _data_->_res_);
#line 121 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_data_->_tmp1_ = NULL;
#line 121 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_data_->_tmp1_ = folks_backend_store_dup ();
#line 121 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_data_->store = _data_->_tmp1_;
#line 122 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_data_->_state_ = 2;
#line 122 "/home/treitter/collabora/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 122 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	return FALSE;
#line 563 "postal-address-details.c"
	_state_2:
#line 122 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 123 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_data_->_tmp2_ = folks_individual_aggregator_new ();
#line 123 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 123 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_data_->self->priv->_aggregator = _data_->_tmp2_;
#line 124 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 124 "/home/treitter/collabora/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 577 "postal-address-details.c"
	{
#line 128 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		_data_->_tmp4_ = _data_->self->priv->_aggregator;
#line 128 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		_data_->_state_ = 3;
#line 128 "/home/treitter/collabora/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 128 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		return FALSE;
#line 587 "postal-address-details.c"
		_state_3:
#line 128 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp4_, _data_->_res_, &_data_->_inner_error_);
#line 128 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		if (_data_->_inner_error_ != NULL) {
#line 593 "postal-address-details.c"
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 126 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		_data_->e = _data_->_inner_error_;
#line 126 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		_data_->_inner_error_ = NULL;
#line 132 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		_data_->_tmp5_ = _data_->e;
#line 132 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		_data_->_tmp6_ = _data_->_tmp5_->message;
#line 132 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		g_warning ("postal-address-details.vala:132: Error when calling prepare: %s\n", _data_->_tmp6_);
#line 126 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		_g_error_free0 (_data_->e);
#line 612 "postal-address-details.c"
	}
	__finally0:
#line 126 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	if (_data_->_inner_error_ != NULL) {
#line 126 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		_g_object_unref0 (_data_->store);
#line 126 "/home/treitter/collabora/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 126 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		g_clear_error (&_data_->_inner_error_);
#line 126 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		return FALSE;
#line 625 "postal-address-details.c"
	}
#line 116 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (_data_->store);
#line 116 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	if (_data_->_state_ == 0) {
#line 116 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 633 "postal-address-details.c"
	} else {
#line 116 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 637 "postal-address-details.c"
	}
#line 116 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_object_unref (_data_->_async_result);
#line 116 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	return FALSE;
#line 643 "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* _tmp35_;
	gint _tmp36_;
	gint _tmp37_;
#line 137 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_return_if_fail (self != NULL);
#line 137 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_return_if_fail (changes != NULL);
#line 140 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = changes;
#line 140 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 140 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	added = _tmp1_;
#line 141 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp2_ = changes;
#line 141 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 141 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	removed = _tmp3_;
#line 673 "postal-address-details.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 143 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		_tmp4_ = added;
#line 143 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 143 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		_i_it = _tmp5_;
#line 143 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		while (TRUE) {
#line 686 "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 143 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			_tmp6_ = _i_it;
#line 143 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 143 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			if (!_tmp7_) {
#line 143 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
				break;
#line 705 "postal-address-details.c"
			}
#line 143 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			_tmp8_ = _i_it;
#line 143 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 143 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			i = (FolksIndividual*) _tmp9_;
#line 145 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			_tmp10_ = i;
#line 145 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			g_assert (_tmp10_ != NULL);
#line 147 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			_tmp11_ = i;
#line 147 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			_tmp12_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp11_);
#line 147 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			_tmp13_ = _tmp12_;
#line 147 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			_tmp14_ = self->priv->_fullname;
#line 147 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			if (g_strcmp0 (_tmp13_, _tmp14_) == 0) {
#line 727 "postal-address-details.c"
				{
					FolksIndividual* _tmp15_;
					GeeSet* _tmp16_;
					GeeSet* _tmp17_;
					GeeIterator* _tmp18_ = NULL;
					GeeIterator* _pa_fd_it;
#line 149 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
					_tmp15_ = i;
#line 149 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
					_tmp16_ = folks_postal_address_details_get_postal_addresses ((FolksPostalAddressDetails*) _tmp15_);
#line 149 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
					_tmp17_ = _tmp16_;
#line 149 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
					_tmp18_ = gee_iterable_iterator ((GeeIterable*) _tmp17_);
#line 149 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
					_pa_fd_it = _tmp18_;
#line 149 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
					while (TRUE) {
#line 746 "postal-address-details.c"
						GeeIterator* _tmp19_;
						gboolean _tmp20_ = FALSE;
						GeeIterator* _tmp21_;
						gpointer _tmp22_ = NULL;
						FolksPostalAddressFieldDetails* pa_fd;
						FolksPostalAddressFieldDetails* _tmp23_;
						gconstpointer _tmp24_;
						FolksPostalAddress* _tmp25_;
						FolksPostalAddressFieldDetails* _tmp26_;
						gconstpointer _tmp27_;
						FolksPostalAddress* _tmp28_;
						const gchar* _tmp29_;
						const gchar* _tmp30_;
						FolksPostalAddressFieldDetails* _tmp31_;
						FolksPostalAddressFieldDetails* _tmp32_;
						gboolean _tmp33_ = FALSE;
#line 149 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						_tmp19_ = _pa_fd_it;
#line 149 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						_tmp20_ = gee_iterator_next (_tmp19_);
#line 149 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						if (!_tmp20_) {
#line 149 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
							break;
#line 771 "postal-address-details.c"
						}
#line 149 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						_tmp21_ = _pa_fd_it;
#line 149 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						_tmp22_ = gee_iterator_get (_tmp21_);
#line 149 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						pa_fd = (FolksPostalAddressFieldDetails*) _tmp22_;
#line 155 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						_tmp23_ = self->priv->_postal_address;
#line 155 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						_tmp24_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp23_);
#line 155 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						_tmp25_ = _tmp24_;
#line 155 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						_tmp26_ = pa_fd;
#line 155 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						_tmp27_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp26_);
#line 155 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						_tmp28_ = _tmp27_;
#line 155 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						_tmp29_ = folks_postal_address_get_uid ((FolksPostalAddress*) _tmp28_);
#line 155 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						_tmp30_ = _tmp29_;
#line 155 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						folks_postal_address_set_uid ((FolksPostalAddress*) _tmp25_, _tmp30_);
#line 157 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						_tmp31_ = pa_fd;
#line 157 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						_tmp32_ = self->priv->_postal_address;
#line 157 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						_tmp33_ = folks_abstract_field_details_equal ((FolksAbstractFieldDetails*) _tmp31_, (FolksAbstractFieldDetails*) _tmp32_);
#line 157 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						if (_tmp33_) {
#line 805 "postal-address-details.c"
							GMainLoop* _tmp34_;
#line 159 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
							self->priv->_found_postal_address = TRUE;
#line 160 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
							_tmp34_ = self->priv->_main_loop;
#line 160 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
							g_main_loop_quit (_tmp34_);
#line 813 "postal-address-details.c"
						}
#line 149 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
						_g_object_unref0 (pa_fd);
#line 817 "postal-address-details.c"
					}
#line 149 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
					_g_object_unref0 (_pa_fd_it);
#line 821 "postal-address-details.c"
				}
			}
#line 143 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			_g_object_unref0 (i);
#line 826 "postal-address-details.c"
		}
#line 143 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		_g_object_unref0 (_i_it);
#line 830 "postal-address-details.c"
	}
#line 166 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp35_ = removed;
#line 166 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp36_ = gee_collection_get_size ((GeeCollection*) _tmp35_);
#line 166 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp37_ = _tmp36_;
#line 166 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_assert (_tmp37_ == 1);
#line 840 "postal-address-details.c"
	{
		GeeSet* _tmp38_;
		GeeIterator* _tmp39_ = NULL;
		GeeIterator* _i_it;
#line 168 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		_tmp38_ = removed;
#line 168 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		_tmp39_ = gee_iterable_iterator ((GeeIterable*) _tmp38_);
#line 168 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		_i_it = _tmp39_;
#line 168 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		while (TRUE) {
#line 853 "postal-address-details.c"
			GeeIterator* _tmp40_;
			gboolean _tmp41_ = FALSE;
			GeeIterator* _tmp42_;
			gpointer _tmp43_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp44_;
#line 168 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			_tmp40_ = _i_it;
#line 168 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			_tmp41_ = gee_iterator_next (_tmp40_);
#line 168 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			if (!_tmp41_) {
#line 168 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
				break;
#line 868 "postal-address-details.c"
			}
#line 168 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			_tmp42_ = _i_it;
#line 168 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			_tmp43_ = gee_iterator_get (_tmp42_);
#line 168 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			i = (FolksIndividual*) _tmp43_;
#line 170 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			_tmp44_ = i;
#line 170 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			g_assert (_tmp44_ == NULL);
#line 168 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
			_g_object_unref0 (i);
#line 882 "postal-address-details.c"
		}
#line 168 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
		_g_object_unref0 (_i_it);
#line 886 "postal-address-details.c"
	}
#line 137 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (removed);
#line 137 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (added);
#line 892 "postal-address-details.c"
}


static void postal_address_details_tests_class_init (PostalAddressDetailsTestsClass * klass) {
#line 24 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	postal_address_details_tests_parent_class = g_type_class_peek_parent (klass);
#line 24 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_type_class_add_private (klass, sizeof (PostalAddressDetailsTestsPrivate));
#line 24 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = postal_address_details_tests_real_set_up;
#line 24 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = postal_address_details_tests_real_tear_down;
#line 24 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	G_OBJECT_CLASS (klass)->finalize = postal_address_details_tests_finalize;
#line 907 "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/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	self->priv = POSTAL_ADDRESS_DETAILS_TESTS_GET_PRIVATE (self);
#line 29 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = g_strdup ("12345");
#line 29 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	self->priv->_pobox = _tmp0_;
#line 30 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp1_ = g_strdup ("example locality");
#line 30 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	self->priv->_locality = _tmp1_;
#line 31 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp2_ = g_strdup ("example postalcode");
#line 31 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	self->priv->_postalcode = _tmp2_;
#line 32 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp3_ = g_strdup ("example street");
#line 32 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	self->priv->_street = _tmp3_;
#line 33 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp4_ = g_strdup ("example extended address");
#line 33 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	self->priv->_extended = _tmp4_;
#line 34 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp5_ = g_strdup ("example country");
#line 34 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	self->priv->_country = _tmp5_;
#line 35 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp6_ = g_strdup ("example region");
#line 35 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	self->priv->_region = _tmp6_;
#line 949 "postal-address-details.c"
}


static void postal_address_details_tests_finalize (GObject* obj) {
	PostalAddressDetailsTests * self;
#line 24 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	self = POSTAL_ADDRESS_DETAILS_TESTS (obj);
#line 26 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 27 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 28 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 29 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_free0 (self->priv->_pobox);
#line 30 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_free0 (self->priv->_locality);
#line 31 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_free0 (self->priv->_postalcode);
#line 32 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_free0 (self->priv->_street);
#line 33 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_free0 (self->priv->_extended);
#line 34 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_free0 (self->priv->_country);
#line 35 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_free0 (self->priv->_region);
#line 36 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (self->priv->_postal_address);
#line 38 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_free0 (self->priv->_fullname);
#line 24 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	G_OBJECT_CLASS (postal_address_details_tests_parent_class)->finalize (obj);
#line 983 "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 177 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_test_init (&args_length1, &args, NULL);
#line 179 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = g_test_get_root ();
#line 179 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	root = _tmp0_;
#line 180 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp1_ = postal_address_details_tests_new ();
#line 180 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp2_ = _tmp1_;
#line 180 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 180 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 180 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (_tmp2_);
#line 182 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_test_run ();
#line 184 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	result = 0;
#line 184 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	return result;
#line 1028 "postal-address-details.c"
}


int main (int argc, char ** argv) {
#line 175 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	g_type_init ();
#line 175 "/home/treitter/collabora/folks/tests/eds/postal-address-details.vala"
	return _vala_main (argv, argc);
#line 1037 "postal-address-details.c"
}



