/* name-details-interface.c generated by valac 0.14.0.15-f8b5, the Vala compiler
 * generated from name-details-interface.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 <gee.h>
#include <stdlib.h>
#include <string.h>
#include <folks/folks-tracker.h>
#include <gio/gio.h>


#define TYPE_NAME_DETAILS_INTERFACE_TESTS (name_details_interface_tests_get_type ())
#define NAME_DETAILS_INTERFACE_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NAME_DETAILS_INTERFACE_TESTS, NameDetailsInterfaceTests))
#define NAME_DETAILS_INTERFACE_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NAME_DETAILS_INTERFACE_TESTS, NameDetailsInterfaceTestsClass))
#define IS_NAME_DETAILS_INTERFACE_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NAME_DETAILS_INTERFACE_TESTS))
#define IS_NAME_DETAILS_INTERFACE_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NAME_DETAILS_INTERFACE_TESTS))
#define NAME_DETAILS_INTERFACE_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NAME_DETAILS_INTERFACE_TESTS, NameDetailsInterfaceTestsClass))

typedef struct _NameDetailsInterfaceTests NameDetailsInterfaceTests;
typedef struct _NameDetailsInterfaceTestsClass NameDetailsInterfaceTestsClass;
typedef struct _NameDetailsInterfaceTestsPrivate NameDetailsInterfaceTestsPrivate;
#define _tracker_test_backend_unref0(var) ((var == NULL) ? NULL : (var = (tracker_test_backend_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _NameDetailsInterfaceTestsTestNameDetailsInterfaceAsyncData NameDetailsInterfaceTestsTestNameDetailsInterfaceAsyncData;
#define _g_free0(var) (var = (g_free (var), NULL))

struct _NameDetailsInterfaceTests {
	FolksTestCase parent_instance;
	NameDetailsInterfaceTestsPrivate * priv;
};

struct _NameDetailsInterfaceTestsClass {
	FolksTestCaseClass parent_class;
};

struct _NameDetailsInterfaceTestsPrivate {
	TrackerTestBackend* _tracker_backend;
	FolksIndividualAggregator* _aggregator;
	GMainLoop* _main_loop;
	GeeHashMap* _c1;
	GeeHashMap* _c2;
};

struct _NameDetailsInterfaceTestsTestNameDetailsInterfaceAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	NameDetailsInterfaceTests* self;
	FolksBackendStore* _tmp0_;
	FolksBackendStore* store;
	FolksIndividualAggregator* _tmp1_;
	FolksIndividualAggregator* _tmp2_;
	FolksIndividualAggregator* _tmp3_;
	GError* e;
	GError* _tmp4_;
	const gchar* _tmp5_;
	GError * _inner_error_;
};


static gpointer name_details_interface_tests_parent_class = NULL;

GType name_details_interface_tests_get_type (void) G_GNUC_CONST;
#define NAME_DETAILS_INTERFACE_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_NAME_DETAILS_INTERFACE_TESTS, NameDetailsInterfaceTestsPrivate))
enum  {
	NAME_DETAILS_INTERFACE_TESTS_DUMMY_PROPERTY
};
NameDetailsInterfaceTests* name_details_interface_tests_new (void);
NameDetailsInterfaceTests* name_details_interface_tests_construct (GType object_type);
void name_details_interface_tests_test_name_details_interface (NameDetailsInterfaceTests* self);
static void _name_details_interface_tests_test_name_details_interface_folks_test_case_test_method (gpointer self);
static void name_details_interface_tests_real_set_up (FolksTestCase* base);
static void name_details_interface_tests_real_tear_down (FolksTestCase* base);
static void _name_details_interface_tests_test_name_details_interface_async (NameDetailsInterfaceTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _name_details_interface_tests_test_name_details_interface_finish (NameDetailsInterfaceTests* self, GAsyncResult* _res_);
static gboolean __lambda2_ (NameDetailsInterfaceTests* self);
static gboolean ___lambda2__gsource_func (gpointer self);
static void _name_details_interface_tests_test_name_details_interface_async_data_free (gpointer _data);
static gboolean _name_details_interface_tests_test_name_details_interface_async_co (NameDetailsInterfaceTestsTestNameDetailsInterfaceAsyncData* _data_);
static void _name_details_interface_tests_test_name_details_interface_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _name_details_interface_tests_individuals_changed_cb (NameDetailsInterfaceTests* self, GeeMultiMap* changes);
static void __name_details_interface_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static void name_details_interface_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _name_details_interface_tests_test_name_details_interface_folks_test_case_test_method (gpointer self) {
#line 40 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	name_details_interface_tests_test_name_details_interface (self);
#line 118 "name-details-interface.c"
}


NameDetailsInterfaceTests* name_details_interface_tests_construct (GType object_type) {
	NameDetailsInterfaceTests * self = NULL;
	TrackerTestBackend* _tmp0_;
#line 36 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	self = (NameDetailsInterfaceTests*) folks_test_case_construct (object_type, "NameDetailsInterfaceTests");
#line 38 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp0_ = tracker_test_backend_new ();
#line 38 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 38 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	self->priv->_tracker_backend = _tmp0_;
#line 40 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test name details interface", _name_details_interface_tests_test_name_details_interface_folks_test_case_test_method, self);
#line 34 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	return self;
#line 137 "name-details-interface.c"
}


NameDetailsInterfaceTests* name_details_interface_tests_new (void) {
#line 34 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	return name_details_interface_tests_construct (TYPE_NAME_DETAILS_INTERFACE_TESTS);
#line 144 "name-details-interface.c"
}


static void name_details_interface_tests_real_set_up (FolksTestCase* base) {
	NameDetailsInterfaceTests * self;
#line 44 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	self = (NameDetailsInterfaceTests*) base;
#line 152 "name-details-interface.c"
}


static void name_details_interface_tests_real_tear_down (FolksTestCase* base) {
	NameDetailsInterfaceTests * self;
#line 48 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	self = (NameDetailsInterfaceTests*) base;
#line 160 "name-details-interface.c"
}


static gboolean __lambda2_ (NameDetailsInterfaceTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 75 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp0_ = self->priv->_main_loop;
#line 75 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	g_main_loop_quit (_tmp0_);
#line 76 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	g_assert_not_reached ();
#line 73 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	return result;
#line 175 "name-details-interface.c"
}


static gboolean ___lambda2__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda2_ (self);
#line 73 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	return result;
#line 184 "name-details-interface.c"
}


void name_details_interface_tests_test_name_details_interface (NameDetailsInterfaceTests* self) {
	GMainLoop* _tmp0_;
	GeeHashMap* _tmp1_;
	GeeHashMap* _tmp2_;
	GeeHashMap* _tmp3_;
	GeeHashMap* _tmp4_;
	GeeHashMap* _tmp5_;
	GeeHashMap* _tmp6_;
	GeeHashMap* _tmp7_;
	GeeHashMap* _tmp8_;
	TrackerTestBackend* _tmp9_;
	GeeHashMap* _tmp10_;
	GeeHashMap* _tmp11_;
	TrackerTestBackend* _tmp12_;
	GeeHashMap* _tmp13_;
	TrackerTestBackend* _tmp14_;
	GMainLoop* _tmp15_;
	GeeHashMap* _tmp16_;
	gint _tmp17_;
	gint _tmp18_;
	GeeHashMap* _tmp19_;
	gint _tmp20_;
	gint _tmp21_;
	TrackerTestBackend* _tmp22_;
#line 52 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	g_return_if_fail (self != NULL);
#line 54 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 54 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 54 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	self->priv->_main_loop = _tmp0_;
#line 55 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
#line 55 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_g_object_unref0 (self->priv->_c1);
#line 55 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	self->priv->_c1 = _tmp1_;
#line 56 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp2_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
#line 56 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_g_object_unref0 (self->priv->_c2);
#line 56 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	self->priv->_c2 = _tmp2_;
#line 58 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp3_ = self->priv->_c1;
#line 58 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp3_, TRF_ONTOLOGY_DEFS_NCO_FULLNAME, "persona #1");
#line 59 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp4_ = self->priv->_c1;
#line 59 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp4_, TRF_ONTOLOGY_DEFS_NCO_FAMILY, "p #1 Family");
#line 60 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp5_ = self->priv->_c1;
#line 60 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp5_, TRF_ONTOLOGY_DEFS_NCO_GIVEN, "p #1 Given");
#line 61 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp6_ = self->priv->_c1;
#line 61 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp6_, TRF_ONTOLOGY_DEFS_NCO_ADDITIONAL, "p #1 Additional");
#line 62 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp7_ = self->priv->_c1;
#line 62 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp7_, TRF_ONTOLOGY_DEFS_NCO_PREFIX, "Mr");
#line 63 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp8_ = self->priv->_c1;
#line 63 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp8_, TRF_ONTOLOGY_DEFS_NCO_SUFFIX, "Jr");
#line 64 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp9_ = self->priv->_tracker_backend;
#line 64 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp10_ = self->priv->_c1;
#line 64 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	tracker_test_backend_add_contact (_tmp9_, _tmp10_);
#line 66 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp11_ = self->priv->_c2;
#line 66 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp11_, TRF_ONTOLOGY_DEFS_NCO_FULLNAME, "persona #2");
#line 67 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp12_ = self->priv->_tracker_backend;
#line 67 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp13_ = self->priv->_c2;
#line 67 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	tracker_test_backend_add_contact (_tmp12_, _tmp13_);
#line 69 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp14_ = self->priv->_tracker_backend;
#line 69 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	tracker_test_backend_set_up (_tmp14_);
#line 71 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_name_details_interface_tests_test_name_details_interface_async (self, NULL, NULL);
#line 73 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda2__gsource_func, g_object_ref (self), g_object_unref);
#line 79 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp15_ = self->priv->_main_loop;
#line 79 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	g_main_loop_run (_tmp15_);
#line 81 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp16_ = self->priv->_c1;
#line 81 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp17_ = gee_map_get_size ((GeeMap*) _tmp16_);
#line 81 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp18_ = _tmp17_;
#line 81 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	g_assert (_tmp18_ == 0);
#line 82 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp19_ = self->priv->_c2;
#line 82 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp20_ = gee_map_get_size ((GeeMap*) _tmp19_);
#line 82 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp21_ = _tmp20_;
#line 82 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	g_assert (_tmp21_ == 0);
#line 84 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp22_ = self->priv->_tracker_backend;
#line 84 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	tracker_test_backend_tear_down (_tmp22_);
#line 304 "name-details-interface.c"
}


static void _name_details_interface_tests_test_name_details_interface_async_data_free (gpointer _data) {
	NameDetailsInterfaceTestsTestNameDetailsInterfaceAsyncData* _data_;
	_data_ = _data;
#line 26 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	g_slice_free (NameDetailsInterfaceTestsTestNameDetailsInterfaceAsyncData, _data_);
#line 315 "name-details-interface.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 26 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	return self ? g_object_ref (self) : NULL;
#line 322 "name-details-interface.c"
}


static void _name_details_interface_tests_test_name_details_interface_async (NameDetailsInterfaceTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	NameDetailsInterfaceTestsTestNameDetailsInterfaceAsyncData* _data_;
	NameDetailsInterfaceTests* _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_data_ = g_slice_new0 (NameDetailsInterfaceTestsTestNameDetailsInterfaceAsyncData);
#line 26 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _name_details_interface_tests_test_name_details_interface_async);
#line 26 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _name_details_interface_tests_test_name_details_interface_async_data_free);
#line 26 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_data_->self = _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_name_details_interface_tests_test_name_details_interface_async_co (_data_);
#line 341 "name-details-interface.c"
}


static void _name_details_interface_tests_test_name_details_interface_finish (NameDetailsInterfaceTests* self, GAsyncResult* _res_) {
	NameDetailsInterfaceTestsTestNameDetailsInterfaceAsyncData* _data_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 349 "name-details-interface.c"
}


static void _name_details_interface_tests_test_name_details_interface_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	NameDetailsInterfaceTestsTestNameDetailsInterfaceAsyncData* _data_;
#line 90 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_data_ = _user_data_;
#line 90 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_data_->_source_object_ = source_object;
#line 90 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_data_->_res_ = _res_;
#line 90 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_name_details_interface_tests_test_name_details_interface_async_co (_data_);
#line 363 "name-details-interface.c"
}


static void __name_details_interface_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 92 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_name_details_interface_tests_individuals_changed_cb (self, changes);
#line 370 "name-details-interface.c"
}


static gboolean _name_details_interface_tests_test_name_details_interface_async_co (NameDetailsInterfaceTestsTestNameDetailsInterfaceAsyncData* _data_) {
#line 87 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	switch (_data_->_state_) {
#line 87 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		case 0:
#line 379 "name-details-interface.c"
		goto _state_0;
#line 87 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		case 1:
#line 383 "name-details-interface.c"
		goto _state_1;
#line 87 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		case 2:
#line 387 "name-details-interface.c"
		goto _state_2;
		default:
#line 87 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		g_assert_not_reached ();
#line 392 "name-details-interface.c"
	}
	_state_0:
#line 89 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_data_->_tmp0_ = NULL;
#line 89 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 89 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_data_->store = _data_->_tmp0_;
#line 90 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_data_->_state_ = 1;
#line 90 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	folks_backend_store_prepare (_data_->store, _name_details_interface_tests_test_name_details_interface_async_ready, _data_);
#line 90 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	return FALSE;
#line 407 "name-details-interface.c"
	_state_1:
#line 90 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 91 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 91 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 91 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 92 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 92 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	g_signal_connect_object (_data_->_tmp2_, "individuals-changed-detailed", (GCallback) __name_details_interface_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed, _data_->self, 0);
#line 421 "name-details-interface.c"
	{
#line 96 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 96 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_data_->_state_ = 2;
#line 96 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		folks_individual_aggregator_prepare (_data_->_tmp3_, _name_details_interface_tests_test_name_details_interface_async_ready, _data_);
#line 96 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		return FALSE;
#line 431 "name-details-interface.c"
		_state_2:
#line 96 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 96 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		if (_data_->_inner_error_ != NULL) {
#line 437 "name-details-interface.c"
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 94 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_data_->e = _data_->_inner_error_;
#line 94 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_data_->_inner_error_ = NULL;
#line 100 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_data_->_tmp4_ = _data_->e;
#line 100 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_data_->_tmp5_ = _data_->_tmp4_->message;
#line 100 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		g_warning ("name-details-interface.vala:100: Error when calling prepare: %s\n", _data_->_tmp5_);
#line 94 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_g_error_free0 (_data_->e);
#line 456 "name-details-interface.c"
	}
	__finally0:
#line 94 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	if (_data_->_inner_error_ != NULL) {
#line 94 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_g_object_unref0 (_data_->store);
#line 94 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.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 94 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		g_clear_error (&_data_->_inner_error_);
#line 94 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		return FALSE;
#line 469 "name-details-interface.c"
	}
#line 87 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_g_object_unref0 (_data_->store);
#line 87 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	if (_data_->_state_ == 0) {
#line 87 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 477 "name-details-interface.c"
	} else {
#line 87 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 481 "name-details-interface.c"
	}
#line 87 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	g_object_unref (_data_->_async_result);
#line 87 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	return FALSE;
#line 487 "name-details-interface.c"
}


static void _name_details_interface_tests_individuals_changed_cb (NameDetailsInterfaceTests* self, GeeMultiMap* changes) {
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
	gboolean _tmp76_ = FALSE;
	GeeHashMap* _tmp77_;
	gint _tmp78_;
	gint _tmp79_;
	gboolean _tmp83_;
	GeeSet* _tmp85_;
	gint _tmp86_;
	gint _tmp87_;
#line 104 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	g_return_if_fail (self != NULL);
#line 104 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	g_return_if_fail (changes != NULL);
#line 107 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp0_ = changes;
#line 107 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 107 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	added = _tmp1_;
#line 108 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp2_ = changes;
#line 108 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 108 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	removed = _tmp3_;
#line 522 "name-details-interface.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 110 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_tmp4_ = added;
#line 110 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 110 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_i_it = _tmp5_;
#line 110 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		while (TRUE) {
#line 535 "name-details-interface.c"
			GeeIterator* _tmp6_;
			gboolean _tmp7_ = FALSE;
			GeeIterator* _tmp8_;
			gpointer _tmp9_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp10_;
			FolksIndividual* _tmp11_;
			const gchar* _tmp12_;
			const gchar* _tmp13_;
			gchar* _tmp14_;
			gchar* full_name;
			const gchar* _tmp15_;
#line 110 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			_tmp6_ = _i_it;
#line 110 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 110 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			if (!_tmp7_) {
#line 110 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
				break;
#line 556 "name-details-interface.c"
			}
#line 110 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			_tmp8_ = _i_it;
#line 110 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 110 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			i = (FolksIndividual*) _tmp9_;
#line 112 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			_tmp10_ = i;
#line 112 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			g_assert (_tmp10_ != NULL);
#line 114 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			_tmp11_ = i;
#line 114 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			_tmp12_ = folks_name_details_get_full_name (FOLKS_NAME_DETAILS (_tmp11_));
#line 114 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			_tmp13_ = _tmp12_;
#line 114 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			_tmp14_ = g_strdup (_tmp13_);
#line 114 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			full_name = _tmp14_;
#line 115 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			_tmp15_ = full_name;
#line 115 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			if (_tmp15_ != NULL) {
#line 582 "name-details-interface.c"
				FolksIndividual* _tmp16_;
				FolksStructuredName* _tmp17_;
				FolksStructuredName* _tmp18_;
				FolksStructuredName* _tmp19_;
				FolksStructuredName* sname;
				const gchar* _tmp20_;
#line 117 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
				_tmp16_ = i;
#line 117 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
				_tmp17_ = folks_name_details_get_structured_name (FOLKS_NAME_DETAILS (_tmp16_));
#line 117 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
				_tmp18_ = _tmp17_;
#line 117 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
				_tmp19_ = _g_object_ref0 (_tmp18_);
#line 117 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
				sname = _tmp19_;
#line 120 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
				_tmp20_ = full_name;
#line 120 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
				if (g_strcmp0 (_tmp20_, "persona #1") == 0) {
#line 603 "name-details-interface.c"
					GeeHashMap* _tmp21_;
					FolksStructuredName* _tmp22_;
					const gchar* _tmp23_;
					const gchar* _tmp24_;
					gchar* _tmp25_;
					gchar* family;
					GeeHashMap* _tmp26_;
					gpointer _tmp27_ = NULL;
					gchar* _tmp28_;
					const gchar* _tmp29_;
					GeeHashMap* _tmp30_;
					FolksStructuredName* _tmp31_;
					const gchar* _tmp32_;
					const gchar* _tmp33_;
					gchar* _tmp34_;
					gchar* given;
					GeeHashMap* _tmp35_;
					gpointer _tmp36_ = NULL;
					gchar* _tmp37_;
					const gchar* _tmp38_;
					GeeHashMap* _tmp39_;
					FolksStructuredName* _tmp40_;
					const gchar* _tmp41_;
					const gchar* _tmp42_;
					gchar* _tmp43_;
					gchar* additional;
					GeeHashMap* _tmp44_;
					gpointer _tmp45_ = NULL;
					gchar* _tmp46_;
					const gchar* _tmp47_;
					GeeHashMap* _tmp48_;
					FolksStructuredName* _tmp49_;
					const gchar* _tmp50_;
					const gchar* _tmp51_;
					gchar* _tmp52_;
					gchar* prefix;
					GeeHashMap* _tmp53_;
					gpointer _tmp54_ = NULL;
					gchar* _tmp55_;
					const gchar* _tmp56_;
					GeeHashMap* _tmp57_;
					FolksStructuredName* _tmp58_;
					const gchar* _tmp59_;
					const gchar* _tmp60_;
					gchar* _tmp61_;
					gchar* suffix;
					GeeHashMap* _tmp62_;
					gpointer _tmp63_ = NULL;
					gchar* _tmp64_;
					const gchar* _tmp65_;
					GeeHashMap* _tmp66_;
					FolksStructuredName* _tmp67_;
					gboolean _tmp68_ = FALSE;
#line 122 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp21_ = self->priv->_c1;
#line 122 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					gee_abstract_map_unset ((GeeAbstractMap*) _tmp21_, TRF_ONTOLOGY_DEFS_NCO_FULLNAME, NULL);
#line 124 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp22_ = sname;
#line 124 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp23_ = folks_structured_name_get_family_name (_tmp22_);
#line 124 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp24_ = _tmp23_;
#line 124 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp25_ = g_strdup (_tmp24_);
#line 124 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					family = _tmp25_;
#line 125 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp26_ = self->priv->_c1;
#line 125 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp27_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp26_, TRF_ONTOLOGY_DEFS_NCO_FAMILY);
#line 125 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp28_ = (gchar*) _tmp27_;
#line 125 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp29_ = family;
#line 125 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					g_assert (g_strcmp0 (_tmp28_, _tmp29_) == 0);
#line 125 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_g_free0 (_tmp28_);
#line 127 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp30_ = self->priv->_c1;
#line 127 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					gee_abstract_map_unset ((GeeAbstractMap*) _tmp30_, TRF_ONTOLOGY_DEFS_NCO_FAMILY, NULL);
#line 129 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp31_ = sname;
#line 129 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp32_ = folks_structured_name_get_given_name (_tmp31_);
#line 129 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp33_ = _tmp32_;
#line 129 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp34_ = g_strdup (_tmp33_);
#line 129 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					given = _tmp34_;
#line 130 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp35_ = self->priv->_c1;
#line 130 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp36_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp35_, TRF_ONTOLOGY_DEFS_NCO_GIVEN);
#line 130 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp37_ = (gchar*) _tmp36_;
#line 130 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp38_ = given;
#line 130 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					g_assert (g_strcmp0 (_tmp37_, _tmp38_) == 0);
#line 130 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_g_free0 (_tmp37_);
#line 131 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp39_ = self->priv->_c1;
#line 131 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					gee_abstract_map_unset ((GeeAbstractMap*) _tmp39_, TRF_ONTOLOGY_DEFS_NCO_GIVEN, NULL);
#line 133 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp40_ = sname;
#line 133 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp41_ = folks_structured_name_get_additional_names (_tmp40_);
#line 133 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp42_ = _tmp41_;
#line 133 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp43_ = g_strdup (_tmp42_);
#line 133 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					additional = _tmp43_;
#line 134 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp44_ = self->priv->_c1;
#line 134 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp45_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp44_, TRF_ONTOLOGY_DEFS_NCO_ADDITIONAL);
#line 134 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp46_ = (gchar*) _tmp45_;
#line 134 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp47_ = additional;
#line 134 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					g_assert (g_strcmp0 (_tmp46_, _tmp47_) == 0);
#line 134 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_g_free0 (_tmp46_);
#line 136 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp48_ = self->priv->_c1;
#line 136 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					gee_abstract_map_unset ((GeeAbstractMap*) _tmp48_, TRF_ONTOLOGY_DEFS_NCO_ADDITIONAL, NULL);
#line 138 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp49_ = sname;
#line 138 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp50_ = folks_structured_name_get_prefixes (_tmp49_);
#line 138 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp51_ = _tmp50_;
#line 138 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp52_ = g_strdup (_tmp51_);
#line 138 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					prefix = _tmp52_;
#line 139 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp53_ = self->priv->_c1;
#line 139 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp54_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp53_, TRF_ONTOLOGY_DEFS_NCO_PREFIX);
#line 139 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp55_ = (gchar*) _tmp54_;
#line 139 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp56_ = prefix;
#line 139 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					g_assert (g_strcmp0 (_tmp55_, _tmp56_) == 0);
#line 139 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_g_free0 (_tmp55_);
#line 141 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp57_ = self->priv->_c1;
#line 141 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					gee_abstract_map_unset ((GeeAbstractMap*) _tmp57_, TRF_ONTOLOGY_DEFS_NCO_PREFIX, NULL);
#line 143 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp58_ = sname;
#line 143 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp59_ = folks_structured_name_get_suffixes (_tmp58_);
#line 143 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp60_ = _tmp59_;
#line 143 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp61_ = g_strdup (_tmp60_);
#line 143 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					suffix = _tmp61_;
#line 144 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp62_ = self->priv->_c1;
#line 144 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp63_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp62_, TRF_ONTOLOGY_DEFS_NCO_SUFFIX);
#line 144 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp64_ = (gchar*) _tmp63_;
#line 144 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp65_ = suffix;
#line 144 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					g_assert (g_strcmp0 (_tmp64_, _tmp65_) == 0);
#line 144 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_g_free0 (_tmp64_);
#line 146 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp66_ = self->priv->_c1;
#line 146 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					gee_abstract_map_unset ((GeeAbstractMap*) _tmp66_, TRF_ONTOLOGY_DEFS_NCO_SUFFIX, NULL);
#line 148 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp67_ = sname;
#line 148 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp68_ = folks_structured_name_is_empty (_tmp67_);
#line 148 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					g_assert (_tmp68_ == FALSE);
#line 120 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_g_free0 (suffix);
#line 120 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_g_free0 (prefix);
#line 120 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_g_free0 (additional);
#line 120 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_g_free0 (given);
#line 120 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_g_free0 (family);
#line 807 "name-details-interface.c"
				} else {
					const gchar* _tmp69_;
#line 150 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					_tmp69_ = full_name;
#line 150 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
					if (g_strcmp0 (_tmp69_, "persona #2") == 0) {
#line 814 "name-details-interface.c"
						GeeHashMap* _tmp70_;
						gboolean _tmp71_ = FALSE;
						FolksStructuredName* _tmp72_;
						gboolean _tmp75_;
#line 152 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
						_tmp70_ = self->priv->_c2;
#line 152 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
						gee_abstract_map_unset ((GeeAbstractMap*) _tmp70_, TRF_ONTOLOGY_DEFS_NCO_FULLNAME, NULL);
#line 154 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
						_tmp72_ = sname;
#line 154 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
						if (_tmp72_ == NULL) {
#line 154 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
							_tmp71_ = TRUE;
#line 829 "name-details-interface.c"
						} else {
							FolksStructuredName* _tmp73_;
							gboolean _tmp74_ = FALSE;
#line 154 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
							_tmp73_ = sname;
#line 154 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
							_tmp74_ = folks_structured_name_is_empty (_tmp73_);
#line 154 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
							_tmp71_ = _tmp74_ == TRUE;
#line 839 "name-details-interface.c"
						}
#line 154 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
						_tmp75_ = _tmp71_;
#line 154 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
						g_assert (_tmp75_);
#line 845 "name-details-interface.c"
					}
				}
#line 115 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
				_g_object_unref0 (sname);
#line 850 "name-details-interface.c"
			}
#line 110 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			_g_free0 (full_name);
#line 110 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			_g_object_unref0 (i);
#line 856 "name-details-interface.c"
		}
#line 110 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_g_object_unref0 (_i_it);
#line 860 "name-details-interface.c"
	}
#line 159 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp77_ = self->priv->_c1;
#line 159 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp78_ = gee_map_get_size ((GeeMap*) _tmp77_);
#line 159 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp79_ = _tmp78_;
#line 159 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	if (_tmp79_ == 0) {
#line 870 "name-details-interface.c"
		GeeHashMap* _tmp80_;
		gint _tmp81_;
		gint _tmp82_;
#line 160 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_tmp80_ = self->priv->_c2;
#line 160 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_tmp81_ = gee_map_get_size ((GeeMap*) _tmp80_);
#line 160 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_tmp82_ = _tmp81_;
#line 160 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_tmp76_ = _tmp82_ == 0;
#line 882 "name-details-interface.c"
	} else {
#line 159 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_tmp76_ = FALSE;
#line 886 "name-details-interface.c"
	}
#line 159 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp83_ = _tmp76_;
#line 159 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	if (_tmp83_) {
#line 892 "name-details-interface.c"
		GMainLoop* _tmp84_;
#line 161 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_tmp84_ = self->priv->_main_loop;
#line 161 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		g_main_loop_quit (_tmp84_);
#line 898 "name-details-interface.c"
	}
#line 163 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp85_ = removed;
#line 163 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp86_ = gee_collection_get_size ((GeeCollection*) _tmp85_);
#line 163 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp87_ = _tmp86_;
#line 163 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	g_assert (_tmp87_ == 1);
#line 908 "name-details-interface.c"
	{
		GeeSet* _tmp88_;
		GeeIterator* _tmp89_ = NULL;
		GeeIterator* _i_it;
#line 165 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_tmp88_ = removed;
#line 165 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_tmp89_ = gee_iterable_iterator ((GeeIterable*) _tmp88_);
#line 165 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_i_it = _tmp89_;
#line 165 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		while (TRUE) {
#line 921 "name-details-interface.c"
			GeeIterator* _tmp90_;
			gboolean _tmp91_ = FALSE;
			GeeIterator* _tmp92_;
			gpointer _tmp93_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp94_;
#line 165 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			_tmp90_ = _i_it;
#line 165 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			_tmp91_ = gee_iterator_next (_tmp90_);
#line 165 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			if (!_tmp91_) {
#line 165 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
				break;
#line 936 "name-details-interface.c"
			}
#line 165 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			_tmp92_ = _i_it;
#line 165 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			_tmp93_ = gee_iterator_get (_tmp92_);
#line 165 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			i = (FolksIndividual*) _tmp93_;
#line 167 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			_tmp94_ = i;
#line 167 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			g_assert (_tmp94_ == NULL);
#line 165 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
			_g_object_unref0 (i);
#line 950 "name-details-interface.c"
		}
#line 165 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
		_g_object_unref0 (_i_it);
#line 954 "name-details-interface.c"
	}
#line 104 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_g_object_unref0 (removed);
#line 104 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_g_object_unref0 (added);
#line 960 "name-details-interface.c"
}


static void name_details_interface_tests_class_init (NameDetailsInterfaceTestsClass * klass) {
#line 26 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	name_details_interface_tests_parent_class = g_type_class_peek_parent (klass);
#line 26 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	g_type_class_add_private (klass, sizeof (NameDetailsInterfaceTestsPrivate));
#line 26 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = name_details_interface_tests_real_set_up;
#line 26 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = name_details_interface_tests_real_tear_down;
#line 26 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	G_OBJECT_CLASS (klass)->finalize = name_details_interface_tests_finalize;
#line 975 "name-details-interface.c"
}


static void name_details_interface_tests_instance_init (NameDetailsInterfaceTests * self) {
#line 26 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	self->priv = NAME_DETAILS_INTERFACE_TESTS_GET_PRIVATE (self);
#line 982 "name-details-interface.c"
}


static void name_details_interface_tests_finalize (GObject* obj) {
	NameDetailsInterfaceTests * self;
#line 26 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	self = NAME_DETAILS_INTERFACE_TESTS (obj);
#line 28 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 29 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 30 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 31 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_g_object_unref0 (self->priv->_c1);
#line 32 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_g_object_unref0 (self->priv->_c2);
#line 26 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	G_OBJECT_CLASS (name_details_interface_tests_parent_class)->finalize (obj);
#line 1002 "name-details-interface.c"
}


GType name_details_interface_tests_get_type (void) {
	static volatile gsize name_details_interface_tests_type_id__volatile = 0;
	if (g_once_init_enter (&name_details_interface_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (NameDetailsInterfaceTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) name_details_interface_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NameDetailsInterfaceTests), 0, (GInstanceInitFunc) name_details_interface_tests_instance_init, NULL };
		GType name_details_interface_tests_type_id;
		name_details_interface_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "NameDetailsInterfaceTests", &g_define_type_info, 0);
		g_once_init_leave (&name_details_interface_tests_type_id__volatile, name_details_interface_tests_type_id);
	}
	return name_details_interface_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	NameDetailsInterfaceTests* _tmp1_;
	NameDetailsInterfaceTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 174 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	g_test_init (&args_length1, &args, NULL);
#line 176 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp0_ = g_test_get_root ();
#line 176 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	root = _tmp0_;
#line 177 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp1_ = name_details_interface_tests_new ();
#line 177 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp2_ = _tmp1_;
#line 177 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 177 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 177 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	_g_object_unref0 (_tmp2_);
#line 179 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	g_test_run ();
#line 181 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	result = 0;
#line 181 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	return result;
#line 1047 "name-details-interface.c"
}


int main (int argc, char ** argv) {
#line 172 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	g_type_init ();
#line 172 "/home/treitter/collabora/folks/tests/tracker/name-details-interface.vala"
	return _vala_main (argv, argc);
#line 1056 "name-details-interface.c"
}



