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


#define TYPE_EMAIL_DETAILS_TESTS (email_details_tests_get_type ())
#define EMAIL_DETAILS_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EMAIL_DETAILS_TESTS, EmailDetailsTests))
#define EMAIL_DETAILS_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EMAIL_DETAILS_TESTS, EmailDetailsTestsClass))
#define IS_EMAIL_DETAILS_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EMAIL_DETAILS_TESTS))
#define IS_EMAIL_DETAILS_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EMAIL_DETAILS_TESTS))
#define EMAIL_DETAILS_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EMAIL_DETAILS_TESTS, EmailDetailsTestsClass))

typedef struct _EmailDetailsTests EmailDetailsTests;
typedef struct _EmailDetailsTestsClass EmailDetailsTestsClass;
typedef struct _EmailDetailsTestsPrivate EmailDetailsTestsPrivate;
#define _eds_test_backend_unref0(var) ((var == NULL) ? NULL : (var = (eds_test_backend_unref (var), NULL)))
#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 __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _EmailDetailsTestsTestEmailDetailsAsyncData EmailDetailsTestsTestEmailDetailsAsyncData;

struct _EmailDetailsTests {
	FolksTestCase parent_instance;
	EmailDetailsTestsPrivate * priv;
};

struct _EmailDetailsTestsClass {
	FolksTestCaseClass parent_class;
};

struct _EmailDetailsTestsPrivate {
	EdsTestBackend* _eds_backend;
	GMainLoop* _main_loop;
	FolksIndividualAggregator* _aggregator;
	gint _email_count;
	GeeHashSet* _email_types;
	GeeHashMap* _c1;
	GeeHashMap* _c2;
	GeeHashMap* _c3;
};

struct _EmailDetailsTestsTestEmailDetailsAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	EmailDetailsTests* 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 email_details_tests_parent_class = NULL;

GType email_details_tests_get_type (void) G_GNUC_CONST;
#define EMAIL_DETAILS_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_EMAIL_DETAILS_TESTS, EmailDetailsTestsPrivate))
enum  {
	EMAIL_DETAILS_TESTS_DUMMY_PROPERTY
};
EmailDetailsTests* email_details_tests_new (void);
EmailDetailsTests* email_details_tests_construct (GType object_type);
void email_details_tests_test_email_details (EmailDetailsTests* self);
static void _email_details_tests_test_email_details_folks_test_case_test_method (gpointer self);
static void email_details_tests_real_set_up (FolksTestCase* base);
static void email_details_tests_real_tear_down (FolksTestCase* base);
static GValue* _g_value_dup (GValue* self);
static void _vala_GValue_free (GValue* self);
static void _email_details_tests_test_email_details_async (EmailDetailsTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _email_details_tests_test_email_details_finish (EmailDetailsTests* self, GAsyncResult* _res_);
static gboolean __lambda0_ (EmailDetailsTests* self);
static gboolean ___lambda0__gsource_func (gpointer self);
static void _email_details_tests_test_email_details_async_data_free (gpointer _data);
static gboolean _email_details_tests_test_email_details_async_co (EmailDetailsTestsTestEmailDetailsAsyncData* _data_);
static void _email_details_tests_test_email_details_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _email_details_tests_individuals_changed_cb (EmailDetailsTests* self, GeeMultiMap* changes);
static void __email_details_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static void email_details_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _email_details_tests_test_email_details_folks_test_case_test_method (gpointer self) {
#line 42 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	email_details_tests_test_email_details (self);
#line 125 "email-details.c"
}


EmailDetailsTests* email_details_tests_construct (GType object_type) {
	EmailDetailsTests * self = NULL;
	EdsTestBackend* _tmp0_;
#line 38 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	self = (EmailDetailsTests*) folks_test_case_construct (object_type, "EmailDetails");
#line 40 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp0_ = eds_test_backend_new ();
#line 40 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 40 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	self->priv->_eds_backend = _tmp0_;
#line 42 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "email details interface", _email_details_tests_test_email_details_folks_test_case_test_method, self);
#line 36 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	return self;
#line 144 "email-details.c"
}


EmailDetailsTests* email_details_tests_new (void) {
#line 36 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	return email_details_tests_construct (TYPE_EMAIL_DETAILS_TESTS);
#line 151 "email-details.c"
}


static void email_details_tests_real_set_up (FolksTestCase* base) {
	EmailDetailsTests * self;
	EdsTestBackend* _tmp0_;
#line 45 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	self = (EmailDetailsTests*) base;
#line 47 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp0_ = self->priv->_eds_backend;
#line 47 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	eds_test_backend_set_up (_tmp0_);
#line 164 "email-details.c"
}


static void email_details_tests_real_tear_down (FolksTestCase* base) {
	EmailDetailsTests * self;
	EdsTestBackend* _tmp0_;
#line 50 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	self = (EmailDetailsTests*) base;
#line 52 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp0_ = self->priv->_eds_backend;
#line 52 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	eds_test_backend_tear_down (_tmp0_);
#line 177 "email-details.c"
}


static GValue* _g_value_dup (GValue* self) {
#line 60 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	return g_boxed_copy (G_TYPE_VALUE, self);
#line 184 "email-details.c"
}


static void _vala_GValue_free (GValue* self) {
#line 60 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_value_unset (self);
#line 60 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_free (self);
#line 193 "email-details.c"
}


static gpointer __g_value_dup0 (gpointer self) {
#line 68 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	return self ? _g_value_dup (self) : NULL;
#line 200 "email-details.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 77 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	return self ? g_object_ref (self) : NULL;
#line 207 "email-details.c"
}


static gboolean __lambda0_ (EmailDetailsTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 105 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp0_ = self->priv->_main_loop;
#line 105 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_main_loop_quit (_tmp0_);
#line 106 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	result = FALSE;
#line 106 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	return result;
#line 222 "email-details.c"
}


static gboolean ___lambda0__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda0_ (self);
#line 103 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	return result;
#line 231 "email-details.c"
}


void email_details_tests_test_email_details (EmailDetailsTests* self) {
	GHashFunc _tmp0_;
	GEqualFunc _tmp1_;
	GeeHashSet* _tmp2_;
	GeeHashMap* _tmp3_;
	GeeHashMap* _tmp4_;
	GeeHashMap* _tmp5_;
	GMainLoop* _tmp6_;
	GValue* v = NULL;
	EdsTestBackend* _tmp7_;
	GValue _tmp8_ = {0};
	GValue _tmp9_;
	GValue* _tmp10_;
	GValue* _tmp11_;
	GeeHashMap* _tmp12_;
	GValue* _tmp13_;
	GValue* _tmp14_;
	GValue _tmp15_ = {0};
	GValue _tmp16_;
	GValue* _tmp17_;
	GValue* _tmp18_;
	GeeHashMap* _tmp19_;
	const gchar* _tmp20_;
	GValue* _tmp21_;
	GValue* _tmp22_;
	GValue _tmp23_ = {0};
	GValue _tmp24_;
	GValue* _tmp25_;
	GValue* _tmp26_;
	GeeHashMap* _tmp27_;
	const gchar* _tmp28_;
	GValue* _tmp29_;
	GValue* _tmp30_;
	EdsTestBackend* _tmp31_;
	GeeHashMap* _tmp32_;
	GeeHashMap* _tmp33_;
	GValue _tmp34_ = {0};
	GValue _tmp35_;
	GValue* _tmp36_;
	GValue* _tmp37_;
	GeeHashMap* _tmp38_;
	GValue* _tmp39_;
	GValue* _tmp40_;
	GValue _tmp41_ = {0};
	GValue _tmp42_;
	GValue* _tmp43_;
	GValue* _tmp44_;
	GeeHashMap* _tmp45_;
	const gchar* _tmp46_;
	GValue* _tmp47_;
	GValue* _tmp48_;
	GValue _tmp49_ = {0};
	GValue _tmp50_;
	GValue* _tmp51_;
	GValue* _tmp52_;
	GeeHashMap* _tmp53_;
	const gchar* _tmp54_;
	GValue* _tmp55_;
	GValue* _tmp56_;
	EdsTestBackend* _tmp57_;
	GeeHashMap* _tmp58_;
	GeeHashMap* _tmp59_;
	GValue _tmp60_ = {0};
	GValue _tmp61_;
	GValue* _tmp62_;
	GValue* _tmp63_;
	GeeHashMap* _tmp64_;
	GValue* _tmp65_;
	GValue* _tmp66_;
	GValue _tmp67_ = {0};
	GValue _tmp68_;
	GValue* _tmp69_;
	GValue* _tmp70_;
	GeeHashMap* _tmp71_;
	const gchar* _tmp72_;
	GValue* _tmp73_;
	GValue* _tmp74_;
	GValue _tmp75_ = {0};
	GValue _tmp76_;
	GValue* _tmp77_;
	GValue* _tmp78_;
	GeeHashMap* _tmp79_;
	const gchar* _tmp80_;
	GValue* _tmp81_;
	GValue* _tmp82_;
	EdsTestBackend* _tmp83_;
	GeeHashMap* _tmp84_;
	GeeHashMap* _tmp85_;
	GMainLoop* _tmp86_;
	gint _tmp87_;
	GeeHashSet* _tmp88_;
	gint _tmp89_;
	gint _tmp90_;
	GeeHashMap* _tmp91_;
	gint _tmp92_;
	gint _tmp93_;
	GeeHashMap* _tmp94_;
	gint _tmp95_;
	gint _tmp96_;
	GeeHashMap* _tmp97_;
	gint _tmp98_;
	gint _tmp99_;
#line 55 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_return_if_fail (self != NULL);
#line 57 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	self->priv->_email_count = 0;
#line 58 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp0_ = g_str_hash;
#line 58 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp1_ = g_str_equal;
#line 58 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp2_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, _tmp0_, _tmp1_);
#line 58 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_g_object_unref0 (self->priv->_email_types);
#line 58 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	self->priv->_email_types = _tmp2_;
#line 60 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp3_ = 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 60 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_g_object_unref0 (self->priv->_c1);
#line 60 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	self->priv->_c1 = _tmp3_;
#line 61 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp4_ = 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 61 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_g_object_unref0 (self->priv->_c2);
#line 61 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	self->priv->_c2 = _tmp4_;
#line 62 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp5_ = 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 62 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_g_object_unref0 (self->priv->_c3);
#line 62 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	self->priv->_c3 = _tmp5_;
#line 63 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp6_ = g_main_loop_new (NULL, FALSE);
#line 63 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 63 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	self->priv->_main_loop = _tmp6_;
#line 66 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp7_ = self->priv->_eds_backend;
#line 66 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	eds_test_backend_reset (_tmp7_);
#line 68 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_value_init (&_tmp8_, G_TYPE_STRING);
#line 68 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp9_ = _tmp8_;
#line 68 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp10_ = __g_value_dup0 (&_tmp9_);
#line 68 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	__vala_GValue_free0 (v);
#line 68 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	v = _tmp10_;
#line 68 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	G_IS_VALUE (&_tmp9_) ? (g_value_unset (&_tmp9_), NULL) : NULL;
#line 69 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp11_ = v;
#line 69 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_value_set_string (_tmp11_, "bernie h. innocenti");
#line 70 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp12_ = self->priv->_c1;
#line 70 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp13_ = v;
#line 70 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	v = NULL;
#line 70 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp14_ = _tmp13_;
#line 70 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp12_, "full_name", _tmp14_);
#line 70 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	__vala_GValue_free0 (_tmp14_);
#line 71 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_value_init (&_tmp15_, G_TYPE_STRING);
#line 71 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp16_ = _tmp15_;
#line 71 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp17_ = __g_value_dup0 (&_tmp16_);
#line 71 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	__vala_GValue_free0 (v);
#line 71 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	v = _tmp17_;
#line 71 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	G_IS_VALUE (&_tmp16_) ? (g_value_unset (&_tmp16_), NULL) : NULL;
#line 72 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp18_ = v;
#line 72 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_value_set_string (_tmp18_, "bernie@example.org");
#line 73 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp19_ = self->priv->_c1;
#line 73 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp20_ = EDSF_PERSONA_email_fields[0];
#line 73 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp21_ = v;
#line 73 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	v = NULL;
#line 73 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp22_ = _tmp21_;
#line 73 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp19_, _tmp20_, _tmp22_);
#line 73 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	__vala_GValue_free0 (_tmp22_);
#line 74 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_value_init (&_tmp23_, G_TYPE_STRING);
#line 74 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp24_ = _tmp23_;
#line 74 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp25_ = __g_value_dup0 (&_tmp24_);
#line 74 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	__vala_GValue_free0 (v);
#line 74 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	v = _tmp25_;
#line 74 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	G_IS_VALUE (&_tmp24_) ? (g_value_unset (&_tmp24_), NULL) : NULL;
#line 75 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp26_ = v;
#line 75 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_value_set_string (_tmp26_, "bernie.innocenti@example.org");
#line 76 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp27_ = self->priv->_c1;
#line 76 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp28_ = EDSF_PERSONA_email_fields[1];
#line 76 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp29_ = v;
#line 76 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	v = NULL;
#line 76 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp30_ = _tmp29_;
#line 76 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp27_, _tmp28_, _tmp30_);
#line 76 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	__vala_GValue_free0 (_tmp30_);
#line 77 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp31_ = self->priv->_eds_backend;
#line 77 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp32_ = self->priv->_c1;
#line 77 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp33_ = _g_object_ref0 (_tmp32_);
#line 77 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	eds_test_backend_add_contact (_tmp31_, _tmp33_);
#line 79 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_value_init (&_tmp34_, G_TYPE_STRING);
#line 79 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp35_ = _tmp34_;
#line 79 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp36_ = __g_value_dup0 (&_tmp35_);
#line 79 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	__vala_GValue_free0 (v);
#line 79 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	v = _tmp36_;
#line 79 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	G_IS_VALUE (&_tmp35_) ? (g_value_unset (&_tmp35_), NULL) : NULL;
#line 80 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp37_ = v;
#line 80 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_value_set_string (_tmp37_, "richard m. stallman");
#line 81 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp38_ = self->priv->_c2;
#line 81 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp39_ = v;
#line 81 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	v = NULL;
#line 81 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp40_ = _tmp39_;
#line 81 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp38_, "full_name", _tmp40_);
#line 81 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	__vala_GValue_free0 (_tmp40_);
#line 82 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_value_init (&_tmp41_, G_TYPE_STRING);
#line 82 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp42_ = _tmp41_;
#line 82 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp43_ = __g_value_dup0 (&_tmp42_);
#line 82 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	__vala_GValue_free0 (v);
#line 82 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	v = _tmp43_;
#line 82 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	G_IS_VALUE (&_tmp42_) ? (g_value_unset (&_tmp42_), NULL) : NULL;
#line 83 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp44_ = v;
#line 83 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_value_set_string (_tmp44_, "rms@example.org");
#line 84 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp45_ = self->priv->_c2;
#line 84 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp46_ = EDSF_PERSONA_email_fields[0];
#line 84 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp47_ = v;
#line 84 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	v = NULL;
#line 84 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp48_ = _tmp47_;
#line 84 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp45_, _tmp46_, _tmp48_);
#line 84 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	__vala_GValue_free0 (_tmp48_);
#line 85 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_value_init (&_tmp49_, G_TYPE_STRING);
#line 85 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp50_ = _tmp49_;
#line 85 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp51_ = __g_value_dup0 (&_tmp50_);
#line 85 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	__vala_GValue_free0 (v);
#line 85 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	v = _tmp51_;
#line 85 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	G_IS_VALUE (&_tmp50_) ? (g_value_unset (&_tmp50_), NULL) : NULL;
#line 86 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp52_ = v;
#line 86 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_value_set_string (_tmp52_, "rms.1@example.org");
#line 87 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp53_ = self->priv->_c2;
#line 87 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp54_ = EDSF_PERSONA_email_fields[1];
#line 87 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp55_ = v;
#line 87 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	v = NULL;
#line 87 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp56_ = _tmp55_;
#line 87 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp53_, _tmp54_, _tmp56_);
#line 87 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	__vala_GValue_free0 (_tmp56_);
#line 88 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp57_ = self->priv->_eds_backend;
#line 88 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp58_ = self->priv->_c2;
#line 88 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp59_ = _g_object_ref0 (_tmp58_);
#line 88 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	eds_test_backend_add_contact (_tmp57_, _tmp59_);
#line 90 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_value_init (&_tmp60_, G_TYPE_STRING);
#line 90 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp61_ = _tmp60_;
#line 90 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp62_ = __g_value_dup0 (&_tmp61_);
#line 90 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	__vala_GValue_free0 (v);
#line 90 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	v = _tmp62_;
#line 90 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	G_IS_VALUE (&_tmp61_) ? (g_value_unset (&_tmp61_), NULL) : NULL;
#line 91 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp63_ = v;
#line 91 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_value_set_string (_tmp63_, "foo bar");
#line 92 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp64_ = self->priv->_c3;
#line 92 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp65_ = v;
#line 92 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	v = NULL;
#line 92 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp66_ = _tmp65_;
#line 92 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp64_, "full_name", _tmp66_);
#line 92 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	__vala_GValue_free0 (_tmp66_);
#line 93 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_value_init (&_tmp67_, G_TYPE_STRING);
#line 93 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp68_ = _tmp67_;
#line 93 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp69_ = __g_value_dup0 (&_tmp68_);
#line 93 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	__vala_GValue_free0 (v);
#line 93 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	v = _tmp69_;
#line 93 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	G_IS_VALUE (&_tmp68_) ? (g_value_unset (&_tmp68_), NULL) : NULL;
#line 94 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp70_ = v;
#line 94 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_value_set_string (_tmp70_, "foo@example.org");
#line 95 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp71_ = self->priv->_c3;
#line 95 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp72_ = EDSF_PERSONA_email_fields[0];
#line 95 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp73_ = v;
#line 95 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	v = NULL;
#line 95 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp74_ = _tmp73_;
#line 95 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp71_, _tmp72_, _tmp74_);
#line 95 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	__vala_GValue_free0 (_tmp74_);
#line 96 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_value_init (&_tmp75_, G_TYPE_STRING);
#line 96 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp76_ = _tmp75_;
#line 96 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp77_ = __g_value_dup0 (&_tmp76_);
#line 96 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	__vala_GValue_free0 (v);
#line 96 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	v = _tmp77_;
#line 96 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	G_IS_VALUE (&_tmp76_) ? (g_value_unset (&_tmp76_), NULL) : NULL;
#line 97 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp78_ = v;
#line 97 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_value_set_string (_tmp78_, "foo.bar@example.org");
#line 98 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp79_ = self->priv->_c3;
#line 98 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp80_ = EDSF_PERSONA_email_fields[1];
#line 98 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp81_ = v;
#line 98 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	v = NULL;
#line 98 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp82_ = _tmp81_;
#line 98 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp79_, _tmp80_, _tmp82_);
#line 98 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	__vala_GValue_free0 (_tmp82_);
#line 99 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp83_ = self->priv->_eds_backend;
#line 99 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp84_ = self->priv->_c3;
#line 99 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp85_ = _g_object_ref0 (_tmp84_);
#line 99 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	eds_test_backend_add_contact (_tmp83_, _tmp85_);
#line 101 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_email_details_tests_test_email_details_async (self, NULL, NULL);
#line 103 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda0__gsource_func, g_object_ref (self), g_object_unref);
#line 109 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp86_ = self->priv->_main_loop;
#line 109 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_main_loop_run (_tmp86_);
#line 111 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp87_ = self->priv->_email_count;
#line 111 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_assert (_tmp87_ == 6);
#line 112 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp88_ = self->priv->_email_types;
#line 112 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp89_ = gee_collection_get_size ((GeeCollection*) _tmp88_);
#line 112 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp90_ = _tmp89_;
#line 112 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_assert (_tmp90_ == 1);
#line 113 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp91_ = self->priv->_c1;
#line 113 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp92_ = gee_map_get_size ((GeeMap*) _tmp91_);
#line 113 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp93_ = _tmp92_;
#line 113 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_assert (_tmp93_ == 0);
#line 114 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp94_ = self->priv->_c2;
#line 114 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp95_ = gee_map_get_size ((GeeMap*) _tmp94_);
#line 114 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp96_ = _tmp95_;
#line 114 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_assert (_tmp96_ == 0);
#line 115 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp97_ = self->priv->_c3;
#line 115 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp98_ = gee_map_get_size ((GeeMap*) _tmp97_);
#line 115 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp99_ = _tmp98_;
#line 115 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_assert (_tmp99_ == 0);
#line 711 "email-details.c"
	{
		GeeHashSet* _tmp100_;
		GeeIterator* _tmp101_ = NULL;
		GeeIterator* _pt_it;
#line 117 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_tmp100_ = self->priv->_email_types;
#line 117 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_tmp101_ = gee_abstract_collection_iterator ((GeeAbstractCollection*) _tmp100_);
#line 117 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_pt_it = _tmp101_;
#line 117 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		while (TRUE) {
#line 724 "email-details.c"
			GeeIterator* _tmp102_;
			gboolean _tmp103_ = FALSE;
			GeeIterator* _tmp104_;
			gpointer _tmp105_ = NULL;
			gchar* pt;
			const gchar* _tmp106_;
#line 117 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp102_ = _pt_it;
#line 117 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp103_ = gee_iterator_next (_tmp102_);
#line 117 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			if (!_tmp103_) {
#line 117 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
				break;
#line 739 "email-details.c"
			}
#line 117 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp104_ = _pt_it;
#line 117 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp105_ = gee_iterator_get (_tmp104_);
#line 117 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			pt = (gchar*) _tmp105_;
#line 119 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp106_ = pt;
#line 119 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			g_assert (g_strcmp0 (_tmp106_, "OTHER") == 0);
#line 117 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_g_free0 (pt);
#line 753 "email-details.c"
		}
#line 117 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_g_object_unref0 (_pt_it);
#line 757 "email-details.c"
	}
#line 55 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	__vala_GValue_free0 (v);
#line 761 "email-details.c"
}


static void _email_details_tests_test_email_details_async_data_free (gpointer _data) {
	EmailDetailsTestsTestEmailDetailsAsyncData* _data_;
	_data_ = _data;
#line 25 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_g_object_unref0 (_data_->self);
#line 25 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_slice_free (EmailDetailsTestsTestEmailDetailsAsyncData, _data_);
#line 772 "email-details.c"
}


static void _email_details_tests_test_email_details_async (EmailDetailsTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	EmailDetailsTestsTestEmailDetailsAsyncData* _data_;
	EmailDetailsTests* _tmp0_;
#line 25 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_data_ = g_slice_new0 (EmailDetailsTestsTestEmailDetailsAsyncData);
#line 25 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _email_details_tests_test_email_details_async);
#line 25 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _email_details_tests_test_email_details_async_data_free);
#line 25 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 25 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_data_->self = _tmp0_;
#line 25 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_email_details_tests_test_email_details_async_co (_data_);
#line 791 "email-details.c"
}


static void _email_details_tests_test_email_details_finish (EmailDetailsTests* self, GAsyncResult* _res_) {
	EmailDetailsTestsTestEmailDetailsAsyncData* _data_;
#line 25 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 799 "email-details.c"
}


static void _email_details_tests_test_email_details_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	EmailDetailsTestsTestEmailDetailsAsyncData* _data_;
#line 126 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_data_ = _user_data_;
#line 126 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_data_->_source_object_ = source_object;
#line 126 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_data_->_res_ = _res_;
#line 126 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_email_details_tests_test_email_details_async_co (_data_);
#line 813 "email-details.c"
}


static void __email_details_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 131 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_email_details_tests_individuals_changed_cb (self, changes);
#line 820 "email-details.c"
}


static gboolean _email_details_tests_test_email_details_async_co (EmailDetailsTestsTestEmailDetailsAsyncData* _data_) {
#line 123 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	switch (_data_->_state_) {
#line 123 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		case 0:
#line 829 "email-details.c"
		goto _state_0;
#line 123 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		case 1:
#line 833 "email-details.c"
		goto _state_1;
#line 123 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		case 2:
#line 837 "email-details.c"
		goto _state_2;
#line 123 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		case 3:
#line 841 "email-details.c"
		goto _state_3;
		default:
#line 123 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		g_assert_not_reached ();
#line 846 "email-details.c"
	}
	_state_0:
#line 126 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_data_->_tmp0_ = _data_->self->priv->_eds_backend;
#line 126 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_data_->_state_ = 1;
#line 126 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	eds_test_backend_commit_contacts_to_addressbook (_data_->_tmp0_, _email_details_tests_test_email_details_async_ready, _data_);
#line 126 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	return FALSE;
#line 857 "email-details.c"
	_state_1:
#line 126 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	eds_test_backend_commit_contacts_to_addressbook_finish (_data_->_tmp0_, _data_->_res_);
#line 128 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_data_->_tmp1_ = NULL;
#line 128 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_data_->_tmp1_ = folks_backend_store_dup ();
#line 128 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_data_->store = _data_->_tmp1_;
#line 129 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_data_->_state_ = 2;
#line 129 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	folks_backend_store_prepare (_data_->store, _email_details_tests_test_email_details_async_ready, _data_);
#line 129 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	return FALSE;
#line 873 "email-details.c"
	_state_2:
#line 129 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 130 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_data_->_tmp2_ = folks_individual_aggregator_new ();
#line 130 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 130 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_data_->self->priv->_aggregator = _data_->_tmp2_;
#line 131 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 131 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_signal_connect_object (_data_->_tmp3_, "individuals-changed-detailed", (GCallback) __email_details_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed, _data_->self, 0);
#line 887 "email-details.c"
	{
#line 135 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_data_->_tmp4_ = _data_->self->priv->_aggregator;
#line 135 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_data_->_state_ = 3;
#line 135 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		folks_individual_aggregator_prepare (_data_->_tmp4_, _email_details_tests_test_email_details_async_ready, _data_);
#line 135 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		return FALSE;
#line 897 "email-details.c"
		_state_3:
#line 135 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp4_, _data_->_res_, &_data_->_inner_error_);
#line 135 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		if (_data_->_inner_error_ != NULL) {
#line 903 "email-details.c"
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 133 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_data_->e = _data_->_inner_error_;
#line 133 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_data_->_inner_error_ = NULL;
#line 139 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_data_->_tmp5_ = _data_->e;
#line 139 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_data_->_tmp6_ = _data_->_tmp5_->message;
#line 139 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		g_warning ("email-details.vala:139: Error when calling prepare: %s\n", _data_->_tmp6_);
#line 133 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_g_error_free0 (_data_->e);
#line 922 "email-details.c"
	}
	__finally0:
#line 133 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	if (_data_->_inner_error_ != NULL) {
#line 133 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_g_object_unref0 (_data_->store);
#line 133 "/debian/rgs/devel/folks/tests/eds/email-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 133 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		g_clear_error (&_data_->_inner_error_);
#line 133 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		return FALSE;
#line 935 "email-details.c"
	}
#line 123 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_g_object_unref0 (_data_->store);
#line 123 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	if (_data_->_state_ == 0) {
#line 123 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 943 "email-details.c"
	} else {
#line 123 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 947 "email-details.c"
	}
#line 123 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_object_unref (_data_->_async_result);
#line 123 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	return FALSE;
#line 953 "email-details.c"
}


static void _email_details_tests_individuals_changed_cb (EmailDetailsTests* self, GeeMultiMap* changes) {
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
	GeeSet* _tmp77_;
	gint _tmp78_;
	gint _tmp79_;
#line 143 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_return_if_fail (self != NULL);
#line 143 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_return_if_fail (changes != NULL);
#line 146 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp0_ = changes;
#line 146 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 146 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	added = _tmp1_;
#line 147 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp2_ = changes;
#line 147 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 147 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	removed = _tmp3_;
#line 983 "email-details.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 149 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_tmp4_ = added;
#line 149 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 149 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_i_it = _tmp5_;
#line 149 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		while (TRUE) {
#line 996 "email-details.c"
			GeeIterator* _tmp6_;
			gboolean _tmp7_ = FALSE;
			GeeIterator* _tmp8_;
			gpointer _tmp9_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp10_;
			GeeHashMap* contact;
			FolksIndividual* _tmp11_;
			GeeSet* _tmp12_;
			GeeSet* _tmp13_;
			gint _tmp14_;
			gint _tmp15_;
			FolksIndividual* _tmp16_;
			const gchar* _tmp17_;
			const gchar* _tmp18_;
			GeeHashMap* _tmp28_;
			GeeHashMap* _tmp29_;
			FolksIndividual* _tmp30_;
			FolksEmailDetails* _tmp31_;
			FolksEmailDetails* email_owner;
#line 149 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp6_ = _i_it;
#line 149 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 149 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			if (!_tmp7_) {
#line 149 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
				break;
#line 1025 "email-details.c"
			}
#line 149 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp8_ = _i_it;
#line 149 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 149 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			i = (FolksIndividual*) _tmp9_;
#line 151 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp10_ = i;
#line 151 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			g_assert (_tmp10_ != NULL);
#line 153 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			contact = NULL;
#line 154 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp11_ = i;
#line 154 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp12_ = folks_individual_get_personas (_tmp11_);
#line 154 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp13_ = _tmp12_;
#line 154 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp14_ = gee_collection_get_size ((GeeCollection*) _tmp13_);
#line 154 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp15_ = _tmp14_;
#line 154 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			g_assert (_tmp15_ == 1);
#line 156 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp16_ = i;
#line 156 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp17_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp16_);
#line 156 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp18_ = _tmp17_;
#line 156 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			if (g_strcmp0 (_tmp18_, "bernie h. innocenti") == 0) {
#line 1059 "email-details.c"
				GeeHashMap* _tmp19_;
#line 158 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
				_tmp19_ = self->priv->_c1;
#line 158 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
				contact = _tmp19_;
#line 1065 "email-details.c"
			} else {
				FolksIndividual* _tmp20_;
				const gchar* _tmp21_;
				const gchar* _tmp22_;
#line 160 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
				_tmp20_ = i;
#line 160 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
				_tmp21_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp20_);
#line 160 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
				_tmp22_ = _tmp21_;
#line 160 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
				if (g_strcmp0 (_tmp22_, "richard m. stallman") == 0) {
#line 1078 "email-details.c"
					GeeHashMap* _tmp23_;
#line 162 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
					_tmp23_ = self->priv->_c2;
#line 162 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
					contact = _tmp23_;
#line 1084 "email-details.c"
				} else {
					FolksIndividual* _tmp24_;
					const gchar* _tmp25_;
					const gchar* _tmp26_;
#line 164 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
					_tmp24_ = i;
#line 164 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
					_tmp25_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp24_);
#line 164 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
					_tmp26_ = _tmp25_;
#line 164 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
					if (g_strcmp0 (_tmp26_, "foo bar") == 0) {
#line 1097 "email-details.c"
						GeeHashMap* _tmp27_;
#line 166 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
						_tmp27_ = self->priv->_c3;
#line 166 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
						contact = _tmp27_;
#line 1103 "email-details.c"
					}
				}
			}
#line 169 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp28_ = contact;
#line 169 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			if (_tmp28_ == NULL) {
#line 171 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
				_g_object_unref0 (i);
#line 171 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
				continue;
#line 1115 "email-details.c"
			}
#line 174 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp29_ = contact;
#line 174 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			gee_abstract_map_unset ((GeeAbstractMap*) _tmp29_, "full_name", NULL);
#line 175 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp30_ = i;
#line 175 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp31_ = _g_object_ref0 (FOLKS_EMAIL_DETAILS (_tmp30_));
#line 175 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			email_owner = _tmp31_;
#line 1127 "email-details.c"
			{
				FolksEmailDetails* _tmp32_;
				GeeSet* _tmp33_;
				GeeSet* _tmp34_;
				GeeIterator* _tmp35_ = NULL;
				GeeIterator* _e_it;
#line 176 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
				_tmp32_ = email_owner;
#line 176 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
				_tmp33_ = folks_email_details_get_email_addresses (_tmp32_);
#line 176 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
				_tmp34_ = _tmp33_;
#line 176 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
				_tmp35_ = gee_iterable_iterator ((GeeIterable*) _tmp34_);
#line 176 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
				_e_it = _tmp35_;
#line 176 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
				while (TRUE) {
#line 1146 "email-details.c"
					GeeIterator* _tmp36_;
					gboolean _tmp37_ = FALSE;
					GeeIterator* _tmp38_;
					gpointer _tmp39_ = NULL;
					FolksEmailFieldDetails* e;
					gint _tmp40_;
					gboolean found;
					gboolean _tmp65_;
#line 176 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
					_tmp36_ = _e_it;
#line 176 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
					_tmp37_ = gee_iterator_next (_tmp36_);
#line 176 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
					if (!_tmp37_) {
#line 176 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
						break;
#line 1163 "email-details.c"
					}
#line 176 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
					_tmp38_ = _e_it;
#line 176 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
					_tmp39_ = gee_iterator_get (_tmp38_);
#line 176 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
					e = (FolksEmailFieldDetails*) _tmp39_;
#line 178 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
					_tmp40_ = self->priv->_email_count;
#line 178 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
					self->priv->_email_count = _tmp40_ + 1;
#line 180 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
					found = FALSE;
#line 1177 "email-details.c"
					{
						gint j;
#line 181 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
						j = 0;
#line 1182 "email-details.c"
						{
							gboolean _tmp41_;
#line 181 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
							_tmp41_ = TRUE;
#line 181 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
							while (TRUE) {
#line 1189 "email-details.c"
								gboolean _tmp42_;
								gint _tmp44_;
								gint _tmp45_;
								const gchar* _tmp46_;
								gchar* _tmp47_;
								gchar* v;
								gboolean _tmp48_ = FALSE;
								GeeHashMap* _tmp49_;
								const gchar* _tmp50_;
								gpointer _tmp51_ = NULL;
								GValue* _tmp52_;
								gboolean _tmp53_;
								gboolean _tmp62_;
#line 181 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								_tmp42_ = _tmp41_;
#line 181 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								if (!_tmp42_) {
#line 1207 "email-details.c"
									gint _tmp43_;
#line 181 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
									_tmp43_ = j;
#line 181 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
									j = _tmp43_ + 1;
#line 1213 "email-details.c"
								}
#line 181 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								_tmp41_ = FALSE;
#line 181 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								_tmp44_ = j;
#line 181 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								if (!(_tmp44_ < 2)) {
#line 181 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
									break;
#line 1223 "email-details.c"
								}
#line 182 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								_tmp45_ = j;
#line 182 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								_tmp46_ = EDSF_PERSONA_email_fields[_tmp45_];
#line 182 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								_tmp47_ = g_strdup (_tmp46_);
#line 182 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								v = _tmp47_;
#line 183 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								_tmp49_ = contact;
#line 183 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								_tmp50_ = v;
#line 183 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								_tmp51_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp49_, _tmp50_);
#line 183 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								_tmp52_ = (GValue*) _tmp51_;
#line 183 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								_tmp53_ = _tmp52_ != NULL;
#line 183 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								__vala_GValue_free0 (_tmp52_);
#line 183 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								if (_tmp53_) {
#line 1247 "email-details.c"
									GeeHashMap* _tmp54_;
									const gchar* _tmp55_;
									gpointer _tmp56_ = NULL;
									GValue* _tmp57_;
									const gchar* _tmp58_ = NULL;
									FolksEmailFieldDetails* _tmp59_;
									gconstpointer _tmp60_;
									const gchar* _tmp61_;
#line 184 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
									_tmp54_ = contact;
#line 184 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
									_tmp55_ = v;
#line 184 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
									_tmp56_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp54_, _tmp55_);
#line 184 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
									_tmp57_ = (GValue*) _tmp56_;
#line 184 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
									_tmp58_ = g_value_get_string (_tmp57_);
#line 184 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
									_tmp59_ = e;
#line 184 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
									_tmp60_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp59_);
#line 184 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
									_tmp61_ = _tmp60_;
#line 184 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
									_tmp48_ = g_strcmp0 (_tmp58_, (const gchar*) _tmp61_) == 0;
#line 184 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
									__vala_GValue_free0 (_tmp57_);
#line 1276 "email-details.c"
								} else {
#line 183 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
									_tmp48_ = FALSE;
#line 1280 "email-details.c"
								}
#line 183 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								_tmp62_ = _tmp48_;
#line 183 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								if (_tmp62_) {
#line 1286 "email-details.c"
									GeeHashMap* _tmp63_;
									const gchar* _tmp64_;
#line 185 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
									found = TRUE;
#line 186 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
									_tmp63_ = contact;
#line 186 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
									_tmp64_ = v;
#line 186 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
									gee_abstract_map_unset ((GeeAbstractMap*) _tmp63_, _tmp64_, NULL);
#line 1297 "email-details.c"
								}
#line 181 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								_g_free0 (v);
#line 1301 "email-details.c"
							}
						}
					}
#line 189 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
					_tmp65_ = found;
#line 189 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
					g_assert (_tmp65_);
#line 1309 "email-details.c"
					{
						FolksEmailFieldDetails* _tmp66_;
						GeeCollection* _tmp67_ = NULL;
						GeeCollection* _tmp68_;
						GeeIterator* _tmp69_ = NULL;
						GeeIterator* _tmp70_;
						GeeIterator* _v_it;
#line 190 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
						_tmp66_ = e;
#line 190 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
						_tmp67_ = folks_abstract_field_details_get_parameter_values ((FolksAbstractFieldDetails*) _tmp66_, "type");
#line 190 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
						_tmp68_ = _tmp67_;
#line 190 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
						_tmp69_ = gee_iterable_iterator ((GeeIterable*) _tmp68_);
#line 190 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
						_tmp70_ = _tmp69_;
#line 190 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
						_g_object_unref0 (_tmp68_);
#line 190 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
						_v_it = _tmp70_;
#line 190 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
						while (TRUE) {
#line 1333 "email-details.c"
							GeeIterator* _tmp71_;
							gboolean _tmp72_ = FALSE;
							GeeIterator* _tmp73_;
							gpointer _tmp74_ = NULL;
							gchar* v;
							GeeHashSet* _tmp75_;
							const gchar* _tmp76_;
#line 190 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
							_tmp71_ = _v_it;
#line 190 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
							_tmp72_ = gee_iterator_next (_tmp71_);
#line 190 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
							if (!_tmp72_) {
#line 190 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
								break;
#line 1349 "email-details.c"
							}
#line 190 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
							_tmp73_ = _v_it;
#line 190 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
							_tmp74_ = gee_iterator_get (_tmp73_);
#line 190 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
							v = (gchar*) _tmp74_;
#line 192 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
							_tmp75_ = self->priv->_email_types;
#line 192 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
							_tmp76_ = v;
#line 192 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
							gee_abstract_collection_add ((GeeAbstractCollection*) _tmp75_, _tmp76_);
#line 190 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
							_g_free0 (v);
#line 1365 "email-details.c"
						}
#line 190 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
						_g_object_unref0 (_v_it);
#line 1369 "email-details.c"
					}
#line 176 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
					_g_object_unref0 (e);
#line 1373 "email-details.c"
				}
#line 176 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
				_g_object_unref0 (_e_it);
#line 1377 "email-details.c"
			}
#line 149 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_g_object_unref0 (email_owner);
#line 149 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_g_object_unref0 (i);
#line 1383 "email-details.c"
		}
#line 149 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_g_object_unref0 (_i_it);
#line 1387 "email-details.c"
	}
#line 197 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp77_ = removed;
#line 197 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp78_ = gee_collection_get_size ((GeeCollection*) _tmp77_);
#line 197 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp79_ = _tmp78_;
#line 197 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_assert (_tmp79_ == 1);
#line 1397 "email-details.c"
	{
		GeeSet* _tmp80_;
		GeeIterator* _tmp81_ = NULL;
		GeeIterator* _i_it;
#line 199 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_tmp80_ = removed;
#line 199 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_tmp81_ = gee_iterable_iterator ((GeeIterable*) _tmp80_);
#line 199 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_i_it = _tmp81_;
#line 199 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		while (TRUE) {
#line 1410 "email-details.c"
			GeeIterator* _tmp82_;
			gboolean _tmp83_ = FALSE;
			GeeIterator* _tmp84_;
			gpointer _tmp85_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp86_;
#line 199 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp82_ = _i_it;
#line 199 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp83_ = gee_iterator_next (_tmp82_);
#line 199 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			if (!_tmp83_) {
#line 199 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
				break;
#line 1425 "email-details.c"
			}
#line 199 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp84_ = _i_it;
#line 199 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp85_ = gee_iterator_get (_tmp84_);
#line 199 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			i = (FolksIndividual*) _tmp85_;
#line 201 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_tmp86_ = i;
#line 201 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			g_assert (_tmp86_ == NULL);
#line 199 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
			_g_object_unref0 (i);
#line 1439 "email-details.c"
		}
#line 199 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
		_g_object_unref0 (_i_it);
#line 1443 "email-details.c"
	}
#line 143 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_g_object_unref0 (removed);
#line 143 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_g_object_unref0 (added);
#line 1449 "email-details.c"
}


static void email_details_tests_class_init (EmailDetailsTestsClass * klass) {
#line 25 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	email_details_tests_parent_class = g_type_class_peek_parent (klass);
#line 25 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_type_class_add_private (klass, sizeof (EmailDetailsTestsPrivate));
#line 25 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = email_details_tests_real_set_up;
#line 25 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = email_details_tests_real_tear_down;
#line 25 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	G_OBJECT_CLASS (klass)->finalize = email_details_tests_finalize;
#line 1464 "email-details.c"
}


static void email_details_tests_instance_init (EmailDetailsTests * self) {
#line 25 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	self->priv = EMAIL_DETAILS_TESTS_GET_PRIVATE (self);
#line 1471 "email-details.c"
}


static void email_details_tests_finalize (GObject* obj) {
	EmailDetailsTests * self;
#line 25 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	self = EMAIL_DETAILS_TESTS (obj);
#line 27 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 28 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 29 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 31 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_g_object_unref0 (self->priv->_email_types);
#line 32 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_g_object_unref0 (self->priv->_c1);
#line 33 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_g_object_unref0 (self->priv->_c2);
#line 34 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_g_object_unref0 (self->priv->_c3);
#line 25 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	G_OBJECT_CLASS (email_details_tests_parent_class)->finalize (obj);
#line 1495 "email-details.c"
}


GType email_details_tests_get_type (void) {
	static volatile gsize email_details_tests_type_id__volatile = 0;
	if (g_once_init_enter (&email_details_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (EmailDetailsTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) email_details_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (EmailDetailsTests), 0, (GInstanceInitFunc) email_details_tests_instance_init, NULL };
		GType email_details_tests_type_id;
		email_details_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "EmailDetailsTests", &g_define_type_info, 0);
		g_once_init_leave (&email_details_tests_type_id__volatile, email_details_tests_type_id);
	}
	return email_details_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	EmailDetailsTests* _tmp1_;
	EmailDetailsTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 208 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_test_init (&args_length1, &args, NULL);
#line 210 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp0_ = g_test_get_root ();
#line 210 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	root = _tmp0_;
#line 211 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp1_ = email_details_tests_new ();
#line 211 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp2_ = _tmp1_;
#line 211 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 211 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 211 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	_g_object_unref0 (_tmp2_);
#line 213 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	g_test_run ();
#line 215 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	result = 0;
#line 215 "/debian/rgs/devel/folks/tests/eds/email-details.vala"
	return result;
#line 1540 "email-details.c"
}


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



