/* set-duplicate-email.c generated by valac 0.14.0.15-f8b5, the Vala compiler
 * generated from set-duplicate-email.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_SET_DUPLICATE_EMAIL_TESTS (set_duplicate_email_tests_get_type ())
#define SET_DUPLICATE_EMAIL_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_DUPLICATE_EMAIL_TESTS, SetDuplicateEmailTests))
#define SET_DUPLICATE_EMAIL_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_DUPLICATE_EMAIL_TESTS, SetDuplicateEmailTestsClass))
#define IS_SET_DUPLICATE_EMAIL_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_DUPLICATE_EMAIL_TESTS))
#define IS_SET_DUPLICATE_EMAIL_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_DUPLICATE_EMAIL_TESTS))
#define SET_DUPLICATE_EMAIL_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_DUPLICATE_EMAIL_TESTS, SetDuplicateEmailTestsClass))

typedef struct _SetDuplicateEmailTests SetDuplicateEmailTests;
typedef struct _SetDuplicateEmailTestsClass SetDuplicateEmailTestsClass;
typedef struct _SetDuplicateEmailTestsPrivate SetDuplicateEmailTestsPrivate;
#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 _SetDuplicateEmailTestsTestSetDuplicateEmailAsyncData SetDuplicateEmailTestsTestSetDuplicateEmailAsyncData;
typedef struct _SetDuplicateEmailTestsTryToAddData SetDuplicateEmailTestsTryToAddData;
#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 _SetDuplicateEmailTestsAddPersonasData SetDuplicateEmailTestsAddPersonasData;

struct _SetDuplicateEmailTests {
	FolksTestCase parent_instance;
	SetDuplicateEmailTestsPrivate * priv;
};

struct _SetDuplicateEmailTestsClass {
	FolksTestCaseClass parent_class;
};

struct _SetDuplicateEmailTestsPrivate {
	GMainLoop* _main_loop;
	TrackerTestBackend* _tracker_backend;
	FolksIndividualAggregator* _aggregator;
	gchar* _persona_fullname_1;
	gchar* _email_1;
	gboolean _added_personas;
	GStaticRecMutex __lock__added_personas;
	TrfPersonaStore* _pstore;
	gboolean _email_found;
};

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

struct _SetDuplicateEmailTestsAddPersonasData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	SetDuplicateEmailTests* self;
	GHashFunc _tmp0_;
	GEqualFunc _tmp1_;
	GHashTable* _tmp2_;
	GHashTable* details1;
	GValue* val;
	GValue _tmp3_;
	GValue _tmp4_;
	GValue* _tmp5_;
	GValue* _tmp6_;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	gchar* _tmp9_;
	GValue* _tmp10_;
	GValue _tmp11_;
	GValue _tmp12_;
	GValue* _tmp13_;
	GeeHashSet* _tmp14_;
	GeeHashSet* emails1;
	const gchar* _tmp15_;
	FolksEmailFieldDetails* _tmp16_;
	FolksEmailFieldDetails* email_1;
	GValue* _tmp17_;
	const gchar* _tmp18_;
	gchar* _tmp19_;
	GValue* _tmp20_;
	FolksIndividualAggregator* _tmp21_;
	TrfPersonaStore* _tmp22_;
	FolksPersona* _tmp23_;
	FolksPersona* _tmp24_;
	GError* e;
	GError* _tmp25_;
	const gchar* _tmp26_;
	GError * _inner_error_;
};


static gpointer set_duplicate_email_tests_parent_class = NULL;

GType set_duplicate_email_tests_get_type (void) G_GNUC_CONST;
#define SET_DUPLICATE_EMAIL_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SET_DUPLICATE_EMAIL_TESTS, SetDuplicateEmailTestsPrivate))
enum  {
	SET_DUPLICATE_EMAIL_TESTS_DUMMY_PROPERTY
};
SetDuplicateEmailTests* set_duplicate_email_tests_new (void);
SetDuplicateEmailTests* set_duplicate_email_tests_construct (GType object_type);
void set_duplicate_email_tests_test_set_duplicate_email (SetDuplicateEmailTests* self);
static void _set_duplicate_email_tests_test_set_duplicate_email_folks_test_case_test_method (gpointer self);
static void set_duplicate_email_tests_real_set_up (FolksTestCase* base);
static void set_duplicate_email_tests_real_tear_down (FolksTestCase* base);
static void _set_duplicate_email_tests_test_set_duplicate_email_async (SetDuplicateEmailTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _set_duplicate_email_tests_test_set_duplicate_email_finish (SetDuplicateEmailTests* self, GAsyncResult* _res_);
static gboolean __lambda2_ (SetDuplicateEmailTests* self);
static gboolean ___lambda2__gsource_func (gpointer self);
static void _set_duplicate_email_tests_test_set_duplicate_email_async_data_free (gpointer _data);
static gboolean _set_duplicate_email_tests_test_set_duplicate_email_async_co (SetDuplicateEmailTestsTestSetDuplicateEmailAsyncData* _data_);
static void _set_duplicate_email_tests_test_set_duplicate_email_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _set_duplicate_email_tests_individuals_changed_cb (SetDuplicateEmailTests* self, GeeMultiMap* changes);
static void __set_duplicate_email_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static void _set_duplicate_email_tests_notify_pstore_cb (SetDuplicateEmailTests* self, GObject* _pstore, GParamSpec* ps);
static void __set_duplicate_email_tests_notify_pstore_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void _set_duplicate_email_tests_try_to_add (SetDuplicateEmailTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _set_duplicate_email_tests_try_to_add_finish (SetDuplicateEmailTests* self, GAsyncResult* _res_);
static void _set_duplicate_email_tests_reset_email_address (SetDuplicateEmailTests* self, FolksIndividual* i);
static gboolean _set_duplicate_email_tests_has_email (SetDuplicateEmailTests* self, TrfPersona* persona, const gchar* email);
static void _set_duplicate_email_tests_email_addresses_cb (SetDuplicateEmailTests* self, GObject* p, GParamSpec* ps);
static void __set_duplicate_email_tests_email_addresses_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void _set_duplicate_email_tests_try_to_add_data_free (gpointer _data);
static gboolean _set_duplicate_email_tests_try_to_add_co (SetDuplicateEmailTestsTryToAddData* _data_);
static void _set_duplicate_email_tests_add_personas (SetDuplicateEmailTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _set_duplicate_email_tests_add_personas_finish (SetDuplicateEmailTests* self, GAsyncResult* _res_);
static void _set_duplicate_email_tests_try_to_add_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _set_duplicate_email_tests_add_personas_data_free (gpointer _data);
static gboolean _set_duplicate_email_tests_add_personas_co (SetDuplicateEmailTestsAddPersonasData* _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 _set_duplicate_email_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void set_duplicate_email_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _set_duplicate_email_tests_test_set_duplicate_email_folks_test_case_test_method (gpointer self) {
#line 43 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	set_duplicate_email_tests_test_set_duplicate_email (self);
#line 224 "set-duplicate-email.c"
}


SetDuplicateEmailTests* set_duplicate_email_tests_construct (GType object_type) {
	SetDuplicateEmailTests * self = NULL;
	TrackerTestBackend* _tmp0_;
#line 39 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	self = (SetDuplicateEmailTests*) folks_test_case_construct (object_type, "SetDuplicateEmailTests");
#line 41 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp0_ = tracker_test_backend_new ();
#line 41 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 41 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	self->priv->_tracker_backend = _tmp0_;
#line 43 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test re-setting an existing e-mail address", _set_duplicate_email_tests_test_set_duplicate_email_folks_test_case_test_method, self);
#line 37 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	return self;
#line 243 "set-duplicate-email.c"
}


SetDuplicateEmailTests* set_duplicate_email_tests_new (void) {
#line 37 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	return set_duplicate_email_tests_construct (TYPE_SET_DUPLICATE_EMAIL_TESTS);
#line 250 "set-duplicate-email.c"
}


static void set_duplicate_email_tests_real_set_up (FolksTestCase* base) {
	SetDuplicateEmailTests * self;
#line 47 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	self = (SetDuplicateEmailTests*) base;
#line 258 "set-duplicate-email.c"
}


static void set_duplicate_email_tests_real_tear_down (FolksTestCase* base) {
	SetDuplicateEmailTests * self;
	TrackerTestBackend* _tmp0_;
#line 51 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	self = (SetDuplicateEmailTests*) base;
#line 53 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp0_ = self->priv->_tracker_backend;
#line 53 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	tracker_test_backend_tear_down (_tmp0_);
#line 271 "set-duplicate-email.c"
}


static gboolean __lambda2_ (SetDuplicateEmailTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 65 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp0_ = self->priv->_main_loop;
#line 65 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_main_loop_quit (_tmp0_);
#line 66 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_assert_not_reached ();
#line 63 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	return result;
#line 286 "set-duplicate-email.c"
}


static gboolean ___lambda2__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda2_ (self);
#line 63 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	return result;
#line 295 "set-duplicate-email.c"
}


void set_duplicate_email_tests_test_set_duplicate_email (SetDuplicateEmailTests* self) {
	GMainLoop* _tmp0_;
	GMainLoop* _tmp1_;
	gboolean _tmp2_;
#line 56 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_return_if_fail (self != NULL);
#line 58 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 58 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 58 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	self->priv->_main_loop = _tmp0_;
#line 60 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	self->priv->_email_found = FALSE;
#line 61 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_set_duplicate_email_tests_test_set_duplicate_email_async (self, NULL, NULL);
#line 63 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda2__gsource_func, g_object_ref (self), g_object_unref);
#line 69 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp1_ = self->priv->_main_loop;
#line 69 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_main_loop_run (_tmp1_);
#line 73 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp2_ = self->priv->_email_found;
#line 73 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_assert (_tmp2_ == TRUE);
#line 325 "set-duplicate-email.c"
}


static void _set_duplicate_email_tests_test_set_duplicate_email_async_data_free (gpointer _data) {
	SetDuplicateEmailTestsTestSetDuplicateEmailAsyncData* _data_;
	_data_ = _data;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_slice_free (SetDuplicateEmailTestsTestSetDuplicateEmailAsyncData, _data_);
#line 336 "set-duplicate-email.c"
}


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


static void _set_duplicate_email_tests_test_set_duplicate_email_async (SetDuplicateEmailTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	SetDuplicateEmailTestsTestSetDuplicateEmailAsyncData* _data_;
	SetDuplicateEmailTests* _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_ = g_slice_new0 (SetDuplicateEmailTestsTestSetDuplicateEmailAsyncData);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _set_duplicate_email_tests_test_set_duplicate_email_async);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _set_duplicate_email_tests_test_set_duplicate_email_async_data_free);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->self = _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_set_duplicate_email_tests_test_set_duplicate_email_async_co (_data_);
#line 362 "set-duplicate-email.c"
}


static void _set_duplicate_email_tests_test_set_duplicate_email_finish (SetDuplicateEmailTests* self, GAsyncResult* _res_) {
	SetDuplicateEmailTestsTestSetDuplicateEmailAsyncData* _data_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 370 "set-duplicate-email.c"
}


static void _set_duplicate_email_tests_test_set_duplicate_email_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	SetDuplicateEmailTestsTestSetDuplicateEmailAsyncData* _data_;
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_ = _user_data_;
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_source_object_ = source_object;
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_res_ = _res_;
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_set_duplicate_email_tests_test_set_duplicate_email_async_co (_data_);
#line 384 "set-duplicate-email.c"
}


static void __set_duplicate_email_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 81 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_set_duplicate_email_tests_individuals_changed_cb (self, changes);
#line 391 "set-duplicate-email.c"
}


static void __set_duplicate_email_tests_notify_pstore_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 95 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_set_duplicate_email_tests_notify_pstore_cb (self, _sender, pspec);
#line 398 "set-duplicate-email.c"
}


static gboolean _set_duplicate_email_tests_test_set_duplicate_email_async_co (SetDuplicateEmailTestsTestSetDuplicateEmailAsyncData* _data_) {
#line 76 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	switch (_data_->_state_) {
#line 76 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		case 0:
#line 407 "set-duplicate-email.c"
		goto _state_0;
#line 76 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		case 1:
#line 411 "set-duplicate-email.c"
		goto _state_1;
#line 76 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		case 2:
#line 415 "set-duplicate-email.c"
		goto _state_2;
		default:
#line 76 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		g_assert_not_reached ();
#line 420 "set-duplicate-email.c"
	}
	_state_0:
#line 78 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp0_ = NULL;
#line 78 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 78 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->store = _data_->_tmp0_;
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_state_ = 1;
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	folks_backend_store_prepare (_data_->store, _set_duplicate_email_tests_test_set_duplicate_email_async_ready, _data_);
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	return FALSE;
#line 435 "set-duplicate-email.c"
	_state_1:
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 80 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 80 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 80 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 81 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 81 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_signal_connect_object (_data_->_tmp2_, "individuals-changed-detailed", (GCallback) __set_duplicate_email_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed, _data_->self, 0);
#line 449 "set-duplicate-email.c"
	{
#line 85 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 85 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->_state_ = 2;
#line 85 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		folks_individual_aggregator_prepare (_data_->_tmp3_, _set_duplicate_email_tests_test_set_duplicate_email_async_ready, _data_);
#line 85 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		return FALSE;
#line 459 "set-duplicate-email.c"
		_state_2:
#line 85 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 85 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		if (_data_->_inner_error_ != NULL) {
#line 465 "set-duplicate-email.c"
			goto __catch0_g_error;
		}
#line 86 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_g_object_unref0 (_data_->self->priv->_pstore);
#line 86 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->self->priv->_pstore = NULL;
#line 472 "set-duplicate-email.c"
		{
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_data_->_tmp4_ = folks_backend_store_get_enabled_backends (_data_->store);
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_data_->_tmp5_ = _data_->_tmp4_;
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_data_->_tmp6_ = gee_map_get_values (_data_->_tmp5_);
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_data_->_tmp7_ = _data_->_tmp6_;
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_data_->_tmp8_ = _data_->_tmp7_;
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_data_->_tmp9_ = NULL;
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_data_->_tmp9_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp8_);
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_data_->_tmp10_ = _data_->_tmp9_;
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_g_object_unref0 (_data_->_tmp8_);
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_data_->_backend_it = _data_->_tmp10_;
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			while (TRUE) {
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_data_->_tmp11_ = _data_->_backend_it;
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_data_->_tmp12_ = FALSE;
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_data_->_tmp12_ = gee_iterator_next (_data_->_tmp11_);
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				if (!_data_->_tmp12_) {
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
					break;
#line 506 "set-duplicate-email.c"
				}
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_data_->_tmp13_ = _data_->_backend_it;
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_data_->_tmp14_ = NULL;
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_data_->_tmp14_ = gee_iterator_get (_data_->_tmp13_);
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_data_->backend = (FolksBackend*) _data_->_tmp14_;
#line 89 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_data_->_tmp15_ = _data_->backend;
#line 89 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_data_->_tmp16_ = folks_backend_get_persona_stores (_data_->_tmp15_);
#line 89 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_data_->_tmp17_ = _data_->_tmp16_;
#line 89 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_data_->_tmp18_ = NULL;
#line 89 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_data_->_tmp18_ = gee_map_get (_data_->_tmp17_, "tracker");
#line 89 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_g_object_unref0 (_data_->self->priv->_pstore);
#line 89 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_data_->self->priv->_pstore = TRF_PERSONA_STORE ((FolksPersonaStore*) _data_->_tmp18_);
#line 91 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_data_->_tmp19_ = _data_->self->priv->_pstore;
#line 91 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				if (_data_->_tmp19_ != NULL) {
#line 92 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
					_g_object_unref0 (_data_->backend);
#line 92 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
					break;
#line 538 "set-duplicate-email.c"
				}
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_g_object_unref0 (_data_->backend);
#line 542 "set-duplicate-email.c"
			}
#line 87 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_g_object_unref0 (_data_->_backend_it);
#line 546 "set-duplicate-email.c"
		}
#line 94 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->_tmp20_ = _data_->self->priv->_pstore;
#line 94 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		g_assert (_data_->_tmp20_ != NULL);
#line 95 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->_tmp21_ = _data_->self->priv->_pstore;
#line 95 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		g_signal_connect_object ((GObject*) _data_->_tmp21_, "notify::is-prepared", (GCallback) __set_duplicate_email_tests_notify_pstore_cb_g_object_notify, _data_->self, 0);
#line 96 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_set_duplicate_email_tests_try_to_add (_data_->self, NULL, NULL);
#line 558 "set-duplicate-email.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 83 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->e = _data_->_inner_error_;
#line 83 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->_inner_error_ = NULL;
#line 100 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->_tmp22_ = _data_->e;
#line 100 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->_tmp23_ = _data_->_tmp22_->message;
#line 100 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		g_warning ("set-duplicate-email.vala:100: Error when calling prepare: %s\n", _data_->_tmp23_);
#line 83 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_g_error_free0 (_data_->e);
#line 575 "set-duplicate-email.c"
	}
	__finally0:
#line 83 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	if (_data_->_inner_error_ != NULL) {
#line 83 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_g_object_unref0 (_data_->store);
#line 83 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.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 83 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		g_clear_error (&_data_->_inner_error_);
#line 83 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		return FALSE;
#line 588 "set-duplicate-email.c"
	}
#line 76 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_g_object_unref0 (_data_->store);
#line 76 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	if (_data_->_state_ == 0) {
#line 76 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 596 "set-duplicate-email.c"
	} else {
#line 76 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 600 "set-duplicate-email.c"
	}
#line 76 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_object_unref (_data_->_async_result);
#line 76 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	return FALSE;
#line 606 "set-duplicate-email.c"
}


static void _set_duplicate_email_tests_individuals_changed_cb (SetDuplicateEmailTests* self, GeeMultiMap* changes) {
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
	GeeSet* _tmp16_;
	gint _tmp17_;
	gint _tmp18_;
#line 104 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_return_if_fail (self != NULL);
#line 104 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_return_if_fail (changes != NULL);
#line 107 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp0_ = changes;
#line 107 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 107 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	added = _tmp1_;
#line 108 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp2_ = changes;
#line 108 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 108 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	removed = _tmp3_;
#line 636 "set-duplicate-email.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 110 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_tmp4_ = added;
#line 110 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 110 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_i_it = _tmp5_;
#line 110 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		while (TRUE) {
#line 649 "set-duplicate-email.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 110 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp6_ = _i_it;
#line 110 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 110 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			if (!_tmp7_) {
#line 110 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				break;
#line 668 "set-duplicate-email.c"
			}
#line 110 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp8_ = _i_it;
#line 110 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 110 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			i = (FolksIndividual*) _tmp9_;
#line 112 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp10_ = i;
#line 112 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			g_assert (_tmp10_ != NULL);
#line 114 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp11_ = i;
#line 114 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp12_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp11_);
#line 114 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp13_ = _tmp12_;
#line 114 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp14_ = self->priv->_persona_fullname_1;
#line 114 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			if (g_strcmp0 (_tmp13_, _tmp14_) == 0) {
#line 690 "set-duplicate-email.c"
				FolksIndividual* _tmp15_;
#line 116 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_tmp15_ = i;
#line 116 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_set_duplicate_email_tests_reset_email_address (self, _tmp15_);
#line 696 "set-duplicate-email.c"
			}
#line 110 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_g_object_unref0 (i);
#line 700 "set-duplicate-email.c"
		}
#line 110 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_g_object_unref0 (_i_it);
#line 704 "set-duplicate-email.c"
	}
#line 120 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp16_ = removed;
#line 120 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp17_ = gee_collection_get_size ((GeeCollection*) _tmp16_);
#line 120 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp18_ = _tmp17_;
#line 120 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_assert (_tmp18_ == 1);
#line 714 "set-duplicate-email.c"
	{
		GeeSet* _tmp19_;
		GeeIterator* _tmp20_ = NULL;
		GeeIterator* _i_it;
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_tmp19_ = removed;
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_tmp20_ = gee_iterable_iterator ((GeeIterable*) _tmp19_);
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_i_it = _tmp20_;
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		while (TRUE) {
#line 727 "set-duplicate-email.c"
			GeeIterator* _tmp21_;
			gboolean _tmp22_ = FALSE;
			GeeIterator* _tmp23_;
			gpointer _tmp24_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp25_;
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp21_ = _i_it;
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp22_ = gee_iterator_next (_tmp21_);
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			if (!_tmp22_) {
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				break;
#line 742 "set-duplicate-email.c"
			}
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp23_ = _i_it;
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp24_ = gee_iterator_get (_tmp23_);
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			i = (FolksIndividual*) _tmp24_;
#line 124 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp25_ = i;
#line 124 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			g_assert (_tmp25_ == NULL);
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_g_object_unref0 (i);
#line 756 "set-duplicate-email.c"
		}
#line 122 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_g_object_unref0 (_i_it);
#line 760 "set-duplicate-email.c"
	}
#line 104 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_g_object_unref0 (removed);
#line 104 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_g_object_unref0 (added);
#line 766 "set-duplicate-email.c"
}


static void __set_duplicate_email_tests_email_addresses_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 140 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_set_duplicate_email_tests_email_addresses_cb (self, _sender, pspec);
#line 773 "set-duplicate-email.c"
}


static void _set_duplicate_email_tests_reset_email_address (SetDuplicateEmailTests* self, FolksIndividual* i) {
#line 128 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_return_if_fail (self != NULL);
#line 128 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_return_if_fail (i != NULL);
#line 782 "set-duplicate-email.c"
	{
		FolksIndividual* _tmp0_;
		GeeSet* _tmp1_;
		GeeSet* _tmp2_;
		GeeIterator* _tmp3_ = NULL;
		GeeIterator* _p_it;
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_tmp0_ = i;
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_tmp1_ = folks_individual_get_personas (_tmp0_);
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_tmp2_ = _tmp1_;
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_tmp3_ = gee_iterable_iterator ((GeeIterable*) _tmp2_);
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_p_it = _tmp3_;
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		while (TRUE) {
#line 801 "set-duplicate-email.c"
			GeeIterator* _tmp4_;
			gboolean _tmp5_ = FALSE;
			GeeIterator* _tmp6_;
			gpointer _tmp7_ = NULL;
			FolksPersona* p;
			FolksPersona* _tmp8_;
			const gchar* _tmp9_;
			gboolean _tmp10_ = FALSE;
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp4_ = _p_it;
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp5_ = gee_iterator_next (_tmp4_);
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			if (!_tmp5_) {
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				break;
#line 818 "set-duplicate-email.c"
			}
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp6_ = _p_it;
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp7_ = gee_iterator_get (_tmp6_);
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			p = (FolksPersona*) _tmp7_;
#line 132 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp8_ = p;
#line 132 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp9_ = self->priv->_email_1;
#line 132 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp10_ = _set_duplicate_email_tests_has_email (self, TRF_PERSONA (_tmp8_), _tmp9_);
#line 132 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			if (_tmp10_) {
#line 834 "set-duplicate-email.c"
				GeeHashSet* _tmp11_;
				GeeHashSet* emails1;
				const gchar* _tmp12_;
				FolksEmailFieldDetails* _tmp13_;
				FolksEmailFieldDetails* email_1;
				GeeHashSet* _tmp14_;
				FolksEmailFieldDetails* _tmp15_;
				FolksPersona* _tmp16_;
				GeeHashSet* _tmp17_;
				FolksPersona* _tmp18_;
#line 134 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_tmp11_ = gee_hash_set_new (FOLKS_TYPE_EMAIL_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
#line 134 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				emails1 = _tmp11_;
#line 137 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_tmp12_ = self->priv->_email_1;
#line 137 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_tmp13_ = folks_email_field_details_new (_tmp12_, NULL);
#line 137 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				email_1 = _tmp13_;
#line 138 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_tmp14_ = emails1;
#line 138 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_tmp15_ = email_1;
#line 138 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp14_, _tmp15_);
#line 139 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_tmp16_ = p;
#line 139 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_tmp17_ = emails1;
#line 139 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				folks_email_details_set_email_addresses (FOLKS_EMAIL_DETAILS (_tmp16_), (GeeSet*) _tmp17_);
#line 140 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_tmp18_ = p;
#line 140 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				g_signal_connect_object ((GObject*) _tmp18_, "notify::email-addresses", (GCallback) __set_duplicate_email_tests_email_addresses_cb_g_object_notify, self, 0);
#line 132 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_g_object_unref0 (email_1);
#line 132 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_g_object_unref0 (emails1);
#line 875 "set-duplicate-email.c"
			}
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_g_object_unref0 (p);
#line 879 "set-duplicate-email.c"
		}
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_g_object_unref0 (_p_it);
#line 883 "set-duplicate-email.c"
	}
}


static void _set_duplicate_email_tests_email_addresses_cb (SetDuplicateEmailTests* self, GObject* p, GParamSpec* ps) {
	GObject* _tmp0_;
	TrfPersona* _tmp1_;
	TrfPersona* persona;
	TrfPersona* _tmp2_;
	const gchar* _tmp3_;
	gboolean _tmp4_ = FALSE;
#line 145 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_return_if_fail (self != NULL);
#line 145 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_return_if_fail (p != NULL);
#line 145 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_return_if_fail (ps != NULL);
#line 147 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp0_ = p;
#line 147 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp1_ = _g_object_ref0 (TRF_PERSONA (_tmp0_));
#line 147 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	persona = _tmp1_;
#line 148 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp2_ = persona;
#line 148 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp3_ = self->priv->_email_1;
#line 148 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp4_ = _set_duplicate_email_tests_has_email (self, _tmp2_, _tmp3_);
#line 148 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	if (_tmp4_) {
#line 915 "set-duplicate-email.c"
		GMainLoop* _tmp5_;
#line 150 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		self->priv->_email_found = TRUE;
#line 151 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_tmp5_ = self->priv->_main_loop;
#line 151 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		g_main_loop_quit (_tmp5_);
#line 923 "set-duplicate-email.c"
	}
#line 145 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_g_object_unref0 (persona);
#line 927 "set-duplicate-email.c"
}


static gboolean _set_duplicate_email_tests_has_email (SetDuplicateEmailTests* self, TrfPersona* persona, const gchar* email) {
	gboolean result = FALSE;
	TrfPersona* _tmp0_;
	GeeSet* _tmp1_;
	GeeSet* _tmp2_;
#line 155 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 155 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_return_val_if_fail (persona != NULL, FALSE);
#line 155 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_return_val_if_fail (email != NULL, FALSE);
#line 157 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp0_ = persona;
#line 157 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp1_ = folks_email_details_get_email_addresses ((FolksEmailDetails*) _tmp0_);
#line 157 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp2_ = _tmp1_;
#line 157 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	if (_tmp2_ != NULL) {
#line 950 "set-duplicate-email.c"
		{
			TrfPersona* _tmp3_;
			GeeSet* _tmp4_;
			GeeSet* _tmp5_;
			GeeIterator* _tmp6_ = NULL;
			GeeIterator* _fd_it;
#line 159 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp3_ = persona;
#line 159 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp4_ = folks_email_details_get_email_addresses ((FolksEmailDetails*) _tmp3_);
#line 159 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp5_ = _tmp4_;
#line 159 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_tmp6_ = gee_iterable_iterator ((GeeIterable*) _tmp5_);
#line 159 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_fd_it = _tmp6_;
#line 159 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			while (TRUE) {
#line 969 "set-duplicate-email.c"
				GeeIterator* _tmp7_;
				gboolean _tmp8_ = FALSE;
				GeeIterator* _tmp9_;
				gpointer _tmp10_ = NULL;
				FolksEmailFieldDetails* fd;
				FolksEmailFieldDetails* _tmp11_;
				gconstpointer _tmp12_;
				const gchar* _tmp13_;
				const gchar* _tmp14_;
#line 159 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_tmp7_ = _fd_it;
#line 159 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_tmp8_ = gee_iterator_next (_tmp7_);
#line 159 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				if (!_tmp8_) {
#line 159 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
					break;
#line 987 "set-duplicate-email.c"
				}
#line 159 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_tmp9_ = _fd_it;
#line 159 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_tmp10_ = gee_iterator_get (_tmp9_);
#line 159 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				fd = (FolksEmailFieldDetails*) _tmp10_;
#line 161 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_tmp11_ = fd;
#line 161 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_tmp12_ = folks_abstract_field_details_get_value ((FolksAbstractFieldDetails*) _tmp11_);
#line 161 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_tmp13_ = _tmp12_;
#line 161 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_tmp14_ = email;
#line 161 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				if (g_strcmp0 ((const gchar*) _tmp13_, _tmp14_) == 0) {
#line 163 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
					result = TRUE;
#line 163 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
					_g_object_unref0 (fd);
#line 163 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
					_g_object_unref0 (_fd_it);
#line 163 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
					return result;
#line 1013 "set-duplicate-email.c"
				}
#line 159 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_g_object_unref0 (fd);
#line 1017 "set-duplicate-email.c"
			}
#line 159 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_g_object_unref0 (_fd_it);
#line 1021 "set-duplicate-email.c"
		}
	}
#line 168 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	result = FALSE;
#line 168 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	return result;
#line 1028 "set-duplicate-email.c"
}


static void _set_duplicate_email_tests_notify_pstore_cb (SetDuplicateEmailTests* self, GObject* _pstore, GParamSpec* ps) {
#line 171 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_return_if_fail (self != NULL);
#line 171 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_return_if_fail (_pstore != NULL);
#line 171 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_return_if_fail (ps != NULL);
#line 173 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_set_duplicate_email_tests_try_to_add (self, NULL, NULL);
#line 1041 "set-duplicate-email.c"
}


static void _set_duplicate_email_tests_try_to_add_data_free (gpointer _data) {
	SetDuplicateEmailTestsTryToAddData* _data_;
	_data_ = _data;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_slice_free (SetDuplicateEmailTestsTryToAddData, _data_);
#line 1052 "set-duplicate-email.c"
}


static void _set_duplicate_email_tests_try_to_add (SetDuplicateEmailTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	SetDuplicateEmailTestsTryToAddData* _data_;
	SetDuplicateEmailTests* _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_ = g_slice_new0 (SetDuplicateEmailTestsTryToAddData);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _set_duplicate_email_tests_try_to_add);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _set_duplicate_email_tests_try_to_add_data_free);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->self = _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_set_duplicate_email_tests_try_to_add_co (_data_);
#line 1071 "set-duplicate-email.c"
}


static void _set_duplicate_email_tests_try_to_add_finish (SetDuplicateEmailTests* self, GAsyncResult* _res_) {
	SetDuplicateEmailTestsTryToAddData* _data_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1079 "set-duplicate-email.c"
}


static void _set_duplicate_email_tests_try_to_add_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	SetDuplicateEmailTestsTryToAddData* _data_;
#line 184 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_ = _user_data_;
#line 184 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_source_object_ = source_object;
#line 184 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_res_ = _res_;
#line 184 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_set_duplicate_email_tests_try_to_add_co (_data_);
#line 1093 "set-duplicate-email.c"
}


static gboolean _set_duplicate_email_tests_try_to_add_co (SetDuplicateEmailTestsTryToAddData* _data_) {
#line 176 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	switch (_data_->_state_) {
#line 176 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		case 0:
#line 1102 "set-duplicate-email.c"
		goto _state_0;
#line 176 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		case 1:
#line 1106 "set-duplicate-email.c"
		goto _state_1;
		default:
#line 176 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		g_assert_not_reached ();
#line 1111 "set-duplicate-email.c"
	}
	_state_0:
	{
#line 178 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->_tmp0_ = _data_->self->priv->_added_personas;
#line 178 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		g_static_rec_mutex_lock (&_data_->self->priv->__lock__added_personas);
#line 1119 "set-duplicate-email.c"
		{
#line 180 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_data_->_tmp2_ = _data_->self->priv->_pstore;
#line 180 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_data_->_tmp3_ = folks_persona_store_get_is_prepared ((FolksPersonaStore*) _data_->_tmp2_);
#line 180 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_data_->_tmp4_ = _data_->_tmp3_;
#line 180 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			if (_data_->_tmp4_) {
#line 181 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_data_->_tmp5_ = _data_->self->priv->_added_personas;
#line 181 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_data_->_tmp1_ = _data_->_tmp5_ == FALSE;
#line 1133 "set-duplicate-email.c"
			} else {
#line 180 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_data_->_tmp1_ = FALSE;
#line 1137 "set-duplicate-email.c"
			}
#line 180 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_data_->_tmp6_ = _data_->_tmp1_;
#line 180 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			if (_data_->_tmp6_) {
#line 183 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_data_->self->priv->_added_personas = TRUE;
#line 184 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_data_->_state_ = 1;
#line 184 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_set_duplicate_email_tests_add_personas (_data_->self, _set_duplicate_email_tests_try_to_add_ready, _data_);
#line 184 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				return FALSE;
#line 1151 "set-duplicate-email.c"
				_state_1:
#line 184 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
				_set_duplicate_email_tests_add_personas_finish (_data_->self, _data_->_res_);
#line 1155 "set-duplicate-email.c"
			}
		}
		__finally1:
		{
#line 178 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_data_->_tmp7_ = _data_->self->priv->_added_personas;
#line 178 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			g_static_rec_mutex_unlock (&_data_->self->priv->__lock__added_personas);
#line 1164 "set-duplicate-email.c"
		}
#line 178 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		if (_data_->_inner_error_ != NULL) {
#line 178 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.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 178 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			g_clear_error (&_data_->_inner_error_);
#line 178 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			return FALSE;
#line 1174 "set-duplicate-email.c"
		}
	}
#line 176 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	if (_data_->_state_ == 0) {
#line 176 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1181 "set-duplicate-email.c"
	} else {
#line 176 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1185 "set-duplicate-email.c"
	}
#line 176 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_object_unref (_data_->_async_result);
#line 176 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	return FALSE;
#line 1191 "set-duplicate-email.c"
}


static void _set_duplicate_email_tests_add_personas_data_free (gpointer _data) {
	SetDuplicateEmailTestsAddPersonasData* _data_;
	_data_ = _data;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_slice_free (SetDuplicateEmailTestsAddPersonasData, _data_);
#line 1202 "set-duplicate-email.c"
}


static void _set_duplicate_email_tests_add_personas (SetDuplicateEmailTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	SetDuplicateEmailTestsAddPersonasData* _data_;
	SetDuplicateEmailTests* _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_ = g_slice_new0 (SetDuplicateEmailTestsAddPersonasData);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _set_duplicate_email_tests_add_personas);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _set_duplicate_email_tests_add_personas_data_free);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->self = _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_set_duplicate_email_tests_add_personas_co (_data_);
#line 1221 "set-duplicate-email.c"
}


static void _set_duplicate_email_tests_add_personas_finish (SetDuplicateEmailTests* self, GAsyncResult* _res_) {
	SetDuplicateEmailTestsAddPersonasData* _data_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1229 "set-duplicate-email.c"
}


/**
   * Add 1 persona and once we've seen it try to re-set it's
   * e-mail address (the Tracker backend should figure it already
   * exist so we don't bump into a constraint error).
   * See https://bugzilla.gnome.org/show_bug.cgi?id=647331 */
static void _g_free0_ (gpointer var) {
#line 196 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	var = (g_free (var), NULL);
#line 1241 "set-duplicate-email.c"
}


static void _vala_GValue_free (GValue* self) {
#line 196 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_value_unset (self);
#line 196 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_free (self);
#line 1250 "set-duplicate-email.c"
}


static void __vala_GValue_free0_ (gpointer var) {
#line 196 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	(var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL));
#line 1257 "set-duplicate-email.c"
}


static GValue* _g_value_dup (GValue* self) {
#line 200 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	return g_boxed_copy (G_TYPE_VALUE, self);
#line 1264 "set-duplicate-email.c"
}


static gpointer __g_value_dup0 (gpointer self) {
#line 200 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	return self ? _g_value_dup (self) : NULL;
#line 1271 "set-duplicate-email.c"
}


static void _set_duplicate_email_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	SetDuplicateEmailTestsAddPersonasData* _data_;
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_ = _user_data_;
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_source_object_ = source_object;
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_res_ = _res_;
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_set_duplicate_email_tests_add_personas_co (_data_);
#line 1285 "set-duplicate-email.c"
}


static gboolean _set_duplicate_email_tests_add_personas_co (SetDuplicateEmailTestsAddPersonasData* _data_) {
#line 194 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	switch (_data_->_state_) {
#line 194 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		case 0:
#line 1294 "set-duplicate-email.c"
		goto _state_0;
#line 194 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		case 1:
#line 1298 "set-duplicate-email.c"
		goto _state_1;
		default:
#line 194 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		g_assert_not_reached ();
#line 1303 "set-duplicate-email.c"
	}
	_state_0:
#line 196 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp0_ = g_str_hash;
#line 196 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp1_ = g_str_equal;
#line 196 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp2_ = g_hash_table_new_full (_data_->_tmp0_, _data_->_tmp1_, _g_free0_, __vala_GValue_free0_);
#line 196 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->details1 = _data_->_tmp2_;
#line 200 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	memset (&_data_->_tmp3_, 0, sizeof (GValue));
#line 200 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_value_init (&_data_->_tmp3_, G_TYPE_STRING);
#line 200 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 200 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp5_ = __g_value_dup0 (&_data_->_tmp4_);
#line 200 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	__vala_GValue_free0 (_data_->val);
#line 200 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->val = _data_->_tmp5_;
#line 200 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	G_IS_VALUE (&_data_->_tmp4_) ? (g_value_unset (&_data_->_tmp4_), NULL) : NULL;
#line 201 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp6_ = _data_->val;
#line 201 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp7_ = _data_->self->priv->_persona_fullname_1;
#line 201 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_value_set_string (_data_->_tmp6_, _data_->_tmp7_);
#line 202 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp8_ = NULL;
#line 202 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp8_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_FULL_NAME);
#line 202 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp9_ = g_strdup (_data_->_tmp8_);
#line 202 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp10_ = _data_->val;
#line 202 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->val = NULL;
#line 202 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_hash_table_insert (_data_->details1, _data_->_tmp9_, _data_->_tmp10_);
#line 205 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	memset (&_data_->_tmp11_, 0, sizeof (GValue));
#line 205 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_value_init (&_data_->_tmp11_, GEE_TYPE_SET);
#line 205 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp12_ = _data_->_tmp11_;
#line 205 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp13_ = __g_value_dup0 (&_data_->_tmp12_);
#line 205 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	__vala_GValue_free0 (_data_->val);
#line 205 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->val = _data_->_tmp13_;
#line 205 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	G_IS_VALUE (&_data_->_tmp12_) ? (g_value_unset (&_data_->_tmp12_), NULL) : NULL;
#line 206 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp14_ = gee_hash_set_new (FOLKS_TYPE_EMAIL_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GHashFunc) folks_abstract_field_details_hash, (GEqualFunc) folks_abstract_field_details_equal);
#line 206 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->emails1 = _data_->_tmp14_;
#line 209 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp15_ = _data_->self->priv->_email_1;
#line 209 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp16_ = folks_email_field_details_new (_data_->_tmp15_, NULL);
#line 209 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->email_1 = _data_->_tmp16_;
#line 210 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->emails1, _data_->email_1);
#line 211 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp17_ = _data_->val;
#line 211 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_value_set_object (_data_->_tmp17_, (GObject*) _data_->emails1);
#line 212 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp18_ = NULL;
#line 212 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp18_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_EMAIL_ADDRESSES);
#line 212 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp19_ = g_strdup (_data_->_tmp18_);
#line 212 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->_tmp20_ = _data_->val;
#line 212 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_data_->val = NULL;
#line 212 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_hash_table_insert (_data_->details1, _data_->_tmp19_, _data_->_tmp20_);
#line 1388 "set-duplicate-email.c"
	{
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->_tmp21_ = _data_->self->priv->_aggregator;
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->_tmp22_ = _data_->self->priv->_pstore;
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->_state_ = 1;
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		folks_individual_aggregator_add_persona_from_details (_data_->_tmp21_, NULL, (FolksPersonaStore*) _data_->_tmp22_, _data_->details1, _set_duplicate_email_tests_add_personas_ready, _data_);
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		return FALSE;
#line 1400 "set-duplicate-email.c"
		_state_1:
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->_tmp23_ = NULL;
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->_tmp23_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp21_, _data_->_res_, &_data_->_inner_error_);
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->_tmp24_ = _data_->_tmp23_;
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_g_object_unref0 (_data_->_tmp24_);
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		if (_data_->_inner_error_ != NULL) {
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 1414 "set-duplicate-email.c"
				goto __catch2_folks_individual_aggregator_error;
			}
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_g_object_unref0 (_data_->email_1);
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_g_object_unref0 (_data_->emails1);
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			__vala_GValue_free0 (_data_->val);
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			_g_hash_table_unref0 (_data_->details1);
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.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 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			g_clear_error (&_data_->_inner_error_);
#line 218 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
			return FALSE;
#line 1431 "set-duplicate-email.c"
		}
	}
	goto __finally2;
	__catch2_folks_individual_aggregator_error:
	{
#line 216 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->e = _data_->_inner_error_;
#line 216 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->_inner_error_ = NULL;
#line 223 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->_tmp25_ = _data_->e;
#line 223 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_data_->_tmp26_ = _data_->_tmp25_->message;
#line 223 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		g_warning ("set-duplicate-email.vala:223: [AddPersonaError] add_persona_from_detai" \
"ls: %s\n", _data_->_tmp26_);
#line 216 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_g_error_free0 (_data_->e);
#line 1449 "set-duplicate-email.c"
	}
	__finally2:
#line 216 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	if (_data_->_inner_error_ != NULL) {
#line 216 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_g_object_unref0 (_data_->email_1);
#line 216 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_g_object_unref0 (_data_->emails1);
#line 216 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		__vala_GValue_free0 (_data_->val);
#line 216 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		_g_hash_table_unref0 (_data_->details1);
#line 216 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.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 216 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		g_clear_error (&_data_->_inner_error_);
#line 216 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		return FALSE;
#line 1468 "set-duplicate-email.c"
	}
#line 194 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_g_object_unref0 (_data_->email_1);
#line 194 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_g_object_unref0 (_data_->emails1);
#line 194 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	__vala_GValue_free0 (_data_->val);
#line 194 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_g_hash_table_unref0 (_data_->details1);
#line 194 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	if (_data_->_state_ == 0) {
#line 194 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1482 "set-duplicate-email.c"
	} else {
#line 194 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1486 "set-duplicate-email.c"
	}
#line 194 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_object_unref (_data_->_async_result);
#line 194 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	return FALSE;
#line 1492 "set-duplicate-email.c"
}


static void set_duplicate_email_tests_class_init (SetDuplicateEmailTestsClass * klass) {
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	set_duplicate_email_tests_parent_class = g_type_class_peek_parent (klass);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_type_class_add_private (klass, sizeof (SetDuplicateEmailTestsPrivate));
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = set_duplicate_email_tests_real_set_up;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = set_duplicate_email_tests_real_tear_down;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	G_OBJECT_CLASS (klass)->finalize = set_duplicate_email_tests_finalize;
#line 1507 "set-duplicate-email.c"
}


static void set_duplicate_email_tests_instance_init (SetDuplicateEmailTests * self) {
	gchar* _tmp0_;
	gchar* _tmp1_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	self->priv = SET_DUPLICATE_EMAIL_TESTS_GET_PRIVATE (self);
#line 31 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp0_ = g_strdup ("persona #1");
#line 31 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	self->priv->_persona_fullname_1 = _tmp0_;
#line 32 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp1_ = g_strdup ("some-address@example.org");
#line 32 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	self->priv->_email_1 = _tmp1_;
#line 33 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_static_rec_mutex_init (&self->priv->__lock__added_personas);
#line 33 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	self->priv->_added_personas = FALSE;
#line 1528 "set-duplicate-email.c"
}


static void set_duplicate_email_tests_finalize (GObject* obj) {
	SetDuplicateEmailTests * self;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	self = SET_DUPLICATE_EMAIL_TESTS (obj);
#line 28 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 29 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 30 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 31 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_g_free0 (self->priv->_persona_fullname_1);
#line 32 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_g_free0 (self->priv->_email_1);
#line 33 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_static_rec_mutex_free (&self->priv->__lock__added_personas);
#line 34 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_g_object_unref0 (self->priv->_pstore);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	G_OBJECT_CLASS (set_duplicate_email_tests_parent_class)->finalize (obj);
#line 1552 "set-duplicate-email.c"
}


GType set_duplicate_email_tests_get_type (void) {
	static volatile gsize set_duplicate_email_tests_type_id__volatile = 0;
	if (g_once_init_enter (&set_duplicate_email_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (SetDuplicateEmailTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_duplicate_email_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetDuplicateEmailTests), 0, (GInstanceInitFunc) set_duplicate_email_tests_instance_init, NULL };
		GType set_duplicate_email_tests_type_id;
		set_duplicate_email_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "SetDuplicateEmailTests", &g_define_type_info, 0);
		g_once_init_leave (&set_duplicate_email_tests_type_id__volatile, set_duplicate_email_tests_type_id);
	}
	return set_duplicate_email_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	SetDuplicateEmailTests* _tmp1_;
	SetDuplicateEmailTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 231 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_test_init (&args_length1, &args, NULL);
#line 233 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp0_ = g_test_get_root ();
#line 233 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	root = _tmp0_;
#line 234 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp1_ = set_duplicate_email_tests_new ();
#line 234 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp2_ = _tmp1_;
#line 234 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 234 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 234 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	_g_object_unref0 (_tmp2_);
#line 236 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_test_run ();
#line 238 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	result = 0;
#line 238 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	return result;
#line 1597 "set-duplicate-email.c"
}


int main (int argc, char ** argv) {
#line 229 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	g_type_init ();
#line 229 "/home/treitter/collabora/folks/tests/tracker/set-duplicate-email.vala"
	return _vala_main (argv, argc);
#line 1606 "set-duplicate-email.c"
}



