/* match-phone-number.c generated by valac 0.13.4, the Vala compiler
 * generated from match-phone-number.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_PHONE_NUMBER_TESTS (match_phone_number_tests_get_type ())
#define MATCH_PHONE_NUMBER_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MATCH_PHONE_NUMBER_TESTS, MatchPhoneNumberTests))
#define MATCH_PHONE_NUMBER_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MATCH_PHONE_NUMBER_TESTS, MatchPhoneNumberTestsClass))
#define IS_MATCH_PHONE_NUMBER_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MATCH_PHONE_NUMBER_TESTS))
#define IS_MATCH_PHONE_NUMBER_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MATCH_PHONE_NUMBER_TESTS))
#define MATCH_PHONE_NUMBER_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MATCH_PHONE_NUMBER_TESTS, MatchPhoneNumberTestsClass))

typedef struct _MatchPhoneNumberTests MatchPhoneNumberTests;
typedef struct _MatchPhoneNumberTestsClass MatchPhoneNumberTestsClass;
typedef struct _MatchPhoneNumberTestsPrivate MatchPhoneNumberTestsPrivate;
#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 _MatchPhoneNumberTestsTestMatchPhoneNumberAsyncData MatchPhoneNumberTestsTestMatchPhoneNumberAsyncData;
typedef struct _MatchPhoneNumberTestsTryToAddData MatchPhoneNumberTestsTryToAddData;
#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 _MatchPhoneNumberTestsAddPersonasData MatchPhoneNumberTestsAddPersonasData;

struct _MatchPhoneNumberTests {
	FolksTestCase parent_instance;
	MatchPhoneNumberTestsPrivate * priv;
};

struct _MatchPhoneNumberTestsClass {
	FolksTestCaseClass parent_class;
};

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

struct _MatchPhoneNumberTestsTestMatchPhoneNumberAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	MatchPhoneNumberTests* 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 _MatchPhoneNumberTestsTryToAddData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	MatchPhoneNumberTests* self;
	gboolean _tmp0_;
	gboolean _tmp1_;
	TrfPersonaStore* _tmp2_;
	gboolean _tmp3_;
	gboolean _tmp4_;
	gboolean _tmp5_;
	gboolean _tmp6_;
	gboolean _tmp7_;
	GError * _inner_error_;
};

struct _MatchPhoneNumberTestsAddPersonasData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	MatchPhoneNumberTests* self;
	GHashFunc _tmp0_;
	GEqualFunc _tmp1_;
	GHashTable* _tmp2_;
	GHashTable* details1;
	GHashFunc _tmp3_;
	GEqualFunc _tmp4_;
	GHashTable* _tmp5_;
	GHashTable* details2;
	GValue* val;
	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_;
	GeeHashSet* _tmp18_;
	GeeHashSet* phone_numbers1;
	const gchar* _tmp19_;
	FolksPhoneFieldDetails* _tmp20_;
	FolksPhoneFieldDetails* phone_number_1;
	GeeHashSet* _tmp21_;
	FolksPhoneFieldDetails* _tmp22_;
	GValue* _tmp23_;
	GeeHashSet* _tmp24_;
	GHashTable* _tmp25_;
	const gchar* _tmp26_;
	gchar* _tmp27_;
	GValue* _tmp28_;
	GValue _tmp29_;
	GValue _tmp30_;
	GValue* _tmp31_;
	GValue* _tmp32_;
	const gchar* _tmp33_;
	GHashTable* _tmp34_;
	const gchar* _tmp35_;
	gchar* _tmp36_;
	GValue* _tmp37_;
	GValue _tmp38_;
	GValue _tmp39_;
	GValue* _tmp40_;
	GeeHashSet* _tmp41_;
	GeeHashSet* phone_numbers2;
	const gchar* _tmp42_;
	FolksPhoneFieldDetails* _tmp43_;
	FolksPhoneFieldDetails* phone_number_2;
	GeeHashSet* _tmp44_;
	FolksPhoneFieldDetails* _tmp45_;
	GValue* _tmp46_;
	GeeHashSet* _tmp47_;
	GHashTable* _tmp48_;
	const gchar* _tmp49_;
	gchar* _tmp50_;
	GValue* _tmp51_;
	FolksIndividualAggregator* _tmp52_;
	TrfPersonaStore* _tmp53_;
	GHashTable* _tmp54_;
	FolksPersona* _tmp55_;
	FolksPersona* _tmp56_;
	FolksIndividualAggregator* _tmp57_;
	TrfPersonaStore* _tmp58_;
	GHashTable* _tmp59_;
	FolksPersona* _tmp60_;
	FolksPersona* _tmp61_;
	GError* e;
	GError* _tmp62_;
	const gchar* _tmp63_;
	GError * _inner_error_;
};


static gpointer match_phone_number_tests_parent_class = NULL;

GType match_phone_number_tests_get_type (void) G_GNUC_CONST;
#define MATCH_PHONE_NUMBER_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MATCH_PHONE_NUMBER_TESTS, MatchPhoneNumberTestsPrivate))
enum  {
	MATCH_PHONE_NUMBER_TESTS_DUMMY_PROPERTY
};
MatchPhoneNumberTests* match_phone_number_tests_new (void);
MatchPhoneNumberTests* match_phone_number_tests_construct (GType object_type);
void match_phone_number_tests_test_match_phone_number (MatchPhoneNumberTests* self);
static void _match_phone_number_tests_test_match_phone_number_folks_test_case_test_method (gpointer self);
static void match_phone_number_tests_real_set_up (FolksTestCase* base);
static void match_phone_number_tests_real_tear_down (FolksTestCase* base);
static void _match_phone_number_tests_test_match_phone_number_async (MatchPhoneNumberTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _match_phone_number_tests_test_match_phone_number_finish (MatchPhoneNumberTests* self, GAsyncResult* _res_);
static gboolean __lambda0_ (MatchPhoneNumberTests* self);
static gboolean ___lambda0__gsource_func (gpointer self);
static void _match_phone_number_tests_test_match_phone_number_async_data_free (gpointer _data);
static gboolean _match_phone_number_tests_test_match_phone_number_async_co (MatchPhoneNumberTestsTestMatchPhoneNumberAsyncData* _data_);
static void _match_phone_number_tests_test_match_phone_number_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _match_phone_number_tests_individuals_changed_cb (MatchPhoneNumberTests* self, GeeMultiMap* changes);
static void __match_phone_number_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static void _match_phone_number_tests_notify_pstore_cb (MatchPhoneNumberTests* self, GObject* _pstore, GParamSpec* ps);
static void __match_phone_number_tests_notify_pstore_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void _match_phone_number_tests_try_to_add (MatchPhoneNumberTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _match_phone_number_tests_try_to_add_finish (MatchPhoneNumberTests* self, GAsyncResult* _res_);
static void _match_phone_number_tests_try_potential_match (MatchPhoneNumberTests* self);
static void _match_phone_number_tests_try_to_add_data_free (gpointer _data);
static gboolean _match_phone_number_tests_try_to_add_co (MatchPhoneNumberTestsTryToAddData* _data_);
static void _match_phone_number_tests_add_personas (MatchPhoneNumberTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _match_phone_number_tests_add_personas_finish (MatchPhoneNumberTests* self, GAsyncResult* _res_);
static void _match_phone_number_tests_try_to_add_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _match_phone_number_tests_add_personas_data_free (gpointer _data);
static gboolean _match_phone_number_tests_add_personas_co (MatchPhoneNumberTestsAddPersonasData* _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_phone_number_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void match_phone_number_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _match_phone_number_tests_test_match_phone_number_folks_test_case_test_method (gpointer self) {
#line 47 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	match_phone_number_tests_test_match_phone_number (self);
#line 265 "match-phone-number.c"
}


MatchPhoneNumberTests* match_phone_number_tests_construct (GType object_type) {
	MatchPhoneNumberTests * self = NULL;
	TrackerTestBackend* _tmp0_;
#line 43 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	self = (MatchPhoneNumberTests*) folks_test_case_construct (object_type, "MatchPhoneNumberTests");
#line 45 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp0_ = tracker_test_backend_new ();
#line 45 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 45 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	self->priv->_tracker_backend = _tmp0_;
#line 47 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test potential match with phone numbers ", _match_phone_number_tests_test_match_phone_number_folks_test_case_test_method, self);
#line 41 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	return self;
#line 284 "match-phone-number.c"
}


MatchPhoneNumberTests* match_phone_number_tests_new (void) {
#line 41 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	return match_phone_number_tests_construct (TYPE_MATCH_PHONE_NUMBER_TESTS);
#line 291 "match-phone-number.c"
}


static void match_phone_number_tests_real_set_up (FolksTestCase* base) {
	MatchPhoneNumberTests * self;
#line 51 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	self = (MatchPhoneNumberTests*) base;
#line 299 "match-phone-number.c"
}


static void match_phone_number_tests_real_tear_down (FolksTestCase* base) {
	MatchPhoneNumberTests * self;
	TrackerTestBackend* _tmp0_;
#line 55 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	self = (MatchPhoneNumberTests*) base;
#line 57 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp0_ = self->priv->_tracker_backend;
#line 57 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	tracker_test_backend_tear_down (_tmp0_);
#line 312 "match-phone-number.c"
}


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


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


void match_phone_number_tests_test_match_phone_number (MatchPhoneNumberTests* self) {
	GMainLoop* _tmp0_;
	GMainLoop* _tmp1_;
	FolksMatchResult _tmp2_;
#line 60 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_return_if_fail (self != NULL);
#line 62 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 62 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 62 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	self->priv->_main_loop = _tmp0_;
#line 64 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_test_match_phone_number_async (self, NULL, NULL);
#line 66 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.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-phone-number.vala"
	_tmp1_ = self->priv->_main_loop;
#line 72 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_main_loop_run (_tmp1_);
#line 75 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp2_ = self->priv->_match;
#line 75 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_assert (_tmp2_ == FOLKS_MATCH_RESULT_HIGH);
#line 364 "match-phone-number.c"
}


static void _match_phone_number_tests_test_match_phone_number_async_data_free (gpointer _data) {
	MatchPhoneNumberTestsTestMatchPhoneNumberAsyncData* _data_;
	_data_ = _data;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_slice_free (MatchPhoneNumberTestsTestMatchPhoneNumberAsyncData, _data_);
#line 375 "match-phone-number.c"
}


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


static void _match_phone_number_tests_test_match_phone_number_async (MatchPhoneNumberTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MatchPhoneNumberTestsTestMatchPhoneNumberAsyncData* _data_;
	MatchPhoneNumberTests* _tmp0_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_ = g_slice_new0 (MatchPhoneNumberTestsTestMatchPhoneNumberAsyncData);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _match_phone_number_tests_test_match_phone_number_async);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _match_phone_number_tests_test_match_phone_number_async_data_free);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->self = _tmp0_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_test_match_phone_number_async_co (_data_);
#line 401 "match-phone-number.c"
}


static void _match_phone_number_tests_test_match_phone_number_finish (MatchPhoneNumberTests* self, GAsyncResult* _res_) {
	MatchPhoneNumberTestsTestMatchPhoneNumberAsyncData* _data_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 409 "match-phone-number.c"
}


static void _match_phone_number_tests_test_match_phone_number_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	MatchPhoneNumberTestsTestMatchPhoneNumberAsyncData* _data_;
#line 81 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_ = _user_data_;
#line 81 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_source_object_ = source_object;
#line 81 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_res_ = _res_;
#line 81 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_test_match_phone_number_async_co (_data_);
#line 423 "match-phone-number.c"
}


static void __match_phone_number_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 83 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_individuals_changed_cb (self, changes);
#line 430 "match-phone-number.c"
}


static void __match_phone_number_tests_notify_pstore_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 97 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_notify_pstore_cb (self, _sender, pspec);
#line 437 "match-phone-number.c"
}


static gboolean _match_phone_number_tests_test_match_phone_number_async_co (MatchPhoneNumberTestsTestMatchPhoneNumberAsyncData* _data_) {
#line 78 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	switch (_data_->_state_) {
#line 78 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		case 0:
#line 446 "match-phone-number.c"
		goto _state_0;
#line 78 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		case 1:
#line 450 "match-phone-number.c"
		goto _state_1;
#line 78 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		case 2:
#line 454 "match-phone-number.c"
		goto _state_2;
		default:
#line 78 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		g_assert_not_reached ();
#line 459 "match-phone-number.c"
	}
	_state_0:
#line 80 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp0_ = NULL;
#line 80 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 80 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->store = _data_->_tmp0_;
#line 81 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_state_ = 1;
#line 81 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	folks_backend_store_prepare (_data_->store, _match_phone_number_tests_test_match_phone_number_async_ready, _data_);
#line 81 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	return FALSE;
#line 474 "match-phone-number.c"
	_state_1:
#line 81 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 82 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 82 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 82 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 83 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 83 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_signal_connect_object (_data_->_tmp2_, "individuals-changed-detailed", (GCallback) __match_phone_number_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed, _data_->self, 0);
#line 488 "match-phone-number.c"
	{
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_state_ = 2;
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		folks_individual_aggregator_prepare (_data_->_tmp3_, _match_phone_number_tests_test_match_phone_number_async_ready, _data_);
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		return FALSE;
#line 498 "match-phone-number.c"
		_state_2:
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 87 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		if (_data_->_inner_error_ != NULL) {
#line 504 "match-phone-number.c"
			goto __catch0_g_error;
		}
#line 88 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_data_->self->priv->_pstore);
#line 88 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->self->priv->_pstore = NULL;
#line 511 "match-phone-number.c"
		{
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp4_ = folks_backend_store_get_enabled_backends (_data_->store);
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp5_ = _data_->_tmp4_;
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp6_ = gee_map_get_values (_data_->_tmp5_);
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp7_ = _data_->_tmp6_;
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp8_ = _data_->_tmp7_;
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp9_ = NULL;
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp9_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp8_);
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp10_ = _data_->_tmp9_;
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->_tmp8_);
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_data_->_backend_it = _data_->_tmp10_;
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			while (TRUE) {
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp11_ = _data_->_backend_it;
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp12_ = FALSE;
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp12_ = gee_iterator_next (_data_->_tmp11_);
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				if (!_data_->_tmp12_) {
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
					break;
#line 545 "match-phone-number.c"
				}
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp13_ = _data_->_backend_it;
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp14_ = NULL;
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp14_ = gee_iterator_get (_data_->_tmp13_);
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_data_->backend = (FolksBackend*) _data_->_tmp14_;
#line 91 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp15_ = _data_->backend;
#line 91 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp16_ = folks_backend_get_persona_stores (_data_->_tmp15_);
#line 91 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp17_ = _data_->_tmp16_;
#line 91 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp18_ = NULL;
#line 91 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp18_ = gee_map_get (_data_->_tmp17_, "tracker");
#line 91 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_g_object_unref0 (_data_->self->priv->_pstore);
#line 91 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_data_->self->priv->_pstore = TRF_PERSONA_STORE ((FolksPersonaStore*) _data_->_tmp18_);
#line 93 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp19_ = _data_->self->priv->_pstore;
#line 93 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				if (_data_->_tmp19_ != NULL) {
#line 94 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
					_g_object_unref0 (_data_->backend);
#line 94 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
					break;
#line 577 "match-phone-number.c"
				}
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_g_object_unref0 (_data_->backend);
#line 581 "match-phone-number.c"
			}
#line 89 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->_backend_it);
#line 585 "match-phone-number.c"
		}
#line 96 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp20_ = _data_->self->priv->_pstore;
#line 96 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		g_assert (_data_->_tmp20_ != NULL);
#line 97 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp21_ = _data_->self->priv->_pstore;
#line 97 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		g_signal_connect_object ((GObject*) _data_->_tmp21_, "notify::is-prepared", (GCallback) __match_phone_number_tests_notify_pstore_cb_g_object_notify, _data_->self, 0);
#line 98 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_match_phone_number_tests_try_to_add (_data_->self, NULL, NULL);
#line 597 "match-phone-number.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 85 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->e = _data_->_inner_error_;
#line 85 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_inner_error_ = NULL;
#line 102 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp22_ = _data_->e;
#line 102 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp23_ = _data_->_tmp22_->message;
#line 102 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		g_warning ("match-phone-number.vala:102: Error when calling prepare: %s\n", _data_->_tmp23_);
#line 85 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_g_error_free0 (_data_->e);
#line 614 "match-phone-number.c"
	}
	__finally0:
#line 85 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	if (_data_->_inner_error_ != NULL) {
#line 85 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_data_->store);
#line 85 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.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 85 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		g_clear_error (&_data_->_inner_error_);
#line 85 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		return FALSE;
#line 627 "match-phone-number.c"
	}
#line 78 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (_data_->store);
#line 78 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	if (_data_->_state_ == 0) {
#line 78 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 635 "match-phone-number.c"
	} else {
#line 78 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 639 "match-phone-number.c"
	}
#line 78 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_object_unref (_data_->_async_result);
#line 78 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	return FALSE;
#line 645 "match-phone-number.c"
}


static void _match_phone_number_tests_individuals_changed_cb (MatchPhoneNumberTests* 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 106 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_return_if_fail (self != NULL);
#line 106 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_return_if_fail (changes != NULL);
#line 109 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp0_ = changes;
#line 109 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 109 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	added = _tmp1_;
#line 110 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp2_ = changes;
#line 110 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 110 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	removed = _tmp3_;
#line 678 "match-phone-number.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 112 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_tmp4_ = added;
#line 112 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 112 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_i_it = _tmp5_;
#line 112 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		while (TRUE) {
#line 691 "match-phone-number.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 112 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_tmp6_ = _i_it;
#line 112 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 112 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			if (!_tmp7_) {
#line 112 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				break;
#line 710 "match-phone-number.c"
			}
#line 112 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_tmp8_ = _i_it;
#line 112 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 112 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			i = (FolksIndividual*) _tmp9_;
#line 114 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_tmp10_ = i;
#line 114 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			g_assert (_tmp10_ != NULL);
#line 116 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_tmp11_ = i;
#line 116 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_tmp12_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp11_);
#line 116 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_tmp13_ = _tmp12_;
#line 116 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_tmp14_ = self->priv->_persona_fullname_1;
#line 116 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			if (g_strcmp0 (_tmp13_, _tmp14_) == 0) {
#line 732 "match-phone-number.c"
				FolksIndividual* _tmp15_;
				const gchar* _tmp16_;
				const gchar* _tmp17_;
				gchar* _tmp18_;
#line 118 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_tmp15_ = i;
#line 118 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_tmp16_ = folks_individual_get_id (_tmp15_);
#line 118 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_tmp17_ = _tmp16_;
#line 118 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_tmp18_ = g_strdup (_tmp17_);
#line 118 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_g_free0 (self->priv->_individual_id_1);
#line 118 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				self->priv->_individual_id_1 = _tmp18_;
#line 749 "match-phone-number.c"
			} else {
				FolksIndividual* _tmp19_;
				const gchar* _tmp20_;
				const gchar* _tmp21_;
				const gchar* _tmp22_;
#line 120 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_tmp19_ = i;
#line 120 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_tmp20_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp19_);
#line 120 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_tmp21_ = _tmp20_;
#line 120 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_tmp22_ = self->priv->_persona_fullname_2;
#line 120 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				if (g_strcmp0 (_tmp21_, _tmp22_) == 0) {
#line 765 "match-phone-number.c"
					FolksIndividual* _tmp23_;
					const gchar* _tmp24_;
					const gchar* _tmp25_;
					gchar* _tmp26_;
#line 122 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
					_tmp23_ = i;
#line 122 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
					_tmp24_ = folks_individual_get_id (_tmp23_);
#line 122 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
					_tmp25_ = _tmp24_;
#line 122 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
					_tmp26_ = g_strdup (_tmp25_);
#line 122 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
					_g_free0 (self->priv->_individual_id_2);
#line 122 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
					self->priv->_individual_id_2 = _tmp26_;
#line 782 "match-phone-number.c"
				}
			}
#line 112 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (i);
#line 787 "match-phone-number.c"
		}
#line 112 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_i_it);
#line 791 "match-phone-number.c"
	}
#line 126 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp28_ = self->priv->_individual_id_1;
#line 126 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	if (g_strcmp0 (_tmp28_, "") != 0) {
#line 797 "match-phone-number.c"
		const gchar* _tmp29_;
#line 127 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_tmp29_ = self->priv->_individual_id_2;
#line 127 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_tmp27_ = g_strcmp0 (_tmp29_, "") != 0;
#line 803 "match-phone-number.c"
	} else {
#line 126 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_tmp27_ = FALSE;
#line 807 "match-phone-number.c"
	}
#line 126 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp30_ = _tmp27_;
#line 126 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	if (_tmp30_) {
#line 129 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_match_phone_number_tests_try_potential_match (self);
#line 815 "match-phone-number.c"
	}
#line 132 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp31_ = removed;
#line 132 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp32_ = gee_collection_get_size ((GeeCollection*) _tmp31_);
#line 132 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp33_ = _tmp32_;
#line 132 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_assert (_tmp33_ == 1);
#line 825 "match-phone-number.c"
	{
		GeeSet* _tmp34_;
		GeeIterator* _tmp35_ = NULL;
		GeeIterator* _i_it;
#line 134 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_tmp34_ = removed;
#line 134 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_tmp35_ = gee_iterable_iterator ((GeeIterable*) _tmp34_);
#line 134 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_i_it = _tmp35_;
#line 134 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		while (TRUE) {
#line 838 "match-phone-number.c"
			GeeIterator* _tmp36_;
			gboolean _tmp37_ = FALSE;
			GeeIterator* _tmp38_;
			gpointer _tmp39_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp40_;
#line 134 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_tmp36_ = _i_it;
#line 134 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_tmp37_ = gee_iterator_next (_tmp36_);
#line 134 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			if (!_tmp37_) {
#line 134 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				break;
#line 853 "match-phone-number.c"
			}
#line 134 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_tmp38_ = _i_it;
#line 134 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_tmp39_ = gee_iterator_get (_tmp38_);
#line 134 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			i = (FolksIndividual*) _tmp39_;
#line 136 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_tmp40_ = i;
#line 136 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			g_assert (_tmp40_ == NULL);
#line 134 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (i);
#line 867 "match-phone-number.c"
		}
#line 134 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_i_it);
#line 871 "match-phone-number.c"
	}
#line 106 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (removed);
#line 106 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (added);
#line 877 "match-phone-number.c"
}


static void _match_phone_number_tests_try_potential_match (MatchPhoneNumberTests* 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 140 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_return_if_fail (self != NULL);
#line 142 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp0_ = self->priv->_aggregator;
#line 142 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp1_ = folks_individual_aggregator_get_individuals (_tmp0_);
#line 142 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp2_ = _tmp1_;
#line 142 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp3_ = self->priv->_individual_id_1;
#line 142 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp4_ = gee_map_get (_tmp2_, _tmp3_);
#line 142 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	ind1 = (FolksIndividual*) _tmp4_;
#line 143 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp5_ = self->priv->_aggregator;
#line 143 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp6_ = folks_individual_aggregator_get_individuals (_tmp5_);
#line 143 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp7_ = _tmp6_;
#line 143 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp8_ = self->priv->_individual_id_2;
#line 143 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp9_ = gee_map_get (_tmp7_, _tmp8_);
#line 143 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	ind2 = (FolksIndividual*) _tmp9_;
#line 145 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp10_ = folks_potential_match_new ();
#line 145 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	matchObj = _tmp10_;
#line 146 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp11_ = folks_potential_match_potential_match (matchObj, ind1, ind2);
#line 146 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	self->priv->_match = _tmp11_;
#line 148 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp12_ = self->priv->_main_loop;
#line 148 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_main_loop_quit (_tmp12_);
#line 140 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (matchObj);
#line 140 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (ind2);
#line 140 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (ind1);
#line 942 "match-phone-number.c"
}


static void _match_phone_number_tests_notify_pstore_cb (MatchPhoneNumberTests* self, GObject* _pstore, GParamSpec* ps) {
#line 151 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_return_if_fail (self != NULL);
#line 151 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_return_if_fail (_pstore != NULL);
#line 151 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_return_if_fail (ps != NULL);
#line 153 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_try_to_add (self, NULL, NULL);
#line 955 "match-phone-number.c"
}


static void _match_phone_number_tests_try_to_add_data_free (gpointer _data) {
	MatchPhoneNumberTestsTryToAddData* _data_;
	_data_ = _data;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_slice_free (MatchPhoneNumberTestsTryToAddData, _data_);
#line 966 "match-phone-number.c"
}


static void _match_phone_number_tests_try_to_add (MatchPhoneNumberTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MatchPhoneNumberTestsTryToAddData* _data_;
	MatchPhoneNumberTests* _tmp0_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_ = g_slice_new0 (MatchPhoneNumberTestsTryToAddData);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _match_phone_number_tests_try_to_add);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _match_phone_number_tests_try_to_add_data_free);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->self = _tmp0_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_try_to_add_co (_data_);
#line 985 "match-phone-number.c"
}


static void _match_phone_number_tests_try_to_add_finish (MatchPhoneNumberTests* self, GAsyncResult* _res_) {
	MatchPhoneNumberTestsTryToAddData* _data_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 993 "match-phone-number.c"
}


static void _match_phone_number_tests_try_to_add_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	MatchPhoneNumberTestsTryToAddData* _data_;
#line 164 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_ = _user_data_;
#line 164 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_source_object_ = source_object;
#line 164 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_res_ = _res_;
#line 164 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_try_to_add_co (_data_);
#line 1007 "match-phone-number.c"
}


static gboolean _match_phone_number_tests_try_to_add_co (MatchPhoneNumberTestsTryToAddData* _data_) {
#line 156 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	switch (_data_->_state_) {
#line 156 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		case 0:
#line 1016 "match-phone-number.c"
		goto _state_0;
#line 156 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		case 1:
#line 1020 "match-phone-number.c"
		goto _state_1;
		default:
#line 156 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		g_assert_not_reached ();
#line 1025 "match-phone-number.c"
	}
	_state_0:
	{
#line 158 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp0_ = _data_->self->priv->_added_personas;
#line 158 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		g_static_rec_mutex_lock (&_data_->self->priv->__lock__added_personas);
#line 1033 "match-phone-number.c"
		{
#line 160 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp2_ = _data_->self->priv->_pstore;
#line 160 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp3_ = folks_persona_store_get_is_prepared ((FolksPersonaStore*) _data_->_tmp2_);
#line 160 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp4_ = _data_->_tmp3_;
#line 160 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			if (_data_->_tmp4_) {
#line 161 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp5_ = _data_->self->priv->_added_personas;
#line 161 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp1_ = _data_->_tmp5_ == FALSE;
#line 1047 "match-phone-number.c"
			} else {
#line 160 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp1_ = FALSE;
#line 1051 "match-phone-number.c"
			}
#line 160 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp6_ = _data_->_tmp1_;
#line 160 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			if (_data_->_tmp6_) {
#line 163 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_data_->self->priv->_added_personas = TRUE;
#line 164 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_data_->_state_ = 1;
#line 164 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_match_phone_number_tests_add_personas (_data_->self, _match_phone_number_tests_try_to_add_ready, _data_);
#line 164 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				return FALSE;
#line 1065 "match-phone-number.c"
				_state_1:
#line 164 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
				_match_phone_number_tests_add_personas_finish (_data_->self, _data_->_res_);
#line 1069 "match-phone-number.c"
			}
		}
		__finally1:
		{
#line 158 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp7_ = _data_->self->priv->_added_personas;
#line 158 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			g_static_rec_mutex_unlock (&_data_->self->priv->__lock__added_personas);
#line 1078 "match-phone-number.c"
		}
#line 158 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		if (_data_->_inner_error_ != NULL) {
#line 158 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.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 158 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			g_clear_error (&_data_->_inner_error_);
#line 158 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			return FALSE;
#line 1088 "match-phone-number.c"
		}
	}
#line 156 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	if (_data_->_state_ == 0) {
#line 156 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1095 "match-phone-number.c"
	} else {
#line 156 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1099 "match-phone-number.c"
	}
#line 156 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_object_unref (_data_->_async_result);
#line 156 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	return FALSE;
#line 1105 "match-phone-number.c"
}


static void _match_phone_number_tests_add_personas_data_free (gpointer _data) {
	MatchPhoneNumberTestsAddPersonasData* _data_;
	_data_ = _data;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_slice_free (MatchPhoneNumberTestsAddPersonasData, _data_);
#line 1116 "match-phone-number.c"
}


static void _match_phone_number_tests_add_personas (MatchPhoneNumberTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MatchPhoneNumberTestsAddPersonasData* _data_;
	MatchPhoneNumberTests* _tmp0_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_ = g_slice_new0 (MatchPhoneNumberTestsAddPersonasData);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _match_phone_number_tests_add_personas);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _match_phone_number_tests_add_personas_data_free);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->self = _tmp0_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_add_personas_co (_data_);
#line 1135 "match-phone-number.c"
}


static void _match_phone_number_tests_add_personas_finish (MatchPhoneNumberTests* self, GAsyncResult* _res_) {
	MatchPhoneNumberTestsAddPersonasData* _data_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1143 "match-phone-number.c"
}


static void _g_free0_ (gpointer var) {
#line 171 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	var = (g_free (var), NULL);
#line 1150 "match-phone-number.c"
}


static void _vala_GValue_free (GValue* self) {
#line 171 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_value_unset (self);
#line 171 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_free (self);
#line 1159 "match-phone-number.c"
}


static void __vala_GValue_free0_ (gpointer var) {
#line 171 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	(var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL));
#line 1166 "match-phone-number.c"
}


static GValue* _g_value_dup (GValue* self) {
#line 177 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	return g_boxed_copy (G_TYPE_VALUE, self);
#line 1173 "match-phone-number.c"
}


static gpointer __g_value_dup0 (gpointer self) {
#line 177 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	return self ? _g_value_dup (self) : NULL;
#line 1180 "match-phone-number.c"
}


static void _match_phone_number_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	MatchPhoneNumberTestsAddPersonasData* _data_;
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_ = _user_data_;
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_source_object_ = source_object;
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_res_ = _res_;
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_add_personas_co (_data_);
#line 1194 "match-phone-number.c"
}


static gboolean _match_phone_number_tests_add_personas_co (MatchPhoneNumberTestsAddPersonasData* _data_) {
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	switch (_data_->_state_) {
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		case 0:
#line 1203 "match-phone-number.c"
		goto _state_0;
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		case 1:
#line 1207 "match-phone-number.c"
		goto _state_1;
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		case 2:
#line 1211 "match-phone-number.c"
		goto _state_2;
		default:
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		g_assert_not_reached ();
#line 1216 "match-phone-number.c"
	}
	_state_0:
#line 171 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp0_ = g_str_hash;
#line 171 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp1_ = g_str_equal;
#line 171 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp2_ = g_hash_table_new_full (_data_->_tmp0_, _data_->_tmp1_, _g_free0_, __vala_GValue_free0_);
#line 171 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->details1 = _data_->_tmp2_;
#line 173 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp3_ = g_str_hash;
#line 173 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp4_ = g_str_equal;
#line 173 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp5_ = g_hash_table_new_full (_data_->_tmp3_, _data_->_tmp4_, _g_free0_, __vala_GValue_free0_);
#line 173 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->details2 = _data_->_tmp5_;
#line 177 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	memset (&_data_->_tmp6_, 0, sizeof (GValue));
#line 177 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_value_init (&_data_->_tmp6_, G_TYPE_STRING);
#line 177 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp7_ = _data_->_tmp6_;
#line 177 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp8_ = __g_value_dup0 (&_data_->_tmp7_);
#line 177 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	__vala_GValue_free0 (_data_->val);
#line 177 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->val = _data_->_tmp8_;
#line 177 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	G_IS_VALUE (&_data_->_tmp7_) ? (g_value_unset (&_data_->_tmp7_), NULL) : NULL;
#line 178 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp9_ = _data_->val;
#line 178 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp10_ = _data_->self->priv->_persona_fullname_1;
#line 178 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_value_set_string (_data_->_tmp9_, _data_->_tmp10_);
#line 179 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp11_ = _data_->details1;
#line 179 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp12_ = NULL;
#line 179 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp12_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_FULL_NAME);
#line 179 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp13_ = g_strdup (_data_->_tmp12_);
#line 179 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp14_ = _data_->val;
#line 179 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->val = NULL;
#line 179 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_hash_table_insert (_data_->_tmp11_, _data_->_tmp13_, _data_->_tmp14_);
#line 182 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	memset (&_data_->_tmp15_, 0, sizeof (GValue));
#line 182 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_value_init (&_data_->_tmp15_, GEE_TYPE_SET);
#line 182 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp16_ = _data_->_tmp15_;
#line 182 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp17_ = __g_value_dup0 (&_data_->_tmp16_);
#line 182 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	__vala_GValue_free0 (_data_->val);
#line 182 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->val = _data_->_tmp17_;
#line 182 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	G_IS_VALUE (&_data_->_tmp16_) ? (g_value_unset (&_data_->_tmp16_), NULL) : NULL;
#line 183 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp18_ = gee_hash_set_new (FOLKS_TYPE_PHONE_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
#line 183 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->phone_numbers1 = _data_->_tmp18_;
#line 186 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp19_ = _data_->self->priv->_phone_1;
#line 186 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp20_ = folks_phone_field_details_new (_data_->_tmp19_, NULL);
#line 186 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->phone_number_1 = _data_->_tmp20_;
#line 187 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp21_ = _data_->phone_numbers1;
#line 187 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp22_ = _data_->phone_number_1;
#line 187 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp21_, _data_->_tmp22_);
#line 188 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp23_ = _data_->val;
#line 188 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp24_ = _data_->phone_numbers1;
#line 188 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_value_set_object (_data_->_tmp23_, (GObject*) _data_->_tmp24_);
#line 189 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp25_ = _data_->details1;
#line 189 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp26_ = NULL;
#line 189 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp26_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_PHONE_NUMBERS);
#line 189 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp27_ = g_strdup (_data_->_tmp26_);
#line 189 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp28_ = _data_->val;
#line 189 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->val = NULL;
#line 189 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_hash_table_insert (_data_->_tmp25_, _data_->_tmp27_, _data_->_tmp28_);
#line 193 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	memset (&_data_->_tmp29_, 0, sizeof (GValue));
#line 193 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_value_init (&_data_->_tmp29_, G_TYPE_STRING);
#line 193 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp30_ = _data_->_tmp29_;
#line 193 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp31_ = __g_value_dup0 (&_data_->_tmp30_);
#line 193 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	__vala_GValue_free0 (_data_->val);
#line 193 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->val = _data_->_tmp31_;
#line 193 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	G_IS_VALUE (&_data_->_tmp30_) ? (g_value_unset (&_data_->_tmp30_), NULL) : NULL;
#line 194 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp32_ = _data_->val;
#line 194 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp33_ = _data_->self->priv->_persona_fullname_2;
#line 194 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_value_set_string (_data_->_tmp32_, _data_->_tmp33_);
#line 195 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp34_ = _data_->details2;
#line 195 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp35_ = NULL;
#line 195 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp35_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_FULL_NAME);
#line 195 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp36_ = g_strdup (_data_->_tmp35_);
#line 195 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp37_ = _data_->val;
#line 195 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->val = NULL;
#line 195 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_hash_table_insert (_data_->_tmp34_, _data_->_tmp36_, _data_->_tmp37_);
#line 198 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	memset (&_data_->_tmp38_, 0, sizeof (GValue));
#line 198 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_value_init (&_data_->_tmp38_, GEE_TYPE_SET);
#line 198 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp39_ = _data_->_tmp38_;
#line 198 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp40_ = __g_value_dup0 (&_data_->_tmp39_);
#line 198 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	__vala_GValue_free0 (_data_->val);
#line 198 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->val = _data_->_tmp40_;
#line 198 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	G_IS_VALUE (&_data_->_tmp39_) ? (g_value_unset (&_data_->_tmp39_), NULL) : NULL;
#line 199 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp41_ = gee_hash_set_new (FOLKS_TYPE_PHONE_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
#line 199 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->phone_numbers2 = _data_->_tmp41_;
#line 202 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp42_ = _data_->self->priv->_phone_2;
#line 202 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp43_ = folks_phone_field_details_new (_data_->_tmp42_, NULL);
#line 202 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->phone_number_2 = _data_->_tmp43_;
#line 203 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp44_ = _data_->phone_numbers2;
#line 203 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp45_ = _data_->phone_number_2;
#line 203 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp44_, _data_->_tmp45_);
#line 204 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp46_ = _data_->val;
#line 204 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp47_ = _data_->phone_numbers2;
#line 204 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_value_set_object (_data_->_tmp46_, (GObject*) _data_->_tmp47_);
#line 205 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp48_ = _data_->details2;
#line 205 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp49_ = NULL;
#line 205 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp49_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_PHONE_NUMBERS);
#line 205 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp50_ = g_strdup (_data_->_tmp49_);
#line 205 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp51_ = _data_->val;
#line 205 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_data_->val = NULL;
#line 205 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_hash_table_insert (_data_->_tmp48_, _data_->_tmp50_, _data_->_tmp51_);
#line 1403 "match-phone-number.c"
	{
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp52_ = _data_->self->priv->_aggregator;
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp53_ = _data_->self->priv->_pstore;
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp54_ = _data_->details1;
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_state_ = 1;
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp52_, NULL, (FolksPersonaStore*) _data_->_tmp53_, _data_->_tmp54_, _match_phone_number_tests_add_personas_ready, _data_);
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		return FALSE;
#line 1417 "match-phone-number.c"
		_state_1:
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp55_ = NULL;
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp55_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp52_, _data_->_res_, &_data_->_inner_error_);
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp56_ = _data_->_tmp55_;
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_data_->_tmp56_);
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		if (_data_->_inner_error_ != NULL) {
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1431 "match-phone-number.c"
				goto __catch2_folks_individual_aggregator_error;
			}
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->phone_number_2);
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->phone_numbers2);
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->phone_number_1);
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->phone_numbers1);
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			__vala_GValue_free0 (_data_->val);
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.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 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			g_clear_error (&_data_->_inner_error_);
#line 211 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			return FALSE;
#line 1454 "match-phone-number.c"
		}
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp57_ = _data_->self->priv->_aggregator;
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp58_ = _data_->self->priv->_pstore;
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp59_ = _data_->details2;
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_state_ = 2;
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp57_, NULL, (FolksPersonaStore*) _data_->_tmp58_, _data_->_tmp59_, _match_phone_number_tests_add_personas_ready, _data_);
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		return FALSE;
#line 1468 "match-phone-number.c"
		_state_2:
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp60_ = NULL;
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp60_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp57_, _data_->_res_, &_data_->_inner_error_);
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp61_ = _data_->_tmp60_;
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_data_->_tmp61_);
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		if (_data_->_inner_error_ != NULL) {
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1482 "match-phone-number.c"
				goto __catch2_folks_individual_aggregator_error;
			}
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->phone_number_2);
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->phone_numbers2);
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->phone_number_1);
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->phone_numbers1);
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			__vala_GValue_free0 (_data_->val);
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.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 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			g_clear_error (&_data_->_inner_error_);
#line 214 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
			return FALSE;
#line 1505 "match-phone-number.c"
		}
	}
	goto __finally2;
	__catch2_folks_individual_aggregator_error:
	{
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->e = _data_->_inner_error_;
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_inner_error_ = NULL;
#line 219 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp62_ = _data_->e;
#line 219 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp63_ = _data_->_tmp62_->message;
#line 219 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		g_warning ("match-phone-number.vala:219: [AddPersonaError] add_persona_from_detail" \
"s: %s\n", _data_->_tmp63_);
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_g_error_free0 (_data_->e);
#line 1523 "match-phone-number.c"
	}
	__finally2:
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	if (_data_->_inner_error_ != NULL) {
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_data_->phone_number_2);
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_data_->phone_numbers2);
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_data_->phone_number_1);
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_data_->phone_numbers1);
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		__vala_GValue_free0 (_data_->val);
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_g_hash_table_unref0 (_data_->details2);
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		_g_hash_table_unref0 (_data_->details1);
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.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 209 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		g_clear_error (&_data_->_inner_error_);
#line 209 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		return FALSE;
#line 1548 "match-phone-number.c"
	}
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (_data_->phone_number_2);
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (_data_->phone_numbers2);
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (_data_->phone_number_1);
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (_data_->phone_numbers1);
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	__vala_GValue_free0 (_data_->val);
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_hash_table_unref0 (_data_->details2);
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_hash_table_unref0 (_data_->details1);
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	if (_data_->_state_ == 0) {
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1568 "match-phone-number.c"
	} else {
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1572 "match-phone-number.c"
	}
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_object_unref (_data_->_async_result);
#line 169 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	return FALSE;
#line 1578 "match-phone-number.c"
}


static void match_phone_number_tests_class_init (MatchPhoneNumberTestsClass * klass) {
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	match_phone_number_tests_parent_class = g_type_class_peek_parent (klass);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_type_class_add_private (klass, sizeof (MatchPhoneNumberTestsPrivate));
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = match_phone_number_tests_real_set_up;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = match_phone_number_tests_real_tear_down;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	G_OBJECT_CLASS (klass)->finalize = match_phone_number_tests_finalize;
#line 1593 "match-phone-number.c"
}


static void match_phone_number_tests_instance_init (MatchPhoneNumberTests * self) {
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	self->priv = MATCH_PHONE_NUMBER_TESTS_GET_PRIVATE (self);
#line 31 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp0_ = g_strdup ("aaa");
#line 31 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	self->priv->_persona_fullname_1 = _tmp0_;
#line 32 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp1_ = g_strdup ("bbb");
#line 32 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	self->priv->_persona_fullname_2 = _tmp1_;
#line 33 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp2_ = g_strdup ("+1-800-123-4567");
#line 33 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	self->priv->_phone_1 = _tmp2_;
#line 34 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp3_ = g_strdup ("123-4567");
#line 34 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	self->priv->_phone_2 = _tmp3_;
#line 35 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_static_rec_mutex_init (&self->priv->__lock__added_personas);
#line 35 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	self->priv->_added_personas = FALSE;
#line 36 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp4_ = g_strdup ("");
#line 36 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	self->priv->_individual_id_1 = _tmp4_;
#line 37 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp5_ = g_strdup ("");
#line 37 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	self->priv->_individual_id_2 = _tmp5_;
#line 1634 "match-phone-number.c"
}


static void match_phone_number_tests_finalize (GObject* obj) {
	MatchPhoneNumberTests * self;
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	self = MATCH_PHONE_NUMBER_TESTS (obj);
#line 28 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 29 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 30 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 31 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_free0 (self->priv->_persona_fullname_1);
#line 32 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_free0 (self->priv->_persona_fullname_2);
#line 33 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_free0 (self->priv->_phone_1);
#line 34 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_free0 (self->priv->_phone_2);
#line 35 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_static_rec_mutex_free (&self->priv->__lock__added_personas);
#line 36 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_free0 (self->priv->_individual_id_1);
#line 37 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_free0 (self->priv->_individual_id_2);
#line 39 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (self->priv->_pstore);
#line 26 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	G_OBJECT_CLASS (match_phone_number_tests_parent_class)->finalize (obj);
#line 1666 "match-phone-number.c"
}


GType match_phone_number_tests_get_type (void) {
	static volatile gsize match_phone_number_tests_type_id__volatile = 0;
	if (g_once_init_enter (&match_phone_number_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (MatchPhoneNumberTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) match_phone_number_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MatchPhoneNumberTests), 0, (GInstanceInitFunc) match_phone_number_tests_instance_init, NULL };
		GType match_phone_number_tests_type_id;
		match_phone_number_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "MatchPhoneNumberTests", &g_define_type_info, 0);
		g_once_init_leave (&match_phone_number_tests_type_id__volatile, match_phone_number_tests_type_id);
	}
	return match_phone_number_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	MatchPhoneNumberTests* _tmp1_;
	MatchPhoneNumberTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 227 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_test_init (&args_length1, &args, NULL);
#line 229 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp0_ = g_test_get_root ();
#line 229 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	root = _tmp0_;
#line 230 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp1_ = match_phone_number_tests_new ();
#line 230 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp2_ = _tmp1_;
#line 230 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 230 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 230 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (_tmp2_);
#line 232 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_test_run ();
#line 234 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	result = 0;
#line 234 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	return result;
#line 1711 "match-phone-number.c"
}


int main (int argc, char ** argv) {
#line 225 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	g_type_init ();
#line 225 "/debian/rgs/devel/folks/tests/tracker/match-phone-number.vala"
	return _vala_main (argv, argc);
#line 1720 "match-phone-number.c"
}



