/* postal-address-details.c generated by valac 0.13.4, 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 "/debian/rgs/devel/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 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	self = (PostalAddressDetailsTests*) folks_test_case_construct (object_type, "PostalAddressDetailsTests");
#line 44 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = eds_test_backend_new ();
#line 44 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 44 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	self->priv->_eds_backend = _tmp0_;
#line 46 "/debian/rgs/devel/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 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	return self;
#line 149 "postal-address-details.c"
}


PostalAddressDetailsTests* postal_address_details_tests_new (void) {
#line 40 "/debian/rgs/devel/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 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	self = (PostalAddressDetailsTests*) base;
#line 52 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = self->priv->_eds_backend;
#line 52 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	eds_test_backend_set_up (_tmp0_);
#line 169 "postal-address-details.c"
}


static void postal_address_details_tests_real_tear_down (FolksTestCase* base) {
	PostalAddressDetailsTests * self;
	EdsTestBackend* _tmp0_;
#line 55 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	self = (PostalAddressDetailsTests*) base;
#line 57 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = self->priv->_eds_backend;
#line 57 "/debian/rgs/devel/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 "/debian/rgs/devel/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 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	g_value_unset (self);
#line 63 "/debian/rgs/devel/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 "/debian/rgs/devel/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 98 "/debian/rgs/devel/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 106 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = self->priv->_main_loop;
#line 106 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	g_main_loop_quit (_tmp0_);
#line 107 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	g_assert_not_reached ();
#line 104 "/debian/rgs/devel/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 104 "/debian/rgs/devel/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_;
	const gchar* _tmp13_;
	GValue _tmp14_ = {0};
	GValue _tmp15_;
	GValue* _tmp16_;
	GValue* _tmp17_;
	const gchar* _tmp18_;
	GValue* _tmp19_;
	GValue* _tmp20_;
	const gchar* _tmp21_;
	const gchar* _tmp22_;
	const gchar* _tmp23_;
	const gchar* _tmp24_;
	const gchar* _tmp25_;
	const gchar* _tmp26_;
	const gchar* _tmp27_;
	FolksPostalAddress* _tmp28_;
	FolksPostalAddress* pa_copy;
	FolksPostalAddressFieldDetails* _tmp29_;
	FolksPostalAddressFieldDetails* pa_fd_copy;
	const gchar* _tmp30_;
	GValue _tmp31_ = {0};
	GValue _tmp32_;
	GValue* _tmp33_;
	GValue* _tmp34_;
	const gchar* _tmp35_;
	GValue* _tmp36_;
	GValue* _tmp37_;
	EdsTestBackend* _tmp38_;
	GeeHashMap* _tmp39_;
	GMainLoop* _tmp40_;
	gboolean _tmp41_;
#line 60 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	g_return_if_fail (self != NULL);
#line 62 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 62 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 62 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	self->priv->_main_loop = _tmp0_;
#line 63 "/debian/rgs/devel/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 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	c1 = _tmp1_;
#line 64 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp2_ = g_strdup ("persona #1");
#line 64 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_g_free0 (self->priv->_fullname);
#line 64 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	self->priv->_fullname = _tmp2_;
#line 67 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp3_ = self->priv->_pobox;
#line 67 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp4_ = self->priv->_extended;
#line 67 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp5_ = self->priv->_street;
#line 67 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp6_ = self->priv->_locality;
#line 67 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp7_ = self->priv->_region;
#line 67 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp8_ = self->priv->_postalcode;
#line 67 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp9_ = self->priv->_country;
#line 67 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp10_ = folks_postal_address_new (_tmp3_, _tmp4_, _tmp5_, _tmp6_, _tmp7_, _tmp8_, _tmp9_, NULL, "eds_id");
#line 67 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	pa = _tmp10_;
#line 76 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp11_ = folks_postal_address_field_details_new (pa, NULL);
#line 76 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (self->priv->_postal_address);
#line 76 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	self->priv->_postal_address = _tmp11_;
#line 77 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp12_ = self->priv->_postal_address;
#line 77 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp13_ = EDSF_PERSONA_address_fields[0];
#line 77 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	folks_abstract_field_details_add_parameter ((FolksAbstractFieldDetails*) _tmp12_, "type", _tmp13_);
#line 80 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	g_value_init (&_tmp14_, G_TYPE_STRING);
#line 80 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp15_ = _tmp14_;
#line 80 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp16_ = __g_value_dup0 (&_tmp15_);
#line 80 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	__vala_GValue_free0 (v);
#line 80 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	v = _tmp16_;
#line 80 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	G_IS_VALUE (&_tmp15_) ? (g_value_unset (&_tmp15_), NULL) : NULL;
#line 81 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp17_ = v;
#line 81 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp18_ = self->priv->_fullname;
#line 81 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	g_value_set_string (_tmp17_, _tmp18_);
#line 82 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp19_ = v;
#line 82 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	v = NULL;
#line 82 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp20_ = _tmp19_;
#line 82 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	gee_abstract_map_set ((GeeAbstractMap*) c1, "full_name", _tmp20_);
#line 82 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	__vala_GValue_free0 (_tmp20_);
#line 83 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp21_ = self->priv->_pobox;
#line 83 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp22_ = self->priv->_extended;
#line 83 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp23_ = self->priv->_street;
#line 83 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp24_ = self->priv->_locality;
#line 83 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp25_ = self->priv->_region;
#line 83 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp26_ = self->priv->_postalcode;
#line 83 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp27_ = self->priv->_country;
#line 83 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp28_ = folks_postal_address_new (_tmp21_, _tmp22_, _tmp23_, _tmp24_, _tmp25_, _tmp26_, _tmp27_, NULL, "eds_id");
#line 83 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	pa_copy = _tmp28_;
#line 92 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp29_ = folks_postal_address_field_details_new (pa_copy, NULL);
#line 92 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	pa_fd_copy = _tmp29_;
#line 93 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp30_ = EDSF_PERSONA_address_fields[0];
#line 93 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	folks_abstract_field_details_add_parameter ((FolksAbstractFieldDetails*) pa_fd_copy, "type", _tmp30_);
#line 94 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	g_value_init (&_tmp31_, FOLKS_TYPE_POSTAL_ADDRESS_FIELD_DETAILS);
#line 94 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp32_ = _tmp31_;
#line 94 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp33_ = __g_value_dup0 (&_tmp32_);
#line 94 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	__vala_GValue_free0 (v);
#line 94 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	v = _tmp33_;
#line 94 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	G_IS_VALUE (&_tmp32_) ? (g_value_unset (&_tmp32_), NULL) : NULL;
#line 95 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp34_ = v;
#line 95 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	g_value_set_object (_tmp34_, (GObject*) pa_fd_copy);
#line 96 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp35_ = EDSF_PERSONA_address_fields[0];
#line 96 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp36_ = v;
#line 96 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	v = NULL;
#line 96 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp37_ = _tmp36_;
#line 96 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	gee_abstract_map_set ((GeeAbstractMap*) c1, _tmp35_, _tmp37_);
#line 96 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	__vala_GValue_free0 (_tmp37_);
#line 98 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp38_ = self->priv->_eds_backend;
#line 98 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp39_ = _g_object_ref0 (c1);
#line 98 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	eds_test_backend_add_contact (_tmp38_, _tmp39_);
#line 100 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	self->priv->_found_postal_address = FALSE;
#line 102 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_postal_address_details_tests_test_postal_address_details_interface_async (self, NULL, NULL);
#line 104 "/debian/rgs/devel/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 110 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp40_ = self->priv->_main_loop;
#line 110 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	g_main_loop_run (_tmp40_);
#line 112 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp41_ = self->priv->_found_postal_address;
#line 112 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	g_assert (_tmp41_ == TRUE);
#line 60 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (pa_fd_copy);
#line 60 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (pa_copy);
#line 60 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (pa);
#line 60 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	__vala_GValue_free0 (v);
#line 60 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (c1);
#line 448 "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 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	g_slice_free (PostalAddressDetailsTestsTestPostalAddressDetailsInterfaceAsyncData, _data_);
#line 459 "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 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_data_ = g_slice_new0 (PostalAddressDetailsTestsTestPostalAddressDetailsInterfaceAsyncData);
#line 24 "/debian/rgs/devel/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 "/debian/rgs/devel/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 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_data_->self = _tmp0_;
#line 24 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_postal_address_details_tests_test_postal_address_details_interface_async_co (_data_);
#line 478 "postal-address-details.c"
}


static void _postal_address_details_tests_test_postal_address_details_interface_finish (PostalAddressDetailsTests* self, GAsyncResult* _res_) {
	PostalAddressDetailsTestsTestPostalAddressDetailsInterfaceAsyncData* _data_;
#line 24 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 486 "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 118 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_data_ = _user_data_;
#line 118 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_data_->_source_object_ = source_object;
#line 118 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_data_->_res_ = _res_;
#line 118 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_postal_address_details_tests_test_postal_address_details_interface_async_co (_data_);
#line 500 "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 123 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_postal_address_details_tests_individuals_changed_cb (self, changes);
#line 507 "postal-address-details.c"
}


static gboolean _postal_address_details_tests_test_postal_address_details_interface_async_co (PostalAddressDetailsTestsTestPostalAddressDetailsInterfaceAsyncData* _data_) {
#line 115 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	switch (_data_->_state_) {
#line 115 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		case 0:
#line 516 "postal-address-details.c"
		goto _state_0;
#line 115 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		case 1:
#line 520 "postal-address-details.c"
		goto _state_1;
#line 115 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		case 2:
#line 524 "postal-address-details.c"
		goto _state_2;
#line 115 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		case 3:
#line 528 "postal-address-details.c"
		goto _state_3;
		default:
#line 115 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		g_assert_not_reached ();
#line 533 "postal-address-details.c"
	}
	_state_0:
#line 118 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_data_->_tmp0_ = _data_->self->priv->_eds_backend;
#line 118 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_data_->_state_ = 1;
#line 118 "/debian/rgs/devel/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 118 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	return FALSE;
#line 544 "postal-address-details.c"
	_state_1:
#line 118 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	eds_test_backend_commit_contacts_to_addressbook_finish (_data_->_tmp0_, _data_->_res_);
#line 120 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_data_->_tmp1_ = NULL;
#line 120 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_data_->_tmp1_ = folks_backend_store_dup ();
#line 120 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_data_->store = _data_->_tmp1_;
#line 121 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_data_->_state_ = 2;
#line 121 "/debian/rgs/devel/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 121 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	return FALSE;
#line 560 "postal-address-details.c"
	_state_2:
#line 121 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 122 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_data_->_tmp2_ = folks_individual_aggregator_new ();
#line 122 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 122 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_data_->self->priv->_aggregator = _data_->_tmp2_;
#line 123 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 123 "/debian/rgs/devel/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 574 "postal-address-details.c"
	{
#line 127 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		_data_->_tmp4_ = _data_->self->priv->_aggregator;
#line 127 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		_data_->_state_ = 3;
#line 127 "/debian/rgs/devel/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 127 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		return FALSE;
#line 584 "postal-address-details.c"
		_state_3:
#line 127 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp4_, _data_->_res_, &_data_->_inner_error_);
#line 127 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		if (_data_->_inner_error_ != NULL) {
#line 590 "postal-address-details.c"
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 125 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		_data_->e = _data_->_inner_error_;
#line 125 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		_data_->_inner_error_ = NULL;
#line 131 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		_data_->_tmp5_ = _data_->e;
#line 131 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		_data_->_tmp6_ = _data_->_tmp5_->message;
#line 131 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		g_warning ("postal-address-details.vala:131: Error when calling prepare: %s\n", _data_->_tmp6_);
#line 125 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		_g_error_free0 (_data_->e);
#line 609 "postal-address-details.c"
	}
	__finally0:
#line 125 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	if (_data_->_inner_error_ != NULL) {
#line 125 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		_g_object_unref0 (_data_->store);
#line 125 "/debian/rgs/devel/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 125 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		g_clear_error (&_data_->_inner_error_);
#line 125 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		return FALSE;
#line 622 "postal-address-details.c"
	}
#line 115 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (_data_->store);
#line 115 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	if (_data_->_state_ == 0) {
#line 115 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 630 "postal-address-details.c"
	} else {
#line 115 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 634 "postal-address-details.c"
	}
#line 115 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	g_object_unref (_data_->_async_result);
#line 115 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	return FALSE;
#line 640 "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 136 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	g_return_if_fail (self != NULL);
#line 136 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	g_return_if_fail (changes != NULL);
#line 139 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp0_ = changes;
#line 139 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 139 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	added = _tmp1_;
#line 140 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp2_ = changes;
#line 140 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 140 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	removed = _tmp3_;
#line 670 "postal-address-details.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 142 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		_tmp4_ = added;
#line 142 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 142 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		_i_it = _tmp5_;
#line 142 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		while (TRUE) {
#line 683 "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 142 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			_tmp6_ = _i_it;
#line 142 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 142 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			if (!_tmp7_) {
#line 142 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
				break;
#line 702 "postal-address-details.c"
			}
#line 142 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			_tmp8_ = _i_it;
#line 142 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 142 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			i = (FolksIndividual*) _tmp9_;
#line 144 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			_tmp10_ = i;
#line 144 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			g_assert (_tmp10_ != NULL);
#line 146 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			_tmp11_ = i;
#line 146 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			_tmp12_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp11_);
#line 146 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			_tmp13_ = _tmp12_;
#line 146 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			_tmp14_ = self->priv->_fullname;
#line 146 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			if (g_strcmp0 (_tmp13_, _tmp14_) == 0) {
#line 724 "postal-address-details.c"
				{
					FolksIndividual* _tmp15_;
					GeeSet* _tmp16_;
					GeeSet* _tmp17_;
					GeeIterator* _tmp18_ = NULL;
					GeeIterator* _pa_fd_it;
#line 148 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
					_tmp15_ = i;
#line 148 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
					_tmp16_ = folks_postal_address_details_get_postal_addresses ((FolksPostalAddressDetails*) _tmp15_);
#line 148 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
					_tmp17_ = _tmp16_;
#line 148 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
					_tmp18_ = gee_iterable_iterator ((GeeIterable*) _tmp17_);
#line 148 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
					_pa_fd_it = _tmp18_;
#line 148 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
					while (TRUE) {
#line 743 "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 148 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						_tmp19_ = _pa_fd_it;
#line 148 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						_tmp20_ = gee_iterator_next (_tmp19_);
#line 148 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						if (!_tmp20_) {
#line 148 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
							break;
#line 768 "postal-address-details.c"
						}
#line 148 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						_tmp21_ = _pa_fd_it;
#line 148 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						_tmp22_ = gee_iterator_get (_tmp21_);
#line 148 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						pa_fd = (FolksPostalAddressFieldDetails*) _tmp22_;
#line 154 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						_tmp23_ = self->priv->_postal_address;
#line 154 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						_tmp24_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp23_);
#line 154 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						_tmp25_ = _tmp24_;
#line 154 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						_tmp26_ = pa_fd;
#line 154 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						_tmp27_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp26_);
#line 154 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						_tmp28_ = _tmp27_;
#line 154 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						_tmp29_ = folks_postal_address_get_uid ((FolksPostalAddress*) _tmp28_);
#line 154 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						_tmp30_ = _tmp29_;
#line 154 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						folks_postal_address_set_uid ((FolksPostalAddress*) _tmp25_, _tmp30_);
#line 156 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						_tmp31_ = pa_fd;
#line 156 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						_tmp32_ = self->priv->_postal_address;
#line 156 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						_tmp33_ = folks_abstract_field_details_equal ((FolksAbstractFieldDetails*) _tmp31_, (FolksAbstractFieldDetails*) _tmp32_);
#line 156 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						if (_tmp33_) {
#line 802 "postal-address-details.c"
							GMainLoop* _tmp34_;
#line 158 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
							self->priv->_found_postal_address = TRUE;
#line 159 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
							_tmp34_ = self->priv->_main_loop;
#line 159 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
							g_main_loop_quit (_tmp34_);
#line 810 "postal-address-details.c"
						}
#line 148 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
						_g_object_unref0 (pa_fd);
#line 814 "postal-address-details.c"
					}
#line 148 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
					_g_object_unref0 (_pa_fd_it);
#line 818 "postal-address-details.c"
				}
			}
#line 142 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			_g_object_unref0 (i);
#line 823 "postal-address-details.c"
		}
#line 142 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		_g_object_unref0 (_i_it);
#line 827 "postal-address-details.c"
	}
#line 165 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp35_ = removed;
#line 165 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp36_ = gee_collection_get_size ((GeeCollection*) _tmp35_);
#line 165 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_tmp37_ = _tmp36_;
#line 165 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	g_assert (_tmp37_ == 1);
#line 837 "postal-address-details.c"
	{
		GeeSet* _tmp38_;
		GeeIterator* _tmp39_ = NULL;
		GeeIterator* _i_it;
#line 167 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		_tmp38_ = removed;
#line 167 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		_tmp39_ = gee_iterable_iterator ((GeeIterable*) _tmp38_);
#line 167 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		_i_it = _tmp39_;
#line 167 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		while (TRUE) {
#line 850 "postal-address-details.c"
			GeeIterator* _tmp40_;
			gboolean _tmp41_ = FALSE;
			GeeIterator* _tmp42_;
			gpointer _tmp43_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp44_;
#line 167 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			_tmp40_ = _i_it;
#line 167 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			_tmp41_ = gee_iterator_next (_tmp40_);
#line 167 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			if (!_tmp41_) {
#line 167 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
				break;
#line 865 "postal-address-details.c"
			}
#line 167 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			_tmp42_ = _i_it;
#line 167 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			_tmp43_ = gee_iterator_get (_tmp42_);
#line 167 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			i = (FolksIndividual*) _tmp43_;
#line 169 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			_tmp44_ = i;
#line 169 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			g_assert (_tmp44_ == NULL);
#line 167 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
			_g_object_unref0 (i);
#line 879 "postal-address-details.c"
		}
#line 167 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
		_g_object_unref0 (_i_it);
#line 883 "postal-address-details.c"
	}
#line 136 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (removed);
#line 136 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	_g_object_unref0 (added);
#line 889 "postal-address-details.c"
}


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


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


int main (int argc, char ** argv) {
#line 174 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	g_type_init ();
#line 174 "/debian/rgs/devel/folks/tests/eds/postal-address-details.vala"
	return _vala_main (argv, argc);
#line 1034 "postal-address-details.c"
}



