/* match-phone-number.c generated by valac 0.26.0.36-540e, 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 <tracker-test.h>
#include <folks/folks.h>
#include <stdlib.h>
#include <string.h>
#include <folks/folks-tracker.h>
#include <folks-test.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 _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;
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

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

struct _MatchPhoneNumberTestsClass {
	TrackerTestTestCaseClass parent_class;
};

struct _MatchPhoneNumberTestsPrivate {
	GMainLoop* _main_loop;
	FolksIndividualAggregator* _aggregator;
	gchar* _persona_fullname_1;
	gchar* _persona_fullname_2;
	gchar* _phone_1;
	gchar* _phone_2;
	gboolean _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* store;
	FolksBackendStore* _tmp0_;
	FolksIndividualAggregator* _tmp1_;
	FolksIndividualAggregator* _tmp2_;
	FolksIndividualAggregator* _tmp3_;
	GeeIterator* _backend_it;
	GeeMap* _tmp4_;
	GeeMap* _tmp5_;
	GeeCollection* _tmp6_;
	GeeCollection* _tmp7_;
	GeeCollection* _tmp8_;
	GeeIterator* _tmp9_;
	GeeIterator* _tmp10_;
	GeeIterator* _tmp11_;
	gboolean _tmp12_;
	FolksBackend* backend;
	GeeIterator* _tmp13_;
	gpointer _tmp14_;
	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_;
	TrfPersonaStore* _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp3_;
	gboolean _tmp4_;
};

struct _MatchPhoneNumberTestsAddPersonasData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	MatchPhoneNumberTests* self;
	GHashTable* details1;
	GHashFunc _tmp0_;
	GEqualFunc _tmp1_;
	GHashTable* _tmp2_;
	GHashTable* details2;
	GHashFunc _tmp3_;
	GEqualFunc _tmp4_;
	GHashTable* _tmp5_;
	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* phone_numbers1;
	GeeHashSet* _tmp18_;
	FolksPhoneFieldDetails* phone_number_1;
	const gchar* _tmp19_;
	FolksPhoneFieldDetails* _tmp20_;
	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* phone_numbers2;
	GeeHashSet* _tmp41_;
	FolksPhoneFieldDetails* phone_number_2;
	const gchar* _tmp42_;
	FolksPhoneFieldDetails* _tmp43_;
	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_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 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 guint _folks_abstract_field_details_hash_static_gee_hash_data_func (gconstpointer v, gpointer self);
static gboolean _folks_abstract_field_details_equal_static_gee_equal_data_func (gconstpointer a, gconstpointer b, gpointer 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 44 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	match_phone_number_tests_test_match_phone_number ((MatchPhoneNumberTests*) self);
#line 257 "match-phone-number.c"
}


MatchPhoneNumberTests* match_phone_number_tests_construct (GType object_type) {
	MatchPhoneNumberTests * self = NULL;
#line 42 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	self = (MatchPhoneNumberTests*) tracker_test_test_case_construct (object_type, "MatchPhoneNumberTests");
#line 44 "/opt/gnome3/source/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 40 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	return self;
#line 269 "match-phone-number.c"
}


MatchPhoneNumberTests* match_phone_number_tests_new (void) {
#line 40 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	return match_phone_number_tests_construct (TYPE_MATCH_PHONE_NUMBER_TESTS);
#line 276 "match-phone-number.c"
}


void match_phone_number_tests_test_match_phone_number (MatchPhoneNumberTests* self) {
	GMainLoop* _tmp0_ = NULL;
	GMainLoop* _tmp1_ = NULL;
	FolksMatchResult _tmp2_ = 0;
#line 48 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_return_if_fail (self != NULL);
#line 50 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 50 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 50 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	self->priv->_main_loop = _tmp0_;
#line 52 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_test_match_phone_number_async (self, NULL, NULL);
#line 54 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp1_ = self->priv->_main_loop;
#line 54 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	folks_test_utils_loop_run_with_timeout (_tmp1_, 5);
#line 57 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp2_ = self->priv->_match;
#line 57 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_vala_assert (_tmp2_ == FOLKS_MATCH_RESULT_HIGH, "this._match == Folks.MatchResult.HIGH");
#line 302 "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 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_slice_free (MatchPhoneNumberTestsTestMatchPhoneNumberAsyncData, _data_);
#line 313 "match-phone-number.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 26 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	return self ? g_object_ref (self) : NULL;
#line 320 "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_ = NULL;
#line 26 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_ = g_slice_new0 (MatchPhoneNumberTestsTestMatchPhoneNumberAsyncData);
#line 26 "/opt/gnome3/source/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 "/opt/gnome3/source/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 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->self = _tmp0_;
#line 26 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_test_match_phone_number_async_co (_data_);
#line 339 "match-phone-number.c"
}


static void _match_phone_number_tests_test_match_phone_number_finish (MatchPhoneNumberTests* self, GAsyncResult* _res_) {
	MatchPhoneNumberTestsTestMatchPhoneNumberAsyncData* _data_;
#line 26 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 347 "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 63 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_ = _user_data_;
#line 63 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_source_object_ = source_object;
#line 63 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_res_ = _res_;
#line 63 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_test_match_phone_number_async_co (_data_);
#line 361 "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 65 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_individuals_changed_cb ((MatchPhoneNumberTests*) self, changes);
#line 368 "match-phone-number.c"
}


static void __match_phone_number_tests_notify_pstore_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 79 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_notify_pstore_cb ((MatchPhoneNumberTests*) self, _sender, pspec);
#line 375 "match-phone-number.c"
}


static gboolean _match_phone_number_tests_test_match_phone_number_async_co (MatchPhoneNumberTestsTestMatchPhoneNumberAsyncData* _data_) {
#line 60 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	switch (_data_->_state_) {
#line 60 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		case 0:
#line 384 "match-phone-number.c"
		goto _state_0;
#line 60 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		case 1:
#line 388 "match-phone-number.c"
		goto _state_1;
#line 60 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		case 2:
#line 392 "match-phone-number.c"
		goto _state_2;
		default:
#line 60 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		g_assert_not_reached ();
#line 397 "match-phone-number.c"
	}
	_state_0:
#line 62 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp0_ = NULL;
#line 62 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 62 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->store = _data_->_tmp0_;
#line 63 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_state_ = 1;
#line 63 "/opt/gnome3/source/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 63 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	return FALSE;
#line 412 "match-phone-number.c"
	_state_1:
#line 63 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 64 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp1_ = NULL;
#line 64 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp1_ = folks_individual_aggregator_dup ();
#line 64 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 64 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 65 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp2_ = NULL;
#line 65 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 65 "/opt/gnome3/source/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 430 "match-phone-number.c"
	{
#line 69 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp3_ = NULL;
#line 69 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 69 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_state_ = 2;
#line 69 "/opt/gnome3/source/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 69 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		return FALSE;
#line 442 "match-phone-number.c"
		_state_2:
#line 69 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 69 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 448 "match-phone-number.c"
			goto __catch0_g_error;
		}
#line 70 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_data_->self->priv->_pstore);
#line 70 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->self->priv->_pstore = NULL;
#line 455 "match-phone-number.c"
		{
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp4_ = NULL;
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp4_ = folks_backend_store_get_enabled_backends (_data_->store);
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp5_ = NULL;
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp5_ = _data_->_tmp4_;
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp6_ = NULL;
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp6_ = gee_map_get_values (_data_->_tmp5_);
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp7_ = NULL;
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp7_ = _data_->_tmp6_;
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp8_ = NULL;
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp8_ = _data_->_tmp7_;
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp9_ = NULL;
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp9_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp8_);
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp10_ = NULL;
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_data_->_tmp10_ = _data_->_tmp9_;
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->_tmp8_);
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_data_->_backend_it = _data_->_tmp10_;
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			while (TRUE) {
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp11_ = NULL;
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp11_ = _data_->_backend_it;
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp12_ = FALSE;
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp12_ = gee_iterator_next (_data_->_tmp11_);
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				if (!_data_->_tmp12_) {
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
					break;
#line 503 "match-phone-number.c"
				}
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp13_ = NULL;
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp13_ = _data_->_backend_it;
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp14_ = NULL;
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp14_ = gee_iterator_get (_data_->_tmp13_);
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->backend = (FolksBackend*) _data_->_tmp14_;
#line 73 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp15_ = NULL;
#line 73 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp15_ = _data_->backend;
#line 73 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp16_ = NULL;
#line 73 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp16_ = folks_backend_get_persona_stores (_data_->_tmp15_);
#line 73 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp17_ = NULL;
#line 73 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp17_ = _data_->_tmp16_;
#line 73 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp18_ = NULL;
#line 73 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp18_ = gee_map_get (_data_->_tmp17_, "tracker");
#line 73 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_g_object_unref0 (_data_->self->priv->_pstore);
#line 73 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->self->priv->_pstore = G_TYPE_CHECK_INSTANCE_CAST ((FolksPersonaStore*) _data_->_tmp18_, TRF_TYPE_PERSONA_STORE, TrfPersonaStore);
#line 75 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp19_ = NULL;
#line 75 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_data_->_tmp19_ = _data_->self->priv->_pstore;
#line 75 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				if (_data_->_tmp19_ != NULL) {
#line 76 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
					_g_object_unref0 (_data_->backend);
#line 76 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
					break;
#line 545 "match-phone-number.c"
				}
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_g_object_unref0 (_data_->backend);
#line 549 "match-phone-number.c"
			}
#line 71 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->_backend_it);
#line 553 "match-phone-number.c"
		}
#line 78 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp20_ = NULL;
#line 78 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp20_ = _data_->self->priv->_pstore;
#line 78 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_vala_assert (_data_->_tmp20_ != NULL, "this._pstore != null");
#line 79 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp21_ = NULL;
#line 79 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp21_ = _data_->self->priv->_pstore;
#line 79 "/opt/gnome3/source/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 80 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_match_phone_number_tests_try_to_add (_data_->self, NULL, NULL);
#line 569 "match-phone-number.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 67 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->e = _data_->_inner_error_;
#line 67 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_inner_error_ = NULL;
#line 84 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp22_ = NULL;
#line 84 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp22_ = _data_->e;
#line 84 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp23_ = NULL;
#line 84 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp23_ = _data_->_tmp22_->message;
#line 84 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		g_warning ("match-phone-number.vala:84: Error when calling prepare: %s\n", _data_->_tmp23_);
#line 67 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_g_error_free0 (_data_->e);
#line 590 "match-phone-number.c"
	}
	__finally0:
#line 67 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 67 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_data_->store);
#line 67 "/opt/gnome3/source/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 67 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		g_clear_error (&_data_->_inner_error_);
#line 67 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		return FALSE;
#line 603 "match-phone-number.c"
	}
#line 60 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (_data_->store);
#line 60 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	if (_data_->_state_ == 0) {
#line 60 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 611 "match-phone-number.c"
	} else {
#line 60 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 615 "match-phone-number.c"
	}
#line 60 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_object_unref (_data_->_async_result);
#line 60 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	return FALSE;
#line 621 "match-phone-number.c"
}


static void _match_phone_number_tests_individuals_changed_cb (MatchPhoneNumberTests* self, GeeMultiMap* changes) {
	GeeCollection* added = NULL;
	GeeMultiMap* _tmp0_ = NULL;
	GeeCollection* _tmp1_ = NULL;
	GeeSet* removed = NULL;
	GeeMultiMap* _tmp2_ = NULL;
	GeeSet* _tmp3_ = NULL;
	gboolean _tmp27_ = FALSE;
	const gchar* _tmp28_ = NULL;
	GeeSet* _tmp30_ = NULL;
	gint _tmp31_ = 0;
	gint _tmp32_ = 0;
#line 88 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_return_if_fail (self != NULL);
#line 88 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_return_if_fail (changes != NULL);
#line 91 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp0_ = changes;
#line 91 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 91 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	added = _tmp1_;
#line 92 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp2_ = changes;
#line 92 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 92 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	removed = _tmp3_;
#line 653 "match-phone-number.c"
	{
		GeeIterator* _i_it = NULL;
		GeeCollection* _tmp4_ = NULL;
		GeeIterator* _tmp5_ = NULL;
#line 94 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_tmp4_ = added;
#line 94 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 94 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_i_it = _tmp5_;
#line 94 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		while (TRUE) {
#line 666 "match-phone-number.c"
			GeeIterator* _tmp6_ = NULL;
			gboolean _tmp7_ = FALSE;
			FolksIndividual* i = NULL;
			GeeIterator* _tmp8_ = NULL;
			gpointer _tmp9_ = NULL;
			FolksIndividual* _tmp10_ = NULL;
			FolksIndividual* _tmp11_ = NULL;
			const gchar* _tmp12_ = NULL;
			const gchar* _tmp13_ = NULL;
			const gchar* _tmp14_ = NULL;
#line 94 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_tmp6_ = _i_it;
#line 94 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 94 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			if (!_tmp7_) {
#line 94 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				break;
#line 685 "match-phone-number.c"
			}
#line 94 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_tmp8_ = _i_it;
#line 94 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 94 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			i = (FolksIndividual*) _tmp9_;
#line 96 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_tmp10_ = i;
#line 96 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_vala_assert (_tmp10_ != NULL, "i != null");
#line 98 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_tmp11_ = i;
#line 98 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_tmp12_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp11_);
#line 98 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_tmp13_ = _tmp12_;
#line 98 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_tmp14_ = self->priv->_persona_fullname_1;
#line 98 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			if (g_strcmp0 (_tmp13_, _tmp14_) == 0) {
#line 707 "match-phone-number.c"
				FolksIndividual* _tmp15_ = NULL;
				const gchar* _tmp16_ = NULL;
				const gchar* _tmp17_ = NULL;
				gchar* _tmp18_ = NULL;
#line 100 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_tmp15_ = i;
#line 100 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_tmp16_ = folks_individual_get_id (_tmp15_);
#line 100 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_tmp17_ = _tmp16_;
#line 100 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_tmp18_ = g_strdup (_tmp17_);
#line 100 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_g_free0 (self->priv->_individual_id_1);
#line 100 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				self->priv->_individual_id_1 = _tmp18_;
#line 724 "match-phone-number.c"
			} else {
				FolksIndividual* _tmp19_ = NULL;
				const gchar* _tmp20_ = NULL;
				const gchar* _tmp21_ = NULL;
				const gchar* _tmp22_ = NULL;
#line 102 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_tmp19_ = i;
#line 102 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_tmp20_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp19_);
#line 102 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_tmp21_ = _tmp20_;
#line 102 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				_tmp22_ = self->priv->_persona_fullname_2;
#line 102 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				if (g_strcmp0 (_tmp21_, _tmp22_) == 0) {
#line 740 "match-phone-number.c"
					FolksIndividual* _tmp23_ = NULL;
					const gchar* _tmp24_ = NULL;
					const gchar* _tmp25_ = NULL;
					gchar* _tmp26_ = NULL;
#line 104 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
					_tmp23_ = i;
#line 104 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
					_tmp24_ = folks_individual_get_id (_tmp23_);
#line 104 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
					_tmp25_ = _tmp24_;
#line 104 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
					_tmp26_ = g_strdup (_tmp25_);
#line 104 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
					_g_free0 (self->priv->_individual_id_2);
#line 104 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
					self->priv->_individual_id_2 = _tmp26_;
#line 757 "match-phone-number.c"
				}
			}
#line 94 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (i);
#line 762 "match-phone-number.c"
		}
#line 94 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_i_it);
#line 766 "match-phone-number.c"
	}
#line 108 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp28_ = self->priv->_individual_id_1;
#line 108 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	if (g_strcmp0 (_tmp28_, "") != 0) {
#line 772 "match-phone-number.c"
		const gchar* _tmp29_ = NULL;
#line 109 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_tmp29_ = self->priv->_individual_id_2;
#line 109 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_tmp27_ = g_strcmp0 (_tmp29_, "") != 0;
#line 778 "match-phone-number.c"
	} else {
#line 108 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_tmp27_ = FALSE;
#line 782 "match-phone-number.c"
	}
#line 108 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	if (_tmp27_) {
#line 111 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_match_phone_number_tests_try_potential_match (self);
#line 788 "match-phone-number.c"
	}
#line 114 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp30_ = removed;
#line 114 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp31_ = gee_collection_get_size ((GeeCollection*) _tmp30_);
#line 114 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp32_ = _tmp31_;
#line 114 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_vala_assert (_tmp32_ == 1, "removed.size == 1");
#line 798 "match-phone-number.c"
	{
		GeeIterator* _i_it = NULL;
		GeeSet* _tmp33_ = NULL;
		GeeIterator* _tmp34_ = NULL;
#line 116 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_tmp33_ = removed;
#line 116 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_tmp34_ = gee_iterable_iterator ((GeeIterable*) _tmp33_);
#line 116 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_i_it = _tmp34_;
#line 116 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		while (TRUE) {
#line 811 "match-phone-number.c"
			GeeIterator* _tmp35_ = NULL;
			gboolean _tmp36_ = FALSE;
			FolksIndividual* i = NULL;
			GeeIterator* _tmp37_ = NULL;
			gpointer _tmp38_ = NULL;
			FolksIndividual* _tmp39_ = NULL;
#line 116 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_tmp35_ = _i_it;
#line 116 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_tmp36_ = gee_iterator_next (_tmp35_);
#line 116 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			if (!_tmp36_) {
#line 116 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
				break;
#line 826 "match-phone-number.c"
			}
#line 116 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_tmp37_ = _i_it;
#line 116 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_tmp38_ = gee_iterator_get (_tmp37_);
#line 116 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			i = (FolksIndividual*) _tmp38_;
#line 118 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_tmp39_ = i;
#line 118 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_vala_assert (_tmp39_ == NULL, "i == null");
#line 116 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (i);
#line 840 "match-phone-number.c"
		}
#line 116 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_i_it);
#line 844 "match-phone-number.c"
	}
#line 88 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (removed);
#line 88 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (added);
#line 850 "match-phone-number.c"
}


static void _match_phone_number_tests_try_potential_match (MatchPhoneNumberTests* self) {
	FolksIndividual* ind1 = NULL;
	FolksIndividualAggregator* _tmp0_ = NULL;
	GeeMap* _tmp1_ = NULL;
	GeeMap* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gpointer _tmp4_ = NULL;
	FolksIndividual* ind2 = NULL;
	FolksIndividualAggregator* _tmp5_ = NULL;
	GeeMap* _tmp6_ = NULL;
	GeeMap* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	gpointer _tmp9_ = NULL;
	FolksPotentialMatch* matchObj = NULL;
	FolksPotentialMatch* _tmp10_ = NULL;
	FolksMatchResult _tmp11_ = 0;
	GMainLoop* _tmp12_ = NULL;
#line 122 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_return_if_fail (self != NULL);
#line 124 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp0_ = self->priv->_aggregator;
#line 124 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp1_ = folks_individual_aggregator_get_individuals (_tmp0_);
#line 124 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp2_ = _tmp1_;
#line 124 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp3_ = self->priv->_individual_id_1;
#line 124 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp4_ = gee_map_get (_tmp2_, _tmp3_);
#line 124 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	ind1 = (FolksIndividual*) _tmp4_;
#line 125 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp5_ = self->priv->_aggregator;
#line 125 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp6_ = folks_individual_aggregator_get_individuals (_tmp5_);
#line 125 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp7_ = _tmp6_;
#line 125 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp8_ = self->priv->_individual_id_2;
#line 125 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp9_ = gee_map_get (_tmp7_, _tmp8_);
#line 125 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	ind2 = (FolksIndividual*) _tmp9_;
#line 127 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp10_ = folks_potential_match_new ();
#line 127 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	matchObj = _tmp10_;
#line 128 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp11_ = folks_potential_match_potential_match (matchObj, ind1, ind2);
#line 128 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	self->priv->_match = _tmp11_;
#line 130 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp12_ = self->priv->_main_loop;
#line 130 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_main_loop_quit (_tmp12_);
#line 122 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (matchObj);
#line 122 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (ind2);
#line 122 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (ind1);
#line 915 "match-phone-number.c"
}


static void _match_phone_number_tests_notify_pstore_cb (MatchPhoneNumberTests* self, GObject* _pstore, GParamSpec* ps) {
#line 133 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_return_if_fail (self != NULL);
#line 133 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_return_if_fail (_pstore != NULL);
#line 133 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_return_if_fail (ps != NULL);
#line 135 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_try_to_add (self, NULL, NULL);
#line 928 "match-phone-number.c"
}


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


static void _match_phone_number_tests_try_to_add (MatchPhoneNumberTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MatchPhoneNumberTestsTryToAddData* _data_;
	MatchPhoneNumberTests* _tmp0_ = NULL;
#line 26 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_ = g_slice_new0 (MatchPhoneNumberTestsTryToAddData);
#line 26 "/opt/gnome3/source/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 "/opt/gnome3/source/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 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->self = _tmp0_;
#line 26 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_try_to_add_co (_data_);
#line 958 "match-phone-number.c"
}


static void _match_phone_number_tests_try_to_add_finish (MatchPhoneNumberTests* self, GAsyncResult* _res_) {
	MatchPhoneNumberTestsTryToAddData* _data_;
#line 26 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 966 "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 143 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_ = _user_data_;
#line 143 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_source_object_ = source_object;
#line 143 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_res_ = _res_;
#line 143 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_try_to_add_co (_data_);
#line 980 "match-phone-number.c"
}


static gboolean _match_phone_number_tests_try_to_add_co (MatchPhoneNumberTestsTryToAddData* _data_) {
#line 138 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	switch (_data_->_state_) {
#line 138 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		case 0:
#line 989 "match-phone-number.c"
		goto _state_0;
#line 138 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		case 1:
#line 993 "match-phone-number.c"
		goto _state_1;
		default:
#line 138 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		g_assert_not_reached ();
#line 998 "match-phone-number.c"
	}
	_state_0:
#line 140 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp1_ = NULL;
#line 140 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp1_ = _data_->self->priv->_pstore;
#line 140 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp2_ = FALSE;
#line 140 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp2_ = folks_persona_store_get_is_prepared ((FolksPersonaStore*) _data_->_tmp1_);
#line 140 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp3_ = FALSE;
#line 140 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 140 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	if (_data_->_tmp3_) {
#line 140 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp4_ = FALSE;
#line 140 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp4_ = _data_->self->priv->_added_personas;
#line 140 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp0_ = _data_->_tmp4_ == FALSE;
#line 1021 "match-phone-number.c"
	} else {
#line 140 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp0_ = FALSE;
#line 1025 "match-phone-number.c"
	}
#line 140 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	if (_data_->_tmp0_) {
#line 142 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->self->priv->_added_personas = TRUE;
#line 143 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_state_ = 1;
#line 143 "/opt/gnome3/source/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 143 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		return FALSE;
#line 1037 "match-phone-number.c"
		_state_1:
#line 143 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_match_phone_number_tests_add_personas_finish (_data_->self, _data_->_res_);
#line 1041 "match-phone-number.c"
	}
#line 138 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	if (_data_->_state_ == 0) {
#line 138 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1047 "match-phone-number.c"
	} else {
#line 138 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1051 "match-phone-number.c"
	}
#line 138 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_object_unref (_data_->_async_result);
#line 138 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	return FALSE;
#line 1057 "match-phone-number.c"
}


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


static void _match_phone_number_tests_add_personas (MatchPhoneNumberTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MatchPhoneNumberTestsAddPersonasData* _data_;
	MatchPhoneNumberTests* _tmp0_ = NULL;
#line 26 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_ = g_slice_new0 (MatchPhoneNumberTestsAddPersonasData);
#line 26 "/opt/gnome3/source/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 "/opt/gnome3/source/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 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->self = _tmp0_;
#line 26 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_add_personas_co (_data_);
#line 1087 "match-phone-number.c"
}


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


static void _g_free0_ (gpointer var) {
#line 149 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	var = (g_free (var), NULL);
#line 1102 "match-phone-number.c"
}


static void _vala_GValue_free (GValue* self) {
#line 149 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_value_unset (self);
#line 149 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_free (self);
#line 1111 "match-phone-number.c"
}


static void __vala_GValue_free0_ (gpointer var) {
#line 149 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	(var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL));
#line 1118 "match-phone-number.c"
}


static GValue* _g_value_dup (GValue* self) {
#line 155 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	return g_boxed_copy (G_TYPE_VALUE, self);
#line 1125 "match-phone-number.c"
}


static gpointer __g_value_dup0 (gpointer self) {
#line 155 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	return self ? _g_value_dup (self) : NULL;
#line 1132 "match-phone-number.c"
}


static guint _folks_abstract_field_details_hash_static_gee_hash_data_func (gconstpointer v, gpointer self) {
	guint result;
	result = folks_abstract_field_details_hash_static ((FolksAbstractFieldDetails*) v);
#line 161 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	return result;
#line 1141 "match-phone-number.c"
}


static gboolean _folks_abstract_field_details_equal_static_gee_equal_data_func (gconstpointer a, gconstpointer b, gpointer self) {
	gboolean result;
	result = folks_abstract_field_details_equal_static ((FolksAbstractFieldDetails*) a, (FolksAbstractFieldDetails*) b);
#line 161 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	return result;
#line 1150 "match-phone-number.c"
}


static void _match_phone_number_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	MatchPhoneNumberTestsAddPersonasData* _data_;
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_ = _user_data_;
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_source_object_ = source_object;
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_res_ = _res_;
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_match_phone_number_tests_add_personas_co (_data_);
#line 1164 "match-phone-number.c"
}


static gboolean _match_phone_number_tests_add_personas_co (MatchPhoneNumberTestsAddPersonasData* _data_) {
#line 147 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	switch (_data_->_state_) {
#line 147 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		case 0:
#line 1173 "match-phone-number.c"
		goto _state_0;
#line 147 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		case 1:
#line 1177 "match-phone-number.c"
		goto _state_1;
#line 147 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		case 2:
#line 1181 "match-phone-number.c"
		goto _state_2;
		default:
#line 147 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		g_assert_not_reached ();
#line 1186 "match-phone-number.c"
	}
	_state_0:
#line 149 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp0_ = NULL;
#line 149 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp0_ = g_str_hash;
#line 149 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp1_ = NULL;
#line 149 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp1_ = g_str_equal;
#line 149 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp2_ = NULL;
#line 149 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp2_ = g_hash_table_new_full (_data_->_tmp0_, _data_->_tmp1_, _g_free0_, __vala_GValue_free0_);
#line 149 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->details1 = _data_->_tmp2_;
#line 151 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp3_ = NULL;
#line 151 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp3_ = g_str_hash;
#line 151 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp4_ = NULL;
#line 151 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp4_ = g_str_equal;
#line 151 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp5_ = NULL;
#line 151 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp5_ = g_hash_table_new_full (_data_->_tmp3_, _data_->_tmp4_, _g_free0_, __vala_GValue_free0_);
#line 151 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->details2 = _data_->_tmp5_;
#line 155 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	memset (&_data_->_tmp6_, 0, sizeof (GValue));
#line 155 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_value_init (&_data_->_tmp6_, G_TYPE_STRING);
#line 155 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	memset (&_data_->_tmp7_, 0, sizeof (GValue));
#line 155 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp7_ = _data_->_tmp6_;
#line 155 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp8_ = NULL;
#line 155 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp8_ = __g_value_dup0 (&_data_->_tmp7_);
#line 155 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	__vala_GValue_free0 (_data_->val);
#line 155 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->val = _data_->_tmp8_;
#line 155 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	G_IS_VALUE (&_data_->_tmp7_) ? (g_value_unset (&_data_->_tmp7_), NULL) : NULL;
#line 156 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp9_ = NULL;
#line 156 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp9_ = _data_->val;
#line 156 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp10_ = NULL;
#line 156 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp10_ = _data_->self->priv->_persona_fullname_1;
#line 156 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_value_set_string (_data_->_tmp9_, _data_->_tmp10_);
#line 157 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp11_ = NULL;
#line 157 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp11_ = _data_->details1;
#line 157 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp12_ = NULL;
#line 157 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp12_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_FULL_NAME);
#line 157 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp13_ = NULL;
#line 157 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp13_ = g_strdup (_data_->_tmp12_);
#line 157 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp14_ = NULL;
#line 157 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp14_ = _data_->val;
#line 157 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->val = NULL;
#line 157 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_hash_table_insert (_data_->_tmp11_, _data_->_tmp13_, _data_->_tmp14_);
#line 160 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	memset (&_data_->_tmp15_, 0, sizeof (GValue));
#line 160 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_value_init (&_data_->_tmp15_, GEE_TYPE_SET);
#line 160 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	memset (&_data_->_tmp16_, 0, sizeof (GValue));
#line 160 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp16_ = _data_->_tmp15_;
#line 160 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp17_ = NULL;
#line 160 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp17_ = __g_value_dup0 (&_data_->_tmp16_);
#line 160 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	__vala_GValue_free0 (_data_->val);
#line 160 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->val = _data_->_tmp17_;
#line 160 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	G_IS_VALUE (&_data_->_tmp16_) ? (g_value_unset (&_data_->_tmp16_), NULL) : NULL;
#line 161 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp18_ = NULL;
#line 161 "/opt/gnome3/source/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, _folks_abstract_field_details_hash_static_gee_hash_data_func, NULL, NULL, _folks_abstract_field_details_equal_static_gee_equal_data_func, NULL, NULL);
#line 161 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->phone_numbers1 = _data_->_tmp18_;
#line 164 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp19_ = NULL;
#line 164 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp19_ = _data_->self->priv->_phone_1;
#line 164 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp20_ = NULL;
#line 164 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp20_ = folks_phone_field_details_new (_data_->_tmp19_, NULL);
#line 164 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->phone_number_1 = _data_->_tmp20_;
#line 165 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp21_ = NULL;
#line 165 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp21_ = _data_->phone_numbers1;
#line 165 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp22_ = NULL;
#line 165 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp22_ = _data_->phone_number_1;
#line 165 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp21_, _data_->_tmp22_);
#line 166 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp23_ = NULL;
#line 166 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp23_ = _data_->val;
#line 166 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp24_ = NULL;
#line 166 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp24_ = _data_->phone_numbers1;
#line 166 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_value_set_object (_data_->_tmp23_, (GObject*) _data_->_tmp24_);
#line 167 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp25_ = NULL;
#line 167 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp25_ = _data_->details1;
#line 167 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp26_ = NULL;
#line 167 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp26_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_PHONE_NUMBERS);
#line 167 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp27_ = NULL;
#line 167 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp27_ = g_strdup (_data_->_tmp26_);
#line 167 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp28_ = NULL;
#line 167 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp28_ = _data_->val;
#line 167 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->val = NULL;
#line 167 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_hash_table_insert (_data_->_tmp25_, _data_->_tmp27_, _data_->_tmp28_);
#line 171 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	memset (&_data_->_tmp29_, 0, sizeof (GValue));
#line 171 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_value_init (&_data_->_tmp29_, G_TYPE_STRING);
#line 171 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	memset (&_data_->_tmp30_, 0, sizeof (GValue));
#line 171 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp30_ = _data_->_tmp29_;
#line 171 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp31_ = NULL;
#line 171 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp31_ = __g_value_dup0 (&_data_->_tmp30_);
#line 171 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	__vala_GValue_free0 (_data_->val);
#line 171 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->val = _data_->_tmp31_;
#line 171 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	G_IS_VALUE (&_data_->_tmp30_) ? (g_value_unset (&_data_->_tmp30_), NULL) : NULL;
#line 172 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp32_ = NULL;
#line 172 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp32_ = _data_->val;
#line 172 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp33_ = NULL;
#line 172 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp33_ = _data_->self->priv->_persona_fullname_2;
#line 172 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_value_set_string (_data_->_tmp32_, _data_->_tmp33_);
#line 173 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp34_ = NULL;
#line 173 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp34_ = _data_->details2;
#line 173 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp35_ = NULL;
#line 173 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp35_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_FULL_NAME);
#line 173 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp36_ = NULL;
#line 173 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp36_ = g_strdup (_data_->_tmp35_);
#line 173 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp37_ = NULL;
#line 173 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp37_ = _data_->val;
#line 173 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->val = NULL;
#line 173 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_hash_table_insert (_data_->_tmp34_, _data_->_tmp36_, _data_->_tmp37_);
#line 176 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	memset (&_data_->_tmp38_, 0, sizeof (GValue));
#line 176 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_value_init (&_data_->_tmp38_, GEE_TYPE_SET);
#line 176 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	memset (&_data_->_tmp39_, 0, sizeof (GValue));
#line 176 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp39_ = _data_->_tmp38_;
#line 176 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp40_ = NULL;
#line 176 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp40_ = __g_value_dup0 (&_data_->_tmp39_);
#line 176 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	__vala_GValue_free0 (_data_->val);
#line 176 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->val = _data_->_tmp40_;
#line 176 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	G_IS_VALUE (&_data_->_tmp39_) ? (g_value_unset (&_data_->_tmp39_), NULL) : NULL;
#line 177 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp41_ = NULL;
#line 177 "/opt/gnome3/source/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, _folks_abstract_field_details_hash_static_gee_hash_data_func, NULL, NULL, _folks_abstract_field_details_equal_static_gee_equal_data_func, NULL, NULL);
#line 177 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->phone_numbers2 = _data_->_tmp41_;
#line 180 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp42_ = NULL;
#line 180 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp42_ = _data_->self->priv->_phone_2;
#line 180 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp43_ = NULL;
#line 180 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp43_ = folks_phone_field_details_new (_data_->_tmp42_, NULL);
#line 180 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->phone_number_2 = _data_->_tmp43_;
#line 181 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp44_ = NULL;
#line 181 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp44_ = _data_->phone_numbers2;
#line 181 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp45_ = NULL;
#line 181 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp45_ = _data_->phone_number_2;
#line 181 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp44_, _data_->_tmp45_);
#line 182 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp46_ = NULL;
#line 182 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp46_ = _data_->val;
#line 182 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp47_ = NULL;
#line 182 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp47_ = _data_->phone_numbers2;
#line 182 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_value_set_object (_data_->_tmp46_, (GObject*) _data_->_tmp47_);
#line 183 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp48_ = NULL;
#line 183 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp48_ = _data_->details2;
#line 183 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp49_ = NULL;
#line 183 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp49_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_PHONE_NUMBERS);
#line 183 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp50_ = NULL;
#line 183 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp50_ = g_strdup (_data_->_tmp49_);
#line 183 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp51_ = NULL;
#line 183 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->_tmp51_ = _data_->val;
#line 183 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_data_->val = NULL;
#line 183 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_hash_table_insert (_data_->_tmp48_, _data_->_tmp50_, _data_->_tmp51_);
#line 1461 "match-phone-number.c"
	{
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp52_ = NULL;
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp52_ = _data_->self->priv->_aggregator;
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp53_ = NULL;
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp53_ = _data_->self->priv->_pstore;
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp54_ = NULL;
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp54_ = _data_->details1;
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_state_ = 1;
#line 189 "/opt/gnome3/source/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 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		return FALSE;
#line 1481 "match-phone-number.c"
		_state_1:
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp55_ = NULL;
#line 189 "/opt/gnome3/source/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 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp56_ = NULL;
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp56_ = _data_->_tmp55_;
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_data_->_tmp56_);
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1497 "match-phone-number.c"
				goto __catch1_folks_individual_aggregator_error;
			}
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->phone_number_2);
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->phone_numbers2);
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->phone_number_1);
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->phone_numbers1);
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			__vala_GValue_free0 (_data_->val);
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 189 "/opt/gnome3/source/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 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			g_clear_error (&_data_->_inner_error_);
#line 189 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			return FALSE;
#line 1520 "match-phone-number.c"
		}
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp57_ = NULL;
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp57_ = _data_->self->priv->_aggregator;
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp58_ = NULL;
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp58_ = _data_->self->priv->_pstore;
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp59_ = NULL;
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp59_ = _data_->details2;
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_state_ = 2;
#line 192 "/opt/gnome3/source/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 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		return FALSE;
#line 1540 "match-phone-number.c"
		_state_2:
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp60_ = NULL;
#line 192 "/opt/gnome3/source/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 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp61_ = NULL;
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp61_ = _data_->_tmp60_;
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_data_->_tmp61_);
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1556 "match-phone-number.c"
				goto __catch1_folks_individual_aggregator_error;
			}
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->phone_number_2);
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->phone_numbers2);
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->phone_number_1);
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_g_object_unref0 (_data_->phone_numbers1);
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			__vala_GValue_free0 (_data_->val);
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 192 "/opt/gnome3/source/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 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			g_clear_error (&_data_->_inner_error_);
#line 192 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
			return FALSE;
#line 1579 "match-phone-number.c"
		}
	}
	goto __finally1;
	__catch1_folks_individual_aggregator_error:
	{
#line 187 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->e = _data_->_inner_error_;
#line 187 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_inner_error_ = NULL;
#line 197 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp62_ = NULL;
#line 197 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp62_ = _data_->e;
#line 197 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp63_ = NULL;
#line 197 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_data_->_tmp63_ = _data_->_tmp62_->message;
#line 197 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		g_warning ("match-phone-number.vala:197: [AddPersonaError] add_persona_from_detail" \
"s: %s\n", _data_->_tmp63_);
#line 187 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_g_error_free0 (_data_->e);
#line 1601 "match-phone-number.c"
	}
	__finally1:
#line 187 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 187 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_data_->phone_number_2);
#line 187 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_data_->phone_numbers2);
#line 187 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_data_->phone_number_1);
#line 187 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_g_object_unref0 (_data_->phone_numbers1);
#line 187 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		__vala_GValue_free0 (_data_->val);
#line 187 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_g_hash_table_unref0 (_data_->details2);
#line 187 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		_g_hash_table_unref0 (_data_->details1);
#line 187 "/opt/gnome3/source/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 187 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		g_clear_error (&_data_->_inner_error_);
#line 187 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		return FALSE;
#line 1626 "match-phone-number.c"
	}
#line 147 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (_data_->phone_number_2);
#line 147 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (_data_->phone_numbers2);
#line 147 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (_data_->phone_number_1);
#line 147 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (_data_->phone_numbers1);
#line 147 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	__vala_GValue_free0 (_data_->val);
#line 147 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_hash_table_unref0 (_data_->details2);
#line 147 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_hash_table_unref0 (_data_->details1);
#line 147 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	if (_data_->_state_ == 0) {
#line 147 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1646 "match-phone-number.c"
	} else {
#line 147 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1650 "match-phone-number.c"
	}
#line 147 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_object_unref (_data_->_async_result);
#line 147 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	return FALSE;
#line 1656 "match-phone-number.c"
}


static void match_phone_number_tests_class_init (MatchPhoneNumberTestsClass * klass) {
#line 26 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	match_phone_number_tests_parent_class = g_type_class_peek_parent (klass);
#line 26 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_type_class_add_private (klass, sizeof (MatchPhoneNumberTestsPrivate));
#line 26 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	G_OBJECT_CLASS (klass)->finalize = match_phone_number_tests_finalize;
#line 1667 "match-phone-number.c"
}


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


static void match_phone_number_tests_finalize (GObject* obj) {
	MatchPhoneNumberTests * self;
#line 26 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MATCH_PHONE_NUMBER_TESTS, MatchPhoneNumberTests);
#line 28 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 29 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 30 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_free0 (self->priv->_persona_fullname_1);
#line 31 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_free0 (self->priv->_persona_fullname_2);
#line 32 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_free0 (self->priv->_phone_1);
#line 33 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_free0 (self->priv->_phone_2);
#line 35 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_free0 (self->priv->_individual_id_1);
#line 36 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_free0 (self->priv->_individual_id_2);
#line 38 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (self->priv->_pstore);
#line 26 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	G_OBJECT_CLASS (match_phone_number_tests_parent_class)->finalize (obj);
#line 1734 "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 (TRACKER_TEST_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;
	MatchPhoneNumberTests* tests = NULL;
	MatchPhoneNumberTests* _tmp0_ = NULL;
#line 205 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_test_init (&args_length1, &args, NULL);
#line 207 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_tmp0_ = match_phone_number_tests_new ();
#line 207 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	tests = _tmp0_;
#line 208 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	folks_test_case_register ((FolksTestCase*) tests);
#line 209 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	g_test_run ();
#line 210 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	folks_test_case_final_tear_down ((FolksTestCase*) tests);
#line 212 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	result = 0;
#line 212 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	_g_object_unref0 (tests);
#line 212 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	return result;
#line 1772 "match-phone-number.c"
}


int main (int argc, char ** argv) {
#if !GLIB_CHECK_VERSION (2,35,0)
	g_type_init ();
#endif
#line 203 "/opt/gnome3/source/folks/tests/tracker/match-phone-number.vala"
	return _vala_main (argv, argc);
#line 1782 "match-phone-number.c"
}



