/* imaddresses-updates.c generated by valac 0.17.6.3-6918, 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;
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

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 __lambda2_ (IMAddressesUpdatesTests* self);
static gboolean ___lambda2__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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	im_addresses_updates_tests_test_imaddresses_updates (self);
#line 127 "imaddresses-updates.c"
}


IMAddressesUpdatesTests* im_addresses_updates_tests_construct (GType object_type) {
	IMAddressesUpdatesTests * self = NULL;
	TrackerTestBackend* _tmp0_;
	TrackerTestBackend* _tmp1_;
#line 43 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	self = (IMAddressesUpdatesTests*) folks_test_case_construct (object_type, "IMAddressesUpdates");
#line 45 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp0_ = tracker_test_backend_new ();
#line 45 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 45 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	self->priv->_tracker_backend = _tmp0_;
#line 46 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp1_ = self->priv->_tracker_backend;
#line 46 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	tracker_test_backend_set_debug (_tmp1_, FALSE);
#line 48 "/home/jpwhiting/devel/collabora/src/gnome/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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	return self;
#line 151 "imaddresses-updates.c"
}


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


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


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


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


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


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


static gpointer _g_object_ref0 (gpointer self) {
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	return self ? g_object_ref (self) : NULL;
#line 340 "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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_data_ = g_slice_new0 (ImAddressesUpdatesTestsTestImaddressesUpdatesAsyncData);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/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/jpwhiting/devel/collabora/src/gnome/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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_data_->self = _tmp0_;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_im_addresses_updates_tests_test_imaddresses_updates_async_co (_data_);
#line 359 "imaddresses-updates.c"
}


static void _im_addresses_updates_tests_test_imaddresses_updates_finish (IMAddressesUpdatesTests* self, GAsyncResult* _res_) {
	ImAddressesUpdatesTestsTestImaddressesUpdatesAsyncData* _data_;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 367 "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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_data_ = _user_data_;
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_data_->_source_object_ = source_object;
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_data_->_res_ = _res_;
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_im_addresses_updates_tests_test_imaddresses_updates_async_co (_data_);
#line 381 "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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_im_addresses_updates_tests_individuals_changed_cb (self, changes);
#line 388 "imaddresses-updates.c"
}


static gboolean _im_addresses_updates_tests_test_imaddresses_updates_async_co (ImAddressesUpdatesTestsTestImaddressesUpdatesAsyncData* _data_) {
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	switch (_data_->_state_) {
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		case 0:
#line 397 "imaddresses-updates.c"
		goto _state_0;
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		case 1:
#line 401 "imaddresses-updates.c"
		goto _state_1;
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		case 2:
#line 405 "imaddresses-updates.c"
		goto _state_2;
		default:
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		g_assert_not_reached ();
#line 410 "imaddresses-updates.c"
	}
	_state_0:
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_data_->_tmp0_ = NULL;
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_data_->store = _data_->_tmp0_;
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_data_->_state_ = 1;
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	return FALSE;
#line 425 "imaddresses-updates.c"
	_state_1:
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/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 439 "imaddresses-updates.c"
	{
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		_data_->_state_ = 2;
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		return FALSE;
#line 449 "imaddresses-updates.c"
		_state_2:
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		if (_data_->_inner_error_ != NULL) {
#line 455 "imaddresses-updates.c"
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		_data_->e = _data_->_inner_error_;
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		_data_->_inner_error_ = NULL;
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		_data_->_tmp4_ = _data_->e;
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		_data_->_tmp5_ = _data_->_tmp4_->message;
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		g_warning ("imaddresses-updates.vala:109: Error when calling prepare: %s\n", _data_->_tmp5_);
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		_g_error_free0 (_data_->e);
#line 474 "imaddresses-updates.c"
	}
	__finally0:
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	if (_data_->_inner_error_ != NULL) {
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		_g_object_unref0 (_data_->store);
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		g_clear_error (&_data_->_inner_error_);
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		return FALSE;
#line 487 "imaddresses-updates.c"
	}
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_g_object_unref0 (_data_->store);
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	if (_data_->_state_ == 0) {
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 495 "imaddresses-updates.c"
	} else {
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 499 "imaddresses-updates.c"
	}
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	g_object_unref (_data_->_async_result);
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	return FALSE;
#line 505 "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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	g_return_if_fail (self != NULL);
#line 113 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	g_return_if_fail (changes != NULL);
#line 116 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp0_ = changes;
#line 116 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 116 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	added = _tmp1_;
#line 523 "imaddresses-updates.c"
	{
		GeeCollection* _tmp2_;
		GeeIterator* _tmp3_ = NULL;
		GeeIterator* _i_it;
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		_tmp2_ = added;
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		_tmp3_ = gee_iterable_iterator ((GeeIterable*) _tmp2_);
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		_i_it = _tmp3_;
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		while (TRUE) {
#line 536 "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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
			_tmp4_ = _i_it;
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
			_tmp5_ = gee_iterator_next (_tmp4_);
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
			if (!_tmp5_) {
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
				break;
#line 556 "imaddresses-updates.c"
			}
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
			_tmp6_ = _i_it;
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
			_tmp7_ = gee_iterator_get (_tmp6_);
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
			i = (FolksIndividual*) _tmp7_;
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
			_tmp8_ = i;
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
			_vala_assert (_tmp8_ != NULL, "i != null");
#line 122 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
			_tmp9_ = i;
#line 122 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
			_tmp10_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp9_);
#line 122 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
			_tmp11_ = _tmp10_;
#line 122 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
			_tmp12_ = self->priv->_initial_fullname_1;
#line 122 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
			if (g_strcmp0 (_tmp11_, _tmp12_) != 0) {
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
				_g_object_unref0 (i);
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
				continue;
#line 582 "imaddresses-updates.c"
			}
#line 125 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
			_tmp13_ = self->priv->_initial_imaddress_found;
#line 125 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
			if (!_tmp13_) {
#line 588 "imaddresses-updates.c"
				FolksIndividual* _tmp14_;
				const gchar* _tmp15_;
				const gchar* _tmp16_;
				gchar* _tmp17_;
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
				_tmp14_ = i;
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
				_tmp15_ = folks_individual_get_id (_tmp14_);
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
				_tmp16_ = _tmp15_;
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
				_tmp17_ = g_strdup (_tmp16_);
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
				_g_free0 (self->priv->_individual_id);
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
				self->priv->_individual_id = _tmp17_;
#line 605 "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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_tmp18_ = i;
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_tmp19_ = folks_im_details_get_im_addresses ((FolksImDetails*) _tmp18_);
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_tmp20_ = _tmp19_;
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_tmp21_ = gee_multi_map_get_keys (_tmp20_);
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_tmp22_ = _tmp21_;
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_tmp23_ = gee_iterable_iterator ((GeeIterable*) _tmp22_);
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_tmp24_ = _tmp23_;
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_g_object_unref0 (_tmp22_);
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_proto_it = _tmp24_;
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					while (TRUE) {
#line 635 "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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp25_ = _proto_it;
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp26_ = gee_iterator_next (_tmp25_);
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						if (!_tmp26_) {
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							break;
#line 661 "imaddresses-updates.c"
						}
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp27_ = _proto_it;
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp28_ = gee_iterator_get (_tmp27_);
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						proto = (gchar*) _tmp28_;
#line 131 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp29_ = i;
#line 131 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp30_ = folks_im_details_get_im_addresses ((FolksImDetails*) _tmp29_);
#line 131 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp31_ = _tmp30_;
#line 131 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp32_ = proto;
#line 131 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp33_ = gee_multi_map_get (_tmp31_, _tmp32_);
#line 131 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						addrs = _tmp33_;
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						contains_addr_1 = FALSE;
#line 683 "imaddresses-updates.c"
						{
							GeeCollection* _tmp34_;
							GeeIterator* _tmp35_ = NULL;
							GeeIterator* _im_fd_it;
#line 133 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							_tmp34_ = addrs;
#line 133 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							_tmp35_ = gee_iterable_iterator ((GeeIterable*) _tmp34_);
#line 133 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							_im_fd_it = _tmp35_;
#line 133 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							while (TRUE) {
#line 696 "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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								_tmp36_ = _im_fd_it;
#line 133 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								_tmp37_ = gee_iterator_next (_tmp36_);
#line 133 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								if (!_tmp37_) {
#line 133 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
									break;
#line 714 "imaddresses-updates.c"
								}
#line 133 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								_tmp38_ = _im_fd_it;
#line 133 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								_tmp39_ = gee_iterator_get (_tmp38_);
#line 133 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								im_fd = (FolksImFieldDetails*) _tmp39_;
#line 135 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								_tmp40_ = im_fd;
#line 135 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								_tmp41_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp40_);
#line 135 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								_tmp42_ = _tmp41_;
#line 135 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								_tmp43_ = self->priv->_imaddress_1;
#line 135 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								if (g_strcmp0 ((const gchar*) _tmp42_, _tmp43_) == 0) {
#line 137 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
									contains_addr_1 = TRUE;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
									_g_object_unref0 (im_fd);
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
									break;
#line 738 "imaddresses-updates.c"
								}
#line 133 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								_g_object_unref0 (im_fd);
#line 742 "imaddresses-updates.c"
							}
#line 133 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							_g_object_unref0 (_im_fd_it);
#line 746 "imaddresses-updates.c"
						}
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp45_ = addrs;
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp46_ = gee_collection_get_size (_tmp45_);
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp47_ = _tmp46_;
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						if (_tmp47_ == 1) {
#line 756 "imaddresses-updates.c"
							gboolean _tmp48_;
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							_tmp48_ = contains_addr_1;
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							_tmp44_ = _tmp48_;
#line 762 "imaddresses-updates.c"
						} else {
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							_tmp44_ = FALSE;
#line 766 "imaddresses-updates.c"
						}
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp49_ = _tmp44_;
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						if (_tmp49_) {
#line 144 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							self->priv->_initial_imaddress_found = TRUE;
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							_im_addresses_updates_tests_do_im_addr_update (self);
#line 776 "imaddresses-updates.c"
						}
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_g_object_unref0 (addrs);
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_g_free0 (proto);
#line 782 "imaddresses-updates.c"
					}
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_g_object_unref0 (_proto_it);
#line 786 "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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_tmp50_ = i;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_tmp51_ = folks_im_details_get_im_addresses ((FolksImDetails*) _tmp50_);
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_tmp52_ = _tmp51_;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_tmp53_ = gee_multi_map_get_keys (_tmp52_);
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_tmp54_ = _tmp53_;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_tmp55_ = gee_iterable_iterator ((GeeIterable*) _tmp54_);
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_tmp56_ = _tmp55_;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_g_object_unref0 (_tmp54_);
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_proto_it = _tmp56_;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					while (TRUE) {
#line 818 "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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp57_ = _proto_it;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp58_ = gee_iterator_next (_tmp57_);
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						if (!_tmp58_) {
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							break;
#line 844 "imaddresses-updates.c"
						}
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp59_ = _proto_it;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp60_ = gee_iterator_get (_tmp59_);
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						proto = (gchar*) _tmp60_;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp61_ = i;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp62_ = folks_im_details_get_im_addresses ((FolksImDetails*) _tmp61_);
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp63_ = _tmp62_;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp64_ = proto;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp65_ = gee_multi_map_get (_tmp63_, _tmp64_);
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						addrs = _tmp65_;
#line 154 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						contains_addr_2 = FALSE;
#line 866 "imaddresses-updates.c"
						{
							GeeCollection* _tmp66_;
							GeeIterator* _tmp67_ = NULL;
							GeeIterator* _im_fd_it;
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							_tmp66_ = addrs;
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							_tmp67_ = gee_iterable_iterator ((GeeIterable*) _tmp66_);
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							_im_fd_it = _tmp67_;
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							while (TRUE) {
#line 879 "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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								_tmp68_ = _im_fd_it;
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								_tmp69_ = gee_iterator_next (_tmp68_);
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								if (!_tmp69_) {
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
									break;
#line 897 "imaddresses-updates.c"
								}
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								_tmp70_ = _im_fd_it;
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								_tmp71_ = gee_iterator_get (_tmp70_);
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								im_fd = (FolksImFieldDetails*) _tmp71_;
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								_tmp72_ = im_fd;
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								_tmp73_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp72_);
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								_tmp74_ = _tmp73_;
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								_tmp75_ = self->priv->_imaddress_2;
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								if (g_strcmp0 ((const gchar*) _tmp74_, _tmp75_) == 0) {
#line 159 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
									contains_addr_2 = TRUE;
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
									_g_object_unref0 (im_fd);
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
									break;
#line 921 "imaddresses-updates.c"
								}
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
								_g_object_unref0 (im_fd);
#line 925 "imaddresses-updates.c"
							}
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							_g_object_unref0 (_im_fd_it);
#line 929 "imaddresses-updates.c"
						}
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp77_ = addrs;
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp78_ = gee_collection_get_size (_tmp77_);
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp79_ = _tmp78_;
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						if (_tmp79_ == 1) {
#line 939 "imaddresses-updates.c"
							gboolean _tmp80_;
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							_tmp80_ = contains_addr_2;
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							_tmp76_ = _tmp80_;
#line 945 "imaddresses-updates.c"
						} else {
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							_tmp76_ = FALSE;
#line 949 "imaddresses-updates.c"
						}
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_tmp81_ = _tmp76_;
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						if (_tmp81_) {
#line 955 "imaddresses-updates.c"
							GMainLoop* _tmp82_;
#line 166 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							self->priv->_updated_imaddr_found = TRUE;
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							_tmp82_ = self->priv->_main_loop;
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
							g_main_loop_quit (_tmp82_);
#line 963 "imaddresses-updates.c"
						}
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_g_object_unref0 (addrs);
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
						_g_free0 (proto);
#line 969 "imaddresses-updates.c"
					}
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
					_g_object_unref0 (_proto_it);
#line 973 "imaddresses-updates.c"
				}
			}
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
			_g_object_unref0 (i);
#line 978 "imaddresses-updates.c"
		}
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
		_g_object_unref0 (_i_it);
#line 982 "imaddresses-updates.c"
	}
#line 113 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_g_object_unref0 (added);
#line 986 "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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	g_return_if_fail (self != NULL);
#line 176 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp0_ = self->priv->_imaddress_1;
#line 176 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp1_ = g_strconcat ("<", _tmp0_, NULL);
#line 176 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp2_ = _tmp1_;
#line 176 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp3_ = g_strconcat (_tmp2_, "myaffiliation>", NULL);
#line 176 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp4_ = _tmp3_;
#line 176 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (_tmp2_);
#line 176 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	urn_affil_1 = _tmp4_;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp5_ = self->priv->_tracker_backend;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp6_ = self->priv->_contact_urn_1;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp7_ = self->priv->_imaddress_2;
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp8_ = g_strconcat ("<", _tmp7_, NULL);
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp9_ = _tmp8_;
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp10_ = g_strconcat (_tmp9_, ">", NULL);
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp11_ = _tmp10_;
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (_tmp9_);
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	urn_imaddr_2 = _tmp11_;
#line 181 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp12_ = self->priv->_tracker_backend;
#line 181 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp13_ = self->priv->_proto_2;
#line 181 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp14_ = self->priv->_imaddress_2;
#line 181 "/home/jpwhiting/devel/collabora/src/gnome/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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp15_ = self->priv->_imaddress_2;
#line 187 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp16_ = g_strconcat ("<", _tmp15_, NULL);
#line 187 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	urn_affil_2 = _tmp16_;
#line 188 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp17_ = urn_affil_2;
#line 188 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp18_ = g_strconcat (_tmp17_, "myaffiliation>", NULL);
#line 188 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (urn_affil_2);
#line 188 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	urn_affil_2 = _tmp18_;
#line 189 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp19_ = self->priv->_tracker_backend;
#line 189 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp20_ = urn_affil_2;
#line 189 "/home/jpwhiting/devel/collabora/src/gnome/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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp21_ = self->priv->_tracker_backend;
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp22_ = urn_affil_2;
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp23_ = self->priv->_tracker_backend;
#line 197 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp24_ = self->priv->_contact_urn_1;
#line 197 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp25_ = urn_affil_2;
#line 197 "/home/jpwhiting/devel/collabora/src/gnome/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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (urn_affil_2);
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (urn_imaddr_2);
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (urn_affil_1);
#line 1104 "imaddresses-updates.c"
}


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


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


static void im_addresses_updates_tests_finalize (GObject* obj) {
	IMAddressesUpdatesTests * self;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_IM_ADDRESSES_UPDATES_TESTS, IMAddressesUpdatesTests);
#line 28 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 29 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 30 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 31 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_initial_fullname_1);
#line 32 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_contact_urn_1);
#line 33 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_imaddress_proto_1);
#line 34 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_imaddress_1);
#line 35 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_imaddress_2);
#line 36 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_proto_2);
#line 37 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_g_free0 (self->priv->_individual_id);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	G_OBJECT_CLASS (im_addresses_updates_tests_parent_class)->finalize (obj);
#line 1156 "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/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	g_test_init (&args_length1, &args, NULL);
#line 207 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp0_ = g_test_get_root ();
#line 207 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	root = _tmp0_;
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp1_ = im_addresses_updates_tests_new ();
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp2_ = _tmp1_;
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	_g_object_unref0 (_tmp2_);
#line 210 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	g_test_run ();
#line 212 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	result = 0;
#line 212 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/tracker/imaddresses-updates.vala"
	return result;
#line 1201 "imaddresses-updates.c"
}


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



