/* match-im-addresses.c generated by valac 0.13.4, the Vala compiler
 * generated from match-im-addresses.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 <folks/folks-tracker.h>
#include <gio/gio.h>
#include <gee.h>


#define TYPE_MATCH_IM_ADDRESSES_TESTS (match_im_addresses_tests_get_type ())
#define MATCH_IM_ADDRESSES_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MATCH_IM_ADDRESSES_TESTS, MatchIMAddressesTests))
#define MATCH_IM_ADDRESSES_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MATCH_IM_ADDRESSES_TESTS, MatchIMAddressesTestsClass))
#define IS_MATCH_IM_ADDRESSES_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MATCH_IM_ADDRESSES_TESTS))
#define IS_MATCH_IM_ADDRESSES_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MATCH_IM_ADDRESSES_TESTS))
#define MATCH_IM_ADDRESSES_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MATCH_IM_ADDRESSES_TESTS, MatchIMAddressesTestsClass))

typedef struct _MatchIMAddressesTests MatchIMAddressesTests;
typedef struct _MatchIMAddressesTestsClass MatchIMAddressesTestsClass;
typedef struct _MatchIMAddressesTestsPrivate MatchIMAddressesTestsPrivate;
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define _tracker_test_backend_unref0(var) ((var == NULL) ? NULL : (var = (tracker_test_backend_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _MatchImAddressesTestsTestMatchImAddressesAsyncData MatchImAddressesTestsTestMatchImAddressesAsyncData;
typedef struct _MatchImAddressesTestsTryToAddData MatchImAddressesTestsTryToAddData;
#define __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL)))
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
typedef struct _MatchImAddressesTestsAddPersonasData MatchImAddressesTestsAddPersonasData;

struct _MatchIMAddressesTests {
	FolksTestCase parent_instance;
	MatchIMAddressesTestsPrivate * priv;
};

struct _MatchIMAddressesTestsClass {
	FolksTestCaseClass parent_class;
};

struct _MatchIMAddressesTestsPrivate {
	GMainLoop* _main_loop;
	TrackerTestBackend* _tracker_backend;
	FolksIndividualAggregator* _aggregator;
	gchar* _persona_fullname_1;
	gchar* _persona_fullname_2;
	gchar* _im_addr_1;
	gchar* _im_addr_2;
	gboolean _added_personas;
	GStaticRecMutex __lock__added_personas;
	gchar* _individual_id_1;
	gchar* _individual_id_2;
	FolksMatchResult _match;
	TrfPersonaStore* _pstore;
};

struct _MatchImAddressesTestsTestMatchImAddressesAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	MatchIMAddressesTests* self;
	FolksBackendStore* _tmp0_;
	FolksBackendStore* store;
	FolksIndividualAggregator* _tmp1_;
	FolksIndividualAggregator* _tmp2_;
	FolksIndividualAggregator* _tmp3_;
	GeeMap* _tmp4_;
	GeeMap* _tmp5_;
	GeeCollection* _tmp6_;
	GeeCollection* _tmp7_;
	GeeCollection* _tmp8_;
	GeeIterator* _tmp9_;
	GeeIterator* _tmp10_;
	GeeIterator* _backend_it;
	GeeIterator* _tmp11_;
	gboolean _tmp12_;
	GeeIterator* _tmp13_;
	gpointer _tmp14_;
	FolksBackend* backend;
	FolksBackend* _tmp15_;
	GeeMap* _tmp16_;
	GeeMap* _tmp17_;
	gpointer _tmp18_;
	TrfPersonaStore* _tmp19_;
	TrfPersonaStore* _tmp20_;
	TrfPersonaStore* _tmp21_;
	GError* e;
	GError* _tmp22_;
	const gchar* _tmp23_;
	GError * _inner_error_;
};

struct _MatchImAddressesTestsTryToAddData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	MatchIMAddressesTests* self;
	gboolean _tmp0_;
	gboolean _tmp1_;
	TrfPersonaStore* _tmp2_;
	gboolean _tmp3_;
	gboolean _tmp4_;
	gboolean _tmp5_;
	gboolean _tmp6_;
	gboolean _tmp7_;
	GError * _inner_error_;
};

struct _MatchImAddressesTestsAddPersonasData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	MatchIMAddressesTests* self;
	GHashFunc _tmp0_;
	GEqualFunc _tmp1_;
	GHashTable* _tmp2_;
	GHashTable* details1;
	GHashFunc _tmp3_;
	GEqualFunc _tmp4_;
	GHashTable* _tmp5_;
	GHashTable* details2;
	GValue* val;
	GeeHashMultiMap* im_addrs;
	GValue _tmp6_;
	GValue _tmp7_;
	GValue* _tmp8_;
	GValue* _tmp9_;
	const gchar* _tmp10_;
	GHashTable* _tmp11_;
	const gchar* _tmp12_;
	gchar* _tmp13_;
	GValue* _tmp14_;
	GValue _tmp15_;
	GValue _tmp16_;
	GValue* _tmp17_;
	GeeHashMultiMap* _tmp18_;
	GeeHashMultiMap* _tmp19_;
	const gchar* _tmp20_;
	FolksImFieldDetails* _tmp21_;
	FolksImFieldDetails* _tmp22_;
	GeeHashMultiMap* _tmp23_;
	const gchar* _tmp24_;
	FolksImFieldDetails* _tmp25_;
	FolksImFieldDetails* _tmp26_;
	GValue* _tmp27_;
	GeeHashMultiMap* _tmp28_;
	GHashTable* _tmp29_;
	const gchar* _tmp30_;
	gchar* _tmp31_;
	GValue* _tmp32_;
	GValue _tmp33_;
	GValue _tmp34_;
	GValue* _tmp35_;
	GValue* _tmp36_;
	const gchar* _tmp37_;
	GHashTable* _tmp38_;
	const gchar* _tmp39_;
	gchar* _tmp40_;
	GValue* _tmp41_;
	GValue _tmp42_;
	GValue _tmp43_;
	GValue* _tmp44_;
	GeeHashMultiMap* _tmp45_;
	GeeHashMultiMap* _tmp46_;
	const gchar* _tmp47_;
	FolksImFieldDetails* _tmp48_;
	FolksImFieldDetails* _tmp49_;
	GValue* _tmp50_;
	GeeHashMultiMap* _tmp51_;
	GHashTable* _tmp52_;
	const gchar* _tmp53_;
	gchar* _tmp54_;
	GValue* _tmp55_;
	FolksIndividualAggregator* _tmp56_;
	TrfPersonaStore* _tmp57_;
	GHashTable* _tmp58_;
	FolksPersona* _tmp59_;
	FolksPersona* _tmp60_;
	FolksIndividualAggregator* _tmp61_;
	TrfPersonaStore* _tmp62_;
	GHashTable* _tmp63_;
	FolksPersona* _tmp64_;
	FolksPersona* _tmp65_;
	GError* e;
	GError* _tmp66_;
	const gchar* _tmp67_;
	GError * _inner_error_;
};


static gpointer match_im_addresses_tests_parent_class = NULL;

GType match_im_addresses_tests_get_type (void) G_GNUC_CONST;
#define MATCH_IM_ADDRESSES_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MATCH_IM_ADDRESSES_TESTS, MatchIMAddressesTestsPrivate))
enum  {
	MATCH_IM_ADDRESSES_TESTS_DUMMY_PROPERTY
};
MatchIMAddressesTests* match_im_addresses_tests_new (void);
MatchIMAddressesTests* match_im_addresses_tests_construct (GType object_type);
void match_im_addresses_tests_test_match_im_addresses (MatchIMAddressesTests* self);
static void _match_im_addresses_tests_test_match_im_addresses_folks_test_case_test_method (gpointer self);
static void match_im_addresses_tests_real_set_up (FolksTestCase* base);
static void match_im_addresses_tests_real_tear_down (FolksTestCase* base);
static void _match_im_addresses_tests_test_match_im_addresses_async (MatchIMAddressesTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _match_im_addresses_tests_test_match_im_addresses_finish (MatchIMAddressesTests* self, GAsyncResult* _res_);
static gboolean __lambda0_ (MatchIMAddressesTests* self);
static gboolean ___lambda0__gsource_func (gpointer self);
static void _match_im_addresses_tests_test_match_im_addresses_async_data_free (gpointer _data);
static gboolean _match_im_addresses_tests_test_match_im_addresses_async_co (MatchImAddressesTestsTestMatchImAddressesAsyncData* _data_);
static void _match_im_addresses_tests_test_match_im_addresses_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _match_im_addresses_tests_individuals_changed_cb (MatchIMAddressesTests* self, GeeMultiMap* changes);
static void __match_im_addresses_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static void _match_im_addresses_tests_notify_pstore_cb (MatchIMAddressesTests* self, GObject* _pstore, GParamSpec* ps);
static void __match_im_addresses_tests_notify_pstore_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void _match_im_addresses_tests_try_to_add (MatchIMAddressesTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _match_im_addresses_tests_try_to_add_finish (MatchIMAddressesTests* self, GAsyncResult* _res_);
static void _match_im_addresses_tests_try_potential_match (MatchIMAddressesTests* self);
static void _match_im_addresses_tests_try_to_add_data_free (gpointer _data);
static gboolean _match_im_addresses_tests_try_to_add_co (MatchImAddressesTestsTryToAddData* _data_);
static void _match_im_addresses_tests_add_personas (MatchIMAddressesTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _match_im_addresses_tests_add_personas_finish (MatchIMAddressesTests* self, GAsyncResult* _res_);
static void _match_im_addresses_tests_try_to_add_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _match_im_addresses_tests_add_personas_data_free (gpointer _data);
static gboolean _match_im_addresses_tests_add_personas_co (MatchImAddressesTestsAddPersonasData* _data_);
static void _g_free0_ (gpointer var);
static void _vala_GValue_free (GValue* self);
static void __vala_GValue_free0_ (gpointer var);
static GValue* _g_value_dup (GValue* self);
static void _match_im_addresses_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void match_im_addresses_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _match_im_addresses_tests_test_match_im_addresses_folks_test_case_test_method (gpointer self) {
#line 47 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	match_im_addresses_tests_test_match_im_addresses (self);
#line 266 "match-im-addresses.c"
}


MatchIMAddressesTests* match_im_addresses_tests_construct (GType object_type) {
	MatchIMAddressesTests * self = NULL;
	TrackerTestBackend* _tmp0_;
#line 43 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	self = (MatchIMAddressesTests*) folks_test_case_construct (object_type, "MatchIMAddressesTests");
#line 45 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp0_ = tracker_test_backend_new ();
#line 45 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 45 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	self->priv->_tracker_backend = _tmp0_;
#line 47 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test potential match by IM addresses ", _match_im_addresses_tests_test_match_im_addresses_folks_test_case_test_method, self);
#line 41 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	return self;
#line 285 "match-im-addresses.c"
}


MatchIMAddressesTests* match_im_addresses_tests_new (void) {
#line 41 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	return match_im_addresses_tests_construct (TYPE_MATCH_IM_ADDRESSES_TESTS);
#line 292 "match-im-addresses.c"
}


static void match_im_addresses_tests_real_set_up (FolksTestCase* base) {
	MatchIMAddressesTests * self;
#line 51 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	self = (MatchIMAddressesTests*) base;
#line 300 "match-im-addresses.c"
}


static void match_im_addresses_tests_real_tear_down (FolksTestCase* base) {
	MatchIMAddressesTests * self;
	TrackerTestBackend* _tmp0_;
#line 55 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	self = (MatchIMAddressesTests*) base;
#line 57 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp0_ = self->priv->_tracker_backend;
#line 57 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	tracker_test_backend_tear_down (_tmp0_);
#line 313 "match-im-addresses.c"
}


static gboolean __lambda0_ (MatchIMAddressesTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 68 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp0_ = self->priv->_main_loop;
#line 68 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_main_loop_quit (_tmp0_);
#line 69 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_assert_not_reached ();
#line 66 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	return result;
#line 328 "match-im-addresses.c"
}


static gboolean ___lambda0__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda0_ (self);
#line 66 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	return result;
#line 337 "match-im-addresses.c"
}


void match_im_addresses_tests_test_match_im_addresses (MatchIMAddressesTests* self) {
	GMainLoop* _tmp0_;
	GMainLoop* _tmp1_;
	FolksMatchResult _tmp2_;
#line 60 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_return_if_fail (self != NULL);
#line 62 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 62 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 62 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	self->priv->_main_loop = _tmp0_;
#line 64 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_match_im_addresses_tests_test_match_im_addresses_async (self, NULL, NULL);
#line 66 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda0__gsource_func, g_object_ref (self), g_object_unref);
#line 72 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp1_ = self->priv->_main_loop;
#line 72 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_main_loop_run (_tmp1_);
#line 73 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp2_ = self->priv->_match;
#line 73 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_assert (_tmp2_ >= FOLKS_MATCH_RESULT_HIGH);
#line 365 "match-im-addresses.c"
}


static void _match_im_addresses_tests_test_match_im_addresses_async_data_free (gpointer _data) {
	MatchImAddressesTestsTestMatchImAddressesAsyncData* _data_;
	_data_ = _data;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_slice_free (MatchImAddressesTestsTestMatchImAddressesAsyncData, _data_);
#line 376 "match-im-addresses.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	return self ? g_object_ref (self) : NULL;
#line 383 "match-im-addresses.c"
}


static void _match_im_addresses_tests_test_match_im_addresses_async (MatchIMAddressesTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MatchImAddressesTestsTestMatchImAddressesAsyncData* _data_;
	MatchIMAddressesTests* _tmp0_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_ = g_slice_new0 (MatchImAddressesTestsTestMatchImAddressesAsyncData);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _match_im_addresses_tests_test_match_im_addresses_async);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _match_im_addresses_tests_test_match_im_addresses_async_data_free);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->self = _tmp0_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_match_im_addresses_tests_test_match_im_addresses_async_co (_data_);
#line 402 "match-im-addresses.c"
}


static void _match_im_addresses_tests_test_match_im_addresses_finish (MatchIMAddressesTests* self, GAsyncResult* _res_) {
	MatchImAddressesTestsTestMatchImAddressesAsyncData* _data_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 410 "match-im-addresses.c"
}


static void _match_im_addresses_tests_test_match_im_addresses_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	MatchImAddressesTestsTestMatchImAddressesAsyncData* _data_;
#line 79 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_ = _user_data_;
#line 79 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_source_object_ = source_object;
#line 79 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_res_ = _res_;
#line 79 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_match_im_addresses_tests_test_match_im_addresses_async_co (_data_);
#line 424 "match-im-addresses.c"
}


static void __match_im_addresses_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 81 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_match_im_addresses_tests_individuals_changed_cb (self, changes);
#line 431 "match-im-addresses.c"
}


static void __match_im_addresses_tests_notify_pstore_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 95 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_match_im_addresses_tests_notify_pstore_cb (self, _sender, pspec);
#line 438 "match-im-addresses.c"
}


static gboolean _match_im_addresses_tests_test_match_im_addresses_async_co (MatchImAddressesTestsTestMatchImAddressesAsyncData* _data_) {
#line 76 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	switch (_data_->_state_) {
#line 76 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		case 0:
#line 447 "match-im-addresses.c"
		goto _state_0;
#line 76 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		case 1:
#line 451 "match-im-addresses.c"
		goto _state_1;
#line 76 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		case 2:
#line 455 "match-im-addresses.c"
		goto _state_2;
		default:
#line 76 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		g_assert_not_reached ();
#line 460 "match-im-addresses.c"
	}
	_state_0:
#line 78 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp0_ = NULL;
#line 78 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 78 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->store = _data_->_tmp0_;
#line 79 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_state_ = 1;
#line 79 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	folks_backend_store_prepare (_data_->store, _match_im_addresses_tests_test_match_im_addresses_async_ready, _data_);
#line 79 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	return FALSE;
#line 475 "match-im-addresses.c"
	_state_1:
#line 79 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 80 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 80 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 80 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 81 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 81 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_signal_connect_object (_data_->_tmp2_, "individuals-changed-detailed", (GCallback) __match_im_addresses_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed, _data_->self, 0);
#line 489 "match-im-addresses.c"
	{
#line 85 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 85 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_state_ = 2;
#line 85 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		folks_individual_aggregator_prepare (_data_->_tmp3_, _match_im_addresses_tests_test_match_im_addresses_async_ready, _data_);
#line 85 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		return FALSE;
#line 499 "match-im-addresses.c"
		_state_2:
#line 85 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 85 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		if (_data_->_inner_error_ != NULL) {
#line 505 "match-im-addresses.c"
			goto __catch0_g_error;
		}
#line 86 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_g_object_unref0 (_data_->self->priv->_pstore);
#line 86 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->self->priv->_pstore = NULL;
#line 512 "match-im-addresses.c"
		{
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_data_->_tmp4_ = folks_backend_store_get_enabled_backends (_data_->store);
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_data_->_tmp5_ = _data_->_tmp4_;
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_data_->_tmp6_ = gee_map_get_values (_data_->_tmp5_);
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_data_->_tmp7_ = _data_->_tmp6_;
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_data_->_tmp8_ = _data_->_tmp7_;
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_data_->_tmp9_ = NULL;
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_data_->_tmp9_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp8_);
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_data_->_tmp10_ = _data_->_tmp9_;
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_g_object_unref0 (_data_->_tmp8_);
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_data_->_backend_it = _data_->_tmp10_;
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			while (TRUE) {
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_data_->_tmp11_ = _data_->_backend_it;
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_data_->_tmp12_ = FALSE;
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_data_->_tmp12_ = gee_iterator_next (_data_->_tmp11_);
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				if (!_data_->_tmp12_) {
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
					break;
#line 546 "match-im-addresses.c"
				}
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_data_->_tmp13_ = _data_->_backend_it;
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_data_->_tmp14_ = NULL;
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_data_->_tmp14_ = gee_iterator_get (_data_->_tmp13_);
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_data_->backend = (FolksBackend*) _data_->_tmp14_;
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_data_->_tmp15_ = _data_->backend;
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_data_->_tmp16_ = folks_backend_get_persona_stores (_data_->_tmp15_);
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_data_->_tmp17_ = _data_->_tmp16_;
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_data_->_tmp18_ = NULL;
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_data_->_tmp18_ = gee_map_get (_data_->_tmp17_, "tracker");
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_g_object_unref0 (_data_->self->priv->_pstore);
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_data_->self->priv->_pstore = TRF_PERSONA_STORE ((FolksPersonaStore*) _data_->_tmp18_);
#line 91 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_data_->_tmp19_ = _data_->self->priv->_pstore;
#line 91 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				if (_data_->_tmp19_ != NULL) {
#line 92 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
					_g_object_unref0 (_data_->backend);
#line 92 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
					break;
#line 578 "match-im-addresses.c"
				}
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_g_object_unref0 (_data_->backend);
#line 582 "match-im-addresses.c"
			}
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_g_object_unref0 (_data_->_backend_it);
#line 586 "match-im-addresses.c"
		}
#line 94 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp20_ = _data_->self->priv->_pstore;
#line 94 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		g_assert (_data_->_tmp20_ != NULL);
#line 95 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp21_ = _data_->self->priv->_pstore;
#line 95 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		g_signal_connect_object ((GObject*) _data_->_tmp21_, "notify::is-prepared", (GCallback) __match_im_addresses_tests_notify_pstore_cb_g_object_notify, _data_->self, 0);
#line 96 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_match_im_addresses_tests_try_to_add (_data_->self, NULL, NULL);
#line 598 "match-im-addresses.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 83 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->e = _data_->_inner_error_;
#line 83 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_inner_error_ = NULL;
#line 100 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp22_ = _data_->e;
#line 100 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp23_ = _data_->_tmp22_->message;
#line 100 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		g_warning ("match-im-addresses.vala:100: Error when calling prepare: %s\n", _data_->_tmp23_);
#line 83 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_g_error_free0 (_data_->e);
#line 615 "match-im-addresses.c"
	}
	__finally0:
#line 83 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	if (_data_->_inner_error_ != NULL) {
#line 83 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_g_object_unref0 (_data_->store);
#line 83 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.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 83 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		g_clear_error (&_data_->_inner_error_);
#line 83 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		return FALSE;
#line 628 "match-im-addresses.c"
	}
#line 76 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_object_unref0 (_data_->store);
#line 76 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	if (_data_->_state_ == 0) {
#line 76 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 636 "match-im-addresses.c"
	} else {
#line 76 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 640 "match-im-addresses.c"
	}
#line 76 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_object_unref (_data_->_async_result);
#line 76 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	return FALSE;
#line 646 "match-im-addresses.c"
}


static void _match_im_addresses_tests_individuals_changed_cb (MatchIMAddressesTests* self, GeeMultiMap* changes) {
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
	gboolean _tmp27_ = FALSE;
	const gchar* _tmp28_;
	gboolean _tmp30_;
	GeeSet* _tmp31_;
	gint _tmp32_;
	gint _tmp33_;
#line 104 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_return_if_fail (self != NULL);
#line 104 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_return_if_fail (changes != NULL);
#line 107 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp0_ = changes;
#line 107 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 107 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	added = _tmp1_;
#line 108 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp2_ = changes;
#line 108 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 108 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	removed = _tmp3_;
#line 679 "match-im-addresses.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 110 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_tmp4_ = added;
#line 110 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 110 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_i_it = _tmp5_;
#line 110 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		while (TRUE) {
#line 692 "match-im-addresses.c"
			GeeIterator* _tmp6_;
			gboolean _tmp7_ = FALSE;
			GeeIterator* _tmp8_;
			gpointer _tmp9_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp10_;
			FolksIndividual* _tmp11_;
			const gchar* _tmp12_;
			const gchar* _tmp13_;
			const gchar* _tmp14_;
#line 110 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_tmp6_ = _i_it;
#line 110 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 110 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			if (!_tmp7_) {
#line 110 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				break;
#line 711 "match-im-addresses.c"
			}
#line 110 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_tmp8_ = _i_it;
#line 110 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 110 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			i = (FolksIndividual*) _tmp9_;
#line 112 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_tmp10_ = i;
#line 112 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			g_assert (_tmp10_ != NULL);
#line 114 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_tmp11_ = i;
#line 114 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_tmp12_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp11_);
#line 114 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_tmp13_ = _tmp12_;
#line 114 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_tmp14_ = self->priv->_persona_fullname_1;
#line 114 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			if (g_strcmp0 (_tmp13_, _tmp14_) == 0) {
#line 733 "match-im-addresses.c"
				FolksIndividual* _tmp15_;
				const gchar* _tmp16_;
				const gchar* _tmp17_;
				gchar* _tmp18_;
#line 116 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_tmp15_ = i;
#line 116 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_tmp16_ = folks_individual_get_id (_tmp15_);
#line 116 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_tmp17_ = _tmp16_;
#line 116 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_tmp18_ = g_strdup (_tmp17_);
#line 116 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_g_free0 (self->priv->_individual_id_1);
#line 116 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				self->priv->_individual_id_1 = _tmp18_;
#line 750 "match-im-addresses.c"
			} else {
				FolksIndividual* _tmp19_;
				const gchar* _tmp20_;
				const gchar* _tmp21_;
				const gchar* _tmp22_;
#line 118 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_tmp19_ = i;
#line 118 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_tmp20_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp19_);
#line 118 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_tmp21_ = _tmp20_;
#line 118 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_tmp22_ = self->priv->_persona_fullname_2;
#line 118 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				if (g_strcmp0 (_tmp21_, _tmp22_) == 0) {
#line 766 "match-im-addresses.c"
					FolksIndividual* _tmp23_;
					const gchar* _tmp24_;
					const gchar* _tmp25_;
					gchar* _tmp26_;
#line 120 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
					_tmp23_ = i;
#line 120 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
					_tmp24_ = folks_individual_get_id (_tmp23_);
#line 120 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
					_tmp25_ = _tmp24_;
#line 120 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
					_tmp26_ = g_strdup (_tmp25_);
#line 120 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
					_g_free0 (self->priv->_individual_id_2);
#line 120 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
					self->priv->_individual_id_2 = _tmp26_;
#line 783 "match-im-addresses.c"
				}
			}
#line 110 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_g_object_unref0 (i);
#line 788 "match-im-addresses.c"
		}
#line 110 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_g_object_unref0 (_i_it);
#line 792 "match-im-addresses.c"
	}
#line 124 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp28_ = self->priv->_individual_id_1;
#line 124 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	if (g_strcmp0 (_tmp28_, "") != 0) {
#line 798 "match-im-addresses.c"
		const gchar* _tmp29_;
#line 125 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_tmp29_ = self->priv->_individual_id_2;
#line 125 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_tmp27_ = g_strcmp0 (_tmp29_, "") != 0;
#line 804 "match-im-addresses.c"
	} else {
#line 124 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_tmp27_ = FALSE;
#line 808 "match-im-addresses.c"
	}
#line 124 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp30_ = _tmp27_;
#line 124 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	if (_tmp30_) {
#line 127 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_match_im_addresses_tests_try_potential_match (self);
#line 816 "match-im-addresses.c"
	}
#line 130 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp31_ = removed;
#line 130 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp32_ = gee_collection_get_size ((GeeCollection*) _tmp31_);
#line 130 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp33_ = _tmp32_;
#line 130 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_assert (_tmp33_ == 1);
#line 826 "match-im-addresses.c"
	{
		GeeSet* _tmp34_;
		GeeIterator* _tmp35_ = NULL;
		GeeIterator* _i_it;
#line 132 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_tmp34_ = removed;
#line 132 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_tmp35_ = gee_iterable_iterator ((GeeIterable*) _tmp34_);
#line 132 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_i_it = _tmp35_;
#line 132 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		while (TRUE) {
#line 839 "match-im-addresses.c"
			GeeIterator* _tmp36_;
			gboolean _tmp37_ = FALSE;
			GeeIterator* _tmp38_;
			gpointer _tmp39_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp40_;
#line 132 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_tmp36_ = _i_it;
#line 132 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_tmp37_ = gee_iterator_next (_tmp36_);
#line 132 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			if (!_tmp37_) {
#line 132 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				break;
#line 854 "match-im-addresses.c"
			}
#line 132 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_tmp38_ = _i_it;
#line 132 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_tmp39_ = gee_iterator_get (_tmp38_);
#line 132 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			i = (FolksIndividual*) _tmp39_;
#line 134 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_tmp40_ = i;
#line 134 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			g_assert (_tmp40_ == NULL);
#line 132 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_g_object_unref0 (i);
#line 868 "match-im-addresses.c"
		}
#line 132 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_g_object_unref0 (_i_it);
#line 872 "match-im-addresses.c"
	}
#line 104 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_object_unref0 (removed);
#line 104 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_object_unref0 (added);
#line 878 "match-im-addresses.c"
}


static void _match_im_addresses_tests_try_potential_match (MatchIMAddressesTests* self) {
	FolksIndividualAggregator* _tmp0_;
	GeeMap* _tmp1_;
	GeeMap* _tmp2_;
	const gchar* _tmp3_;
	gpointer _tmp4_ = NULL;
	FolksIndividual* ind1;
	FolksIndividualAggregator* _tmp5_;
	GeeMap* _tmp6_;
	GeeMap* _tmp7_;
	const gchar* _tmp8_;
	gpointer _tmp9_ = NULL;
	FolksIndividual* ind2;
	FolksPotentialMatch* _tmp10_;
	FolksPotentialMatch* matchObj;
	FolksMatchResult _tmp11_ = 0;
	GMainLoop* _tmp12_;
#line 138 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_return_if_fail (self != NULL);
#line 140 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp0_ = self->priv->_aggregator;
#line 140 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp1_ = folks_individual_aggregator_get_individuals (_tmp0_);
#line 140 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp2_ = _tmp1_;
#line 140 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp3_ = self->priv->_individual_id_1;
#line 140 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp4_ = gee_map_get (_tmp2_, _tmp3_);
#line 140 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	ind1 = (FolksIndividual*) _tmp4_;
#line 141 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp5_ = self->priv->_aggregator;
#line 141 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp6_ = folks_individual_aggregator_get_individuals (_tmp5_);
#line 141 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp7_ = _tmp6_;
#line 141 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp8_ = self->priv->_individual_id_2;
#line 141 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp9_ = gee_map_get (_tmp7_, _tmp8_);
#line 141 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	ind2 = (FolksIndividual*) _tmp9_;
#line 143 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp10_ = folks_potential_match_new ();
#line 143 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	matchObj = _tmp10_;
#line 144 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp11_ = folks_potential_match_potential_match (matchObj, ind1, ind2);
#line 144 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	self->priv->_match = _tmp11_;
#line 146 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp12_ = self->priv->_main_loop;
#line 146 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_main_loop_quit (_tmp12_);
#line 138 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_object_unref0 (matchObj);
#line 138 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_object_unref0 (ind2);
#line 138 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_object_unref0 (ind1);
#line 943 "match-im-addresses.c"
}


static void _match_im_addresses_tests_notify_pstore_cb (MatchIMAddressesTests* self, GObject* _pstore, GParamSpec* ps) {
#line 149 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_return_if_fail (self != NULL);
#line 149 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_return_if_fail (_pstore != NULL);
#line 149 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_return_if_fail (ps != NULL);
#line 151 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_match_im_addresses_tests_try_to_add (self, NULL, NULL);
#line 956 "match-im-addresses.c"
}


static void _match_im_addresses_tests_try_to_add_data_free (gpointer _data) {
	MatchImAddressesTestsTryToAddData* _data_;
	_data_ = _data;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_slice_free (MatchImAddressesTestsTryToAddData, _data_);
#line 967 "match-im-addresses.c"
}


static void _match_im_addresses_tests_try_to_add (MatchIMAddressesTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MatchImAddressesTestsTryToAddData* _data_;
	MatchIMAddressesTests* _tmp0_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_ = g_slice_new0 (MatchImAddressesTestsTryToAddData);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _match_im_addresses_tests_try_to_add);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _match_im_addresses_tests_try_to_add_data_free);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->self = _tmp0_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_match_im_addresses_tests_try_to_add_co (_data_);
#line 986 "match-im-addresses.c"
}


static void _match_im_addresses_tests_try_to_add_finish (MatchIMAddressesTests* self, GAsyncResult* _res_) {
	MatchImAddressesTestsTryToAddData* _data_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 994 "match-im-addresses.c"
}


static void _match_im_addresses_tests_try_to_add_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	MatchImAddressesTestsTryToAddData* _data_;
#line 162 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_ = _user_data_;
#line 162 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_source_object_ = source_object;
#line 162 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_res_ = _res_;
#line 162 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_match_im_addresses_tests_try_to_add_co (_data_);
#line 1008 "match-im-addresses.c"
}


static gboolean _match_im_addresses_tests_try_to_add_co (MatchImAddressesTestsTryToAddData* _data_) {
#line 154 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	switch (_data_->_state_) {
#line 154 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		case 0:
#line 1017 "match-im-addresses.c"
		goto _state_0;
#line 154 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		case 1:
#line 1021 "match-im-addresses.c"
		goto _state_1;
		default:
#line 154 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		g_assert_not_reached ();
#line 1026 "match-im-addresses.c"
	}
	_state_0:
	{
#line 156 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp0_ = _data_->self->priv->_added_personas;
#line 156 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		g_static_rec_mutex_lock (&_data_->self->priv->__lock__added_personas);
#line 1034 "match-im-addresses.c"
		{
#line 158 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_data_->_tmp2_ = _data_->self->priv->_pstore;
#line 158 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_data_->_tmp3_ = folks_persona_store_get_is_prepared ((FolksPersonaStore*) _data_->_tmp2_);
#line 158 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_data_->_tmp4_ = _data_->_tmp3_;
#line 158 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			if (_data_->_tmp4_) {
#line 159 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_data_->_tmp5_ = _data_->self->priv->_added_personas;
#line 159 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_data_->_tmp1_ = _data_->_tmp5_ == FALSE;
#line 1048 "match-im-addresses.c"
			} else {
#line 158 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_data_->_tmp1_ = FALSE;
#line 1052 "match-im-addresses.c"
			}
#line 158 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_data_->_tmp6_ = _data_->_tmp1_;
#line 158 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			if (_data_->_tmp6_) {
#line 161 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_data_->self->priv->_added_personas = TRUE;
#line 162 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_data_->_state_ = 1;
#line 162 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_match_im_addresses_tests_add_personas (_data_->self, _match_im_addresses_tests_try_to_add_ready, _data_);
#line 162 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				return FALSE;
#line 1066 "match-im-addresses.c"
				_state_1:
#line 162 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
				_match_im_addresses_tests_add_personas_finish (_data_->self, _data_->_res_);
#line 1070 "match-im-addresses.c"
			}
		}
		__finally1:
		{
#line 156 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_data_->_tmp7_ = _data_->self->priv->_added_personas;
#line 156 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			g_static_rec_mutex_unlock (&_data_->self->priv->__lock__added_personas);
#line 1079 "match-im-addresses.c"
		}
#line 156 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		if (_data_->_inner_error_ != NULL) {
#line 156 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.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 156 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			g_clear_error (&_data_->_inner_error_);
#line 156 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			return FALSE;
#line 1089 "match-im-addresses.c"
		}
	}
#line 154 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	if (_data_->_state_ == 0) {
#line 154 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1096 "match-im-addresses.c"
	} else {
#line 154 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1100 "match-im-addresses.c"
	}
#line 154 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_object_unref (_data_->_async_result);
#line 154 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	return FALSE;
#line 1106 "match-im-addresses.c"
}


static void _match_im_addresses_tests_add_personas_data_free (gpointer _data) {
	MatchImAddressesTestsAddPersonasData* _data_;
	_data_ = _data;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_slice_free (MatchImAddressesTestsAddPersonasData, _data_);
#line 1117 "match-im-addresses.c"
}


static void _match_im_addresses_tests_add_personas (MatchIMAddressesTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MatchImAddressesTestsAddPersonasData* _data_;
	MatchIMAddressesTests* _tmp0_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_ = g_slice_new0 (MatchImAddressesTestsAddPersonasData);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _match_im_addresses_tests_add_personas);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _match_im_addresses_tests_add_personas_data_free);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->self = _tmp0_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_match_im_addresses_tests_add_personas_co (_data_);
#line 1136 "match-im-addresses.c"
}


static void _match_im_addresses_tests_add_personas_finish (MatchIMAddressesTests* self, GAsyncResult* _res_) {
	MatchImAddressesTestsAddPersonasData* _data_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1144 "match-im-addresses.c"
}


static void _g_free0_ (gpointer var) {
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	var = (g_free (var), NULL);
#line 1151 "match-im-addresses.c"
}


static void _vala_GValue_free (GValue* self) {
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_value_unset (self);
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_free (self);
#line 1160 "match-im-addresses.c"
}


static void __vala_GValue_free0_ (gpointer var) {
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	(var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL));
#line 1167 "match-im-addresses.c"
}


static GValue* _g_value_dup (GValue* self) {
#line 176 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	return g_boxed_copy (G_TYPE_VALUE, self);
#line 1174 "match-im-addresses.c"
}


static gpointer __g_value_dup0 (gpointer self) {
#line 176 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	return self ? _g_value_dup (self) : NULL;
#line 1181 "match-im-addresses.c"
}


static void _match_im_addresses_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	MatchImAddressesTestsAddPersonasData* _data_;
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_ = _user_data_;
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_source_object_ = source_object;
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_res_ = _res_;
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_match_im_addresses_tests_add_personas_co (_data_);
#line 1195 "match-im-addresses.c"
}


static gboolean _match_im_addresses_tests_add_personas_co (MatchImAddressesTestsAddPersonasData* _data_) {
#line 167 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	switch (_data_->_state_) {
#line 167 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		case 0:
#line 1204 "match-im-addresses.c"
		goto _state_0;
#line 167 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		case 1:
#line 1208 "match-im-addresses.c"
		goto _state_1;
#line 167 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		case 2:
#line 1212 "match-im-addresses.c"
		goto _state_2;
		default:
#line 167 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		g_assert_not_reached ();
#line 1217 "match-im-addresses.c"
	}
	_state_0:
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp0_ = g_str_hash;
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp1_ = g_str_equal;
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp2_ = g_hash_table_new_full (_data_->_tmp0_, _data_->_tmp1_, _g_free0_, __vala_GValue_free0_);
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->details1 = _data_->_tmp2_;
#line 171 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp3_ = g_str_hash;
#line 171 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp4_ = g_str_equal;
#line 171 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp5_ = g_hash_table_new_full (_data_->_tmp3_, _data_->_tmp4_, _g_free0_, __vala_GValue_free0_);
#line 171 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->details2 = _data_->_tmp5_;
#line 176 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	memset (&_data_->_tmp6_, 0, sizeof (GValue));
#line 176 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_value_init (&_data_->_tmp6_, G_TYPE_STRING);
#line 176 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp7_ = _data_->_tmp6_;
#line 176 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp8_ = __g_value_dup0 (&_data_->_tmp7_);
#line 176 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	__vala_GValue_free0 (_data_->val);
#line 176 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->val = _data_->_tmp8_;
#line 176 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	G_IS_VALUE (&_data_->_tmp7_) ? (g_value_unset (&_data_->_tmp7_), NULL) : NULL;
#line 177 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp9_ = _data_->val;
#line 177 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp10_ = _data_->self->priv->_persona_fullname_1;
#line 177 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_value_set_string (_data_->_tmp9_, _data_->_tmp10_);
#line 178 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp11_ = _data_->details1;
#line 178 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp12_ = NULL;
#line 178 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp12_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_FULL_NAME);
#line 178 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp13_ = g_strdup (_data_->_tmp12_);
#line 178 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp14_ = _data_->val;
#line 178 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->val = NULL;
#line 178 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_hash_table_insert (_data_->_tmp11_, _data_->_tmp13_, _data_->_tmp14_);
#line 181 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	memset (&_data_->_tmp15_, 0, sizeof (GValue));
#line 181 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_value_init (&_data_->_tmp15_, GEE_TYPE_MULTI_MAP);
#line 181 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp16_ = _data_->_tmp15_;
#line 181 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp17_ = __g_value_dup0 (&_data_->_tmp16_);
#line 181 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	__vala_GValue_free0 (_data_->val);
#line 181 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->val = _data_->_tmp17_;
#line 181 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	G_IS_VALUE (&_data_->_tmp16_) ? (g_value_unset (&_data_->_tmp16_), NULL) : NULL;
#line 182 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp18_ = gee_hash_multi_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, FOLKS_TYPE_IM_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
#line 182 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_object_unref0 (_data_->im_addrs);
#line 182 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->im_addrs = _data_->_tmp18_;
#line 185 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp19_ = _data_->im_addrs;
#line 185 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp20_ = _data_->self->priv->_im_addr_1;
#line 185 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp21_ = folks_im_field_details_new (_data_->_tmp20_, NULL);
#line 185 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp22_ = _data_->_tmp21_;
#line 185 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	gee_multi_map_set ((GeeMultiMap*) _data_->_tmp19_, "jabber", _data_->_tmp22_);
#line 185 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_object_unref0 (_data_->_tmp22_);
#line 186 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp23_ = _data_->im_addrs;
#line 186 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp24_ = _data_->self->priv->_im_addr_2;
#line 186 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp25_ = folks_im_field_details_new (_data_->_tmp24_, NULL);
#line 186 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp26_ = _data_->_tmp25_;
#line 186 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	gee_multi_map_set ((GeeMultiMap*) _data_->_tmp23_, "yahoo", _data_->_tmp26_);
#line 186 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_object_unref0 (_data_->_tmp26_);
#line 187 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp27_ = _data_->val;
#line 187 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp28_ = _data_->im_addrs;
#line 187 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_value_set_object (_data_->_tmp27_, (GObject*) _data_->_tmp28_);
#line 188 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp29_ = _data_->details1;
#line 188 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp30_ = NULL;
#line 188 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp30_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_IM_ADDRESSES);
#line 188 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp31_ = g_strdup (_data_->_tmp30_);
#line 188 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp32_ = _data_->val;
#line 188 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->val = NULL;
#line 188 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_hash_table_insert (_data_->_tmp29_, _data_->_tmp31_, _data_->_tmp32_);
#line 192 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	memset (&_data_->_tmp33_, 0, sizeof (GValue));
#line 192 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_value_init (&_data_->_tmp33_, G_TYPE_STRING);
#line 192 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp34_ = _data_->_tmp33_;
#line 192 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp35_ = __g_value_dup0 (&_data_->_tmp34_);
#line 192 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	__vala_GValue_free0 (_data_->val);
#line 192 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->val = _data_->_tmp35_;
#line 192 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	G_IS_VALUE (&_data_->_tmp34_) ? (g_value_unset (&_data_->_tmp34_), NULL) : NULL;
#line 193 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp36_ = _data_->val;
#line 193 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp37_ = _data_->self->priv->_persona_fullname_2;
#line 193 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_value_set_string (_data_->_tmp36_, _data_->_tmp37_);
#line 194 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp38_ = _data_->details2;
#line 194 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp39_ = NULL;
#line 194 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp39_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_FULL_NAME);
#line 194 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp40_ = g_strdup (_data_->_tmp39_);
#line 194 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp41_ = _data_->val;
#line 194 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->val = NULL;
#line 194 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_hash_table_insert (_data_->_tmp38_, _data_->_tmp40_, _data_->_tmp41_);
#line 197 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	memset (&_data_->_tmp42_, 0, sizeof (GValue));
#line 197 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_value_init (&_data_->_tmp42_, GEE_TYPE_MULTI_MAP);
#line 197 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp43_ = _data_->_tmp42_;
#line 197 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp44_ = __g_value_dup0 (&_data_->_tmp43_);
#line 197 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	__vala_GValue_free0 (_data_->val);
#line 197 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->val = _data_->_tmp44_;
#line 197 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	G_IS_VALUE (&_data_->_tmp43_) ? (g_value_unset (&_data_->_tmp43_), NULL) : NULL;
#line 198 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp45_ = gee_hash_multi_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, FOLKS_TYPE_IM_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
#line 198 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_object_unref0 (_data_->im_addrs);
#line 198 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->im_addrs = _data_->_tmp45_;
#line 201 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp46_ = _data_->im_addrs;
#line 201 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp47_ = _data_->self->priv->_im_addr_2;
#line 201 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp48_ = folks_im_field_details_new (_data_->_tmp47_, NULL);
#line 201 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp49_ = _data_->_tmp48_;
#line 201 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	gee_multi_map_set ((GeeMultiMap*) _data_->_tmp46_, "jabber", _data_->_tmp49_);
#line 201 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_object_unref0 (_data_->_tmp49_);
#line 202 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp50_ = _data_->val;
#line 202 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp51_ = _data_->im_addrs;
#line 202 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_value_set_object (_data_->_tmp50_, (GObject*) _data_->_tmp51_);
#line 203 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp52_ = _data_->details2;
#line 203 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp53_ = NULL;
#line 203 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp53_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_IM_ADDRESSES);
#line 203 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp54_ = g_strdup (_data_->_tmp53_);
#line 203 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->_tmp55_ = _data_->val;
#line 203 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_data_->val = NULL;
#line 203 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_hash_table_insert (_data_->_tmp52_, _data_->_tmp54_, _data_->_tmp55_);
#line 1420 "match-im-addresses.c"
	{
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp56_ = _data_->self->priv->_aggregator;
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp57_ = _data_->self->priv->_pstore;
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp58_ = _data_->details1;
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_state_ = 1;
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp56_, NULL, (FolksPersonaStore*) _data_->_tmp57_, _data_->_tmp58_, _match_im_addresses_tests_add_personas_ready, _data_);
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		return FALSE;
#line 1434 "match-im-addresses.c"
		_state_1:
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp59_ = NULL;
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp59_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp56_, _data_->_res_, &_data_->_inner_error_);
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp60_ = _data_->_tmp59_;
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_g_object_unref0 (_data_->_tmp60_);
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		if (_data_->_inner_error_ != NULL) {
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1448 "match-im-addresses.c"
				goto __catch2_folks_individual_aggregator_error;
			}
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_g_object_unref0 (_data_->im_addrs);
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			__vala_GValue_free0 (_data_->val);
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			g_clear_error (&_data_->_inner_error_);
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			return FALSE;
#line 1465 "match-im-addresses.c"
		}
#line 212 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp61_ = _data_->self->priv->_aggregator;
#line 212 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp62_ = _data_->self->priv->_pstore;
#line 212 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp63_ = _data_->details2;
#line 212 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_state_ = 2;
#line 212 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp61_, NULL, (FolksPersonaStore*) _data_->_tmp62_, _data_->_tmp63_, _match_im_addresses_tests_add_personas_ready, _data_);
#line 212 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		return FALSE;
#line 1479 "match-im-addresses.c"
		_state_2:
#line 212 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp64_ = NULL;
#line 212 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp64_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp61_, _data_->_res_, &_data_->_inner_error_);
#line 212 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp65_ = _data_->_tmp64_;
#line 212 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_g_object_unref0 (_data_->_tmp65_);
#line 212 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		if (_data_->_inner_error_ != NULL) {
#line 212 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1493 "match-im-addresses.c"
				goto __catch2_folks_individual_aggregator_error;
			}
#line 212 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_g_object_unref0 (_data_->im_addrs);
#line 212 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			__vala_GValue_free0 (_data_->val);
#line 212 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 212 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 212 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 212 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			g_clear_error (&_data_->_inner_error_);
#line 212 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
			return FALSE;
#line 1510 "match-im-addresses.c"
		}
	}
	goto __finally2;
	__catch2_folks_individual_aggregator_error:
	{
#line 207 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->e = _data_->_inner_error_;
#line 207 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_inner_error_ = NULL;
#line 217 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp66_ = _data_->e;
#line 217 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_data_->_tmp67_ = _data_->_tmp66_->message;
#line 217 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		g_warning ("match-im-addresses.vala:217: [AddPersonaError] add_persona_from_detail" \
"s: %s\n", _data_->_tmp67_);
#line 207 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_g_error_free0 (_data_->e);
#line 1528 "match-im-addresses.c"
	}
	__finally2:
#line 207 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	if (_data_->_inner_error_ != NULL) {
#line 207 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_g_object_unref0 (_data_->im_addrs);
#line 207 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		__vala_GValue_free0 (_data_->val);
#line 207 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_g_hash_table_unref0 (_data_->details2);
#line 207 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		_g_hash_table_unref0 (_data_->details1);
#line 207 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.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 207 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		g_clear_error (&_data_->_inner_error_);
#line 207 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		return FALSE;
#line 1547 "match-im-addresses.c"
	}
#line 167 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_object_unref0 (_data_->im_addrs);
#line 167 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	__vala_GValue_free0 (_data_->val);
#line 167 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_hash_table_unref0 (_data_->details2);
#line 167 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_hash_table_unref0 (_data_->details1);
#line 167 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	if (_data_->_state_ == 0) {
#line 167 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1561 "match-im-addresses.c"
	} else {
#line 167 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1565 "match-im-addresses.c"
	}
#line 167 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_object_unref (_data_->_async_result);
#line 167 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	return FALSE;
#line 1571 "match-im-addresses.c"
}


static void match_im_addresses_tests_class_init (MatchIMAddressesTestsClass * klass) {
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	match_im_addresses_tests_parent_class = g_type_class_peek_parent (klass);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_type_class_add_private (klass, sizeof (MatchIMAddressesTestsPrivate));
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = match_im_addresses_tests_real_set_up;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = match_im_addresses_tests_real_tear_down;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	G_OBJECT_CLASS (klass)->finalize = match_im_addresses_tests_finalize;
#line 1586 "match-im-addresses.c"
}


static void match_im_addresses_tests_instance_init (MatchIMAddressesTests * self) {
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	self->priv = MATCH_IM_ADDRESSES_TESTS_GET_PRIVATE (self);
#line 31 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp0_ = g_strdup ("aaa");
#line 31 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	self->priv->_persona_fullname_1 = _tmp0_;
#line 32 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp1_ = g_strdup ("bbb");
#line 32 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	self->priv->_persona_fullname_2 = _tmp1_;
#line 33 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp2_ = g_strdup ("some-address@jabber.example.org");
#line 33 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	self->priv->_im_addr_1 = _tmp2_;
#line 34 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp3_ = g_strdup ("some-other-address@jabber.example.org");
#line 34 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	self->priv->_im_addr_2 = _tmp3_;
#line 35 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_static_rec_mutex_init (&self->priv->__lock__added_personas);
#line 35 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	self->priv->_added_personas = FALSE;
#line 36 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp4_ = g_strdup ("");
#line 36 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	self->priv->_individual_id_1 = _tmp4_;
#line 37 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp5_ = g_strdup ("");
#line 37 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	self->priv->_individual_id_2 = _tmp5_;
#line 1627 "match-im-addresses.c"
}


static void match_im_addresses_tests_finalize (GObject* obj) {
	MatchIMAddressesTests * self;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	self = MATCH_IM_ADDRESSES_TESTS (obj);
#line 28 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 29 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 30 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 31 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_free0 (self->priv->_persona_fullname_1);
#line 32 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_free0 (self->priv->_persona_fullname_2);
#line 33 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_free0 (self->priv->_im_addr_1);
#line 34 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_free0 (self->priv->_im_addr_2);
#line 35 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_static_rec_mutex_free (&self->priv->__lock__added_personas);
#line 36 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_free0 (self->priv->_individual_id_1);
#line 37 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_free0 (self->priv->_individual_id_2);
#line 39 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_object_unref0 (self->priv->_pstore);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	G_OBJECT_CLASS (match_im_addresses_tests_parent_class)->finalize (obj);
#line 1659 "match-im-addresses.c"
}


GType match_im_addresses_tests_get_type (void) {
	static volatile gsize match_im_addresses_tests_type_id__volatile = 0;
	if (g_once_init_enter (&match_im_addresses_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (MatchIMAddressesTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) match_im_addresses_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MatchIMAddressesTests), 0, (GInstanceInitFunc) match_im_addresses_tests_instance_init, NULL };
		GType match_im_addresses_tests_type_id;
		match_im_addresses_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "MatchIMAddressesTests", &g_define_type_info, 0);
		g_once_init_leave (&match_im_addresses_tests_type_id__volatile, match_im_addresses_tests_type_id);
	}
	return match_im_addresses_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	MatchIMAddressesTests* _tmp1_;
	MatchIMAddressesTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 225 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_test_init (&args_length1, &args, NULL);
#line 227 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp0_ = g_test_get_root ();
#line 227 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	root = _tmp0_;
#line 228 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp1_ = match_im_addresses_tests_new ();
#line 228 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp2_ = _tmp1_;
#line 228 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 228 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 228 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	_g_object_unref0 (_tmp2_);
#line 230 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_test_run ();
#line 232 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	result = 0;
#line 232 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	return result;
#line 1704 "match-im-addresses.c"
}


int main (int argc, char ** argv) {
#line 223 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	g_type_init ();
#line 223 "/debian/rgs/devel/folks/tests/tracker/match-im-addresses.vala"
	return _vala_main (argv, argc);
#line 1713 "match-im-addresses.c"
}



