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


#define TYPE_IM_DETAILS_TESTS (im_details_tests_get_type ())
#define IM_DETAILS_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IM_DETAILS_TESTS, ImDetailsTests))
#define IM_DETAILS_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IM_DETAILS_TESTS, ImDetailsTestsClass))
#define IS_IM_DETAILS_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IM_DETAILS_TESTS))
#define IS_IM_DETAILS_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IM_DETAILS_TESTS))
#define IM_DETAILS_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IM_DETAILS_TESTS, ImDetailsTestsClass))

typedef struct _ImDetailsTests ImDetailsTests;
typedef struct _ImDetailsTestsClass ImDetailsTestsClass;
typedef struct _ImDetailsTestsPrivate ImDetailsTestsPrivate;
#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 _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 _ImDetailsTestsTestImDetailsInterfaceAsyncData ImDetailsTestsTestImDetailsInterfaceAsyncData;

struct _ImDetailsTests {
	FolksTestCase parent_instance;
	ImDetailsTestsPrivate * priv;
};

struct _ImDetailsTestsClass {
	FolksTestCaseClass parent_class;
};

struct _ImDetailsTestsPrivate {
	EdsTestBackend* _eds_backend;
	GMainLoop* _main_loop;
	FolksIndividualAggregator* _aggregator;
	gint _num_addrs;
	gboolean _found_addr_1;
	gboolean _found_addr_2;
	gchar* _fullname;
	gchar* _im_addrs;
};

struct _ImDetailsTestsTestImDetailsInterfaceAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	ImDetailsTests* 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 im_details_tests_parent_class = NULL;

GType im_details_tests_get_type (void) G_GNUC_CONST;
#define IM_DETAILS_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_IM_DETAILS_TESTS, ImDetailsTestsPrivate))
enum  {
	IM_DETAILS_TESTS_DUMMY_PROPERTY
};
ImDetailsTests* im_details_tests_new (void);
ImDetailsTests* im_details_tests_construct (GType object_type);
void im_details_tests_test_im_details_interface (ImDetailsTests* self);
static void _im_details_tests_test_im_details_interface_folks_test_case_test_method (gpointer self);
static void im_details_tests_real_set_up (FolksTestCase* base);
static void im_details_tests_real_tear_down (FolksTestCase* base);
static GValue* _g_value_dup (GValue* self);
static void _vala_GValue_free (GValue* self);
static void _im_details_tests_test_im_details_interface_async (ImDetailsTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _im_details_tests_test_im_details_interface_finish (ImDetailsTests* self, GAsyncResult* _res_);
static gboolean __lambda0_ (ImDetailsTests* self);
static gboolean ___lambda0__gsource_func (gpointer self);
static void _im_details_tests_test_im_details_interface_async_data_free (gpointer _data);
static gboolean _im_details_tests_test_im_details_interface_async_co (ImDetailsTestsTestImDetailsInterfaceAsyncData* _data_);
static void _im_details_tests_test_im_details_interface_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _im_details_tests_individuals_changed_cb (ImDetailsTests* self, GeeMultiMap* changes);
static void __im_details_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static void im_details_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _im_details_tests_test_im_details_interface_folks_test_case_test_method (gpointer self) {
#line 41 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	im_details_tests_test_im_details_interface (self);
#line 124 "im-details.c"
}


ImDetailsTests* im_details_tests_construct (GType object_type) {
	ImDetailsTests * self = NULL;
	EdsTestBackend* _tmp0_;
#line 37 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	self = (ImDetailsTests*) folks_test_case_construct (object_type, "ImDetailsTests");
#line 39 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp0_ = eds_test_backend_new ();
#line 39 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 39 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	self->priv->_eds_backend = _tmp0_;
#line 41 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test im details interface", _im_details_tests_test_im_details_interface_folks_test_case_test_method, self);
#line 35 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	return self;
#line 143 "im-details.c"
}


ImDetailsTests* im_details_tests_new (void) {
#line 35 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	return im_details_tests_construct (TYPE_IM_DETAILS_TESTS);
#line 150 "im-details.c"
}


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


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


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


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


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


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


static gboolean __lambda0_ (ImDetailsTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 83 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp0_ = self->priv->_main_loop;
#line 83 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_main_loop_quit (_tmp0_);
#line 84 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_assert_not_reached ();
#line 81 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	return result;
#line 221 "im-details.c"
}


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


void im_details_tests_test_im_details_interface (ImDetailsTests* self) {
	GMainLoop* _tmp0_;
	GeeHashMap* _tmp1_;
	GeeHashMap* c1;
	gchar* _tmp2_;
	gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	GValue* v = NULL;
	EdsTestBackend* _tmp6_;
	GValue _tmp7_ = {0};
	GValue _tmp8_;
	GValue* _tmp9_;
	GValue* _tmp10_;
	const gchar* _tmp11_;
	GValue* _tmp12_;
	GValue* _tmp13_;
	GValue _tmp14_ = {0};
	GValue _tmp15_;
	GValue* _tmp16_;
	GValue* _tmp17_;
	const gchar* _tmp18_;
	GValue* _tmp19_;
	GValue* _tmp20_;
	EdsTestBackend* _tmp21_;
	GeeHashMap* _tmp22_;
	GMainLoop* _tmp23_;
	gint _tmp24_;
	gboolean _tmp25_;
	gboolean _tmp26_;
#line 55 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_return_if_fail (self != NULL);
#line 57 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 57 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 57 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	self->priv->_main_loop = _tmp0_;
#line 58 "/debian/rgs/devel/folks/tests/eds/im-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 58 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	c1 = _tmp1_;
#line 59 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp2_ = g_strdup ("persona #1");
#line 59 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_g_free0 (self->priv->_fullname);
#line 59 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	self->priv->_fullname = _tmp2_;
#line 60 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp3_ = g_strdup ("im_jabber_home_1#test1@example.org");
#line 60 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_g_free0 (self->priv->_im_addrs);
#line 60 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	self->priv->_im_addrs = _tmp3_;
#line 61 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp4_ = self->priv->_im_addrs;
#line 61 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp5_ = g_strconcat (_tmp4_, ",im_yahoo_home_1#test2@example.org", NULL);
#line 61 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_g_free0 (self->priv->_im_addrs);
#line 61 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	self->priv->_im_addrs = _tmp5_;
#line 64 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp6_ = self->priv->_eds_backend;
#line 64 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	eds_test_backend_reset (_tmp6_);
#line 66 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_value_init (&_tmp7_, G_TYPE_STRING);
#line 66 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp8_ = _tmp7_;
#line 66 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp9_ = __g_value_dup0 (&_tmp8_);
#line 66 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	__vala_GValue_free0 (v);
#line 66 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	v = _tmp9_;
#line 66 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	G_IS_VALUE (&_tmp8_) ? (g_value_unset (&_tmp8_), NULL) : NULL;
#line 67 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp10_ = v;
#line 67 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp11_ = self->priv->_fullname;
#line 67 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_value_set_string (_tmp10_, _tmp11_);
#line 68 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp12_ = v;
#line 68 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	v = NULL;
#line 68 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp13_ = _tmp12_;
#line 68 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	gee_abstract_map_set ((GeeAbstractMap*) c1, "full_name", _tmp13_);
#line 68 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	__vala_GValue_free0 (_tmp13_);
#line 69 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_value_init (&_tmp14_, G_TYPE_STRING);
#line 69 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp15_ = _tmp14_;
#line 69 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp16_ = __g_value_dup0 (&_tmp15_);
#line 69 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	__vala_GValue_free0 (v);
#line 69 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	v = _tmp16_;
#line 69 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	G_IS_VALUE (&_tmp15_) ? (g_value_unset (&_tmp15_), NULL) : NULL;
#line 70 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp17_ = v;
#line 70 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp18_ = self->priv->_im_addrs;
#line 70 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_value_set_string (_tmp17_, _tmp18_);
#line 71 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp19_ = v;
#line 71 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	v = NULL;
#line 71 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp20_ = _tmp19_;
#line 71 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	gee_abstract_map_set ((GeeAbstractMap*) c1, "im_addresses", _tmp20_);
#line 71 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	__vala_GValue_free0 (_tmp20_);
#line 73 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp21_ = self->priv->_eds_backend;
#line 73 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp22_ = _g_object_ref0 (c1);
#line 73 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	eds_test_backend_add_contact (_tmp21_, _tmp22_);
#line 75 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	self->priv->_num_addrs = 0;
#line 76 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	self->priv->_found_addr_1 = FALSE;
#line 77 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	self->priv->_found_addr_2 = FALSE;
#line 79 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_im_details_tests_test_im_details_interface_async (self, NULL, NULL);
#line 81 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda0__gsource_func, g_object_ref (self), g_object_unref);
#line 87 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp23_ = self->priv->_main_loop;
#line 87 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_main_loop_run (_tmp23_);
#line 89 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp24_ = self->priv->_num_addrs;
#line 89 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_assert (_tmp24_ == 2);
#line 90 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp25_ = self->priv->_found_addr_1;
#line 90 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_assert (_tmp25_ == TRUE);
#line 91 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp26_ = self->priv->_found_addr_2;
#line 91 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_assert (_tmp26_ == TRUE);
#line 55 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	__vala_GValue_free0 (v);
#line 55 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_g_object_unref0 (c1);
#line 392 "im-details.c"
}


static void _im_details_tests_test_im_details_interface_async_data_free (gpointer _data) {
	ImDetailsTestsTestImDetailsInterfaceAsyncData* _data_;
	_data_ = _data;
#line 24 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_slice_free (ImDetailsTestsTestImDetailsInterfaceAsyncData, _data_);
#line 403 "im-details.c"
}


static void _im_details_tests_test_im_details_interface_async (ImDetailsTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ImDetailsTestsTestImDetailsInterfaceAsyncData* _data_;
	ImDetailsTests* _tmp0_;
#line 24 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_data_ = g_slice_new0 (ImDetailsTestsTestImDetailsInterfaceAsyncData);
#line 24 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _im_details_tests_test_im_details_interface_async);
#line 24 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _im_details_tests_test_im_details_interface_async_data_free);
#line 24 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_data_->self = _tmp0_;
#line 24 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_im_details_tests_test_im_details_interface_async_co (_data_);
#line 422 "im-details.c"
}


static void _im_details_tests_test_im_details_interface_finish (ImDetailsTests* self, GAsyncResult* _res_) {
	ImDetailsTestsTestImDetailsInterfaceAsyncData* _data_;
#line 24 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 430 "im-details.c"
}


static void _im_details_tests_test_im_details_interface_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	ImDetailsTestsTestImDetailsInterfaceAsyncData* _data_;
#line 97 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_data_ = _user_data_;
#line 97 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_data_->_source_object_ = source_object;
#line 97 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_data_->_res_ = _res_;
#line 97 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_im_details_tests_test_im_details_interface_async_co (_data_);
#line 444 "im-details.c"
}


static void __im_details_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 102 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_im_details_tests_individuals_changed_cb (self, changes);
#line 451 "im-details.c"
}


static gboolean _im_details_tests_test_im_details_interface_async_co (ImDetailsTestsTestImDetailsInterfaceAsyncData* _data_) {
#line 94 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	switch (_data_->_state_) {
#line 94 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		case 0:
#line 460 "im-details.c"
		goto _state_0;
#line 94 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		case 1:
#line 464 "im-details.c"
		goto _state_1;
#line 94 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		case 2:
#line 468 "im-details.c"
		goto _state_2;
#line 94 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		case 3:
#line 472 "im-details.c"
		goto _state_3;
		default:
#line 94 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		g_assert_not_reached ();
#line 477 "im-details.c"
	}
	_state_0:
#line 97 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_data_->_tmp0_ = _data_->self->priv->_eds_backend;
#line 97 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_data_->_state_ = 1;
#line 97 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	eds_test_backend_commit_contacts_to_addressbook (_data_->_tmp0_, _im_details_tests_test_im_details_interface_async_ready, _data_);
#line 97 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	return FALSE;
#line 488 "im-details.c"
	_state_1:
#line 97 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	eds_test_backend_commit_contacts_to_addressbook_finish (_data_->_tmp0_, _data_->_res_);
#line 99 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_data_->_tmp1_ = NULL;
#line 99 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_data_->_tmp1_ = folks_backend_store_dup ();
#line 99 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_data_->store = _data_->_tmp1_;
#line 100 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_data_->_state_ = 2;
#line 100 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	folks_backend_store_prepare (_data_->store, _im_details_tests_test_im_details_interface_async_ready, _data_);
#line 100 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	return FALSE;
#line 504 "im-details.c"
	_state_2:
#line 100 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 101 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_data_->_tmp2_ = folks_individual_aggregator_new ();
#line 101 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 101 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_data_->self->priv->_aggregator = _data_->_tmp2_;
#line 102 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 102 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_signal_connect_object (_data_->_tmp3_, "individuals-changed-detailed", (GCallback) __im_details_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed, _data_->self, 0);
#line 518 "im-details.c"
	{
#line 106 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_data_->_tmp4_ = _data_->self->priv->_aggregator;
#line 106 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_data_->_state_ = 3;
#line 106 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		folks_individual_aggregator_prepare (_data_->_tmp4_, _im_details_tests_test_im_details_interface_async_ready, _data_);
#line 106 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		return FALSE;
#line 528 "im-details.c"
		_state_3:
#line 106 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp4_, _data_->_res_, &_data_->_inner_error_);
#line 106 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		if (_data_->_inner_error_ != NULL) {
#line 534 "im-details.c"
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 104 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_data_->e = _data_->_inner_error_;
#line 104 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_data_->_inner_error_ = NULL;
#line 110 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_data_->_tmp5_ = _data_->e;
#line 110 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_data_->_tmp6_ = _data_->_tmp5_->message;
#line 110 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		g_warning ("im-details.vala:110: Error when calling prepare: %s\n", _data_->_tmp6_);
#line 104 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_g_error_free0 (_data_->e);
#line 553 "im-details.c"
	}
	__finally0:
#line 104 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	if (_data_->_inner_error_ != NULL) {
#line 104 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_g_object_unref0 (_data_->store);
#line 104 "/debian/rgs/devel/folks/tests/eds/im-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 104 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		g_clear_error (&_data_->_inner_error_);
#line 104 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		return FALSE;
#line 566 "im-details.c"
	}
#line 94 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_g_object_unref0 (_data_->store);
#line 94 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	if (_data_->_state_ == 0) {
#line 94 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 574 "im-details.c"
	} else {
#line 94 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 578 "im-details.c"
	}
#line 94 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_object_unref (_data_->_async_result);
#line 94 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	return FALSE;
#line 584 "im-details.c"
}


static void _im_details_tests_individuals_changed_cb (ImDetailsTests* self, GeeMultiMap* changes) {
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
	GeeSet* _tmp47_;
	gint _tmp48_;
	gint _tmp49_;
	gboolean _tmp57_ = FALSE;
	gboolean _tmp58_ = FALSE;
	gint _tmp59_;
	gboolean _tmp61_;
	gboolean _tmp63_;
#line 114 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_return_if_fail (self != NULL);
#line 114 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_return_if_fail (changes != NULL);
#line 117 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp0_ = changes;
#line 117 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 117 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	added = _tmp1_;
#line 118 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp2_ = changes;
#line 118 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 118 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	removed = _tmp3_;
#line 619 "im-details.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 120 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_tmp4_ = added;
#line 120 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 120 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_i_it = _tmp5_;
#line 120 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		while (TRUE) {
#line 632 "im-details.c"
			GeeIterator* _tmp6_;
			gboolean _tmp7_ = FALSE;
			GeeIterator* _tmp8_;
			gpointer _tmp9_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp10_;
			FolksIndividual* _tmp11_;
			const gchar* _tmp12_;
			const gchar* _tmp13_;
			gchar* _tmp14_;
			gchar* full_name;
			const gchar* _tmp15_;
			const gchar* _tmp16_;
#line 120 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			_tmp6_ = _i_it;
#line 120 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 120 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			if (!_tmp7_) {
#line 120 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
				break;
#line 654 "im-details.c"
			}
#line 120 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			_tmp8_ = _i_it;
#line 120 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 120 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			i = (FolksIndividual*) _tmp9_;
#line 122 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			_tmp10_ = i;
#line 122 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			g_assert (_tmp10_ != NULL);
#line 124 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			_tmp11_ = i;
#line 124 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			_tmp12_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp11_);
#line 124 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			_tmp13_ = _tmp12_;
#line 124 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			_tmp14_ = g_strdup (_tmp13_);
#line 124 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			full_name = _tmp14_;
#line 125 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			_tmp15_ = full_name;
#line 125 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			_tmp16_ = self->priv->_fullname;
#line 125 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			if (g_strcmp0 (_tmp15_, _tmp16_) == 0) {
#line 682 "im-details.c"
				{
					FolksIndividual* _tmp17_;
					GeeMultiMap* _tmp18_;
					GeeMultiMap* _tmp19_;
					GeeSet* _tmp20_ = NULL;
					GeeSet* _tmp21_;
					GeeIterator* _tmp22_ = NULL;
					GeeIterator* _tmp23_;
					GeeIterator* _proto_it;
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
					_tmp17_ = i;
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
					_tmp18_ = folks_im_details_get_im_addresses ((FolksImDetails*) _tmp17_);
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
					_tmp19_ = _tmp18_;
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
					_tmp20_ = gee_multi_map_get_keys (_tmp19_);
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
					_tmp21_ = _tmp20_;
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
					_tmp22_ = gee_iterable_iterator ((GeeIterable*) _tmp21_);
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
					_tmp23_ = _tmp22_;
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
					_g_object_unref0 (_tmp21_);
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
					_proto_it = _tmp23_;
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
					while (TRUE) {
#line 712 "im-details.c"
						GeeIterator* _tmp24_;
						gboolean _tmp25_ = FALSE;
						GeeIterator* _tmp26_;
						gpointer _tmp27_ = NULL;
						gchar* proto;
						FolksIndividual* _tmp28_;
						GeeMultiMap* _tmp29_;
						GeeMultiMap* _tmp30_;
						const gchar* _tmp31_;
						GeeCollection* _tmp32_ = NULL;
						GeeCollection* addrs;
						const gchar* _tmp33_;
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
						_tmp24_ = _proto_it;
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
						_tmp25_ = gee_iterator_next (_tmp24_);
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
						if (!_tmp25_) {
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
							break;
#line 733 "im-details.c"
						}
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
						_tmp26_ = _proto_it;
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
						_tmp27_ = gee_iterator_get (_tmp26_);
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
						proto = (gchar*) _tmp27_;
#line 129 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
						_tmp28_ = i;
#line 129 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
						_tmp29_ = folks_im_details_get_im_addresses ((FolksImDetails*) _tmp28_);
#line 129 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
						_tmp30_ = _tmp29_;
#line 129 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
						_tmp31_ = proto;
#line 129 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
						_tmp32_ = gee_multi_map_get (_tmp30_, _tmp31_);
#line 129 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
						addrs = _tmp32_;
#line 131 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
						_tmp33_ = proto;
#line 131 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
						if (g_strcmp0 (_tmp33_, "jabber") == 0) {
#line 757 "im-details.c"
							GeeCollection* _tmp34_;
							FolksImFieldDetails* _tmp35_;
							FolksImFieldDetails* _tmp36_;
							gboolean _tmp37_ = FALSE;
							gboolean _tmp38_;
#line 133 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
							_tmp34_ = addrs;
#line 133 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
							_tmp35_ = folks_im_field_details_new ("test1@example.org", NULL);
#line 133 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
							_tmp36_ = _tmp35_;
#line 133 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
							_tmp37_ = gee_collection_contains (_tmp34_, _tmp36_);
#line 133 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
							_tmp38_ = _tmp37_;
#line 133 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
							_g_object_unref0 (_tmp36_);
#line 133 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
							if (_tmp38_) {
#line 777 "im-details.c"
								gint _tmp39_;
#line 136 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
								self->priv->_found_addr_1 = TRUE;
#line 137 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
								_tmp39_ = self->priv->_num_addrs;
#line 137 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
								self->priv->_num_addrs = _tmp39_ + 1;
#line 785 "im-details.c"
							}
						} else {
							const gchar* _tmp40_;
#line 140 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
							_tmp40_ = proto;
#line 140 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
							if (g_strcmp0 (_tmp40_, "yahoo") == 0) {
#line 793 "im-details.c"
								GeeCollection* _tmp41_;
								FolksImFieldDetails* _tmp42_;
								FolksImFieldDetails* _tmp43_;
								gboolean _tmp44_ = FALSE;
								gboolean _tmp45_;
#line 142 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
								_tmp41_ = addrs;
#line 142 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
								_tmp42_ = folks_im_field_details_new ("test2@example.org", NULL);
#line 142 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
								_tmp43_ = _tmp42_;
#line 142 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
								_tmp44_ = gee_collection_contains (_tmp41_, _tmp43_);
#line 142 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
								_tmp45_ = _tmp44_;
#line 142 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
								_g_object_unref0 (_tmp43_);
#line 142 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
								if (_tmp45_) {
#line 813 "im-details.c"
									gint _tmp46_;
#line 145 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
									self->priv->_found_addr_2 = TRUE;
#line 146 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
									_tmp46_ = self->priv->_num_addrs;
#line 146 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
									self->priv->_num_addrs = _tmp46_ + 1;
#line 821 "im-details.c"
								}
							}
						}
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
						_g_object_unref0 (addrs);
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
						_g_free0 (proto);
#line 829 "im-details.c"
					}
#line 127 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
					_g_object_unref0 (_proto_it);
#line 833 "im-details.c"
				}
			}
#line 120 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			_g_free0 (full_name);
#line 120 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			_g_object_unref0 (i);
#line 840 "im-details.c"
		}
#line 120 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_g_object_unref0 (_i_it);
#line 844 "im-details.c"
	}
#line 153 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp47_ = removed;
#line 153 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp48_ = gee_collection_get_size ((GeeCollection*) _tmp47_);
#line 153 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp49_ = _tmp48_;
#line 153 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_assert (_tmp49_ == 1);
#line 854 "im-details.c"
	{
		GeeSet* _tmp50_;
		GeeIterator* _tmp51_ = NULL;
		GeeIterator* _i_it;
#line 155 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_tmp50_ = removed;
#line 155 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_tmp51_ = gee_iterable_iterator ((GeeIterable*) _tmp50_);
#line 155 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_i_it = _tmp51_;
#line 155 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		while (TRUE) {
#line 867 "im-details.c"
			GeeIterator* _tmp52_;
			gboolean _tmp53_ = FALSE;
			GeeIterator* _tmp54_;
			gpointer _tmp55_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp56_;
#line 155 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			_tmp52_ = _i_it;
#line 155 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			_tmp53_ = gee_iterator_next (_tmp52_);
#line 155 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			if (!_tmp53_) {
#line 155 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
				break;
#line 882 "im-details.c"
			}
#line 155 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			_tmp54_ = _i_it;
#line 155 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			_tmp55_ = gee_iterator_get (_tmp54_);
#line 155 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			i = (FolksIndividual*) _tmp55_;
#line 157 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			_tmp56_ = i;
#line 157 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			g_assert (_tmp56_ == NULL);
#line 155 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
			_g_object_unref0 (i);
#line 896 "im-details.c"
		}
#line 155 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_g_object_unref0 (_i_it);
#line 900 "im-details.c"
	}
#line 160 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp59_ = self->priv->_num_addrs;
#line 160 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	if (_tmp59_ == 2) {
#line 906 "im-details.c"
		gboolean _tmp60_;
#line 161 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_tmp60_ = self->priv->_found_addr_1;
#line 161 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_tmp58_ = _tmp60_ == TRUE;
#line 912 "im-details.c"
	} else {
#line 160 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_tmp58_ = FALSE;
#line 916 "im-details.c"
	}
#line 160 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp61_ = _tmp58_;
#line 160 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	if (_tmp61_) {
#line 922 "im-details.c"
		gboolean _tmp62_;
#line 162 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_tmp62_ = self->priv->_found_addr_2;
#line 162 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_tmp57_ = _tmp62_ == TRUE;
#line 928 "im-details.c"
	} else {
#line 160 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_tmp57_ = FALSE;
#line 932 "im-details.c"
	}
#line 160 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp63_ = _tmp57_;
#line 160 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	if (_tmp63_) {
#line 938 "im-details.c"
		GMainLoop* _tmp64_;
#line 163 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		_tmp64_ = self->priv->_main_loop;
#line 163 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
		g_main_loop_quit (_tmp64_);
#line 944 "im-details.c"
	}
#line 114 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_g_object_unref0 (removed);
#line 114 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_g_object_unref0 (added);
#line 950 "im-details.c"
}


static void im_details_tests_class_init (ImDetailsTestsClass * klass) {
#line 24 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	im_details_tests_parent_class = g_type_class_peek_parent (klass);
#line 24 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_type_class_add_private (klass, sizeof (ImDetailsTestsPrivate));
#line 24 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = im_details_tests_real_set_up;
#line 24 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = im_details_tests_real_tear_down;
#line 24 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	G_OBJECT_CLASS (klass)->finalize = im_details_tests_finalize;
#line 965 "im-details.c"
}


static void im_details_tests_instance_init (ImDetailsTests * self) {
#line 24 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	self->priv = IM_DETAILS_TESTS_GET_PRIVATE (self);
#line 972 "im-details.c"
}


static void im_details_tests_finalize (GObject* obj) {
	ImDetailsTests * self;
#line 24 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	self = IM_DETAILS_TESTS (obj);
#line 26 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 27 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 28 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 32 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_g_free0 (self->priv->_fullname);
#line 33 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_g_free0 (self->priv->_im_addrs);
#line 24 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	G_OBJECT_CLASS (im_details_tests_parent_class)->finalize (obj);
#line 992 "im-details.c"
}


GType im_details_tests_get_type (void) {
	static volatile gsize im_details_tests_type_id__volatile = 0;
	if (g_once_init_enter (&im_details_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ImDetailsTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) im_details_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImDetailsTests), 0, (GInstanceInitFunc) im_details_tests_instance_init, NULL };
		GType im_details_tests_type_id;
		im_details_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "ImDetailsTests", &g_define_type_info, 0);
		g_once_init_leave (&im_details_tests_type_id__volatile, im_details_tests_type_id);
	}
	return im_details_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	ImDetailsTests* _tmp1_;
	ImDetailsTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 169 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_test_init (&args_length1, &args, NULL);
#line 171 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp0_ = g_test_get_root ();
#line 171 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	root = _tmp0_;
#line 172 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp1_ = im_details_tests_new ();
#line 172 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp2_ = _tmp1_;
#line 172 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 172 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 172 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	_g_object_unref0 (_tmp2_);
#line 174 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	g_test_run ();
#line 176 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	result = 0;
#line 176 "/debian/rgs/devel/folks/tests/eds/im-details.vala"
	return result;
#line 1037 "im-details.c"
}


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



