/* imaddresses-updates.c generated by valac 0.14.0.3-1a311, the Vala compiler
 * generated from imaddresses-updates.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_ADDRESSES_UPDATES_TESTS (im_addresses_updates_tests_get_type ())
#define IM_ADDRESSES_UPDATES_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_IM_ADDRESSES_UPDATES_TESTS, IMAddressesUpdatesTests))
#define IM_ADDRESSES_UPDATES_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_IM_ADDRESSES_UPDATES_TESTS, IMAddressesUpdatesTestsClass))
#define IS_IM_ADDRESSES_UPDATES_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_IM_ADDRESSES_UPDATES_TESTS))
#define IS_IM_ADDRESSES_UPDATES_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_IM_ADDRESSES_UPDATES_TESTS))
#define IM_ADDRESSES_UPDATES_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_IM_ADDRESSES_UPDATES_TESTS, IMAddressesUpdatesTestsClass))

typedef struct _IMAddressesUpdatesTests IMAddressesUpdatesTests;
typedef struct _IMAddressesUpdatesTestsClass IMAddressesUpdatesTestsClass;
typedef struct _IMAddressesUpdatesTestsPrivate IMAddressesUpdatesTestsPrivate;
#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_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_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 _ImAddressesUpdatesTestsTestImaddressesUpdatesAsyncData ImAddressesUpdatesTestsTestImaddressesUpdatesAsyncData;

struct _IMAddressesUpdatesTests {
	FolksTestCase parent_instance;
	IMAddressesUpdatesTestsPrivate * priv;
};

struct _IMAddressesUpdatesTestsClass {
	FolksTestCaseClass parent_class;
};

struct _IMAddressesUpdatesTestsPrivate {
	TrackerTestBackend* _tracker_backend;
	FolksIndividualAggregator* _aggregator;
	GMainLoop* _main_loop;
	gchar* _initial_fullname_1;
	gchar* _contact_urn_1;
	gchar* _imaddress_proto_1;
	gchar* _imaddress_1;
	gchar* _imaddress_2;
	gchar* _proto_2;
	gchar* _individual_id;
	gboolean _initial_imaddress_found;
	gboolean _updated_imaddr_found;
};

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


static gpointer im_addresses_updates_tests_parent_class = NULL;

GType im_addresses_updates_tests_get_type (void) G_GNUC_CONST;
#define IM_ADDRESSES_UPDATES_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_IM_ADDRESSES_UPDATES_TESTS, IMAddressesUpdatesTestsPrivate))
enum  {
	IM_ADDRESSES_UPDATES_TESTS_DUMMY_PROPERTY
};
IMAddressesUpdatesTests* im_addresses_updates_tests_new (void);
IMAddressesUpdatesTests* im_addresses_updates_tests_construct (GType object_type);
void im_addresses_updates_tests_test_imaddresses_updates (IMAddressesUpdatesTests* self);
static void _im_addresses_updates_tests_test_imaddresses_updates_folks_test_case_test_method (gpointer self);
static void im_addresses_updates_tests_real_set_up (FolksTestCase* base);
static void im_addresses_updates_tests_real_tear_down (FolksTestCase* base);
static void _im_addresses_updates_tests_test_imaddresses_updates_async (IMAddressesUpdatesTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _im_addresses_updates_tests_test_imaddresses_updates_finish (IMAddressesUpdatesTests* self, GAsyncResult* _res_);
static gboolean __lambda0_ (IMAddressesUpdatesTests* self);
static gboolean ___lambda0__gsource_func (gpointer self);
static void _im_addresses_updates_tests_test_imaddresses_updates_async_data_free (gpointer _data);
static gboolean _im_addresses_updates_tests_test_imaddresses_updates_async_co (ImAddressesUpdatesTestsTestImaddressesUpdatesAsyncData* _data_);
static void _im_addresses_updates_tests_test_imaddresses_updates_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _im_addresses_updates_tests_individuals_changed_cb (IMAddressesUpdatesTests* self, GeeMultiMap* changes);
static void __im_addresses_updates_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static void _im_addresses_updates_tests_do_im_addr_update (IMAddressesUpdatesTests* self);
static void im_addresses_updates_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _im_addresses_updates_tests_test_imaddresses_updates_folks_test_case_test_method (gpointer self) {
#line 48 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	im_addresses_updates_tests_test_imaddresses_updates (self);
#line 126 "imaddresses-updates.c"
}


IMAddressesUpdatesTests* im_addresses_updates_tests_construct (GType object_type) {
	IMAddressesUpdatesTests * self = NULL;
	TrackerTestBackend* _tmp0_;
	TrackerTestBackend* _tmp1_;
#line 43 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	self = (IMAddressesUpdatesTests*) folks_test_case_construct (object_type, "IMAddressesUpdates");
#line 45 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp0_ = tracker_test_backend_new ();
#line 45 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 45 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	self->priv->_tracker_backend = _tmp0_;
#line 46 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp1_ = self->priv->_tracker_backend;
#line 46 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	tracker_test_backend_set_debug (_tmp1_, FALSE);
#line 48 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "im addresses updates", _im_addresses_updates_tests_test_imaddresses_updates_folks_test_case_test_method, self);
#line 41 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	return self;
#line 150 "imaddresses-updates.c"
}


IMAddressesUpdatesTests* im_addresses_updates_tests_new (void) {
#line 41 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	return im_addresses_updates_tests_construct (TYPE_IM_ADDRESSES_UPDATES_TESTS);
#line 157 "imaddresses-updates.c"
}


static void im_addresses_updates_tests_real_set_up (FolksTestCase* base) {
	IMAddressesUpdatesTests * self;
#line 51 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	self = (IMAddressesUpdatesTests*) base;
#line 165 "imaddresses-updates.c"
}


static void im_addresses_updates_tests_real_tear_down (FolksTestCase* base) {
	IMAddressesUpdatesTests * self;
#line 55 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	self = (IMAddressesUpdatesTests*) base;
#line 173 "imaddresses-updates.c"
}


static gboolean __lambda0_ (IMAddressesUpdatesTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 84 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp0_ = self->priv->_main_loop;
#line 84 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	g_main_loop_quit (_tmp0_);
#line 85 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	g_assert_not_reached ();
#line 82 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	return result;
#line 188 "imaddresses-updates.c"
}


static gboolean ___lambda0__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda0_ (self);
#line 82 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	return result;
#line 197 "imaddresses-updates.c"
}


void im_addresses_updates_tests_test_imaddresses_updates (IMAddressesUpdatesTests* self) {
	GMainLoop* _tmp0_;
	GeeHashMap* _tmp1_;
	GeeHashMap* c1;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	const gchar* _tmp8_;
	const gchar* _tmp9_;
	const gchar* _tmp10_;
	TrackerTestBackend* _tmp11_;
	TrackerTestBackend* _tmp12_;
	gchar* _tmp13_;
	GMainLoop* _tmp14_;
	gboolean _tmp15_;
	gboolean _tmp16_;
	TrackerTestBackend* _tmp17_;
#line 59 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	g_return_if_fail (self != NULL);
#line 61 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 61 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 61 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	self->priv->_main_loop = _tmp0_;
#line 62 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.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 62 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	c1 = _tmp1_;
#line 63 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp2_ = g_strdup ("persona #1");
#line 63 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_initial_fullname_1);
#line 63 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	self->priv->_initial_fullname_1 = _tmp2_;
#line 64 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp3_ = g_strdup ("<urn:contact001>");
#line 64 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_contact_urn_1);
#line 64 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	self->priv->_contact_urn_1 = _tmp3_;
#line 65 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp4_ = g_strdup ("jabber#test1@example.org");
#line 65 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_imaddress_proto_1);
#line 65 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	self->priv->_imaddress_proto_1 = _tmp4_;
#line 66 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp5_ = g_strdup ("test1@example.org");
#line 66 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_imaddress_1);
#line 66 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	self->priv->_imaddress_1 = _tmp5_;
#line 67 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp6_ = g_strdup ("test2@example.org");
#line 67 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_imaddress_2);
#line 67 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	self->priv->_imaddress_2 = _tmp6_;
#line 68 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp7_ = g_strdup ("aim");
#line 68 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_proto_2);
#line 68 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	self->priv->_proto_2 = _tmp7_;
#line 70 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp8_ = self->priv->_contact_urn_1;
#line 70 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	gee_abstract_map_set ((GeeAbstractMap*) c1, TRACKER_TEST_BACKEND_URN, _tmp8_);
#line 71 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp9_ = self->priv->_initial_fullname_1;
#line 71 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	gee_abstract_map_set ((GeeAbstractMap*) c1, TRF_ONTOLOGY_DEFS_NCO_FULLNAME, _tmp9_);
#line 72 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp10_ = self->priv->_imaddress_proto_1;
#line 72 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	gee_abstract_map_set ((GeeAbstractMap*) c1, TRF_ONTOLOGY_DEFS_NCO_IMADDRESS, _tmp10_);
#line 73 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp11_ = self->priv->_tracker_backend;
#line 73 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	tracker_test_backend_add_contact (_tmp11_, c1);
#line 74 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp12_ = self->priv->_tracker_backend;
#line 74 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	tracker_test_backend_set_up (_tmp12_);
#line 76 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp13_ = g_strdup ("");
#line 76 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_individual_id);
#line 76 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	self->priv->_individual_id = _tmp13_;
#line 77 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	self->priv->_initial_imaddress_found = FALSE;
#line 78 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	self->priv->_updated_imaddr_found = FALSE;
#line 80 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_im_addresses_updates_tests_test_imaddresses_updates_async (self, NULL, NULL);
#line 82 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda0__gsource_func, g_object_ref (self), g_object_unref);
#line 88 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp14_ = self->priv->_main_loop;
#line 88 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	g_main_loop_run (_tmp14_);
#line 90 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp15_ = self->priv->_initial_imaddress_found;
#line 90 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	g_assert (_tmp15_ == TRUE);
#line 91 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp16_ = self->priv->_updated_imaddr_found;
#line 91 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	g_assert (_tmp16_ == TRUE);
#line 93 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp17_ = self->priv->_tracker_backend;
#line 93 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	tracker_test_backend_tear_down (_tmp17_);
#line 59 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_object_unref0 (c1);
#line 321 "imaddresses-updates.c"
}


static void _im_addresses_updates_tests_test_imaddresses_updates_async_data_free (gpointer _data) {
	ImAddressesUpdatesTestsTestImaddressesUpdatesAsyncData* _data_;
	_data_ = _data;
#line 26 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	g_slice_free (ImAddressesUpdatesTestsTestImaddressesUpdatesAsyncData, _data_);
#line 332 "imaddresses-updates.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 26 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	return self ? g_object_ref (self) : NULL;
#line 339 "imaddresses-updates.c"
}


static void _im_addresses_updates_tests_test_imaddresses_updates_async (IMAddressesUpdatesTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ImAddressesUpdatesTestsTestImaddressesUpdatesAsyncData* _data_;
	IMAddressesUpdatesTests* _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_data_ = g_slice_new0 (ImAddressesUpdatesTestsTestImaddressesUpdatesAsyncData);
#line 26 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _im_addresses_updates_tests_test_imaddresses_updates_async);
#line 26 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _im_addresses_updates_tests_test_imaddresses_updates_async_data_free);
#line 26 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_data_->self = _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_im_addresses_updates_tests_test_imaddresses_updates_async_co (_data_);
#line 358 "imaddresses-updates.c"
}


static void _im_addresses_updates_tests_test_imaddresses_updates_finish (IMAddressesUpdatesTests* self, GAsyncResult* _res_) {
	ImAddressesUpdatesTestsTestImaddressesUpdatesAsyncData* _data_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 366 "imaddresses-updates.c"
}


static void _im_addresses_updates_tests_test_imaddresses_updates_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	ImAddressesUpdatesTestsTestImaddressesUpdatesAsyncData* _data_;
#line 99 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_data_ = _user_data_;
#line 99 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_data_->_source_object_ = source_object;
#line 99 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_data_->_res_ = _res_;
#line 99 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_im_addresses_updates_tests_test_imaddresses_updates_async_co (_data_);
#line 380 "imaddresses-updates.c"
}


static void __im_addresses_updates_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 101 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_im_addresses_updates_tests_individuals_changed_cb (self, changes);
#line 387 "imaddresses-updates.c"
}


static gboolean _im_addresses_updates_tests_test_imaddresses_updates_async_co (ImAddressesUpdatesTestsTestImaddressesUpdatesAsyncData* _data_) {
#line 96 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	switch (_data_->_state_) {
#line 96 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		case 0:
#line 396 "imaddresses-updates.c"
		goto _state_0;
#line 96 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		case 1:
#line 400 "imaddresses-updates.c"
		goto _state_1;
#line 96 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		case 2:
#line 404 "imaddresses-updates.c"
		goto _state_2;
		default:
#line 96 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		g_assert_not_reached ();
#line 409 "imaddresses-updates.c"
	}
	_state_0:
#line 98 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_data_->_tmp0_ = NULL;
#line 98 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 98 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_data_->store = _data_->_tmp0_;
#line 99 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_data_->_state_ = 1;
#line 99 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	folks_backend_store_prepare (_data_->store, _im_addresses_updates_tests_test_imaddresses_updates_async_ready, _data_);
#line 99 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	return FALSE;
#line 424 "imaddresses-updates.c"
	_state_1:
#line 99 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 100 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 100 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 100 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 101 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 101 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	g_signal_connect_object (_data_->_tmp2_, "individuals-changed-detailed", (GCallback) __im_addresses_updates_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed, _data_->self, 0);
#line 438 "imaddresses-updates.c"
	{
#line 105 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 105 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		_data_->_state_ = 2;
#line 105 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		folks_individual_aggregator_prepare (_data_->_tmp3_, _im_addresses_updates_tests_test_imaddresses_updates_async_ready, _data_);
#line 105 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		return FALSE;
#line 448 "imaddresses-updates.c"
		_state_2:
#line 105 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 105 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		if (_data_->_inner_error_ != NULL) {
#line 454 "imaddresses-updates.c"
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 103 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		_data_->e = _data_->_inner_error_;
#line 103 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		_data_->_inner_error_ = NULL;
#line 109 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		_data_->_tmp4_ = _data_->e;
#line 109 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		_data_->_tmp5_ = _data_->_tmp4_->message;
#line 109 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		g_warning ("imaddresses-updates.vala:109: Error when calling prepare: %s\n", _data_->_tmp5_);
#line 103 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		_g_error_free0 (_data_->e);
#line 473 "imaddresses-updates.c"
	}
	__finally0:
#line 103 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	if (_data_->_inner_error_ != NULL) {
#line 103 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		_g_object_unref0 (_data_->store);
#line 103 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.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 103 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		g_clear_error (&_data_->_inner_error_);
#line 103 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		return FALSE;
#line 486 "imaddresses-updates.c"
	}
#line 96 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_object_unref0 (_data_->store);
#line 96 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	if (_data_->_state_ == 0) {
#line 96 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 494 "imaddresses-updates.c"
	} else {
#line 96 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 498 "imaddresses-updates.c"
	}
#line 96 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	g_object_unref (_data_->_async_result);
#line 96 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	return FALSE;
#line 504 "imaddresses-updates.c"
}


static void _im_addresses_updates_tests_individuals_changed_cb (IMAddressesUpdatesTests* self, GeeMultiMap* changes) {
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
#line 113 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	g_return_if_fail (self != NULL);
#line 113 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	g_return_if_fail (changes != NULL);
#line 116 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp0_ = changes;
#line 116 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 116 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	added = _tmp1_;
#line 522 "imaddresses-updates.c"
	{
		GeeCollection* _tmp2_;
		GeeIterator* _tmp3_ = NULL;
		GeeIterator* _i_it;
#line 118 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		_tmp2_ = added;
#line 118 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		_tmp3_ = gee_iterable_iterator ((GeeIterable*) _tmp2_);
#line 118 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		_i_it = _tmp3_;
#line 118 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		while (TRUE) {
#line 535 "imaddresses-updates.c"
			GeeIterator* _tmp4_;
			gboolean _tmp5_ = FALSE;
			GeeIterator* _tmp6_;
			gpointer _tmp7_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp8_;
			FolksIndividual* _tmp9_;
			const gchar* _tmp10_;
			const gchar* _tmp11_;
			const gchar* _tmp12_;
			gboolean _tmp13_;
#line 118 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
			_tmp4_ = _i_it;
#line 118 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
			_tmp5_ = gee_iterator_next (_tmp4_);
#line 118 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
			if (!_tmp5_) {
#line 118 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
				break;
#line 555 "imaddresses-updates.c"
			}
#line 118 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
			_tmp6_ = _i_it;
#line 118 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
			_tmp7_ = gee_iterator_get (_tmp6_);
#line 118 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
			i = (FolksIndividual*) _tmp7_;
#line 120 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
			_tmp8_ = i;
#line 120 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
			g_assert (_tmp8_ != NULL);
#line 122 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
			_tmp9_ = i;
#line 122 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
			_tmp10_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp9_);
#line 122 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
			_tmp11_ = _tmp10_;
#line 122 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
			_tmp12_ = self->priv->_initial_fullname_1;
#line 122 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
			if (g_strcmp0 (_tmp11_, _tmp12_) != 0) {
#line 123 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
				_g_object_unref0 (i);
#line 123 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
				continue;
#line 581 "imaddresses-updates.c"
			}
#line 125 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
			_tmp13_ = self->priv->_initial_imaddress_found;
#line 125 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
			if (!_tmp13_) {
#line 587 "imaddresses-updates.c"
				FolksIndividual* _tmp14_;
				const gchar* _tmp15_;
				const gchar* _tmp16_;
				gchar* _tmp17_;
#line 127 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
				_tmp14_ = i;
#line 127 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
				_tmp15_ = folks_individual_get_id (_tmp14_);
#line 127 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
				_tmp16_ = _tmp15_;
#line 127 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
				_tmp17_ = g_strdup (_tmp16_);
#line 127 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
				_g_free0 (self->priv->_individual_id);
#line 127 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
				self->priv->_individual_id = _tmp17_;
#line 604 "imaddresses-updates.c"
				{
					FolksIndividual* _tmp18_;
					GeeMultiMap* _tmp19_;
					GeeMultiMap* _tmp20_;
					GeeSet* _tmp21_ = NULL;
					GeeSet* _tmp22_;
					GeeIterator* _tmp23_ = NULL;
					GeeIterator* _tmp24_;
					GeeIterator* _proto_it;
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_tmp18_ = i;
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_tmp19_ = folks_im_details_get_im_addresses ((FolksImDetails*) _tmp18_);
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_tmp20_ = _tmp19_;
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_tmp21_ = gee_multi_map_get_keys (_tmp20_);
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_tmp22_ = _tmp21_;
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_tmp23_ = gee_iterable_iterator ((GeeIterable*) _tmp22_);
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_tmp24_ = _tmp23_;
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_g_object_unref0 (_tmp22_);
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_proto_it = _tmp24_;
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					while (TRUE) {
#line 634 "imaddresses-updates.c"
						GeeIterator* _tmp25_;
						gboolean _tmp26_ = FALSE;
						GeeIterator* _tmp27_;
						gpointer _tmp28_ = NULL;
						gchar* proto;
						FolksIndividual* _tmp29_;
						GeeMultiMap* _tmp30_;
						GeeMultiMap* _tmp31_;
						const gchar* _tmp32_;
						GeeCollection* _tmp33_ = NULL;
						GeeCollection* addrs;
						gboolean contains_addr_1;
						gboolean _tmp44_ = FALSE;
						GeeCollection* _tmp45_;
						gint _tmp46_;
						gint _tmp47_;
						gboolean _tmp49_;
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp25_ = _proto_it;
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp26_ = gee_iterator_next (_tmp25_);
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						if (!_tmp26_) {
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							break;
#line 660 "imaddresses-updates.c"
						}
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp27_ = _proto_it;
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp28_ = gee_iterator_get (_tmp27_);
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						proto = (gchar*) _tmp28_;
#line 131 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp29_ = i;
#line 131 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp30_ = folks_im_details_get_im_addresses ((FolksImDetails*) _tmp29_);
#line 131 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp31_ = _tmp30_;
#line 131 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp32_ = proto;
#line 131 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp33_ = gee_multi_map_get (_tmp31_, _tmp32_);
#line 131 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						addrs = _tmp33_;
#line 132 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						contains_addr_1 = FALSE;
#line 682 "imaddresses-updates.c"
						{
							GeeCollection* _tmp34_;
							GeeIterator* _tmp35_ = NULL;
							GeeIterator* _im_fd_it;
#line 133 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							_tmp34_ = addrs;
#line 133 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							_tmp35_ = gee_iterable_iterator ((GeeIterable*) _tmp34_);
#line 133 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							_im_fd_it = _tmp35_;
#line 133 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							while (TRUE) {
#line 695 "imaddresses-updates.c"
								GeeIterator* _tmp36_;
								gboolean _tmp37_ = FALSE;
								GeeIterator* _tmp38_;
								gpointer _tmp39_ = NULL;
								FolksImFieldDetails* im_fd;
								FolksImFieldDetails* _tmp40_;
								gconstpointer _tmp41_;
								const gchar* _tmp42_;
								const gchar* _tmp43_;
#line 133 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								_tmp36_ = _im_fd_it;
#line 133 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								_tmp37_ = gee_iterator_next (_tmp36_);
#line 133 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								if (!_tmp37_) {
#line 133 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
									break;
#line 713 "imaddresses-updates.c"
								}
#line 133 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								_tmp38_ = _im_fd_it;
#line 133 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								_tmp39_ = gee_iterator_get (_tmp38_);
#line 133 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								im_fd = (FolksImFieldDetails*) _tmp39_;
#line 135 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								_tmp40_ = im_fd;
#line 135 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								_tmp41_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp40_);
#line 135 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								_tmp42_ = _tmp41_;
#line 135 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								_tmp43_ = self->priv->_imaddress_1;
#line 135 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								if (g_strcmp0 ((const gchar*) _tmp42_, _tmp43_) == 0) {
#line 137 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
									contains_addr_1 = TRUE;
#line 138 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
									_g_object_unref0 (im_fd);
#line 138 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
									break;
#line 737 "imaddresses-updates.c"
								}
#line 133 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								_g_object_unref0 (im_fd);
#line 741 "imaddresses-updates.c"
							}
#line 133 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							_g_object_unref0 (_im_fd_it);
#line 745 "imaddresses-updates.c"
						}
#line 142 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp45_ = addrs;
#line 142 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp46_ = gee_collection_get_size (_tmp45_);
#line 142 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp47_ = _tmp46_;
#line 142 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						if (_tmp47_ == 1) {
#line 755 "imaddresses-updates.c"
							gboolean _tmp48_;
#line 142 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							_tmp48_ = contains_addr_1;
#line 142 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							_tmp44_ = _tmp48_;
#line 761 "imaddresses-updates.c"
						} else {
#line 142 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							_tmp44_ = FALSE;
#line 765 "imaddresses-updates.c"
						}
#line 142 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp49_ = _tmp44_;
#line 142 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						if (_tmp49_) {
#line 144 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							self->priv->_initial_imaddress_found = TRUE;
#line 145 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							_im_addresses_updates_tests_do_im_addr_update (self);
#line 775 "imaddresses-updates.c"
						}
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_g_object_unref0 (addrs);
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_g_free0 (proto);
#line 781 "imaddresses-updates.c"
					}
#line 129 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_g_object_unref0 (_proto_it);
#line 785 "imaddresses-updates.c"
				}
			} else {
				{
					FolksIndividual* _tmp50_;
					GeeMultiMap* _tmp51_;
					GeeMultiMap* _tmp52_;
					GeeSet* _tmp53_ = NULL;
					GeeSet* _tmp54_;
					GeeIterator* _tmp55_ = NULL;
					GeeIterator* _tmp56_;
					GeeIterator* _proto_it;
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_tmp50_ = i;
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_tmp51_ = folks_im_details_get_im_addresses ((FolksImDetails*) _tmp50_);
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_tmp52_ = _tmp51_;
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_tmp53_ = gee_multi_map_get_keys (_tmp52_);
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_tmp54_ = _tmp53_;
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_tmp55_ = gee_iterable_iterator ((GeeIterable*) _tmp54_);
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_tmp56_ = _tmp55_;
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_g_object_unref0 (_tmp54_);
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_proto_it = _tmp56_;
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					while (TRUE) {
#line 817 "imaddresses-updates.c"
						GeeIterator* _tmp57_;
						gboolean _tmp58_ = FALSE;
						GeeIterator* _tmp59_;
						gpointer _tmp60_ = NULL;
						gchar* proto;
						FolksIndividual* _tmp61_;
						GeeMultiMap* _tmp62_;
						GeeMultiMap* _tmp63_;
						const gchar* _tmp64_;
						GeeCollection* _tmp65_ = NULL;
						GeeCollection* addrs;
						gboolean contains_addr_2;
						gboolean _tmp76_ = FALSE;
						GeeCollection* _tmp77_;
						gint _tmp78_;
						gint _tmp79_;
						gboolean _tmp81_;
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp57_ = _proto_it;
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp58_ = gee_iterator_next (_tmp57_);
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						if (!_tmp58_) {
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							break;
#line 843 "imaddresses-updates.c"
						}
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp59_ = _proto_it;
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp60_ = gee_iterator_get (_tmp59_);
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						proto = (gchar*) _tmp60_;
#line 153 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp61_ = i;
#line 153 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp62_ = folks_im_details_get_im_addresses ((FolksImDetails*) _tmp61_);
#line 153 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp63_ = _tmp62_;
#line 153 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp64_ = proto;
#line 153 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp65_ = gee_multi_map_get (_tmp63_, _tmp64_);
#line 153 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						addrs = _tmp65_;
#line 154 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						contains_addr_2 = FALSE;
#line 865 "imaddresses-updates.c"
						{
							GeeCollection* _tmp66_;
							GeeIterator* _tmp67_ = NULL;
							GeeIterator* _im_fd_it;
#line 155 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							_tmp66_ = addrs;
#line 155 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							_tmp67_ = gee_iterable_iterator ((GeeIterable*) _tmp66_);
#line 155 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							_im_fd_it = _tmp67_;
#line 155 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							while (TRUE) {
#line 878 "imaddresses-updates.c"
								GeeIterator* _tmp68_;
								gboolean _tmp69_ = FALSE;
								GeeIterator* _tmp70_;
								gpointer _tmp71_ = NULL;
								FolksImFieldDetails* im_fd;
								FolksImFieldDetails* _tmp72_;
								gconstpointer _tmp73_;
								const gchar* _tmp74_;
								const gchar* _tmp75_;
#line 155 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								_tmp68_ = _im_fd_it;
#line 155 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								_tmp69_ = gee_iterator_next (_tmp68_);
#line 155 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								if (!_tmp69_) {
#line 155 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
									break;
#line 896 "imaddresses-updates.c"
								}
#line 155 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								_tmp70_ = _im_fd_it;
#line 155 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								_tmp71_ = gee_iterator_get (_tmp70_);
#line 155 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								im_fd = (FolksImFieldDetails*) _tmp71_;
#line 157 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								_tmp72_ = im_fd;
#line 157 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								_tmp73_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp72_);
#line 157 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								_tmp74_ = _tmp73_;
#line 157 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								_tmp75_ = self->priv->_imaddress_2;
#line 157 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								if (g_strcmp0 ((const gchar*) _tmp74_, _tmp75_) == 0) {
#line 159 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
									contains_addr_2 = TRUE;
#line 160 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
									_g_object_unref0 (im_fd);
#line 160 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
									break;
#line 920 "imaddresses-updates.c"
								}
#line 155 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
								_g_object_unref0 (im_fd);
#line 924 "imaddresses-updates.c"
							}
#line 155 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							_g_object_unref0 (_im_fd_it);
#line 928 "imaddresses-updates.c"
						}
#line 164 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp77_ = addrs;
#line 164 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp78_ = gee_collection_get_size (_tmp77_);
#line 164 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp79_ = _tmp78_;
#line 164 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						if (_tmp79_ == 1) {
#line 938 "imaddresses-updates.c"
							gboolean _tmp80_;
#line 164 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							_tmp80_ = contains_addr_2;
#line 164 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							_tmp76_ = _tmp80_;
#line 944 "imaddresses-updates.c"
						} else {
#line 164 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							_tmp76_ = FALSE;
#line 948 "imaddresses-updates.c"
						}
#line 164 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_tmp81_ = _tmp76_;
#line 164 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						if (_tmp81_) {
#line 954 "imaddresses-updates.c"
							GMainLoop* _tmp82_;
#line 166 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							self->priv->_updated_imaddr_found = TRUE;
#line 167 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							_tmp82_ = self->priv->_main_loop;
#line 167 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
							g_main_loop_quit (_tmp82_);
#line 962 "imaddresses-updates.c"
						}
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_g_object_unref0 (addrs);
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
						_g_free0 (proto);
#line 968 "imaddresses-updates.c"
					}
#line 151 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
					_g_object_unref0 (_proto_it);
#line 972 "imaddresses-updates.c"
				}
			}
#line 118 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
			_g_object_unref0 (i);
#line 977 "imaddresses-updates.c"
		}
#line 118 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
		_g_object_unref0 (_i_it);
#line 981 "imaddresses-updates.c"
	}
#line 113 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_object_unref0 (added);
#line 985 "imaddresses-updates.c"
}


static void _im_addresses_updates_tests_do_im_addr_update (IMAddressesUpdatesTests* self) {
	const gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* urn_affil_1;
	TrackerTestBackend* _tmp5_;
	const gchar* _tmp6_;
	const gchar* _tmp7_;
	gchar* _tmp8_;
	gchar* _tmp9_;
	gchar* _tmp10_;
	gchar* _tmp11_;
	gchar* urn_imaddr_2;
	TrackerTestBackend* _tmp12_;
	const gchar* _tmp13_;
	const gchar* _tmp14_;
	const gchar* _tmp15_;
	gchar* _tmp16_;
	gchar* urn_affil_2;
	const gchar* _tmp17_;
	gchar* _tmp18_;
	TrackerTestBackend* _tmp19_;
	const gchar* _tmp20_;
	TrackerTestBackend* _tmp21_;
	const gchar* _tmp22_;
	TrackerTestBackend* _tmp23_;
	const gchar* _tmp24_;
	const gchar* _tmp25_;
#line 174 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	g_return_if_fail (self != NULL);
#line 176 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp0_ = self->priv->_imaddress_1;
#line 176 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp1_ = g_strconcat ("<", _tmp0_, NULL);
#line 176 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp2_ = _tmp1_;
#line 176 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp3_ = g_strconcat (_tmp2_, "myaffiliation>", NULL);
#line 176 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp4_ = _tmp3_;
#line 176 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (_tmp2_);
#line 176 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	urn_affil_1 = _tmp4_;
#line 177 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp5_ = self->priv->_tracker_backend;
#line 177 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp6_ = self->priv->_contact_urn_1;
#line 177 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	tracker_test_backend_remove_triplet (_tmp5_, _tmp6_, TRF_ONTOLOGY_DEFS_NCO_HAS_AFFILIATION, urn_affil_1);
#line 180 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp7_ = self->priv->_imaddress_2;
#line 180 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp8_ = g_strconcat ("<", _tmp7_, NULL);
#line 180 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp9_ = _tmp8_;
#line 180 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp10_ = g_strconcat (_tmp9_, ">", NULL);
#line 180 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp11_ = _tmp10_;
#line 180 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (_tmp9_);
#line 180 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	urn_imaddr_2 = _tmp11_;
#line 181 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp12_ = self->priv->_tracker_backend;
#line 181 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp13_ = self->priv->_proto_2;
#line 181 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp14_ = self->priv->_imaddress_2;
#line 181 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	tracker_test_backend_insert_triplet (_tmp12_, urn_imaddr_2, "a", TRF_ONTOLOGY_DEFS_NCO_IMADDRESS, TRF_ONTOLOGY_DEFS_NCO_IMPROTOCOL, _tmp13_, TRF_ONTOLOGY_DEFS_NCO_IMID, _tmp14_);
#line 187 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp15_ = self->priv->_imaddress_2;
#line 187 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp16_ = g_strconcat ("<", _tmp15_, NULL);
#line 187 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	urn_affil_2 = _tmp16_;
#line 188 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp17_ = urn_affil_2;
#line 188 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp18_ = g_strconcat (_tmp17_, "myaffiliation>", NULL);
#line 188 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (urn_affil_2);
#line 188 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	urn_affil_2 = _tmp18_;
#line 189 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp19_ = self->priv->_tracker_backend;
#line 189 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp20_ = urn_affil_2;
#line 189 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	tracker_test_backend_insert_triplet (_tmp19_, _tmp20_, "a", TRF_ONTOLOGY_DEFS_NCO_AFFILIATION, NULL, NULL, NULL, NULL);
#line 193 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp21_ = self->priv->_tracker_backend;
#line 193 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp22_ = urn_affil_2;
#line 193 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	tracker_test_backend_insert_triplet (_tmp21_, _tmp22_, TRF_ONTOLOGY_DEFS_NCO_HAS_IMADDRESS, urn_imaddr_2, NULL, NULL, NULL, NULL);
#line 197 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp23_ = self->priv->_tracker_backend;
#line 197 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp24_ = self->priv->_contact_urn_1;
#line 197 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp25_ = urn_affil_2;
#line 197 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	tracker_test_backend_insert_triplet (_tmp23_, _tmp24_, TRF_ONTOLOGY_DEFS_NCO_HAS_AFFILIATION, _tmp25_, NULL, NULL, NULL, NULL);
#line 174 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (urn_affil_2);
#line 174 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (urn_imaddr_2);
#line 174 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (urn_affil_1);
#line 1103 "imaddresses-updates.c"
}


static void im_addresses_updates_tests_class_init (IMAddressesUpdatesTestsClass * klass) {
#line 26 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	im_addresses_updates_tests_parent_class = g_type_class_peek_parent (klass);
#line 26 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	g_type_class_add_private (klass, sizeof (IMAddressesUpdatesTestsPrivate));
#line 26 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = im_addresses_updates_tests_real_set_up;
#line 26 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = im_addresses_updates_tests_real_tear_down;
#line 26 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	G_OBJECT_CLASS (klass)->finalize = im_addresses_updates_tests_finalize;
#line 1118 "imaddresses-updates.c"
}


static void im_addresses_updates_tests_instance_init (IMAddressesUpdatesTests * self) {
#line 26 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	self->priv = IM_ADDRESSES_UPDATES_TESTS_GET_PRIVATE (self);
#line 1125 "imaddresses-updates.c"
}


static void im_addresses_updates_tests_finalize (GObject* obj) {
	IMAddressesUpdatesTests * self;
#line 26 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	self = IM_ADDRESSES_UPDATES_TESTS (obj);
#line 28 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 29 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 30 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 31 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_initial_fullname_1);
#line 32 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_contact_urn_1);
#line 33 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_imaddress_proto_1);
#line 34 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_imaddress_1);
#line 35 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_imaddress_2);
#line 36 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_proto_2);
#line 37 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_individual_id);
#line 26 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	G_OBJECT_CLASS (im_addresses_updates_tests_parent_class)->finalize (obj);
#line 1155 "imaddresses-updates.c"
}


GType im_addresses_updates_tests_get_type (void) {
	static volatile gsize im_addresses_updates_tests_type_id__volatile = 0;
	if (g_once_init_enter (&im_addresses_updates_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (IMAddressesUpdatesTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) im_addresses_updates_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (IMAddressesUpdatesTests), 0, (GInstanceInitFunc) im_addresses_updates_tests_instance_init, NULL };
		GType im_addresses_updates_tests_type_id;
		im_addresses_updates_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "IMAddressesUpdatesTests", &g_define_type_info, 0);
		g_once_init_leave (&im_addresses_updates_tests_type_id__volatile, im_addresses_updates_tests_type_id);
	}
	return im_addresses_updates_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	IMAddressesUpdatesTests* _tmp1_;
	IMAddressesUpdatesTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 205 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	g_test_init (&args_length1, &args, NULL);
#line 207 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp0_ = g_test_get_root ();
#line 207 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	root = _tmp0_;
#line 208 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp1_ = im_addresses_updates_tests_new ();
#line 208 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp2_ = _tmp1_;
#line 208 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 208 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 208 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	_g_object_unref0 (_tmp2_);
#line 210 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	g_test_run ();
#line 212 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	result = 0;
#line 212 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	return result;
#line 1200 "imaddresses-updates.c"
}


int main (int argc, char ** argv) {
#line 203 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	g_type_init ();
#line 203 "/home/treitter/collabora/folks/tests/tracker/imaddresses-updates.vala"
	return _vala_main (argv, argc);
#line 1209 "imaddresses-updates.c"
}



