/* duplicated-phones.c generated by valac 0.14.0.15-f8b5, the Vala compiler
 * generated from duplicated-phones.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_DUPLICATED_PHONES_TESTS (duplicated_phones_tests_get_type ())
#define DUPLICATED_PHONES_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DUPLICATED_PHONES_TESTS, DuplicatedPhonesTests))
#define DUPLICATED_PHONES_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DUPLICATED_PHONES_TESTS, DuplicatedPhonesTestsClass))
#define IS_DUPLICATED_PHONES_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DUPLICATED_PHONES_TESTS))
#define IS_DUPLICATED_PHONES_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DUPLICATED_PHONES_TESTS))
#define DUPLICATED_PHONES_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DUPLICATED_PHONES_TESTS, DuplicatedPhonesTestsClass))

typedef struct _DuplicatedPhonesTests DuplicatedPhonesTests;
typedef struct _DuplicatedPhonesTestsClass DuplicatedPhonesTestsClass;
typedef struct _DuplicatedPhonesTestsPrivate DuplicatedPhonesTestsPrivate;
#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 _DuplicatedPhonesTestsTestDuplicatedPhonesAsyncData DuplicatedPhonesTestsTestDuplicatedPhonesAsyncData;
typedef struct _DuplicatedPhonesTestsTryToAddData DuplicatedPhonesTestsTryToAddData;
#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 _DuplicatedPhonesTestsAddPersonasData DuplicatedPhonesTestsAddPersonasData;

struct _DuplicatedPhonesTests {
	FolksTestCase parent_instance;
	DuplicatedPhonesTestsPrivate * priv;
};

struct _DuplicatedPhonesTestsClass {
	FolksTestCaseClass parent_class;
};

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

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

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

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


static gpointer duplicated_phones_tests_parent_class = NULL;

GType duplicated_phones_tests_get_type (void) G_GNUC_CONST;
#define DUPLICATED_PHONES_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_DUPLICATED_PHONES_TESTS, DuplicatedPhonesTestsPrivate))
enum  {
	DUPLICATED_PHONES_TESTS_DUMMY_PROPERTY
};
DuplicatedPhonesTests* duplicated_phones_tests_new (void);
DuplicatedPhonesTests* duplicated_phones_tests_construct (GType object_type);
void duplicated_phones_tests_test_duplicated_phones (DuplicatedPhonesTests* self);
static void _duplicated_phones_tests_test_duplicated_phones_folks_test_case_test_method (gpointer self);
static void duplicated_phones_tests_real_set_up (FolksTestCase* base);
static void duplicated_phones_tests_real_tear_down (FolksTestCase* base);
static void _duplicated_phones_tests_test_duplicated_phones_async (DuplicatedPhonesTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _duplicated_phones_tests_test_duplicated_phones_finish (DuplicatedPhonesTests* self, GAsyncResult* _res_);
static gboolean __lambda2_ (DuplicatedPhonesTests* self);
static gboolean ___lambda2__gsource_func (gpointer self);
static void _duplicated_phones_tests_test_duplicated_phones_async_data_free (gpointer _data);
static gboolean _duplicated_phones_tests_test_duplicated_phones_async_co (DuplicatedPhonesTestsTestDuplicatedPhonesAsyncData* _data_);
static void _duplicated_phones_tests_test_duplicated_phones_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _duplicated_phones_tests_individuals_changed_cb (DuplicatedPhonesTests* self, GeeMultiMap* changes);
static void __duplicated_phones_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static void _duplicated_phones_tests_notify_pstore_cb (DuplicatedPhonesTests* self, GObject* _pstore, GParamSpec* ps);
static void __duplicated_phones_tests_notify_pstore_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void _duplicated_phones_tests_try_to_add (DuplicatedPhonesTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _duplicated_phones_tests_try_to_add_finish (DuplicatedPhonesTests* self, GAsyncResult* _res_);
static void _duplicated_phones_tests_try_to_add_data_free (gpointer _data);
static gboolean _duplicated_phones_tests_try_to_add_co (DuplicatedPhonesTestsTryToAddData* _data_);
static void _duplicated_phones_tests_add_personas (DuplicatedPhonesTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _duplicated_phones_tests_add_personas_finish (DuplicatedPhonesTests* self, GAsyncResult* _res_);
static void _duplicated_phones_tests_try_to_add_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _duplicated_phones_tests_add_personas_data_free (gpointer _data);
static gboolean _duplicated_phones_tests_add_personas_co (DuplicatedPhonesTestsAddPersonasData* _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 _duplicated_phones_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void duplicated_phones_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _duplicated_phones_tests_test_duplicated_phones_folks_test_case_test_method (gpointer self) {
#line 45 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	duplicated_phones_tests_test_duplicated_phones (self);
#line 262 "duplicated-phones.c"
}


DuplicatedPhonesTests* duplicated_phones_tests_construct (GType object_type) {
	DuplicatedPhonesTests * self = NULL;
	TrackerTestBackend* _tmp0_;
#line 41 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	self = (DuplicatedPhonesTests*) folks_test_case_construct (object_type, "DuplicatedPhonesTests");
#line 43 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp0_ = tracker_test_backend_new ();
#line 43 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 43 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	self->priv->_tracker_backend = _tmp0_;
#line 45 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test adding 2 personas with the same phone number ", _duplicated_phones_tests_test_duplicated_phones_folks_test_case_test_method, self);
#line 39 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	return self;
#line 281 "duplicated-phones.c"
}


DuplicatedPhonesTests* duplicated_phones_tests_new (void) {
#line 39 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	return duplicated_phones_tests_construct (TYPE_DUPLICATED_PHONES_TESTS);
#line 288 "duplicated-phones.c"
}


static void duplicated_phones_tests_real_set_up (FolksTestCase* base) {
	DuplicatedPhonesTests * self;
#line 49 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	self = (DuplicatedPhonesTests*) base;
#line 296 "duplicated-phones.c"
}


static void duplicated_phones_tests_real_tear_down (FolksTestCase* base) {
	DuplicatedPhonesTests * self;
	TrackerTestBackend* _tmp0_;
#line 53 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	self = (DuplicatedPhonesTests*) base;
#line 55 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp0_ = self->priv->_tracker_backend;
#line 55 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	tracker_test_backend_tear_down (_tmp0_);
#line 309 "duplicated-phones.c"
}


static gboolean __lambda2_ (DuplicatedPhonesTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 66 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp0_ = self->priv->_main_loop;
#line 66 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_main_loop_quit (_tmp0_);
#line 67 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_assert_not_reached ();
#line 64 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	return result;
#line 324 "duplicated-phones.c"
}


static gboolean ___lambda2__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda2_ (self);
#line 64 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	return result;
#line 333 "duplicated-phones.c"
}


void duplicated_phones_tests_test_duplicated_phones (DuplicatedPhonesTests* self) {
	GMainLoop* _tmp0_;
	GMainLoop* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
#line 58 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_return_if_fail (self != NULL);
#line 60 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 60 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 60 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	self->priv->_main_loop = _tmp0_;
#line 62 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_duplicated_phones_tests_test_duplicated_phones_async (self, NULL, NULL);
#line 64 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda2__gsource_func, g_object_ref (self), g_object_unref);
#line 70 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp1_ = self->priv->_main_loop;
#line 70 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_main_loop_run (_tmp1_);
#line 71 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp2_ = self->priv->_individual_id_1;
#line 71 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_assert (g_strcmp0 (_tmp2_, "") != 0);
#line 72 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp3_ = self->priv->_individual_id_2;
#line 72 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_assert (g_strcmp0 (_tmp3_, "") != 0);
#line 366 "duplicated-phones.c"
}


static void _duplicated_phones_tests_test_duplicated_phones_async_data_free (gpointer _data) {
	DuplicatedPhonesTestsTestDuplicatedPhonesAsyncData* _data_;
	_data_ = _data;
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_slice_free (DuplicatedPhonesTestsTestDuplicatedPhonesAsyncData, _data_);
#line 377 "duplicated-phones.c"
}


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


static void _duplicated_phones_tests_test_duplicated_phones_async (DuplicatedPhonesTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	DuplicatedPhonesTestsTestDuplicatedPhonesAsyncData* _data_;
	DuplicatedPhonesTests* _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_ = g_slice_new0 (DuplicatedPhonesTestsTestDuplicatedPhonesAsyncData);
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _duplicated_phones_tests_test_duplicated_phones_async);
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _duplicated_phones_tests_test_duplicated_phones_async_data_free);
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->self = _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_duplicated_phones_tests_test_duplicated_phones_async_co (_data_);
#line 403 "duplicated-phones.c"
}


static void _duplicated_phones_tests_test_duplicated_phones_finish (DuplicatedPhonesTests* self, GAsyncResult* _res_) {
	DuplicatedPhonesTestsTestDuplicatedPhonesAsyncData* _data_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 411 "duplicated-phones.c"
}


static void _duplicated_phones_tests_test_duplicated_phones_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	DuplicatedPhonesTestsTestDuplicatedPhonesAsyncData* _data_;
#line 78 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_ = _user_data_;
#line 78 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_source_object_ = source_object;
#line 78 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_res_ = _res_;
#line 78 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_duplicated_phones_tests_test_duplicated_phones_async_co (_data_);
#line 425 "duplicated-phones.c"
}


static void __duplicated_phones_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 80 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_duplicated_phones_tests_individuals_changed_cb (self, changes);
#line 432 "duplicated-phones.c"
}


static void __duplicated_phones_tests_notify_pstore_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 94 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_duplicated_phones_tests_notify_pstore_cb (self, _sender, pspec);
#line 439 "duplicated-phones.c"
}


static gboolean _duplicated_phones_tests_test_duplicated_phones_async_co (DuplicatedPhonesTestsTestDuplicatedPhonesAsyncData* _data_) {
#line 75 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	switch (_data_->_state_) {
#line 75 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		case 0:
#line 448 "duplicated-phones.c"
		goto _state_0;
#line 75 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		case 1:
#line 452 "duplicated-phones.c"
		goto _state_1;
#line 75 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		case 2:
#line 456 "duplicated-phones.c"
		goto _state_2;
		default:
#line 75 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		g_assert_not_reached ();
#line 461 "duplicated-phones.c"
	}
	_state_0:
#line 77 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp0_ = NULL;
#line 77 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 77 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->store = _data_->_tmp0_;
#line 78 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_state_ = 1;
#line 78 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	folks_backend_store_prepare (_data_->store, _duplicated_phones_tests_test_duplicated_phones_async_ready, _data_);
#line 78 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	return FALSE;
#line 476 "duplicated-phones.c"
	_state_1:
#line 78 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 79 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 79 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 79 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 80 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 80 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_signal_connect_object (_data_->_tmp2_, "individuals-changed-detailed", (GCallback) __duplicated_phones_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed, _data_->self, 0);
#line 490 "duplicated-phones.c"
	{
#line 84 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 84 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_state_ = 2;
#line 84 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		folks_individual_aggregator_prepare (_data_->_tmp3_, _duplicated_phones_tests_test_duplicated_phones_async_ready, _data_);
#line 84 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		return FALSE;
#line 500 "duplicated-phones.c"
		_state_2:
#line 84 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 84 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		if (_data_->_inner_error_ != NULL) {
#line 506 "duplicated-phones.c"
			goto __catch0_g_error;
		}
#line 85 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_g_object_unref0 (_data_->self->priv->_pstore);
#line 85 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->self->priv->_pstore = NULL;
#line 513 "duplicated-phones.c"
		{
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_data_->_tmp4_ = folks_backend_store_get_enabled_backends (_data_->store);
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_data_->_tmp5_ = _data_->_tmp4_;
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_data_->_tmp6_ = gee_map_get_values (_data_->_tmp5_);
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_data_->_tmp7_ = _data_->_tmp6_;
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_data_->_tmp8_ = _data_->_tmp7_;
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_data_->_tmp9_ = NULL;
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_data_->_tmp9_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp8_);
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_data_->_tmp10_ = _data_->_tmp9_;
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_g_object_unref0 (_data_->_tmp8_);
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_data_->_backend_it = _data_->_tmp10_;
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			while (TRUE) {
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_data_->_tmp11_ = _data_->_backend_it;
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_data_->_tmp12_ = FALSE;
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_data_->_tmp12_ = gee_iterator_next (_data_->_tmp11_);
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				if (!_data_->_tmp12_) {
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
					break;
#line 547 "duplicated-phones.c"
				}
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_data_->_tmp13_ = _data_->_backend_it;
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_data_->_tmp14_ = NULL;
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_data_->_tmp14_ = gee_iterator_get (_data_->_tmp13_);
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_data_->backend = (FolksBackend*) _data_->_tmp14_;
#line 88 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_data_->_tmp15_ = _data_->backend;
#line 88 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_data_->_tmp16_ = folks_backend_get_persona_stores (_data_->_tmp15_);
#line 88 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_data_->_tmp17_ = _data_->_tmp16_;
#line 88 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_data_->_tmp18_ = NULL;
#line 88 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_data_->_tmp18_ = gee_map_get (_data_->_tmp17_, "tracker");
#line 88 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_g_object_unref0 (_data_->self->priv->_pstore);
#line 88 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_data_->self->priv->_pstore = TRF_PERSONA_STORE ((FolksPersonaStore*) _data_->_tmp18_);
#line 90 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_data_->_tmp19_ = _data_->self->priv->_pstore;
#line 90 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				if (_data_->_tmp19_ != NULL) {
#line 91 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
					_g_object_unref0 (_data_->backend);
#line 91 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
					break;
#line 579 "duplicated-phones.c"
				}
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_g_object_unref0 (_data_->backend);
#line 583 "duplicated-phones.c"
			}
#line 86 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_g_object_unref0 (_data_->_backend_it);
#line 587 "duplicated-phones.c"
		}
#line 93 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp20_ = _data_->self->priv->_pstore;
#line 93 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		g_assert (_data_->_tmp20_ != NULL);
#line 94 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp21_ = _data_->self->priv->_pstore;
#line 94 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		g_signal_connect_object ((GObject*) _data_->_tmp21_, "notify::is-prepared", (GCallback) __duplicated_phones_tests_notify_pstore_cb_g_object_notify, _data_->self, 0);
#line 95 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_duplicated_phones_tests_try_to_add (_data_->self, NULL, NULL);
#line 599 "duplicated-phones.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 82 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->e = _data_->_inner_error_;
#line 82 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_inner_error_ = NULL;
#line 99 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp22_ = _data_->e;
#line 99 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp23_ = _data_->_tmp22_->message;
#line 99 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		g_warning ("duplicated-phones.vala:99: Error when calling prepare: %s\n", _data_->_tmp23_);
#line 82 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_g_error_free0 (_data_->e);
#line 616 "duplicated-phones.c"
	}
	__finally0:
#line 82 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	if (_data_->_inner_error_ != NULL) {
#line 82 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_g_object_unref0 (_data_->store);
#line 82 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.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 82 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		g_clear_error (&_data_->_inner_error_);
#line 82 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		return FALSE;
#line 629 "duplicated-phones.c"
	}
#line 75 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_object_unref0 (_data_->store);
#line 75 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	if (_data_->_state_ == 0) {
#line 75 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 637 "duplicated-phones.c"
	} else {
#line 75 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 641 "duplicated-phones.c"
	}
#line 75 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_object_unref (_data_->_async_result);
#line 75 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	return FALSE;
#line 647 "duplicated-phones.c"
}


static void _duplicated_phones_tests_individuals_changed_cb (DuplicatedPhonesTests* 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* _tmp32_;
	gint _tmp33_;
	gint _tmp34_;
#line 103 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_return_if_fail (self != NULL);
#line 103 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_return_if_fail (changes != NULL);
#line 106 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp0_ = changes;
#line 106 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 106 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	added = _tmp1_;
#line 107 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp2_ = changes;
#line 107 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 107 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	removed = _tmp3_;
#line 680 "duplicated-phones.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 109 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_tmp4_ = added;
#line 109 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 109 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_i_it = _tmp5_;
#line 109 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		while (TRUE) {
#line 693 "duplicated-phones.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 109 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_tmp6_ = _i_it;
#line 109 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 109 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			if (!_tmp7_) {
#line 109 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				break;
#line 712 "duplicated-phones.c"
			}
#line 109 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_tmp8_ = _i_it;
#line 109 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 109 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			i = (FolksIndividual*) _tmp9_;
#line 111 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_tmp10_ = i;
#line 111 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			g_assert (_tmp10_ != NULL);
#line 113 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_tmp11_ = i;
#line 113 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_tmp12_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp11_);
#line 113 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_tmp13_ = _tmp12_;
#line 113 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_tmp14_ = self->priv->_persona_fullname_1;
#line 113 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			if (g_strcmp0 (_tmp13_, _tmp14_) == 0) {
#line 734 "duplicated-phones.c"
				FolksIndividual* _tmp15_;
				const gchar* _tmp16_;
				const gchar* _tmp17_;
				gchar* _tmp18_;
#line 115 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_tmp15_ = i;
#line 115 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_tmp16_ = folks_individual_get_id (_tmp15_);
#line 115 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_tmp17_ = _tmp16_;
#line 115 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_tmp18_ = g_strdup (_tmp17_);
#line 115 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_g_free0 (self->priv->_individual_id_1);
#line 115 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				self->priv->_individual_id_1 = _tmp18_;
#line 751 "duplicated-phones.c"
			} else {
				FolksIndividual* _tmp19_;
				const gchar* _tmp20_;
				const gchar* _tmp21_;
				const gchar* _tmp22_;
#line 117 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_tmp19_ = i;
#line 117 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_tmp20_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp19_);
#line 117 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_tmp21_ = _tmp20_;
#line 117 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_tmp22_ = self->priv->_persona_fullname_2;
#line 117 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				if (g_strcmp0 (_tmp21_, _tmp22_) == 0) {
#line 767 "duplicated-phones.c"
					FolksIndividual* _tmp23_;
					const gchar* _tmp24_;
					const gchar* _tmp25_;
					gchar* _tmp26_;
#line 119 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
					_tmp23_ = i;
#line 119 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
					_tmp24_ = folks_individual_get_id (_tmp23_);
#line 119 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
					_tmp25_ = _tmp24_;
#line 119 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
					_tmp26_ = g_strdup (_tmp25_);
#line 119 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
					_g_free0 (self->priv->_individual_id_2);
#line 119 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
					self->priv->_individual_id_2 = _tmp26_;
#line 784 "duplicated-phones.c"
				}
			}
#line 109 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_g_object_unref0 (i);
#line 789 "duplicated-phones.c"
		}
#line 109 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_g_object_unref0 (_i_it);
#line 793 "duplicated-phones.c"
	}
#line 123 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp28_ = self->priv->_individual_id_1;
#line 123 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	if (g_strcmp0 (_tmp28_, "") != 0) {
#line 799 "duplicated-phones.c"
		const gchar* _tmp29_;
#line 124 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_tmp29_ = self->priv->_individual_id_2;
#line 124 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_tmp27_ = g_strcmp0 (_tmp29_, "") != 0;
#line 805 "duplicated-phones.c"
	} else {
#line 123 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_tmp27_ = FALSE;
#line 809 "duplicated-phones.c"
	}
#line 123 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp30_ = _tmp27_;
#line 123 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	if (_tmp30_) {
#line 815 "duplicated-phones.c"
		GMainLoop* _tmp31_;
#line 126 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_tmp31_ = self->priv->_main_loop;
#line 126 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		g_main_loop_quit (_tmp31_);
#line 821 "duplicated-phones.c"
	}
#line 129 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp32_ = removed;
#line 129 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp33_ = gee_collection_get_size ((GeeCollection*) _tmp32_);
#line 129 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp34_ = _tmp33_;
#line 129 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_assert (_tmp34_ == 1);
#line 831 "duplicated-phones.c"
	{
		GeeSet* _tmp35_;
		GeeIterator* _tmp36_ = NULL;
		GeeIterator* _i_it;
#line 131 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_tmp35_ = removed;
#line 131 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_tmp36_ = gee_iterable_iterator ((GeeIterable*) _tmp35_);
#line 131 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_i_it = _tmp36_;
#line 131 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		while (TRUE) {
#line 844 "duplicated-phones.c"
			GeeIterator* _tmp37_;
			gboolean _tmp38_ = FALSE;
			GeeIterator* _tmp39_;
			gpointer _tmp40_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp41_;
#line 131 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_tmp37_ = _i_it;
#line 131 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_tmp38_ = gee_iterator_next (_tmp37_);
#line 131 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			if (!_tmp38_) {
#line 131 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				break;
#line 859 "duplicated-phones.c"
			}
#line 131 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_tmp39_ = _i_it;
#line 131 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_tmp40_ = gee_iterator_get (_tmp39_);
#line 131 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			i = (FolksIndividual*) _tmp40_;
#line 133 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_tmp41_ = i;
#line 133 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			g_assert (_tmp41_ == NULL);
#line 131 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_g_object_unref0 (i);
#line 873 "duplicated-phones.c"
		}
#line 131 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_g_object_unref0 (_i_it);
#line 877 "duplicated-phones.c"
	}
#line 103 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_object_unref0 (removed);
#line 103 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_object_unref0 (added);
#line 883 "duplicated-phones.c"
}


static void _duplicated_phones_tests_notify_pstore_cb (DuplicatedPhonesTests* self, GObject* _pstore, GParamSpec* ps) {
#line 137 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_return_if_fail (self != NULL);
#line 137 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_return_if_fail (_pstore != NULL);
#line 137 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_return_if_fail (ps != NULL);
#line 139 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_duplicated_phones_tests_try_to_add (self, NULL, NULL);
#line 896 "duplicated-phones.c"
}


static void _duplicated_phones_tests_try_to_add_data_free (gpointer _data) {
	DuplicatedPhonesTestsTryToAddData* _data_;
	_data_ = _data;
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_slice_free (DuplicatedPhonesTestsTryToAddData, _data_);
#line 907 "duplicated-phones.c"
}


static void _duplicated_phones_tests_try_to_add (DuplicatedPhonesTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	DuplicatedPhonesTestsTryToAddData* _data_;
	DuplicatedPhonesTests* _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_ = g_slice_new0 (DuplicatedPhonesTestsTryToAddData);
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _duplicated_phones_tests_try_to_add);
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _duplicated_phones_tests_try_to_add_data_free);
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->self = _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_duplicated_phones_tests_try_to_add_co (_data_);
#line 926 "duplicated-phones.c"
}


static void _duplicated_phones_tests_try_to_add_finish (DuplicatedPhonesTests* self, GAsyncResult* _res_) {
	DuplicatedPhonesTestsTryToAddData* _data_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 934 "duplicated-phones.c"
}


static void _duplicated_phones_tests_try_to_add_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	DuplicatedPhonesTestsTryToAddData* _data_;
#line 150 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_ = _user_data_;
#line 150 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_source_object_ = source_object;
#line 150 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_res_ = _res_;
#line 150 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_duplicated_phones_tests_try_to_add_co (_data_);
#line 948 "duplicated-phones.c"
}


static gboolean _duplicated_phones_tests_try_to_add_co (DuplicatedPhonesTestsTryToAddData* _data_) {
#line 142 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	switch (_data_->_state_) {
#line 142 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		case 0:
#line 957 "duplicated-phones.c"
		goto _state_0;
#line 142 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		case 1:
#line 961 "duplicated-phones.c"
		goto _state_1;
		default:
#line 142 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		g_assert_not_reached ();
#line 966 "duplicated-phones.c"
	}
	_state_0:
	{
#line 144 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp0_ = _data_->self->priv->_added_personas;
#line 144 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		g_static_rec_mutex_lock (&_data_->self->priv->__lock__added_personas);
#line 974 "duplicated-phones.c"
		{
#line 146 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_data_->_tmp2_ = _data_->self->priv->_pstore;
#line 146 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_data_->_tmp3_ = folks_persona_store_get_is_prepared ((FolksPersonaStore*) _data_->_tmp2_);
#line 146 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_data_->_tmp4_ = _data_->_tmp3_;
#line 146 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			if (_data_->_tmp4_) {
#line 147 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_data_->_tmp5_ = _data_->self->priv->_added_personas;
#line 147 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_data_->_tmp1_ = _data_->_tmp5_ == FALSE;
#line 988 "duplicated-phones.c"
			} else {
#line 146 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_data_->_tmp1_ = FALSE;
#line 992 "duplicated-phones.c"
			}
#line 146 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_data_->_tmp6_ = _data_->_tmp1_;
#line 146 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			if (_data_->_tmp6_) {
#line 149 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_data_->self->priv->_added_personas = TRUE;
#line 150 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_data_->_state_ = 1;
#line 150 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_duplicated_phones_tests_add_personas (_data_->self, _duplicated_phones_tests_try_to_add_ready, _data_);
#line 150 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				return FALSE;
#line 1006 "duplicated-phones.c"
				_state_1:
#line 150 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
				_duplicated_phones_tests_add_personas_finish (_data_->self, _data_->_res_);
#line 1010 "duplicated-phones.c"
			}
		}
		__finally1:
		{
#line 144 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_data_->_tmp7_ = _data_->self->priv->_added_personas;
#line 144 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			g_static_rec_mutex_unlock (&_data_->self->priv->__lock__added_personas);
#line 1019 "duplicated-phones.c"
		}
#line 144 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		if (_data_->_inner_error_ != NULL) {
#line 144 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.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 144 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			g_clear_error (&_data_->_inner_error_);
#line 144 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			return FALSE;
#line 1029 "duplicated-phones.c"
		}
	}
#line 142 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	if (_data_->_state_ == 0) {
#line 142 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1036 "duplicated-phones.c"
	} else {
#line 142 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1040 "duplicated-phones.c"
	}
#line 142 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_object_unref (_data_->_async_result);
#line 142 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	return FALSE;
#line 1046 "duplicated-phones.c"
}


static void _duplicated_phones_tests_add_personas_data_free (gpointer _data) {
	DuplicatedPhonesTestsAddPersonasData* _data_;
	_data_ = _data;
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_slice_free (DuplicatedPhonesTestsAddPersonasData, _data_);
#line 1057 "duplicated-phones.c"
}


static void _duplicated_phones_tests_add_personas (DuplicatedPhonesTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	DuplicatedPhonesTestsAddPersonasData* _data_;
	DuplicatedPhonesTests* _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_ = g_slice_new0 (DuplicatedPhonesTestsAddPersonasData);
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _duplicated_phones_tests_add_personas);
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _duplicated_phones_tests_add_personas_data_free);
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->self = _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_duplicated_phones_tests_add_personas_co (_data_);
#line 1076 "duplicated-phones.c"
}


static void _duplicated_phones_tests_add_personas_finish (DuplicatedPhonesTests* self, GAsyncResult* _res_) {
	DuplicatedPhonesTestsAddPersonasData* _data_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1084 "duplicated-phones.c"
}


/**
   * Add 2 personas with the same phone number. Although
   * Tracker forbids creating inserting 2 nco:PhoneNumber,
   * using the same nco:phoneNumber, our Trf.PersonaStore should
   * be able to detect the existence of a given Phone Number and
   * re-use that instead of trying to create a new one.
   */
static void _g_free0_ (gpointer var) {
#line 164 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	var = (g_free (var), NULL);
#line 1098 "duplicated-phones.c"
}


static void _vala_GValue_free (GValue* self) {
#line 164 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_value_unset (self);
#line 164 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_free (self);
#line 1107 "duplicated-phones.c"
}


static void __vala_GValue_free0_ (gpointer var) {
#line 164 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	(var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL));
#line 1114 "duplicated-phones.c"
}


static GValue* _g_value_dup (GValue* self) {
#line 170 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	return g_boxed_copy (G_TYPE_VALUE, self);
#line 1121 "duplicated-phones.c"
}


static gpointer __g_value_dup0 (gpointer self) {
#line 170 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	return self ? _g_value_dup (self) : NULL;
#line 1128 "duplicated-phones.c"
}


static void _duplicated_phones_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	DuplicatedPhonesTestsAddPersonasData* _data_;
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_ = _user_data_;
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_source_object_ = source_object;
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_res_ = _res_;
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_duplicated_phones_tests_add_personas_co (_data_);
#line 1142 "duplicated-phones.c"
}


static gboolean _duplicated_phones_tests_add_personas_co (DuplicatedPhonesTestsAddPersonasData* _data_) {
#line 162 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	switch (_data_->_state_) {
#line 162 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		case 0:
#line 1151 "duplicated-phones.c"
		goto _state_0;
#line 162 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		case 1:
#line 1155 "duplicated-phones.c"
		goto _state_1;
#line 162 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		case 2:
#line 1159 "duplicated-phones.c"
		goto _state_2;
		default:
#line 162 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		g_assert_not_reached ();
#line 1164 "duplicated-phones.c"
	}
	_state_0:
#line 164 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp0_ = g_str_hash;
#line 164 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp1_ = g_str_equal;
#line 164 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp2_ = g_hash_table_new_full (_data_->_tmp0_, _data_->_tmp1_, _g_free0_, __vala_GValue_free0_);
#line 164 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->details1 = _data_->_tmp2_;
#line 166 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp3_ = g_str_hash;
#line 166 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp4_ = g_str_equal;
#line 166 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp5_ = g_hash_table_new_full (_data_->_tmp3_, _data_->_tmp4_, _g_free0_, __vala_GValue_free0_);
#line 166 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->details2 = _data_->_tmp5_;
#line 170 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	memset (&_data_->_tmp6_, 0, sizeof (GValue));
#line 170 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_value_init (&_data_->_tmp6_, G_TYPE_STRING);
#line 170 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp7_ = _data_->_tmp6_;
#line 170 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp8_ = __g_value_dup0 (&_data_->_tmp7_);
#line 170 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	__vala_GValue_free0 (_data_->val);
#line 170 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->val = _data_->_tmp8_;
#line 170 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	G_IS_VALUE (&_data_->_tmp7_) ? (g_value_unset (&_data_->_tmp7_), NULL) : NULL;
#line 171 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp9_ = _data_->val;
#line 171 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp10_ = _data_->self->priv->_persona_fullname_1;
#line 171 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_value_set_string (_data_->_tmp9_, _data_->_tmp10_);
#line 172 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp11_ = _data_->details1;
#line 172 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp12_ = NULL;
#line 172 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp12_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_FULL_NAME);
#line 172 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp13_ = g_strdup (_data_->_tmp12_);
#line 172 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp14_ = _data_->val;
#line 172 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->val = NULL;
#line 172 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_hash_table_insert (_data_->_tmp11_, _data_->_tmp13_, _data_->_tmp14_);
#line 175 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	memset (&_data_->_tmp15_, 0, sizeof (GValue));
#line 175 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_value_init (&_data_->_tmp15_, GEE_TYPE_SET);
#line 175 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp16_ = _data_->_tmp15_;
#line 175 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp17_ = __g_value_dup0 (&_data_->_tmp16_);
#line 175 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	__vala_GValue_free0 (_data_->val);
#line 175 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->val = _data_->_tmp17_;
#line 175 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	G_IS_VALUE (&_data_->_tmp16_) ? (g_value_unset (&_data_->_tmp16_), NULL) : NULL;
#line 176 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp18_ = gee_hash_set_new (FOLKS_TYPE_PHONE_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
#line 176 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->phones1 = _data_->_tmp18_;
#line 179 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp19_ = _data_->self->priv->_phone_1;
#line 179 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp20_ = folks_phone_field_details_new (_data_->_tmp19_, NULL);
#line 179 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->phone_1 = _data_->_tmp20_;
#line 180 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp21_ = _data_->phones1;
#line 180 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp22_ = _data_->phone_1;
#line 180 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp21_, _data_->_tmp22_);
#line 181 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp23_ = _data_->val;
#line 181 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp24_ = _data_->phones1;
#line 181 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_value_set_object (_data_->_tmp23_, (GObject*) _data_->_tmp24_);
#line 182 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp25_ = _data_->details1;
#line 182 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp26_ = NULL;
#line 182 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp26_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_PHONE_NUMBERS);
#line 182 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp27_ = g_strdup (_data_->_tmp26_);
#line 182 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp28_ = _data_->val;
#line 182 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->val = NULL;
#line 182 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_hash_table_insert (_data_->_tmp25_, _data_->_tmp27_, _data_->_tmp28_);
#line 186 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	memset (&_data_->_tmp29_, 0, sizeof (GValue));
#line 186 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_value_init (&_data_->_tmp29_, G_TYPE_STRING);
#line 186 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp30_ = _data_->_tmp29_;
#line 186 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp31_ = __g_value_dup0 (&_data_->_tmp30_);
#line 186 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	__vala_GValue_free0 (_data_->val);
#line 186 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->val = _data_->_tmp31_;
#line 186 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	G_IS_VALUE (&_data_->_tmp30_) ? (g_value_unset (&_data_->_tmp30_), NULL) : NULL;
#line 187 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp32_ = _data_->val;
#line 187 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp33_ = _data_->self->priv->_persona_fullname_2;
#line 187 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_value_set_string (_data_->_tmp32_, _data_->_tmp33_);
#line 188 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp34_ = _data_->details2;
#line 188 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp35_ = NULL;
#line 188 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp35_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_FULL_NAME);
#line 188 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp36_ = g_strdup (_data_->_tmp35_);
#line 188 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp37_ = _data_->val;
#line 188 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->val = NULL;
#line 188 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_hash_table_insert (_data_->_tmp34_, _data_->_tmp36_, _data_->_tmp37_);
#line 191 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	memset (&_data_->_tmp38_, 0, sizeof (GValue));
#line 191 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_value_init (&_data_->_tmp38_, GEE_TYPE_SET);
#line 191 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp39_ = _data_->_tmp38_;
#line 191 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp40_ = __g_value_dup0 (&_data_->_tmp39_);
#line 191 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	__vala_GValue_free0 (_data_->val);
#line 191 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->val = _data_->_tmp40_;
#line 191 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	G_IS_VALUE (&_data_->_tmp39_) ? (g_value_unset (&_data_->_tmp39_), NULL) : NULL;
#line 192 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp41_ = gee_hash_set_new (FOLKS_TYPE_PHONE_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
#line 192 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->phones2 = _data_->_tmp41_;
#line 195 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp42_ = _data_->self->priv->_phone_1;
#line 195 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp43_ = folks_phone_field_details_new (_data_->_tmp42_, NULL);
#line 195 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->phone_2 = _data_->_tmp43_;
#line 196 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp44_ = _data_->phones2;
#line 196 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp45_ = _data_->phone_2;
#line 196 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp44_, _data_->_tmp45_);
#line 197 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp46_ = _data_->val;
#line 197 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp47_ = _data_->phones2;
#line 197 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_value_set_object (_data_->_tmp46_, (GObject*) _data_->_tmp47_);
#line 198 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp48_ = _data_->details2;
#line 198 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp49_ = NULL;
#line 198 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp49_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_PHONE_NUMBERS);
#line 198 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp50_ = g_strdup (_data_->_tmp49_);
#line 198 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->_tmp51_ = _data_->val;
#line 198 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_data_->val = NULL;
#line 198 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_hash_table_insert (_data_->_tmp48_, _data_->_tmp50_, _data_->_tmp51_);
#line 1351 "duplicated-phones.c"
	{
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp52_ = _data_->self->priv->_aggregator;
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp53_ = _data_->self->priv->_pstore;
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp54_ = _data_->details1;
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_state_ = 1;
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp52_, NULL, (FolksPersonaStore*) _data_->_tmp53_, _data_->_tmp54_, _duplicated_phones_tests_add_personas_ready, _data_);
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		return FALSE;
#line 1365 "duplicated-phones.c"
		_state_1:
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp55_ = NULL;
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp55_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp52_, _data_->_res_, &_data_->_inner_error_);
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp56_ = _data_->_tmp55_;
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_g_object_unref0 (_data_->_tmp56_);
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		if (_data_->_inner_error_ != NULL) {
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1379 "duplicated-phones.c"
				goto __catch2_folks_individual_aggregator_error;
			}
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_g_object_unref0 (_data_->phone_2);
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_g_object_unref0 (_data_->phones2);
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_g_object_unref0 (_data_->phone_1);
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_g_object_unref0 (_data_->phones1);
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			__vala_GValue_free0 (_data_->val);
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.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 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			g_clear_error (&_data_->_inner_error_);
#line 204 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			return FALSE;
#line 1402 "duplicated-phones.c"
		}
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp57_ = _data_->self->priv->_aggregator;
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp58_ = _data_->self->priv->_pstore;
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp59_ = _data_->details2;
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_state_ = 2;
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp57_, NULL, (FolksPersonaStore*) _data_->_tmp58_, _data_->_tmp59_, _duplicated_phones_tests_add_personas_ready, _data_);
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		return FALSE;
#line 1416 "duplicated-phones.c"
		_state_2:
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp60_ = NULL;
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp60_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp57_, _data_->_res_, &_data_->_inner_error_);
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp61_ = _data_->_tmp60_;
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_g_object_unref0 (_data_->_tmp61_);
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		if (_data_->_inner_error_ != NULL) {
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1430 "duplicated-phones.c"
				goto __catch2_folks_individual_aggregator_error;
			}
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_g_object_unref0 (_data_->phone_2);
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_g_object_unref0 (_data_->phones2);
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_g_object_unref0 (_data_->phone_1);
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_g_object_unref0 (_data_->phones1);
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			__vala_GValue_free0 (_data_->val);
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_g_hash_table_unref0 (_data_->details2);
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.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 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			g_clear_error (&_data_->_inner_error_);
#line 207 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
			return FALSE;
#line 1453 "duplicated-phones.c"
		}
	}
	goto __finally2;
	__catch2_folks_individual_aggregator_error:
	{
#line 202 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->e = _data_->_inner_error_;
#line 202 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_inner_error_ = NULL;
#line 212 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp62_ = _data_->e;
#line 212 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_data_->_tmp63_ = _data_->_tmp62_->message;
#line 212 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		g_warning ("duplicated-phones.vala:212: [AddPersonaError] add_persona_from_details" \
": %s\n", _data_->_tmp63_);
#line 202 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_g_error_free0 (_data_->e);
#line 1471 "duplicated-phones.c"
	}
	__finally2:
#line 202 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	if (_data_->_inner_error_ != NULL) {
#line 202 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_g_object_unref0 (_data_->phone_2);
#line 202 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_g_object_unref0 (_data_->phones2);
#line 202 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_g_object_unref0 (_data_->phone_1);
#line 202 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_g_object_unref0 (_data_->phones1);
#line 202 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		__vala_GValue_free0 (_data_->val);
#line 202 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_g_hash_table_unref0 (_data_->details2);
#line 202 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		_g_hash_table_unref0 (_data_->details1);
#line 202 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.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 202 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		g_clear_error (&_data_->_inner_error_);
#line 202 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		return FALSE;
#line 1496 "duplicated-phones.c"
	}
#line 162 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_object_unref0 (_data_->phone_2);
#line 162 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_object_unref0 (_data_->phones2);
#line 162 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_object_unref0 (_data_->phone_1);
#line 162 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_object_unref0 (_data_->phones1);
#line 162 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	__vala_GValue_free0 (_data_->val);
#line 162 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_hash_table_unref0 (_data_->details2);
#line 162 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_hash_table_unref0 (_data_->details1);
#line 162 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	if (_data_->_state_ == 0) {
#line 162 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1516 "duplicated-phones.c"
	} else {
#line 162 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1520 "duplicated-phones.c"
	}
#line 162 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_object_unref (_data_->_async_result);
#line 162 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	return FALSE;
#line 1526 "duplicated-phones.c"
}


static void duplicated_phones_tests_class_init (DuplicatedPhonesTestsClass * klass) {
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	duplicated_phones_tests_parent_class = g_type_class_peek_parent (klass);
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_type_class_add_private (klass, sizeof (DuplicatedPhonesTestsPrivate));
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = duplicated_phones_tests_real_set_up;
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = duplicated_phones_tests_real_tear_down;
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	G_OBJECT_CLASS (klass)->finalize = duplicated_phones_tests_finalize;
#line 1541 "duplicated-phones.c"
}


static void duplicated_phones_tests_instance_init (DuplicatedPhonesTests * self) {
	gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	self->priv = DUPLICATED_PHONES_TESTS_GET_PRIVATE (self);
#line 31 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp0_ = g_strdup ("persona #1");
#line 31 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	self->priv->_persona_fullname_1 = _tmp0_;
#line 32 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp1_ = g_strdup ("persona #2");
#line 32 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	self->priv->_persona_fullname_2 = _tmp1_;
#line 33 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp2_ = g_strdup ("1-800-123-456");
#line 33 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	self->priv->_phone_1 = _tmp2_;
#line 34 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_static_rec_mutex_init (&self->priv->__lock__added_personas);
#line 34 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	self->priv->_added_personas = FALSE;
#line 35 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp3_ = g_strdup ("");
#line 35 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	self->priv->_individual_id_1 = _tmp3_;
#line 36 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp4_ = g_strdup ("");
#line 36 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	self->priv->_individual_id_2 = _tmp4_;
#line 1577 "duplicated-phones.c"
}


static void duplicated_phones_tests_finalize (GObject* obj) {
	DuplicatedPhonesTests * self;
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	self = DUPLICATED_PHONES_TESTS (obj);
#line 28 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 29 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 30 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 31 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_free0 (self->priv->_persona_fullname_1);
#line 32 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_free0 (self->priv->_persona_fullname_2);
#line 33 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_free0 (self->priv->_phone_1);
#line 34 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_static_rec_mutex_free (&self->priv->__lock__added_personas);
#line 35 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_free0 (self->priv->_individual_id_1);
#line 36 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_free0 (self->priv->_individual_id_2);
#line 37 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_object_unref0 (self->priv->_pstore);
#line 26 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	G_OBJECT_CLASS (duplicated_phones_tests_parent_class)->finalize (obj);
#line 1607 "duplicated-phones.c"
}


GType duplicated_phones_tests_get_type (void) {
	static volatile gsize duplicated_phones_tests_type_id__volatile = 0;
	if (g_once_init_enter (&duplicated_phones_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (DuplicatedPhonesTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) duplicated_phones_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DuplicatedPhonesTests), 0, (GInstanceInitFunc) duplicated_phones_tests_instance_init, NULL };
		GType duplicated_phones_tests_type_id;
		duplicated_phones_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "DuplicatedPhonesTests", &g_define_type_info, 0);
		g_once_init_leave (&duplicated_phones_tests_type_id__volatile, duplicated_phones_tests_type_id);
	}
	return duplicated_phones_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	DuplicatedPhonesTests* _tmp1_;
	DuplicatedPhonesTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 220 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_test_init (&args_length1, &args, NULL);
#line 222 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp0_ = g_test_get_root ();
#line 222 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	root = _tmp0_;
#line 223 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp1_ = duplicated_phones_tests_new ();
#line 223 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp2_ = _tmp1_;
#line 223 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 223 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 223 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	_g_object_unref0 (_tmp2_);
#line 225 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_test_run ();
#line 227 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	result = 0;
#line 227 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	return result;
#line 1652 "duplicated-phones.c"
}


int main (int argc, char ** argv) {
#line 218 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	g_type_init ();
#line 218 "/home/treitter/collabora/folks/tests/tracker/duplicated-phones.vala"
	return _vala_main (argv, argc);
#line 1661 "duplicated-phones.c"
}



