/* match-name.c generated by valac 0.16.0, the Vala compiler
 * generated from match-name.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_NAME_TESTS (match_name_tests_get_type ())
#define MATCH_NAME_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MATCH_NAME_TESTS, MatchNameTests))
#define MATCH_NAME_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MATCH_NAME_TESTS, MatchNameTestsClass))
#define IS_MATCH_NAME_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MATCH_NAME_TESTS))
#define IS_MATCH_NAME_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MATCH_NAME_TESTS))
#define MATCH_NAME_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MATCH_NAME_TESTS, MatchNameTestsClass))

typedef struct _MatchNameTests MatchNameTests;
typedef struct _MatchNameTestsClass MatchNameTestsClass;
typedef struct _MatchNameTestsPrivate MatchNameTestsPrivate;
#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 _MatchNameTestsTestMatchNameAsyncData MatchNameTestsTestMatchNameAsyncData;
typedef struct _MatchNameTestsTryToAddData MatchNameTestsTryToAddData;
#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 _MatchNameTestsAddPersonasData MatchNameTestsAddPersonasData;

struct _MatchNameTests {
	FolksTestCase parent_instance;
	MatchNameTestsPrivate * priv;
};

struct _MatchNameTestsClass {
	FolksTestCaseClass parent_class;
};

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

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

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

struct _MatchNameTestsAddPersonasData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	MatchNameTests* 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_;
	GValue* _tmp18_;
	const gchar* _tmp19_;
	GHashTable* _tmp20_;
	const gchar* _tmp21_;
	gchar* _tmp22_;
	GValue* _tmp23_;
	FolksIndividualAggregator* _tmp24_;
	TrfPersonaStore* _tmp25_;
	GHashTable* _tmp26_;
	FolksPersona* _tmp27_;
	FolksPersona* _tmp28_;
	FolksIndividualAggregator* _tmp29_;
	TrfPersonaStore* _tmp30_;
	GHashTable* _tmp31_;
	FolksPersona* _tmp32_;
	FolksPersona* _tmp33_;
	GError* e;
	GError* _tmp34_;
	const gchar* _tmp35_;
	GError * _inner_error_;
};


static gpointer match_name_tests_parent_class = NULL;

GType match_name_tests_get_type (void) G_GNUC_CONST;
#define MATCH_NAME_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_MATCH_NAME_TESTS, MatchNameTestsPrivate))
enum  {
	MATCH_NAME_TESTS_DUMMY_PROPERTY
};
MatchNameTests* match_name_tests_new (void);
MatchNameTests* match_name_tests_construct (GType object_type);
void match_name_tests_test_match_name_1 (MatchNameTests* self);
static void _match_name_tests_test_match_name_1_folks_test_case_test_method (gpointer self);
void match_name_tests_test_match_name_2 (MatchNameTests* self);
static void _match_name_tests_test_match_name_2_folks_test_case_test_method (gpointer self);
void match_name_tests_test_match_name_3 (MatchNameTests* self);
static void _match_name_tests_test_match_name_3_folks_test_case_test_method (gpointer self);
void match_name_tests_test_match_name_4 (MatchNameTests* self);
static void _match_name_tests_test_match_name_4_folks_test_case_test_method (gpointer self);
static void match_name_tests_real_set_up (FolksTestCase* base);
static void match_name_tests_real_tear_down (FolksTestCase* base);
static void _match_name_tests_test_match_name (MatchNameTests* self, const gchar* full_name1, const gchar* full_name2);
static void _match_name_tests_test_match_name_async (MatchNameTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _match_name_tests_test_match_name_finish (MatchNameTests* self, GAsyncResult* _res_);
static gboolean __lambda2_ (MatchNameTests* self);
static gboolean ___lambda2__gsource_func (gpointer self);
static void _match_name_tests_test_match_name_async_data_free (gpointer _data);
static gboolean _match_name_tests_test_match_name_async_co (MatchNameTestsTestMatchNameAsyncData* _data_);
static void _match_name_tests_test_match_name_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _match_name_tests_individuals_changed_cb (MatchNameTests* self, GeeMultiMap* changes);
static void __match_name_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static void _match_name_tests_notify_pstore_cb (MatchNameTests* self, GObject* _pstore, GParamSpec* ps);
static void __match_name_tests_notify_pstore_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void _match_name_tests_try_to_add (MatchNameTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _match_name_tests_try_to_add_finish (MatchNameTests* self, GAsyncResult* _res_);
static void _match_name_tests_try_potential_match (MatchNameTests* self);
static void _match_name_tests_try_to_add_data_free (gpointer _data);
static gboolean _match_name_tests_try_to_add_co (MatchNameTestsTryToAddData* _data_);
static void _match_name_tests_add_personas (MatchNameTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _match_name_tests_add_personas_finish (MatchNameTests* self, GAsyncResult* _res_);
static void _match_name_tests_try_to_add_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _match_name_tests_add_personas_data_free (gpointer _data);
static gboolean _match_name_tests_add_personas_co (MatchNameTestsAddPersonasData* _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_name_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void match_name_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _match_name_tests_test_match_name_1_folks_test_case_test_method (gpointer self) {
#line 45 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	match_name_tests_test_match_name_1 (self);
#line 241 "match-name.c"
}


static void _match_name_tests_test_match_name_2_folks_test_case_test_method (gpointer self) {
#line 47 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	match_name_tests_test_match_name_2 (self);
#line 248 "match-name.c"
}


static void _match_name_tests_test_match_name_3_folks_test_case_test_method (gpointer self) {
#line 49 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	match_name_tests_test_match_name_3 (self);
#line 255 "match-name.c"
}


static void _match_name_tests_test_match_name_4_folks_test_case_test_method (gpointer self) {
#line 51 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	match_name_tests_test_match_name_4 (self);
#line 262 "match-name.c"
}


MatchNameTests* match_name_tests_construct (GType object_type) {
	MatchNameTests * self = NULL;
	TrackerTestBackend* _tmp0_;
#line 41 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	self = (MatchNameTests*) folks_test_case_construct (object_type, "MatchNameTests");
#line 43 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp0_ = tracker_test_backend_new ();
#line 43 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 43 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	self->priv->_tracker_backend = _tmp0_;
#line 45 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test potential match by name #1 ", _match_name_tests_test_match_name_1_folks_test_case_test_method, self);
#line 47 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test potential match by name #2 ", _match_name_tests_test_match_name_2_folks_test_case_test_method, self);
#line 49 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test potential match by name #3 ", _match_name_tests_test_match_name_3_folks_test_case_test_method, self);
#line 51 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test potential match by name #4 ", _match_name_tests_test_match_name_4_folks_test_case_test_method, self);
#line 39 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	return self;
#line 287 "match-name.c"
}


MatchNameTests* match_name_tests_new (void) {
#line 39 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	return match_name_tests_construct (TYPE_MATCH_NAME_TESTS);
#line 294 "match-name.c"
}


static void match_name_tests_real_set_up (FolksTestCase* base) {
	MatchNameTests * self;
#line 55 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	self = (MatchNameTests*) base;
#line 302 "match-name.c"
}


static void match_name_tests_real_tear_down (FolksTestCase* base) {
	MatchNameTests * self;
	TrackerTestBackend* _tmp0_;
#line 59 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	self = (MatchNameTests*) base;
#line 61 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp0_ = self->priv->_tracker_backend;
#line 61 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	tracker_test_backend_tear_down (_tmp0_);
#line 315 "match-name.c"
}


static gboolean __lambda2_ (MatchNameTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 79 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp0_ = self->priv->_main_loop;
#line 79 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_main_loop_quit (_tmp0_);
#line 80 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_assert_not_reached ();
#line 77 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	return result;
#line 330 "match-name.c"
}


static gboolean ___lambda2__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda2_ (self);
#line 77 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	return result;
#line 339 "match-name.c"
}


static void _match_name_tests_test_match_name (MatchNameTests* self, const gchar* full_name1, const gchar* full_name2) {
	GMainLoop* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	const gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	GMainLoop* _tmp7_;
#line 64 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_return_if_fail (self != NULL);
#line 64 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_return_if_fail (full_name1 != NULL);
#line 64 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_return_if_fail (full_name2 != NULL);
#line 66 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 66 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 66 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	self->priv->_main_loop = _tmp0_;
#line 68 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	self->priv->_match = FOLKS_MATCH_RESULT_MIN;
#line 69 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	self->priv->_added_personas = FALSE;
#line 70 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp1_ = full_name1;
#line 70 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 70 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_free0 (self->priv->_persona_fullname_1);
#line 70 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	self->priv->_persona_fullname_1 = _tmp2_;
#line 71 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp3_ = full_name2;
#line 71 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp4_ = g_strdup (_tmp3_);
#line 71 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_free0 (self->priv->_persona_fullname_2);
#line 71 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	self->priv->_persona_fullname_2 = _tmp4_;
#line 72 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp5_ = g_strdup ("");
#line 72 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_free0 (self->priv->_individual_id_1);
#line 72 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	self->priv->_individual_id_1 = _tmp5_;
#line 73 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp6_ = g_strdup ("");
#line 73 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_free0 (self->priv->_individual_id_2);
#line 73 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	self->priv->_individual_id_2 = _tmp6_;
#line 75 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_match_name_tests_test_match_name_async (self, NULL, NULL);
#line 77 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda2__gsource_func, g_object_ref (self), g_object_unref);
#line 83 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp7_ = self->priv->_main_loop;
#line 83 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_main_loop_run (_tmp7_);
#line 404 "match-name.c"
}


void match_name_tests_test_match_name_1 (MatchNameTests* self) {
	FolksMatchResult _tmp0_;
#line 86 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_return_if_fail (self != NULL);
#line 88 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_match_name_tests_test_match_name (self, "Bernie Innocenti", "Bernardo H. Innocenti");
#line 89 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp0_ = self->priv->_match;
#line 89 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_assert (_tmp0_ >= FOLKS_MATCH_RESULT_MEDIUM);
#line 418 "match-name.c"
}


void match_name_tests_test_match_name_2 (MatchNameTests* self) {
	FolksMatchResult _tmp0_;
#line 92 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_return_if_fail (self != NULL);
#line 94 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_match_name_tests_test_match_name (self, "AAAA BBBBB", "CCCCC DDDDD");
#line 95 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp0_ = self->priv->_match;
#line 95 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_assert (_tmp0_ <= FOLKS_MATCH_RESULT_LOW);
#line 432 "match-name.c"
}


void match_name_tests_test_match_name_3 (MatchNameTests* self) {
	FolksMatchResult _tmp0_;
#line 98 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_return_if_fail (self != NULL);
#line 100 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_match_name_tests_test_match_name (self, "Travis Reitter", "Travis R.");
#line 101 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp0_ = self->priv->_match;
#line 101 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_assert (_tmp0_ >= FOLKS_MATCH_RESULT_MEDIUM);
#line 446 "match-name.c"
}


void match_name_tests_test_match_name_4 (MatchNameTests* self) {
	FolksMatchResult _tmp0_;
#line 104 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_return_if_fail (self != NULL);
#line 109 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_match_name_tests_test_match_name (self, "PâtéPâtéPâté", "patepatepate");
#line 110 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp0_ = self->priv->_match;
#line 110 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_assert (_tmp0_ >= FOLKS_MATCH_RESULT_MEDIUM);
#line 460 "match-name.c"
}


static void _match_name_tests_test_match_name_async_data_free (gpointer _data) {
	MatchNameTestsTestMatchNameAsyncData* _data_;
	_data_ = _data;
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_slice_free (MatchNameTestsTestMatchNameAsyncData, _data_);
#line 471 "match-name.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	return self ? g_object_ref (self) : NULL;
#line 478 "match-name.c"
}


static void _match_name_tests_test_match_name_async (MatchNameTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MatchNameTestsTestMatchNameAsyncData* _data_;
	MatchNameTests* _tmp0_;
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_ = g_slice_new0 (MatchNameTestsTestMatchNameAsyncData);
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _match_name_tests_test_match_name_async);
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _match_name_tests_test_match_name_async_data_free);
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->self = _tmp0_;
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_match_name_tests_test_match_name_async_co (_data_);
#line 497 "match-name.c"
}


static void _match_name_tests_test_match_name_finish (MatchNameTests* self, GAsyncResult* _res_) {
	MatchNameTestsTestMatchNameAsyncData* _data_;
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 505 "match-name.c"
}


static void _match_name_tests_test_match_name_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	MatchNameTestsTestMatchNameAsyncData* _data_;
#line 116 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_ = _user_data_;
#line 116 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_source_object_ = source_object;
#line 116 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_res_ = _res_;
#line 116 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_match_name_tests_test_match_name_async_co (_data_);
#line 519 "match-name.c"
}


static void __match_name_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 121 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_match_name_tests_individuals_changed_cb (self, changes);
#line 526 "match-name.c"
}


static void __match_name_tests_notify_pstore_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 137 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_match_name_tests_notify_pstore_cb (self, _sender, pspec);
#line 533 "match-name.c"
}


static gboolean _match_name_tests_test_match_name_async_co (MatchNameTestsTestMatchNameAsyncData* _data_) {
#line 113 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	switch (_data_->_state_) {
#line 113 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		case 0:
#line 542 "match-name.c"
		goto _state_0;
#line 113 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		case 1:
#line 546 "match-name.c"
		goto _state_1;
#line 113 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		case 2:
#line 550 "match-name.c"
		goto _state_2;
		default:
#line 113 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		g_assert_not_reached ();
#line 555 "match-name.c"
	}
	_state_0:
#line 115 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp0_ = NULL;
#line 115 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 115 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->store = _data_->_tmp0_;
#line 116 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp1_ = _data_->store;
#line 116 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_state_ = 1;
#line 116 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	folks_backend_store_prepare (_data_->_tmp1_, _match_name_tests_test_match_name_async_ready, _data_);
#line 116 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	return FALSE;
#line 572 "match-name.c"
	_state_1:
#line 116 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	folks_backend_store_prepare_finish (_data_->_tmp1_, _data_->_res_);
#line 118 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 118 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	if (_data_->_tmp2_ == NULL) {
#line 120 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp3_ = folks_individual_aggregator_new ();
#line 120 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_g_object_unref0 (_data_->self->priv->_aggregator);
#line 120 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->self->priv->_aggregator = _data_->_tmp3_;
#line 121 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp4_ = _data_->self->priv->_aggregator;
#line 121 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		g_signal_connect_object (_data_->_tmp4_, "individuals-changed-detailed", (GCallback) __match_name_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed, _data_->self, 0);
#line 590 "match-name.c"
	}
	{
#line 127 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp5_ = _data_->self->priv->_aggregator;
#line 127 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_state_ = 2;
#line 127 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		folks_individual_aggregator_prepare (_data_->_tmp5_, _match_name_tests_test_match_name_async_ready, _data_);
#line 127 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		return FALSE;
#line 601 "match-name.c"
		_state_2:
#line 127 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp5_, _data_->_res_, &_data_->_inner_error_);
#line 127 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		if (_data_->_inner_error_ != NULL) {
#line 607 "match-name.c"
			goto __catch0_g_error;
		}
#line 128 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_g_object_unref0 (_data_->self->priv->_pstore);
#line 128 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->self->priv->_pstore = NULL;
#line 614 "match-name.c"
		{
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_data_->_tmp6_ = _data_->store;
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_data_->_tmp7_ = folks_backend_store_get_enabled_backends (_data_->_tmp6_);
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_data_->_tmp8_ = _data_->_tmp7_;
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_data_->_tmp9_ = gee_map_get_values (_data_->_tmp8_);
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_data_->_tmp10_ = _data_->_tmp9_;
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_data_->_tmp11_ = _data_->_tmp10_;
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_data_->_tmp12_ = NULL;
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_data_->_tmp12_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp11_);
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_data_->_tmp13_ = _data_->_tmp12_;
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_g_object_unref0 (_data_->_tmp11_);
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_data_->_backend_it = _data_->_tmp13_;
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			while (TRUE) {
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_data_->_tmp14_ = _data_->_backend_it;
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_data_->_tmp15_ = FALSE;
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_data_->_tmp15_ = gee_iterator_next (_data_->_tmp14_);
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				if (!_data_->_tmp15_) {
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
					break;
#line 650 "match-name.c"
				}
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_data_->_tmp16_ = _data_->_backend_it;
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_data_->_tmp17_ = NULL;
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_data_->_tmp17_ = gee_iterator_get (_data_->_tmp16_);
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_data_->backend = (FolksBackend*) _data_->_tmp17_;
#line 131 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_data_->_tmp18_ = _data_->backend;
#line 131 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_data_->_tmp19_ = folks_backend_get_persona_stores (_data_->_tmp18_);
#line 131 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_data_->_tmp20_ = _data_->_tmp19_;
#line 131 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_data_->_tmp21_ = NULL;
#line 131 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_data_->_tmp21_ = gee_map_get (_data_->_tmp20_, "tracker");
#line 131 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_g_object_unref0 (_data_->self->priv->_pstore);
#line 131 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_data_->self->priv->_pstore = TRF_PERSONA_STORE ((FolksPersonaStore*) _data_->_tmp21_);
#line 133 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_data_->_tmp22_ = _data_->self->priv->_pstore;
#line 133 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				if (_data_->_tmp22_ != NULL) {
#line 134 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
					_g_object_unref0 (_data_->backend);
#line 134 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
					break;
#line 682 "match-name.c"
				}
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_g_object_unref0 (_data_->backend);
#line 686 "match-name.c"
			}
#line 129 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_g_object_unref0 (_data_->_backend_it);
#line 690 "match-name.c"
		}
#line 136 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp23_ = _data_->self->priv->_pstore;
#line 136 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		g_assert (_data_->_tmp23_ != NULL);
#line 137 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp24_ = _data_->self->priv->_pstore;
#line 137 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		g_signal_connect_object ((GObject*) _data_->_tmp24_, "notify::is-prepared", (GCallback) __match_name_tests_notify_pstore_cb_g_object_notify, _data_->self, 0);
#line 138 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_match_name_tests_try_to_add (_data_->self, NULL, NULL);
#line 702 "match-name.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 125 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->e = _data_->_inner_error_;
#line 125 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_inner_error_ = NULL;
#line 142 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp25_ = _data_->e;
#line 142 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp26_ = _data_->_tmp25_->message;
#line 142 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		g_warning ("match-name.vala:142: Error when calling prepare: %s\n", _data_->_tmp26_);
#line 125 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_g_error_free0 (_data_->e);
#line 719 "match-name.c"
	}
	__finally0:
#line 125 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	if (_data_->_inner_error_ != NULL) {
#line 125 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_g_object_unref0 (_data_->store);
#line 125 "/opt/gnome2/source/folks/tests/tracker/match-name.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 125 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		g_clear_error (&_data_->_inner_error_);
#line 125 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		return FALSE;
#line 732 "match-name.c"
	}
#line 113 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_object_unref0 (_data_->store);
#line 113 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	if (_data_->_state_ == 0) {
#line 113 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 740 "match-name.c"
	} else {
#line 113 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 744 "match-name.c"
	}
#line 113 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_object_unref (_data_->_async_result);
#line 113 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	return FALSE;
#line 750 "match-name.c"
}


static void _match_name_tests_individuals_changed_cb (MatchNameTests* 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 146 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_return_if_fail (self != NULL);
#line 146 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_return_if_fail (changes != NULL);
#line 149 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp0_ = changes;
#line 149 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 149 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	added = _tmp1_;
#line 150 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp2_ = changes;
#line 150 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 150 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	removed = _tmp3_;
#line 783 "match-name.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 152 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_tmp4_ = added;
#line 152 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 152 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_i_it = _tmp5_;
#line 152 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		while (TRUE) {
#line 796 "match-name.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 152 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_tmp6_ = _i_it;
#line 152 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 152 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			if (!_tmp7_) {
#line 152 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				break;
#line 815 "match-name.c"
			}
#line 152 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_tmp8_ = _i_it;
#line 152 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 152 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			i = (FolksIndividual*) _tmp9_;
#line 154 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_tmp10_ = i;
#line 154 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			g_assert (_tmp10_ != NULL);
#line 156 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_tmp11_ = i;
#line 156 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_tmp12_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp11_);
#line 156 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_tmp13_ = _tmp12_;
#line 156 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_tmp14_ = self->priv->_persona_fullname_1;
#line 156 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			if (g_strcmp0 (_tmp13_, _tmp14_) == 0) {
#line 837 "match-name.c"
				FolksIndividual* _tmp15_;
				const gchar* _tmp16_;
				const gchar* _tmp17_;
				gchar* _tmp18_;
#line 158 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_tmp15_ = i;
#line 158 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_tmp16_ = folks_individual_get_id (_tmp15_);
#line 158 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_tmp17_ = _tmp16_;
#line 158 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_tmp18_ = g_strdup (_tmp17_);
#line 158 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_g_free0 (self->priv->_individual_id_1);
#line 158 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				self->priv->_individual_id_1 = _tmp18_;
#line 854 "match-name.c"
			} else {
				FolksIndividual* _tmp19_;
				const gchar* _tmp20_;
				const gchar* _tmp21_;
				const gchar* _tmp22_;
#line 160 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_tmp19_ = i;
#line 160 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_tmp20_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp19_);
#line 160 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_tmp21_ = _tmp20_;
#line 160 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_tmp22_ = self->priv->_persona_fullname_2;
#line 160 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				if (g_strcmp0 (_tmp21_, _tmp22_) == 0) {
#line 870 "match-name.c"
					FolksIndividual* _tmp23_;
					const gchar* _tmp24_;
					const gchar* _tmp25_;
					gchar* _tmp26_;
#line 162 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
					_tmp23_ = i;
#line 162 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
					_tmp24_ = folks_individual_get_id (_tmp23_);
#line 162 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
					_tmp25_ = _tmp24_;
#line 162 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
					_tmp26_ = g_strdup (_tmp25_);
#line 162 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
					_g_free0 (self->priv->_individual_id_2);
#line 162 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
					self->priv->_individual_id_2 = _tmp26_;
#line 887 "match-name.c"
				}
			}
#line 152 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_g_object_unref0 (i);
#line 892 "match-name.c"
		}
#line 152 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_g_object_unref0 (_i_it);
#line 896 "match-name.c"
	}
#line 166 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp28_ = self->priv->_individual_id_1;
#line 166 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	if (g_strcmp0 (_tmp28_, "") != 0) {
#line 902 "match-name.c"
		const gchar* _tmp29_;
#line 167 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_tmp29_ = self->priv->_individual_id_2;
#line 167 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_tmp27_ = g_strcmp0 (_tmp29_, "") != 0;
#line 908 "match-name.c"
	} else {
#line 166 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_tmp27_ = FALSE;
#line 912 "match-name.c"
	}
#line 166 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp30_ = _tmp27_;
#line 166 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	if (_tmp30_) {
#line 169 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_match_name_tests_try_potential_match (self);
#line 920 "match-name.c"
	}
#line 172 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp31_ = removed;
#line 172 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp32_ = gee_collection_get_size ((GeeCollection*) _tmp31_);
#line 172 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp33_ = _tmp32_;
#line 172 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_assert (_tmp33_ == 1);
#line 930 "match-name.c"
	{
		GeeSet* _tmp34_;
		GeeIterator* _tmp35_ = NULL;
		GeeIterator* _i_it;
#line 174 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_tmp34_ = removed;
#line 174 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_tmp35_ = gee_iterable_iterator ((GeeIterable*) _tmp34_);
#line 174 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_i_it = _tmp35_;
#line 174 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		while (TRUE) {
#line 943 "match-name.c"
			GeeIterator* _tmp36_;
			gboolean _tmp37_ = FALSE;
			GeeIterator* _tmp38_;
			gpointer _tmp39_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp40_;
#line 174 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_tmp36_ = _i_it;
#line 174 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_tmp37_ = gee_iterator_next (_tmp36_);
#line 174 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			if (!_tmp37_) {
#line 174 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				break;
#line 958 "match-name.c"
			}
#line 174 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_tmp38_ = _i_it;
#line 174 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_tmp39_ = gee_iterator_get (_tmp38_);
#line 174 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			i = (FolksIndividual*) _tmp39_;
#line 176 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_tmp40_ = i;
#line 176 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			g_assert (_tmp40_ == NULL);
#line 174 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_g_object_unref0 (i);
#line 972 "match-name.c"
		}
#line 174 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_g_object_unref0 (_i_it);
#line 976 "match-name.c"
	}
#line 146 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_object_unref0 (removed);
#line 146 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_object_unref0 (added);
#line 982 "match-name.c"
}


static void _match_name_tests_try_potential_match (MatchNameTests* 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 180 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_return_if_fail (self != NULL);
#line 182 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp0_ = self->priv->_aggregator;
#line 182 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp1_ = folks_individual_aggregator_get_individuals (_tmp0_);
#line 182 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp2_ = _tmp1_;
#line 182 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp3_ = self->priv->_individual_id_1;
#line 182 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp4_ = gee_map_get (_tmp2_, _tmp3_);
#line 182 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	ind1 = (FolksIndividual*) _tmp4_;
#line 183 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp5_ = self->priv->_aggregator;
#line 183 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp6_ = folks_individual_aggregator_get_individuals (_tmp5_);
#line 183 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp7_ = _tmp6_;
#line 183 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp8_ = self->priv->_individual_id_2;
#line 183 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp9_ = gee_map_get (_tmp7_, _tmp8_);
#line 183 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	ind2 = (FolksIndividual*) _tmp9_;
#line 185 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp10_ = folks_potential_match_new ();
#line 185 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	matchObj = _tmp10_;
#line 186 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp11_ = folks_potential_match_potential_match (matchObj, ind1, ind2);
#line 186 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	self->priv->_match = _tmp11_;
#line 188 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp12_ = self->priv->_main_loop;
#line 188 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_main_loop_quit (_tmp12_);
#line 180 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_object_unref0 (matchObj);
#line 180 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_object_unref0 (ind2);
#line 180 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_object_unref0 (ind1);
#line 1047 "match-name.c"
}


static void _match_name_tests_notify_pstore_cb (MatchNameTests* self, GObject* _pstore, GParamSpec* ps) {
#line 191 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_return_if_fail (self != NULL);
#line 191 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_return_if_fail (_pstore != NULL);
#line 191 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_return_if_fail (ps != NULL);
#line 193 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_match_name_tests_try_to_add (self, NULL, NULL);
#line 1060 "match-name.c"
}


static void _match_name_tests_try_to_add_data_free (gpointer _data) {
	MatchNameTestsTryToAddData* _data_;
	_data_ = _data;
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_slice_free (MatchNameTestsTryToAddData, _data_);
#line 1071 "match-name.c"
}


static void _match_name_tests_try_to_add (MatchNameTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MatchNameTestsTryToAddData* _data_;
	MatchNameTests* _tmp0_;
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_ = g_slice_new0 (MatchNameTestsTryToAddData);
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _match_name_tests_try_to_add);
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _match_name_tests_try_to_add_data_free);
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->self = _tmp0_;
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_match_name_tests_try_to_add_co (_data_);
#line 1090 "match-name.c"
}


static void _match_name_tests_try_to_add_finish (MatchNameTests* self, GAsyncResult* _res_) {
	MatchNameTestsTryToAddData* _data_;
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1098 "match-name.c"
}


static void _match_name_tests_try_to_add_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	MatchNameTestsTryToAddData* _data_;
#line 204 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_ = _user_data_;
#line 204 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_source_object_ = source_object;
#line 204 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_res_ = _res_;
#line 204 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_match_name_tests_try_to_add_co (_data_);
#line 1112 "match-name.c"
}


static gboolean _match_name_tests_try_to_add_co (MatchNameTestsTryToAddData* _data_) {
#line 196 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	switch (_data_->_state_) {
#line 196 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		case 0:
#line 1121 "match-name.c"
		goto _state_0;
#line 196 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		case 1:
#line 1125 "match-name.c"
		goto _state_1;
		default:
#line 196 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		g_assert_not_reached ();
#line 1130 "match-name.c"
	}
	_state_0:
	{
#line 198 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp0_ = _data_->self->priv->_added_personas;
#line 198 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		g_static_rec_mutex_lock (&_data_->self->priv->__lock__added_personas);
#line 1138 "match-name.c"
		{
#line 200 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_data_->_tmp2_ = _data_->self->priv->_pstore;
#line 200 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_data_->_tmp3_ = folks_persona_store_get_is_prepared ((FolksPersonaStore*) _data_->_tmp2_);
#line 200 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_data_->_tmp4_ = _data_->_tmp3_;
#line 200 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			if (_data_->_tmp4_) {
#line 201 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_data_->_tmp5_ = _data_->self->priv->_added_personas;
#line 201 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_data_->_tmp1_ = _data_->_tmp5_ == FALSE;
#line 1152 "match-name.c"
			} else {
#line 200 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_data_->_tmp1_ = FALSE;
#line 1156 "match-name.c"
			}
#line 200 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_data_->_tmp6_ = _data_->_tmp1_;
#line 200 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			if (_data_->_tmp6_) {
#line 203 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_data_->self->priv->_added_personas = TRUE;
#line 204 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_data_->_state_ = 1;
#line 204 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_match_name_tests_add_personas (_data_->self, _match_name_tests_try_to_add_ready, _data_);
#line 204 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				return FALSE;
#line 1170 "match-name.c"
				_state_1:
#line 204 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
				_match_name_tests_add_personas_finish (_data_->self, _data_->_res_);
#line 1174 "match-name.c"
			}
		}
		__finally1:
		{
#line 198 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_data_->_tmp7_ = _data_->self->priv->_added_personas;
#line 198 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			g_static_rec_mutex_unlock (&_data_->self->priv->__lock__added_personas);
#line 1183 "match-name.c"
		}
#line 198 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		if (_data_->_inner_error_ != NULL) {
#line 198 "/opt/gnome2/source/folks/tests/tracker/match-name.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 198 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			g_clear_error (&_data_->_inner_error_);
#line 198 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			return FALSE;
#line 1193 "match-name.c"
		}
	}
#line 196 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	if (_data_->_state_ == 0) {
#line 196 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1200 "match-name.c"
	} else {
#line 196 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1204 "match-name.c"
	}
#line 196 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_object_unref (_data_->_async_result);
#line 196 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	return FALSE;
#line 1210 "match-name.c"
}


static void _match_name_tests_add_personas_data_free (gpointer _data) {
	MatchNameTestsAddPersonasData* _data_;
	_data_ = _data;
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_slice_free (MatchNameTestsAddPersonasData, _data_);
#line 1221 "match-name.c"
}


static void _match_name_tests_add_personas (MatchNameTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MatchNameTestsAddPersonasData* _data_;
	MatchNameTests* _tmp0_;
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_ = g_slice_new0 (MatchNameTestsAddPersonasData);
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _match_name_tests_add_personas);
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _match_name_tests_add_personas_data_free);
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->self = _tmp0_;
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_match_name_tests_add_personas_co (_data_);
#line 1240 "match-name.c"
}


static void _match_name_tests_add_personas_finish (MatchNameTests* self, GAsyncResult* _res_) {
	MatchNameTestsAddPersonasData* _data_;
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1248 "match-name.c"
}


static void _g_free0_ (gpointer var) {
#line 211 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	var = (g_free (var), NULL);
#line 1255 "match-name.c"
}


static void _vala_GValue_free (GValue* self) {
#line 211 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_value_unset (self);
#line 211 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_free (self);
#line 1264 "match-name.c"
}


static void __vala_GValue_free0_ (gpointer var) {
#line 211 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	(var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL));
#line 1271 "match-name.c"
}


static GValue* _g_value_dup (GValue* self) {
#line 217 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	return g_boxed_copy (G_TYPE_VALUE, self);
#line 1278 "match-name.c"
}


static gpointer __g_value_dup0 (gpointer self) {
#line 217 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	return self ? _g_value_dup (self) : NULL;
#line 1285 "match-name.c"
}


static void _match_name_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	MatchNameTestsAddPersonasData* _data_;
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_ = _user_data_;
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_source_object_ = source_object;
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_res_ = _res_;
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_match_name_tests_add_personas_co (_data_);
#line 1299 "match-name.c"
}


static gboolean _match_name_tests_add_personas_co (MatchNameTestsAddPersonasData* _data_) {
#line 209 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	switch (_data_->_state_) {
#line 209 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		case 0:
#line 1308 "match-name.c"
		goto _state_0;
#line 209 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		case 1:
#line 1312 "match-name.c"
		goto _state_1;
#line 209 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		case 2:
#line 1316 "match-name.c"
		goto _state_2;
		default:
#line 209 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		g_assert_not_reached ();
#line 1321 "match-name.c"
	}
	_state_0:
#line 211 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp0_ = g_str_hash;
#line 211 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp1_ = g_str_equal;
#line 211 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp2_ = g_hash_table_new_full (_data_->_tmp0_, _data_->_tmp1_, _g_free0_, __vala_GValue_free0_);
#line 211 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->details1 = _data_->_tmp2_;
#line 213 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp3_ = g_str_hash;
#line 213 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp4_ = g_str_equal;
#line 213 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp5_ = g_hash_table_new_full (_data_->_tmp3_, _data_->_tmp4_, _g_free0_, __vala_GValue_free0_);
#line 213 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->details2 = _data_->_tmp5_;
#line 217 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	memset (&_data_->_tmp6_, 0, sizeof (GValue));
#line 217 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_value_init (&_data_->_tmp6_, G_TYPE_STRING);
#line 217 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp7_ = _data_->_tmp6_;
#line 217 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp8_ = __g_value_dup0 (&_data_->_tmp7_);
#line 217 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	__vala_GValue_free0 (_data_->val);
#line 217 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->val = _data_->_tmp8_;
#line 217 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	G_IS_VALUE (&_data_->_tmp7_) ? (g_value_unset (&_data_->_tmp7_), NULL) : NULL;
#line 218 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp9_ = _data_->val;
#line 218 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp10_ = _data_->self->priv->_persona_fullname_1;
#line 218 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_value_set_string (_data_->_tmp9_, _data_->_tmp10_);
#line 219 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp11_ = _data_->details1;
#line 219 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp12_ = NULL;
#line 219 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp12_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_FULL_NAME);
#line 219 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp13_ = g_strdup (_data_->_tmp12_);
#line 219 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp14_ = _data_->val;
#line 219 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->val = NULL;
#line 219 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_hash_table_insert (_data_->_tmp11_, _data_->_tmp13_, _data_->_tmp14_);
#line 222 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	memset (&_data_->_tmp15_, 0, sizeof (GValue));
#line 222 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_value_init (&_data_->_tmp15_, G_TYPE_STRING);
#line 222 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp16_ = _data_->_tmp15_;
#line 222 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp17_ = __g_value_dup0 (&_data_->_tmp16_);
#line 222 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	__vala_GValue_free0 (_data_->val);
#line 222 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->val = _data_->_tmp17_;
#line 222 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	G_IS_VALUE (&_data_->_tmp16_) ? (g_value_unset (&_data_->_tmp16_), NULL) : NULL;
#line 223 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp18_ = _data_->val;
#line 223 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp19_ = _data_->self->priv->_persona_fullname_2;
#line 223 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_value_set_string (_data_->_tmp18_, _data_->_tmp19_);
#line 224 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp20_ = _data_->details2;
#line 224 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp21_ = NULL;
#line 224 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp21_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_FULL_NAME);
#line 224 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp22_ = g_strdup (_data_->_tmp21_);
#line 224 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->_tmp23_ = _data_->val;
#line 224 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_data_->val = NULL;
#line 224 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_hash_table_insert (_data_->_tmp20_, _data_->_tmp22_, _data_->_tmp23_);
#line 1408 "match-name.c"
	{
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp24_ = _data_->self->priv->_aggregator;
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp25_ = _data_->self->priv->_pstore;
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp26_ = _data_->details1;
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_state_ = 1;
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp24_, NULL, (FolksPersonaStore*) _data_->_tmp25_, _data_->_tmp26_, _match_name_tests_add_personas_ready, _data_);
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		return FALSE;
#line 1422 "match-name.c"
		_state_1:
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp27_ = NULL;
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp27_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp24_, _data_->_res_, &_data_->_inner_error_);
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp28_ = _data_->_tmp27_;
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_g_object_unref0 (_data_->_tmp28_);
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		if (_data_->_inner_error_ != NULL) {
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1436 "match-name.c"
				goto __catch2_folks_individual_aggregator_error;
			}
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			__vala_GValue_free0 (_data_->val);
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.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 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			g_clear_error (&_data_->_inner_error_);
#line 229 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			return FALSE;
#line 1451 "match-name.c"
		}
#line 232 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp29_ = _data_->self->priv->_aggregator;
#line 232 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp30_ = _data_->self->priv->_pstore;
#line 232 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp31_ = _data_->details2;
#line 232 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_state_ = 2;
#line 232 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp29_, NULL, (FolksPersonaStore*) _data_->_tmp30_, _data_->_tmp31_, _match_name_tests_add_personas_ready, _data_);
#line 232 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		return FALSE;
#line 1465 "match-name.c"
		_state_2:
#line 232 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp32_ = NULL;
#line 232 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp32_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp29_, _data_->_res_, &_data_->_inner_error_);
#line 232 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp33_ = _data_->_tmp32_;
#line 232 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_g_object_unref0 (_data_->_tmp33_);
#line 232 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		if (_data_->_inner_error_ != NULL) {
#line 232 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1479 "match-name.c"
				goto __catch2_folks_individual_aggregator_error;
			}
#line 232 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			__vala_GValue_free0 (_data_->val);
#line 232 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 232 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 232 "/opt/gnome2/source/folks/tests/tracker/match-name.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 232 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			g_clear_error (&_data_->_inner_error_);
#line 232 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
			return FALSE;
#line 1494 "match-name.c"
		}
	}
	goto __finally2;
	__catch2_folks_individual_aggregator_error:
	{
#line 227 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->e = _data_->_inner_error_;
#line 227 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_inner_error_ = NULL;
#line 237 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp34_ = _data_->e;
#line 237 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_data_->_tmp35_ = _data_->_tmp34_->message;
#line 237 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		g_warning ("match-name.vala:237: [AddPersonaError] add_persona_from_details: %s\n", _data_->_tmp35_);
#line 227 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_g_error_free0 (_data_->e);
#line 1512 "match-name.c"
	}
	__finally2:
#line 227 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	if (_data_->_inner_error_ != NULL) {
#line 227 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		__vala_GValue_free0 (_data_->val);
#line 227 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_g_hash_table_unref0 (_data_->details2);
#line 227 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		_g_hash_table_unref0 (_data_->details1);
#line 227 "/opt/gnome2/source/folks/tests/tracker/match-name.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 227 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		g_clear_error (&_data_->_inner_error_);
#line 227 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		return FALSE;
#line 1529 "match-name.c"
	}
#line 209 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	__vala_GValue_free0 (_data_->val);
#line 209 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_hash_table_unref0 (_data_->details2);
#line 209 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_hash_table_unref0 (_data_->details1);
#line 209 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	if (_data_->_state_ == 0) {
#line 209 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1541 "match-name.c"
	} else {
#line 209 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1545 "match-name.c"
	}
#line 209 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_object_unref (_data_->_async_result);
#line 209 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	return FALSE;
#line 1551 "match-name.c"
}


static void match_name_tests_class_init (MatchNameTestsClass * klass) {
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	match_name_tests_parent_class = g_type_class_peek_parent (klass);
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_type_class_add_private (klass, sizeof (MatchNameTestsPrivate));
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = match_name_tests_real_set_up;
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = match_name_tests_real_tear_down;
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	G_OBJECT_CLASS (klass)->finalize = match_name_tests_finalize;
#line 1566 "match-name.c"
}


static void match_name_tests_instance_init (MatchNameTests * self) {
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	self->priv = MATCH_NAME_TESTS_GET_PRIVATE (self);
#line 30 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	self->priv->_aggregator = NULL;
#line 31 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp0_ = g_strdup ("Bernie Innocenti");
#line 31 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	self->priv->_persona_fullname_1 = _tmp0_;
#line 32 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp1_ = g_strdup ("Bernardo H. Innocenti");
#line 32 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	self->priv->_persona_fullname_2 = _tmp1_;
#line 33 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_static_rec_mutex_init (&self->priv->__lock__added_personas);
#line 34 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp2_ = g_strdup ("");
#line 34 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	self->priv->_individual_id_1 = _tmp2_;
#line 35 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp3_ = g_strdup ("");
#line 35 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	self->priv->_individual_id_2 = _tmp3_;
#line 1597 "match-name.c"
}


static void match_name_tests_finalize (GObject* obj) {
	MatchNameTests * self;
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	self = MATCH_NAME_TESTS (obj);
#line 28 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 29 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 30 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 31 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_free0 (self->priv->_persona_fullname_1);
#line 32 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_free0 (self->priv->_persona_fullname_2);
#line 33 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_static_rec_mutex_free (&self->priv->__lock__added_personas);
#line 34 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_free0 (self->priv->_individual_id_1);
#line 35 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_free0 (self->priv->_individual_id_2);
#line 37 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_object_unref0 (self->priv->_pstore);
#line 26 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	G_OBJECT_CLASS (match_name_tests_parent_class)->finalize (obj);
#line 1625 "match-name.c"
}


GType match_name_tests_get_type (void) {
	static volatile gsize match_name_tests_type_id__volatile = 0;
	if (g_once_init_enter (&match_name_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (MatchNameTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) match_name_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MatchNameTests), 0, (GInstanceInitFunc) match_name_tests_instance_init, NULL };
		GType match_name_tests_type_id;
		match_name_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "MatchNameTests", &g_define_type_info, 0);
		g_once_init_leave (&match_name_tests_type_id__volatile, match_name_tests_type_id);
	}
	return match_name_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	MatchNameTests* _tmp1_;
	MatchNameTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 245 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_test_init (&args_length1, &args, NULL);
#line 247 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp0_ = g_test_get_root ();
#line 247 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	root = _tmp0_;
#line 248 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp1_ = match_name_tests_new ();
#line 248 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp2_ = _tmp1_;
#line 248 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 248 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 248 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	_g_object_unref0 (_tmp2_);
#line 250 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_test_run ();
#line 252 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	result = 0;
#line 252 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	return result;
#line 1670 "match-name.c"
}


int main (int argc, char ** argv) {
#line 243 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	g_type_init ();
#line 243 "/opt/gnome2/source/folks/tests/tracker/match-name.vala"
	return _vala_main (argv, argc);
#line 1679 "match-name.c"
}



