/* im-details.c generated by valac 0.14.0.51-f9a867, 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 __lambda2_ (ImDetailsTests* self);
static gboolean ___lambda2__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 39 "/home/treitter/collabora/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;
#line 37 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	self = (ImDetailsTests*) folks_test_case_construct (object_type, "ImDetailsTests");
#line 39 "/home/treitter/collabora/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 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	return self;
#line 136 "im-details.c"
}


ImDetailsTests* im_details_tests_new (void) {
#line 35 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	return im_details_tests_construct (TYPE_IM_DETAILS_TESTS);
#line 143 "im-details.c"
}


static void im_details_tests_real_set_up (FolksTestCase* base) {
	ImDetailsTests * self;
	EdsTestBackend* _tmp0_;
	EdsTestBackend* _tmp1_;
	EdsTestBackend* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_ = NULL;
	gchar* config_val;
#line 43 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	self = (ImDetailsTests*) base;
#line 45 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp0_ = eds_test_backend_new ();
#line 45 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 45 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	self->priv->_eds_backend = _tmp0_;
#line 46 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp1_ = self->priv->_eds_backend;
#line 46 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	eds_test_backend_set_up (_tmp1_, FALSE);
#line 49 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp2_ = self->priv->_eds_backend;
#line 49 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp3_ = eds_test_backend_get_address_book_uid (_tmp2_);
#line 49 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp4_ = _tmp3_;
#line 49 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp5_ = g_strdup_printf ("eds:%s", _tmp4_);
#line 49 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	config_val = _tmp5_;
#line 50 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_setenv ("FOLKS_PRIMARY_STORE", config_val, TRUE);
#line 43 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_g_free0 (config_val);
#line 182 "im-details.c"
}


static void im_details_tests_real_tear_down (FolksTestCase* base) {
	ImDetailsTests * self;
	EdsTestBackend* _tmp0_;
#line 53 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	self = (ImDetailsTests*) base;
#line 55 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp0_ = self->priv->_eds_backend;
#line 55 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	eds_test_backend_tear_down (_tmp0_);
#line 195 "im-details.c"
}


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


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


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


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


static gboolean __lambda2_ (ImDetailsTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 86 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp0_ = self->priv->_main_loop;
#line 86 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_main_loop_quit (_tmp0_);
#line 87 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_assert_not_reached ();
#line 84 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	return result;
#line 240 "im-details.c"
}


static gboolean ___lambda2__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda2_ (self);
#line 84 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	return result;
#line 249 "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 58 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_return_if_fail (self != NULL);
#line 60 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 60 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 60 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	self->priv->_main_loop = _tmp0_;
#line 61 "/home/treitter/collabora/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 61 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	c1 = _tmp1_;
#line 62 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp2_ = g_strdup ("persona #1");
#line 62 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_g_free0 (self->priv->_fullname);
#line 62 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	self->priv->_fullname = _tmp2_;
#line 63 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp3_ = g_strdup ("im_jabber_home_1#test1@example.org");
#line 63 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_g_free0 (self->priv->_im_addrs);
#line 63 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	self->priv->_im_addrs = _tmp3_;
#line 64 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp4_ = self->priv->_im_addrs;
#line 64 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp5_ = g_strconcat (_tmp4_, ",im_yahoo_home_1#test2@example.org", NULL);
#line 64 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_g_free0 (self->priv->_im_addrs);
#line 64 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	self->priv->_im_addrs = _tmp5_;
#line 67 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp6_ = self->priv->_eds_backend;
#line 67 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	eds_test_backend_reset (_tmp6_);
#line 69 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_value_init (&_tmp7_, G_TYPE_STRING);
#line 69 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp8_ = _tmp7_;
#line 69 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp9_ = __g_value_dup0 (&_tmp8_);
#line 69 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	__vala_GValue_free0 (v);
#line 69 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	v = _tmp9_;
#line 69 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	G_IS_VALUE (&_tmp8_) ? (g_value_unset (&_tmp8_), NULL) : NULL;
#line 70 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp10_ = v;
#line 70 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp11_ = self->priv->_fullname;
#line 70 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_value_set_string (_tmp10_, _tmp11_);
#line 71 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp12_ = v;
#line 71 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	v = NULL;
#line 71 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp13_ = _tmp12_;
#line 71 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	gee_abstract_map_set ((GeeAbstractMap*) c1, "full_name", _tmp13_);
#line 71 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	__vala_GValue_free0 (_tmp13_);
#line 72 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_value_init (&_tmp14_, G_TYPE_STRING);
#line 72 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp15_ = _tmp14_;
#line 72 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp16_ = __g_value_dup0 (&_tmp15_);
#line 72 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	__vala_GValue_free0 (v);
#line 72 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	v = _tmp16_;
#line 72 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	G_IS_VALUE (&_tmp15_) ? (g_value_unset (&_tmp15_), NULL) : NULL;
#line 73 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp17_ = v;
#line 73 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp18_ = self->priv->_im_addrs;
#line 73 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_value_set_string (_tmp17_, _tmp18_);
#line 74 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp19_ = v;
#line 74 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	v = NULL;
#line 74 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp20_ = _tmp19_;
#line 74 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	gee_abstract_map_set ((GeeAbstractMap*) c1, "im_addresses", _tmp20_);
#line 74 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	__vala_GValue_free0 (_tmp20_);
#line 76 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp21_ = self->priv->_eds_backend;
#line 76 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp22_ = _g_object_ref0 (c1);
#line 76 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	eds_test_backend_add_contact (_tmp21_, _tmp22_);
#line 78 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	self->priv->_num_addrs = 0;
#line 79 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	self->priv->_found_addr_1 = FALSE;
#line 80 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	self->priv->_found_addr_2 = FALSE;
#line 82 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_im_details_tests_test_im_details_interface_async (self, NULL, NULL);
#line 84 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda2__gsource_func, g_object_ref (self), g_object_unref);
#line 90 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp23_ = self->priv->_main_loop;
#line 90 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_main_loop_run (_tmp23_);
#line 92 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp24_ = self->priv->_num_addrs;
#line 92 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_assert (_tmp24_ == 2);
#line 93 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp25_ = self->priv->_found_addr_1;
#line 93 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_assert (_tmp25_ == TRUE);
#line 94 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp26_ = self->priv->_found_addr_2;
#line 94 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_assert (_tmp26_ == TRUE);
#line 58 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	__vala_GValue_free0 (v);
#line 58 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_g_object_unref0 (c1);
#line 411 "im-details.c"
}


static void _im_details_tests_test_im_details_interface_async_data_free (gpointer _data) {
	ImDetailsTestsTestImDetailsInterfaceAsyncData* _data_;
	_data_ = _data;
#line 24 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_slice_free (ImDetailsTestsTestImDetailsInterfaceAsyncData, _data_);
#line 422 "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 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_data_ = g_slice_new0 (ImDetailsTestsTestImDetailsInterfaceAsyncData);
#line 24 "/home/treitter/collabora/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 "/home/treitter/collabora/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 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_data_->self = _tmp0_;
#line 24 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_im_details_tests_test_im_details_interface_async_co (_data_);
#line 441 "im-details.c"
}


static void _im_details_tests_test_im_details_interface_finish (ImDetailsTests* self, GAsyncResult* _res_) {
	ImDetailsTestsTestImDetailsInterfaceAsyncData* _data_;
#line 24 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 449 "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 100 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_data_ = _user_data_;
#line 100 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_data_->_source_object_ = source_object;
#line 100 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_data_->_res_ = _res_;
#line 100 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_im_details_tests_test_im_details_interface_async_co (_data_);
#line 463 "im-details.c"
}


static void __im_details_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 105 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_im_details_tests_individuals_changed_cb (self, changes);
#line 470 "im-details.c"
}


static gboolean _im_details_tests_test_im_details_interface_async_co (ImDetailsTestsTestImDetailsInterfaceAsyncData* _data_) {
#line 97 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	switch (_data_->_state_) {
#line 97 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		case 0:
#line 479 "im-details.c"
		goto _state_0;
#line 97 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		case 1:
#line 483 "im-details.c"
		goto _state_1;
#line 97 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		case 2:
#line 487 "im-details.c"
		goto _state_2;
#line 97 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		case 3:
#line 491 "im-details.c"
		goto _state_3;
		default:
#line 97 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		g_assert_not_reached ();
#line 496 "im-details.c"
	}
	_state_0:
#line 100 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_data_->_tmp0_ = _data_->self->priv->_eds_backend;
#line 100 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_data_->_state_ = 1;
#line 100 "/home/treitter/collabora/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 100 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	return FALSE;
#line 507 "im-details.c"
	_state_1:
#line 100 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	eds_test_backend_commit_contacts_to_addressbook_finish (_data_->_tmp0_, _data_->_res_);
#line 102 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_data_->_tmp1_ = NULL;
#line 102 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_data_->_tmp1_ = folks_backend_store_dup ();
#line 102 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_data_->store = _data_->_tmp1_;
#line 103 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_data_->_state_ = 2;
#line 103 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	folks_backend_store_prepare (_data_->store, _im_details_tests_test_im_details_interface_async_ready, _data_);
#line 103 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	return FALSE;
#line 523 "im-details.c"
	_state_2:
#line 103 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 104 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_data_->_tmp2_ = folks_individual_aggregator_new ();
#line 104 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 104 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_data_->self->priv->_aggregator = _data_->_tmp2_;
#line 105 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 105 "/home/treitter/collabora/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 537 "im-details.c"
	{
#line 109 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_data_->_tmp4_ = _data_->self->priv->_aggregator;
#line 109 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_data_->_state_ = 3;
#line 109 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		folks_individual_aggregator_prepare (_data_->_tmp4_, _im_details_tests_test_im_details_interface_async_ready, _data_);
#line 109 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		return FALSE;
#line 547 "im-details.c"
		_state_3:
#line 109 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp4_, _data_->_res_, &_data_->_inner_error_);
#line 109 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		if (_data_->_inner_error_ != NULL) {
#line 553 "im-details.c"
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 107 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_data_->e = _data_->_inner_error_;
#line 107 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_data_->_inner_error_ = NULL;
#line 113 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_data_->_tmp5_ = _data_->e;
#line 113 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_data_->_tmp6_ = _data_->_tmp5_->message;
#line 113 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		g_warning ("im-details.vala:113: Error when calling prepare: %s\n", _data_->_tmp6_);
#line 107 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_g_error_free0 (_data_->e);
#line 572 "im-details.c"
	}
	__finally0:
#line 107 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	if (_data_->_inner_error_ != NULL) {
#line 107 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_g_object_unref0 (_data_->store);
#line 107 "/home/treitter/collabora/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 107 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		g_clear_error (&_data_->_inner_error_);
#line 107 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		return FALSE;
#line 585 "im-details.c"
	}
#line 97 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_g_object_unref0 (_data_->store);
#line 97 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	if (_data_->_state_ == 0) {
#line 97 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 593 "im-details.c"
	} else {
#line 97 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 597 "im-details.c"
	}
#line 97 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_object_unref (_data_->_async_result);
#line 97 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	return FALSE;
#line 603 "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 117 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_return_if_fail (self != NULL);
#line 117 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_return_if_fail (changes != NULL);
#line 120 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp0_ = changes;
#line 120 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 120 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	added = _tmp1_;
#line 121 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp2_ = changes;
#line 121 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 121 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	removed = _tmp3_;
#line 638 "im-details.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 123 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_tmp4_ = added;
#line 123 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 123 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_i_it = _tmp5_;
#line 123 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		while (TRUE) {
#line 651 "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 123 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			_tmp6_ = _i_it;
#line 123 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 123 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			if (!_tmp7_) {
#line 123 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
				break;
#line 673 "im-details.c"
			}
#line 123 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			_tmp8_ = _i_it;
#line 123 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 123 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			i = (FolksIndividual*) _tmp9_;
#line 125 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			_tmp10_ = i;
#line 125 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			g_assert (_tmp10_ != NULL);
#line 127 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			_tmp11_ = i;
#line 127 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			_tmp12_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp11_);
#line 127 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			_tmp13_ = _tmp12_;
#line 127 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			_tmp14_ = g_strdup (_tmp13_);
#line 127 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			full_name = _tmp14_;
#line 128 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			_tmp15_ = full_name;
#line 128 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			_tmp16_ = self->priv->_fullname;
#line 128 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			if (g_strcmp0 (_tmp15_, _tmp16_) == 0) {
#line 701 "im-details.c"
				{
					FolksIndividual* _tmp17_;
					GeeMultiMap* _tmp18_;
					GeeMultiMap* _tmp19_;
					GeeSet* _tmp20_ = NULL;
					GeeSet* _tmp21_;
					GeeIterator* _tmp22_ = NULL;
					GeeIterator* _tmp23_;
					GeeIterator* _proto_it;
#line 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
					_tmp17_ = i;
#line 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
					_tmp18_ = folks_im_details_get_im_addresses ((FolksImDetails*) _tmp17_);
#line 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
					_tmp19_ = _tmp18_;
#line 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
					_tmp20_ = gee_multi_map_get_keys (_tmp19_);
#line 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
					_tmp21_ = _tmp20_;
#line 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
					_tmp22_ = gee_iterable_iterator ((GeeIterable*) _tmp21_);
#line 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
					_tmp23_ = _tmp22_;
#line 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
					_g_object_unref0 (_tmp21_);
#line 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
					_proto_it = _tmp23_;
#line 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
					while (TRUE) {
#line 731 "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 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
						_tmp24_ = _proto_it;
#line 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
						_tmp25_ = gee_iterator_next (_tmp24_);
#line 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
						if (!_tmp25_) {
#line 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
							break;
#line 752 "im-details.c"
						}
#line 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
						_tmp26_ = _proto_it;
#line 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
						_tmp27_ = gee_iterator_get (_tmp26_);
#line 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
						proto = (gchar*) _tmp27_;
#line 132 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
						_tmp28_ = i;
#line 132 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
						_tmp29_ = folks_im_details_get_im_addresses ((FolksImDetails*) _tmp28_);
#line 132 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
						_tmp30_ = _tmp29_;
#line 132 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
						_tmp31_ = proto;
#line 132 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
						_tmp32_ = gee_multi_map_get (_tmp30_, _tmp31_);
#line 132 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
						addrs = _tmp32_;
#line 134 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
						_tmp33_ = proto;
#line 134 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
						if (g_strcmp0 (_tmp33_, "jabber") == 0) {
#line 776 "im-details.c"
							GeeCollection* _tmp34_;
							FolksImFieldDetails* _tmp35_;
							FolksImFieldDetails* _tmp36_;
							gboolean _tmp37_ = FALSE;
							gboolean _tmp38_;
#line 136 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
							_tmp34_ = addrs;
#line 136 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
							_tmp35_ = folks_im_field_details_new ("test1@example.org", NULL);
#line 136 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
							_tmp36_ = _tmp35_;
#line 136 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
							_tmp37_ = gee_collection_contains (_tmp34_, _tmp36_);
#line 136 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
							_tmp38_ = _tmp37_;
#line 136 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
							_g_object_unref0 (_tmp36_);
#line 136 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
							if (_tmp38_) {
#line 796 "im-details.c"
								gint _tmp39_;
#line 139 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
								self->priv->_found_addr_1 = TRUE;
#line 140 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
								_tmp39_ = self->priv->_num_addrs;
#line 140 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
								self->priv->_num_addrs = _tmp39_ + 1;
#line 804 "im-details.c"
							}
						} else {
							const gchar* _tmp40_;
#line 143 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
							_tmp40_ = proto;
#line 143 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
							if (g_strcmp0 (_tmp40_, "yahoo") == 0) {
#line 812 "im-details.c"
								GeeCollection* _tmp41_;
								FolksImFieldDetails* _tmp42_;
								FolksImFieldDetails* _tmp43_;
								gboolean _tmp44_ = FALSE;
								gboolean _tmp45_;
#line 145 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
								_tmp41_ = addrs;
#line 145 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
								_tmp42_ = folks_im_field_details_new ("test2@example.org", NULL);
#line 145 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
								_tmp43_ = _tmp42_;
#line 145 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
								_tmp44_ = gee_collection_contains (_tmp41_, _tmp43_);
#line 145 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
								_tmp45_ = _tmp44_;
#line 145 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
								_g_object_unref0 (_tmp43_);
#line 145 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
								if (_tmp45_) {
#line 832 "im-details.c"
									gint _tmp46_;
#line 148 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
									self->priv->_found_addr_2 = TRUE;
#line 149 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
									_tmp46_ = self->priv->_num_addrs;
#line 149 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
									self->priv->_num_addrs = _tmp46_ + 1;
#line 840 "im-details.c"
								}
							}
						}
#line 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
						_g_object_unref0 (addrs);
#line 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
						_g_free0 (proto);
#line 848 "im-details.c"
					}
#line 130 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
					_g_object_unref0 (_proto_it);
#line 852 "im-details.c"
				}
			}
#line 123 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			_g_free0 (full_name);
#line 123 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			_g_object_unref0 (i);
#line 859 "im-details.c"
		}
#line 123 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_g_object_unref0 (_i_it);
#line 863 "im-details.c"
	}
#line 156 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp47_ = removed;
#line 156 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp48_ = gee_collection_get_size ((GeeCollection*) _tmp47_);
#line 156 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp49_ = _tmp48_;
#line 156 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_assert (_tmp49_ == 1);
#line 873 "im-details.c"
	{
		GeeSet* _tmp50_;
		GeeIterator* _tmp51_ = NULL;
		GeeIterator* _i_it;
#line 158 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_tmp50_ = removed;
#line 158 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_tmp51_ = gee_iterable_iterator ((GeeIterable*) _tmp50_);
#line 158 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_i_it = _tmp51_;
#line 158 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		while (TRUE) {
#line 886 "im-details.c"
			GeeIterator* _tmp52_;
			gboolean _tmp53_ = FALSE;
			GeeIterator* _tmp54_;
			gpointer _tmp55_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp56_;
#line 158 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			_tmp52_ = _i_it;
#line 158 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			_tmp53_ = gee_iterator_next (_tmp52_);
#line 158 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			if (!_tmp53_) {
#line 158 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
				break;
#line 901 "im-details.c"
			}
#line 158 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			_tmp54_ = _i_it;
#line 158 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			_tmp55_ = gee_iterator_get (_tmp54_);
#line 158 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			i = (FolksIndividual*) _tmp55_;
#line 160 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			_tmp56_ = i;
#line 160 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			g_assert (_tmp56_ == NULL);
#line 158 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
			_g_object_unref0 (i);
#line 915 "im-details.c"
		}
#line 158 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_g_object_unref0 (_i_it);
#line 919 "im-details.c"
	}
#line 163 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp59_ = self->priv->_num_addrs;
#line 163 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	if (_tmp59_ == 2) {
#line 925 "im-details.c"
		gboolean _tmp60_;
#line 164 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_tmp60_ = self->priv->_found_addr_1;
#line 164 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_tmp58_ = _tmp60_ == TRUE;
#line 931 "im-details.c"
	} else {
#line 163 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_tmp58_ = FALSE;
#line 935 "im-details.c"
	}
#line 163 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp61_ = _tmp58_;
#line 163 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	if (_tmp61_) {
#line 941 "im-details.c"
		gboolean _tmp62_;
#line 165 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_tmp62_ = self->priv->_found_addr_2;
#line 165 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_tmp57_ = _tmp62_ == TRUE;
#line 947 "im-details.c"
	} else {
#line 163 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_tmp57_ = FALSE;
#line 951 "im-details.c"
	}
#line 163 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp63_ = _tmp57_;
#line 163 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	if (_tmp63_) {
#line 957 "im-details.c"
		GMainLoop* _tmp64_;
#line 166 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		_tmp64_ = self->priv->_main_loop;
#line 166 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
		g_main_loop_quit (_tmp64_);
#line 963 "im-details.c"
	}
#line 117 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_g_object_unref0 (removed);
#line 117 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_g_object_unref0 (added);
#line 969 "im-details.c"
}


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


static void im_details_tests_instance_init (ImDetailsTests * self) {
#line 24 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	self->priv = IM_DETAILS_TESTS_GET_PRIVATE (self);
#line 991 "im-details.c"
}


static void im_details_tests_finalize (GObject* obj) {
	ImDetailsTests * self;
#line 24 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	self = IM_DETAILS_TESTS (obj);
#line 26 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 27 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 28 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 32 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_g_free0 (self->priv->_fullname);
#line 33 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_g_free0 (self->priv->_im_addrs);
#line 24 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	G_OBJECT_CLASS (im_details_tests_parent_class)->finalize (obj);
#line 1011 "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 172 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_test_init (&args_length1, &args, NULL);
#line 174 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp0_ = g_test_get_root ();
#line 174 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	root = _tmp0_;
#line 175 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp1_ = im_details_tests_new ();
#line 175 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp2_ = _tmp1_;
#line 175 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 175 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 175 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	_g_object_unref0 (_tmp2_);
#line 177 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	g_test_run ();
#line 179 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	result = 0;
#line 179 "/home/treitter/collabora/folks/tests/eds/im-details.vala"
	return result;
#line 1056 "im-details.c"
}


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



