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


#define TYPE_IM_DETAILS_INTERFACE_TESTS (im_details_interface_tests_get_type ())
#define IM_DETAILS_INTERFACE_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IM_DETAILS_INTERFACE_TESTS, ImDetailsInterfaceTests))
#define IM_DETAILS_INTERFACE_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IM_DETAILS_INTERFACE_TESTS, ImDetailsInterfaceTestsClass))
#define IS_IM_DETAILS_INTERFACE_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IM_DETAILS_INTERFACE_TESTS))
#define IS_IM_DETAILS_INTERFACE_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IM_DETAILS_INTERFACE_TESTS))
#define IM_DETAILS_INTERFACE_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IM_DETAILS_INTERFACE_TESTS, ImDetailsInterfaceTestsClass))

typedef struct _ImDetailsInterfaceTests ImDetailsInterfaceTests;
typedef struct _ImDetailsInterfaceTestsClass ImDetailsInterfaceTestsClass;
typedef struct _ImDetailsInterfaceTestsPrivate ImDetailsInterfaceTestsPrivate;
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define _tracker_test_backend_unref0(var) ((var == NULL) ? NULL : (var = (tracker_test_backend_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 _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _ImDetailsInterfaceTestsTestImDetailsInterfaceAsyncData ImDetailsInterfaceTestsTestImDetailsInterfaceAsyncData;
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

struct _ImDetailsInterfaceTests {
	FolksTestCase parent_instance;
	ImDetailsInterfaceTestsPrivate * priv;
};

struct _ImDetailsInterfaceTestsClass {
	FolksTestCaseClass parent_class;
};

struct _ImDetailsInterfaceTestsPrivate {
	GMainLoop* _main_loop;
	TrackerTestBackend* _tracker_backend;
	FolksIndividualAggregator* _aggregator;
	gint _num_addrs;
	gboolean _found_addr_1;
	gboolean _found_addr_2;
	gchar* _fullname;
};

struct _ImDetailsInterfaceTestsTestImDetailsInterfaceAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	ImDetailsInterfaceTests* self;
	FolksBackendStore* _tmp0_;
	FolksBackendStore* store;
	FolksIndividualAggregator* _tmp1_;
	FolksIndividualAggregator* _tmp2_;
	FolksIndividualAggregator* _tmp3_;
	GError* e;
	GError* _tmp4_;
	const gchar* _tmp5_;
	GError * _inner_error_;
};


static gpointer im_details_interface_tests_parent_class = NULL;

GType im_details_interface_tests_get_type (void) G_GNUC_CONST;
#define IM_DETAILS_INTERFACE_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_IM_DETAILS_INTERFACE_TESTS, ImDetailsInterfaceTestsPrivate))
enum  {
	IM_DETAILS_INTERFACE_TESTS_DUMMY_PROPERTY
};
ImDetailsInterfaceTests* im_details_interface_tests_new (void);
ImDetailsInterfaceTests* im_details_interface_tests_construct (GType object_type);
void im_details_interface_tests_test_im_details_interface (ImDetailsInterfaceTests* self);
static void _im_details_interface_tests_test_im_details_interface_folks_test_case_test_method (gpointer self);
static void im_details_interface_tests_real_set_up (FolksTestCase* base);
static void im_details_interface_tests_real_tear_down (FolksTestCase* base);
static void _im_details_interface_tests_test_im_details_interface_async (ImDetailsInterfaceTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _im_details_interface_tests_test_im_details_interface_finish (ImDetailsInterfaceTests* self, GAsyncResult* _res_);
static gboolean __lambda2_ (ImDetailsInterfaceTests* self);
static gboolean ___lambda2__gsource_func (gpointer self);
static void _im_details_interface_tests_test_im_details_interface_async_data_free (gpointer _data);
static gboolean _im_details_interface_tests_test_im_details_interface_async_co (ImDetailsInterfaceTestsTestImDetailsInterfaceAsyncData* _data_);
static void _im_details_interface_tests_test_im_details_interface_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _im_details_interface_tests_individuals_changed_cb (ImDetailsInterfaceTests* self, GeeMultiMap* changes);
static void __im_details_interface_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static void im_details_interface_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _im_details_interface_tests_test_im_details_interface_folks_test_case_test_method (gpointer self) {
#line 42 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	im_details_interface_tests_test_im_details_interface (self);
#line 121 "im-details-interface.c"
}


ImDetailsInterfaceTests* im_details_interface_tests_construct (GType object_type) {
	ImDetailsInterfaceTests * self = NULL;
	TrackerTestBackend* _tmp0_;
#line 38 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	self = (ImDetailsInterfaceTests*) folks_test_case_construct (object_type, "ImDetailsInterfaceTests");
#line 40 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp0_ = tracker_test_backend_new ();
#line 40 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 40 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	self->priv->_tracker_backend = _tmp0_;
#line 42 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test im details interface", _im_details_interface_tests_test_im_details_interface_folks_test_case_test_method, self);
#line 36 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	return self;
#line 140 "im-details-interface.c"
}


ImDetailsInterfaceTests* im_details_interface_tests_new (void) {
#line 36 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	return im_details_interface_tests_construct (TYPE_IM_DETAILS_INTERFACE_TESTS);
#line 147 "im-details-interface.c"
}


static void im_details_interface_tests_real_set_up (FolksTestCase* base) {
	ImDetailsInterfaceTests * self;
#line 46 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	self = (ImDetailsInterfaceTests*) base;
#line 155 "im-details-interface.c"
}


static void im_details_interface_tests_real_tear_down (FolksTestCase* base) {
	ImDetailsInterfaceTests * self;
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	self = (ImDetailsInterfaceTests*) base;
#line 163 "im-details-interface.c"
}


static gboolean __lambda2_ (ImDetailsInterfaceTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 75 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp0_ = self->priv->_main_loop;
#line 75 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	g_main_loop_quit (_tmp0_);
#line 76 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	g_assert_not_reached ();
#line 73 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	return result;
#line 178 "im-details-interface.c"
}


static gboolean ___lambda2__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda2_ (self);
#line 73 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	return result;
#line 187 "im-details-interface.c"
}


void im_details_interface_tests_test_im_details_interface (ImDetailsInterfaceTests* self) {
	GMainLoop* _tmp0_;
	GeeHashMap* _tmp1_;
	GeeHashMap* c1;
	gchar* _tmp2_;
	const gchar* _tmp3_;
	TrackerTestBackend* _tmp4_;
	TrackerTestBackend* _tmp5_;
	GMainLoop* _tmp6_;
	gint _tmp7_;
	gboolean _tmp8_;
	gboolean _tmp9_;
	TrackerTestBackend* _tmp10_;
#line 54 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	g_return_if_fail (self != NULL);
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	self->priv->_main_loop = _tmp0_;
#line 57 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
#line 57 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	c1 = _tmp1_;
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp2_ = g_strdup ("persona #1");
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_g_free0 (self->priv->_fullname);
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	self->priv->_fullname = _tmp2_;
#line 60 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp3_ = self->priv->_fullname;
#line 60 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	gee_abstract_map_set ((GeeAbstractMap*) c1, TRF_ONTOLOGY_DEFS_NCO_FULLNAME, _tmp3_);
#line 61 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	gee_abstract_map_set ((GeeAbstractMap*) c1, TRF_ONTOLOGY_DEFS_NCO_IMADDRESS, "jabber#test1@example.org,aim#test2@example.org");
#line 63 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp4_ = self->priv->_tracker_backend;
#line 63 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	tracker_test_backend_add_contact (_tmp4_, c1);
#line 65 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp5_ = self->priv->_tracker_backend;
#line 65 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	tracker_test_backend_set_up (_tmp5_);
#line 67 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	self->priv->_num_addrs = 0;
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	self->priv->_found_addr_1 = FALSE;
#line 69 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	self->priv->_found_addr_2 = FALSE;
#line 71 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_im_details_interface_tests_test_im_details_interface_async (self, NULL, NULL);
#line 73 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda2__gsource_func, g_object_ref (self), g_object_unref);
#line 79 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp6_ = self->priv->_main_loop;
#line 79 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	g_main_loop_run (_tmp6_);
#line 81 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp7_ = self->priv->_num_addrs;
#line 81 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_vala_assert (_tmp7_ == 2, "this._num_addrs == 2");
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp8_ = self->priv->_found_addr_1;
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_vala_assert (_tmp8_ == TRUE, "this._found_addr_1 == true");
#line 83 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp9_ = self->priv->_found_addr_2;
#line 83 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_vala_assert (_tmp9_ == TRUE, "this._found_addr_2 == true");
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp10_ = self->priv->_tracker_backend;
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	tracker_test_backend_tear_down (_tmp10_);
#line 54 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_g_object_unref0 (c1);
#line 268 "im-details-interface.c"
}


static void _im_details_interface_tests_test_im_details_interface_async_data_free (gpointer _data) {
	ImDetailsInterfaceTestsTestImDetailsInterfaceAsyncData* _data_;
	_data_ = _data;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	g_slice_free (ImDetailsInterfaceTestsTestImDetailsInterfaceAsyncData, _data_);
#line 279 "im-details-interface.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	return self ? g_object_ref (self) : NULL;
#line 286 "im-details-interface.c"
}


static void _im_details_interface_tests_test_im_details_interface_async (ImDetailsInterfaceTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ImDetailsInterfaceTestsTestImDetailsInterfaceAsyncData* _data_;
	ImDetailsInterfaceTests* _tmp0_;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_data_ = g_slice_new0 (ImDetailsInterfaceTestsTestImDetailsInterfaceAsyncData);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _im_details_interface_tests_test_im_details_interface_async);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _im_details_interface_tests_test_im_details_interface_async_data_free);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_data_->self = _tmp0_;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_im_details_interface_tests_test_im_details_interface_async_co (_data_);
#line 305 "im-details-interface.c"
}


static void _im_details_interface_tests_test_im_details_interface_finish (ImDetailsInterfaceTests* self, GAsyncResult* _res_) {
	ImDetailsInterfaceTestsTestImDetailsInterfaceAsyncData* _data_;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 313 "im-details-interface.c"
}


static void _im_details_interface_tests_test_im_details_interface_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	ImDetailsInterfaceTestsTestImDetailsInterfaceAsyncData* _data_;
#line 91 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_data_ = _user_data_;
#line 91 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_data_->_source_object_ = source_object;
#line 91 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_data_->_res_ = _res_;
#line 91 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_im_details_interface_tests_test_im_details_interface_async_co (_data_);
#line 327 "im-details-interface.c"
}


static void __im_details_interface_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 93 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_im_details_interface_tests_individuals_changed_cb (self, changes);
#line 334 "im-details-interface.c"
}


static gboolean _im_details_interface_tests_test_im_details_interface_async_co (ImDetailsInterfaceTestsTestImDetailsInterfaceAsyncData* _data_) {
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	switch (_data_->_state_) {
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		case 0:
#line 343 "im-details-interface.c"
		goto _state_0;
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		case 1:
#line 347 "im-details-interface.c"
		goto _state_1;
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		case 2:
#line 351 "im-details-interface.c"
		goto _state_2;
		default:
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		g_assert_not_reached ();
#line 356 "im-details-interface.c"
	}
	_state_0:
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_data_->_tmp0_ = NULL;
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_data_->store = _data_->_tmp0_;
#line 91 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_data_->_state_ = 1;
#line 91 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	folks_backend_store_prepare (_data_->store, _im_details_interface_tests_test_im_details_interface_async_ready, _data_);
#line 91 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	return FALSE;
#line 371 "im-details-interface.c"
	_state_1:
#line 91 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 92 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 92 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 92 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 93 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 93 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	g_signal_connect_object (_data_->_tmp2_, "individuals-changed-detailed", (GCallback) __im_details_interface_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed, _data_->self, 0);
#line 385 "im-details-interface.c"
	{
#line 97 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 97 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_data_->_state_ = 2;
#line 97 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		folks_individual_aggregator_prepare (_data_->_tmp3_, _im_details_interface_tests_test_im_details_interface_async_ready, _data_);
#line 97 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		return FALSE;
#line 395 "im-details-interface.c"
		_state_2:
#line 97 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 97 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		if (_data_->_inner_error_ != NULL) {
#line 401 "im-details-interface.c"
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_data_->e = _data_->_inner_error_;
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_data_->_inner_error_ = NULL;
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_data_->_tmp4_ = _data_->e;
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_data_->_tmp5_ = _data_->_tmp4_->message;
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		g_warning ("im-details-interface.vala:101: Error when calling prepare: %s\n", _data_->_tmp5_);
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_g_error_free0 (_data_->e);
#line 420 "im-details-interface.c"
	}
	__finally0:
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	if (_data_->_inner_error_ != NULL) {
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_g_object_unref0 (_data_->store);
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.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 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		g_clear_error (&_data_->_inner_error_);
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		return FALSE;
#line 433 "im-details-interface.c"
	}
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_g_object_unref0 (_data_->store);
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	if (_data_->_state_ == 0) {
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 441 "im-details-interface.c"
	} else {
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 445 "im-details-interface.c"
	}
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	g_object_unref (_data_->_async_result);
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	return FALSE;
#line 451 "im-details-interface.c"
}


static void _im_details_interface_tests_individuals_changed_cb (ImDetailsInterfaceTests* self, GeeMultiMap* changes) {
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
	gboolean _tmp55_ = FALSE;
	gboolean _tmp56_ = FALSE;
	gint _tmp57_;
	gboolean _tmp59_;
	gboolean _tmp61_;
	GeeSet* _tmp63_;
	gint _tmp64_;
	gint _tmp65_;
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	g_return_if_fail (self != NULL);
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	g_return_if_fail (changes != NULL);
#line 108 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp0_ = changes;
#line 108 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 108 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	added = _tmp1_;
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp2_ = changes;
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	removed = _tmp3_;
#line 486 "im-details-interface.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_tmp4_ = added;
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_i_it = _tmp5_;
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		while (TRUE) {
#line 499 "im-details-interface.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 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_tmp6_ = _i_it;
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			if (!_tmp7_) {
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
				break;
#line 521 "im-details-interface.c"
			}
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_tmp8_ = _i_it;
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			i = (FolksIndividual*) _tmp9_;
#line 113 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_tmp10_ = i;
#line 113 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_vala_assert (_tmp10_ != NULL, "i != null");
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_tmp11_ = i;
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_tmp12_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp11_);
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_tmp13_ = _tmp12_;
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_tmp14_ = g_strdup (_tmp13_);
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			full_name = _tmp14_;
#line 116 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_tmp15_ = full_name;
#line 116 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_tmp16_ = self->priv->_fullname;
#line 116 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			if (g_strcmp0 (_tmp15_, _tmp16_) == 0) {
#line 549 "im-details-interface.c"
				{
					FolksIndividual* _tmp17_;
					GeeMultiMap* _tmp18_;
					GeeMultiMap* _tmp19_;
					GeeSet* _tmp20_ = NULL;
					GeeSet* _tmp21_;
					GeeIterator* _tmp22_ = NULL;
					GeeIterator* _tmp23_;
					GeeIterator* _proto_it;
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
					_tmp17_ = i;
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
					_tmp18_ = folks_im_details_get_im_addresses ((FolksImDetails*) _tmp17_);
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
					_tmp19_ = _tmp18_;
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
					_tmp20_ = gee_multi_map_get_keys (_tmp19_);
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
					_tmp21_ = _tmp20_;
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
					_tmp22_ = gee_iterable_iterator ((GeeIterable*) _tmp21_);
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
					_tmp23_ = _tmp22_;
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
					_g_object_unref0 (_tmp21_);
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
					_proto_it = _tmp23_;
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
					while (TRUE) {
#line 579 "im-details-interface.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 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
						_tmp24_ = _proto_it;
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
						_tmp25_ = gee_iterator_next (_tmp24_);
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
						if (!_tmp25_) {
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
							break;
#line 600 "im-details-interface.c"
						}
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
						_tmp26_ = _proto_it;
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
						_tmp27_ = gee_iterator_get (_tmp26_);
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
						proto = (gchar*) _tmp27_;
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
						_tmp28_ = i;
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
						_tmp29_ = folks_im_details_get_im_addresses ((FolksImDetails*) _tmp28_);
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
						_tmp30_ = _tmp29_;
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
						_tmp31_ = proto;
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
						_tmp32_ = gee_multi_map_get (_tmp30_, _tmp31_);
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
						addrs = _tmp32_;
#line 122 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
						_tmp33_ = proto;
#line 122 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
						if (g_strcmp0 (_tmp33_, "jabber") == 0) {
#line 624 "im-details-interface.c"
							{
								GeeCollection* _tmp34_;
								GeeIterator* _tmp35_ = NULL;
								GeeIterator* _im_fd_it;
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
								_tmp34_ = addrs;
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
								_tmp35_ = gee_iterable_iterator ((GeeIterable*) _tmp34_);
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
								_im_fd_it = _tmp35_;
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
								while (TRUE) {
#line 637 "im-details-interface.c"
									GeeIterator* _tmp36_;
									gboolean _tmp37_ = FALSE;
									GeeIterator* _tmp38_;
									gpointer _tmp39_ = NULL;
									FolksImFieldDetails* im_fd;
									FolksImFieldDetails* _tmp40_;
									gconstpointer _tmp41_;
									const gchar* _tmp42_;
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
									_tmp36_ = _im_fd_it;
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
									_tmp37_ = gee_iterator_next (_tmp36_);
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
									if (!_tmp37_) {
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
										break;
#line 654 "im-details-interface.c"
									}
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
									_tmp38_ = _im_fd_it;
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
									_tmp39_ = gee_iterator_get (_tmp38_);
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
									im_fd = (FolksImFieldDetails*) _tmp39_;
#line 126 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
									_tmp40_ = im_fd;
#line 126 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
									_tmp41_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp40_);
#line 126 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
									_tmp42_ = _tmp41_;
#line 126 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
									if (g_strcmp0 ((const gchar*) _tmp42_, "test1@example.org") == 0) {
#line 670 "im-details-interface.c"
										gint _tmp43_;
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
										self->priv->_found_addr_1 = TRUE;
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
										_tmp43_ = self->priv->_num_addrs;
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
										self->priv->_num_addrs = _tmp43_ + 1;
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
										_g_object_unref0 (im_fd);
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
										break;
#line 682 "im-details-interface.c"
									}
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
									_g_object_unref0 (im_fd);
#line 686 "im-details-interface.c"
								}
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
								_g_object_unref0 (_im_fd_it);
#line 690 "im-details-interface.c"
							}
						} else {
							const gchar* _tmp44_;
#line 134 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
							_tmp44_ = proto;
#line 134 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
							if (g_strcmp0 (_tmp44_, "aim") == 0) {
#line 698 "im-details-interface.c"
								{
									GeeCollection* _tmp45_;
									GeeIterator* _tmp46_ = NULL;
									GeeIterator* _im_fd_it;
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
									_tmp45_ = addrs;
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
									_tmp46_ = gee_iterable_iterator ((GeeIterable*) _tmp45_);
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
									_im_fd_it = _tmp46_;
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
									while (TRUE) {
#line 711 "im-details-interface.c"
										GeeIterator* _tmp47_;
										gboolean _tmp48_ = FALSE;
										GeeIterator* _tmp49_;
										gpointer _tmp50_ = NULL;
										FolksImFieldDetails* im_fd;
										FolksImFieldDetails* _tmp51_;
										gconstpointer _tmp52_;
										const gchar* _tmp53_;
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
										_tmp47_ = _im_fd_it;
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
										_tmp48_ = gee_iterator_next (_tmp47_);
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
										if (!_tmp48_) {
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
											break;
#line 728 "im-details-interface.c"
										}
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
										_tmp49_ = _im_fd_it;
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
										_tmp50_ = gee_iterator_get (_tmp49_);
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
										im_fd = (FolksImFieldDetails*) _tmp50_;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
										_tmp51_ = im_fd;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
										_tmp52_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp51_);
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
										_tmp53_ = _tmp52_;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
										if (g_strcmp0 ((const gchar*) _tmp53_, "test2@example.org") == 0) {
#line 744 "im-details-interface.c"
											gint _tmp54_;
#line 140 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
											self->priv->_found_addr_2 = TRUE;
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
											_tmp54_ = self->priv->_num_addrs;
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
											self->priv->_num_addrs = _tmp54_ + 1;
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
											_g_object_unref0 (im_fd);
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
											break;
#line 756 "im-details-interface.c"
										}
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
										_g_object_unref0 (im_fd);
#line 760 "im-details-interface.c"
									}
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
									_g_object_unref0 (_im_fd_it);
#line 764 "im-details-interface.c"
								}
							}
						}
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
						_g_object_unref0 (addrs);
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
						_g_free0 (proto);
#line 772 "im-details-interface.c"
					}
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
					_g_object_unref0 (_proto_it);
#line 776 "im-details-interface.c"
				}
			}
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_g_free0 (full_name);
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_g_object_unref0 (i);
#line 783 "im-details-interface.c"
		}
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_g_object_unref0 (_i_it);
#line 787 "im-details-interface.c"
	}
#line 150 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp57_ = self->priv->_num_addrs;
#line 150 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	if (_tmp57_ == 2) {
#line 793 "im-details-interface.c"
		gboolean _tmp58_;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_tmp58_ = self->priv->_found_addr_1;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_tmp56_ = _tmp58_ == TRUE;
#line 799 "im-details-interface.c"
	} else {
#line 150 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_tmp56_ = FALSE;
#line 803 "im-details-interface.c"
	}
#line 150 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp59_ = _tmp56_;
#line 150 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	if (_tmp59_) {
#line 809 "im-details-interface.c"
		gboolean _tmp60_;
#line 152 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_tmp60_ = self->priv->_found_addr_2;
#line 152 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_tmp55_ = _tmp60_ == TRUE;
#line 815 "im-details-interface.c"
	} else {
#line 150 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_tmp55_ = FALSE;
#line 819 "im-details-interface.c"
	}
#line 150 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp61_ = _tmp55_;
#line 150 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	if (_tmp61_) {
#line 825 "im-details-interface.c"
		GMainLoop* _tmp62_;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_tmp62_ = self->priv->_main_loop;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		g_main_loop_quit (_tmp62_);
#line 831 "im-details-interface.c"
	}
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp63_ = removed;
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp64_ = gee_collection_get_size ((GeeCollection*) _tmp63_);
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp65_ = _tmp64_;
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_vala_assert (_tmp65_ == 1, "removed.size == 1");
#line 841 "im-details-interface.c"
	{
		GeeSet* _tmp66_;
		GeeIterator* _tmp67_ = NULL;
		GeeIterator* _i_it;
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_tmp66_ = removed;
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_tmp67_ = gee_iterable_iterator ((GeeIterable*) _tmp66_);
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_i_it = _tmp67_;
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		while (TRUE) {
#line 854 "im-details-interface.c"
			GeeIterator* _tmp68_;
			gboolean _tmp69_ = FALSE;
			GeeIterator* _tmp70_;
			gpointer _tmp71_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp72_;
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_tmp68_ = _i_it;
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_tmp69_ = gee_iterator_next (_tmp68_);
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			if (!_tmp69_) {
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
				break;
#line 869 "im-details-interface.c"
			}
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_tmp70_ = _i_it;
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_tmp71_ = gee_iterator_get (_tmp70_);
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			i = (FolksIndividual*) _tmp71_;
#line 159 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_tmp72_ = i;
#line 159 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_vala_assert (_tmp72_ == NULL, "i == null");
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
			_g_object_unref0 (i);
#line 883 "im-details-interface.c"
		}
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
		_g_object_unref0 (_i_it);
#line 887 "im-details-interface.c"
	}
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_g_object_unref0 (removed);
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_g_object_unref0 (added);
#line 893 "im-details-interface.c"
}


static void im_details_interface_tests_class_init (ImDetailsInterfaceTestsClass * klass) {
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	im_details_interface_tests_parent_class = g_type_class_peek_parent (klass);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	g_type_class_add_private (klass, sizeof (ImDetailsInterfaceTestsPrivate));
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = im_details_interface_tests_real_set_up;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = im_details_interface_tests_real_tear_down;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	G_OBJECT_CLASS (klass)->finalize = im_details_interface_tests_finalize;
#line 908 "im-details-interface.c"
}


static void im_details_interface_tests_instance_init (ImDetailsInterfaceTests * self) {
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	self->priv = IM_DETAILS_INTERFACE_TESTS_GET_PRIVATE (self);
#line 915 "im-details-interface.c"
}


static void im_details_interface_tests_finalize (GObject* obj) {
	ImDetailsInterfaceTests * self;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_IM_DETAILS_INTERFACE_TESTS, ImDetailsInterfaceTests);
#line 28 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 29 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 30 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 34 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_g_free0 (self->priv->_fullname);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	G_OBJECT_CLASS (im_details_interface_tests_parent_class)->finalize (obj);
#line 933 "im-details-interface.c"
}


GType im_details_interface_tests_get_type (void) {
	static volatile gsize im_details_interface_tests_type_id__volatile = 0;
	if (g_once_init_enter (&im_details_interface_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ImDetailsInterfaceTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) im_details_interface_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ImDetailsInterfaceTests), 0, (GInstanceInitFunc) im_details_interface_tests_instance_init, NULL };
		GType im_details_interface_tests_type_id;
		im_details_interface_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "ImDetailsInterfaceTests", &g_define_type_info, 0);
		g_once_init_leave (&im_details_interface_tests_type_id__volatile, im_details_interface_tests_type_id);
	}
	return im_details_interface_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	ImDetailsInterfaceTests* _tmp1_;
	ImDetailsInterfaceTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 166 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	g_test_init (&args_length1, &args, NULL);
#line 168 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp0_ = g_test_get_root ();
#line 168 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	root = _tmp0_;
#line 169 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp1_ = im_details_interface_tests_new ();
#line 169 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp2_ = _tmp1_;
#line 169 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 169 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 169 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	_g_object_unref0 (_tmp2_);
#line 171 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	g_test_run ();
#line 173 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	result = 0;
#line 173 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	return result;
#line 978 "im-details-interface.c"
}


int main (int argc, char ** argv) {
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	g_type_init ();
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/im-details-interface.vala"
	return _vala_main (argv, argc);
#line 987 "im-details-interface.c"
}



