/* add-contacts-stress-test.c generated by valac 0.17.6.3-6918, the Vala compiler
 * generated from add-contacts-stress-test.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 <eds-test.h>
#include <folks/folks.h>
#include <folks/folks-eds.h>
#include <stdlib.h>
#include <string.h>
#include <gio/gio.h>
#include <stdio.h>
#include <gee.h>


#define TYPE_ADD_CONTACTS_STRESS_TEST_TESTS (add_contacts_stress_test_tests_get_type ())
#define ADD_CONTACTS_STRESS_TEST_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADD_CONTACTS_STRESS_TEST_TESTS, AddContactsStressTestTests))
#define ADD_CONTACTS_STRESS_TEST_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADD_CONTACTS_STRESS_TEST_TESTS, AddContactsStressTestTestsClass))
#define IS_ADD_CONTACTS_STRESS_TEST_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADD_CONTACTS_STRESS_TEST_TESTS))
#define IS_ADD_CONTACTS_STRESS_TEST_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADD_CONTACTS_STRESS_TEST_TESTS))
#define ADD_CONTACTS_STRESS_TEST_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADD_CONTACTS_STRESS_TEST_TESTS, AddContactsStressTestTestsClass))

typedef struct _AddContactsStressTestTests AddContactsStressTestTests;
typedef struct _AddContactsStressTestTestsClass AddContactsStressTestTestsClass;
typedef struct _AddContactsStressTestTestsPrivate AddContactsStressTestTestsPrivate;
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define _eds_test_backend_unref0(var) ((var == NULL) ? NULL : (var = (eds_test_backend_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _AddContactsStressTestTestsTestAddPersonaAsyncData AddContactsStressTestTestsTestAddPersonaAsyncData;
#define __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL)))
typedef struct _AddContactsStressTestTestsAddContactsData AddContactsStressTestTestsAddContactsData;
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

struct _AddContactsStressTestTests {
	FolksTestCase parent_instance;
	AddContactsStressTestTestsPrivate * priv;
};

struct _AddContactsStressTestTestsClass {
	FolksTestCaseClass parent_class;
};

struct _AddContactsStressTestTestsPrivate {
	GMainLoop* _main_loop;
	EdsTestBackend* _eds_backend;
	FolksIndividualAggregator* _aggregator;
	EdsfPersonaStore* _pstore;
	gboolean _added_contacts;
	GStaticRecMutex __lock__added_contacts;
	GHashTable* _contacts_found;
	gint _contacts_cnt;
	GDateTime* _start_time;
};

struct _AddContactsStressTestTestsTestAddPersonaAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	AddContactsStressTestTests* 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_;
	EdsTestBackend* _tmp18_;
	const gchar* _tmp19_;
	const gchar* _tmp20_;
	gpointer _tmp21_;
	EdsfPersonaStore* _tmp22_;
	EdsfPersonaStore* _tmp23_;
	EdsfPersonaStore* _tmp24_;
	GError* e;
	GError* _tmp25_;
	const gchar* _tmp26_;
	GError * _inner_error_;
};

struct _AddContactsStressTestTestsAddContactsData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	AddContactsStressTestTests* self;
	gint i;
	gboolean _tmp0_;
	gboolean _tmp1_;
	gint _tmp2_;
	gint _tmp3_;
	gint _tmp4_;
	gint _tmp5_;
	gchar* _tmp6_;
	gchar* persona_name;
	GHashFunc _tmp7_;
	GEqualFunc _tmp8_;
	GHashTable* _tmp9_;
	GHashTable* details;
	GValue _tmp10_;
	GValue _tmp11_;
	GValue* _tmp12_;
	GValue* _tmp13_;
	GValue* v1;
	GValue* _tmp14_;
	const gchar* _tmp15_;
	GHashTable* _tmp16_;
	const gchar* _tmp17_;
	gchar* _tmp18_;
	GValue* _tmp19_;
	FolksIndividualAggregator* _tmp20_;
	EdsfPersonaStore* _tmp21_;
	GHashTable* _tmp22_;
	FolksPersona* _tmp23_;
	FolksPersona* _tmp24_;
	GError* e;
	gint _tmp25_;
	GError* _tmp26_;
	const gchar* _tmp27_;
	GError * _inner_error_;
};


static gpointer add_contacts_stress_test_tests_parent_class = NULL;

GType add_contacts_stress_test_tests_get_type (void) G_GNUC_CONST;
#define ADD_CONTACTS_STRESS_TEST_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_ADD_CONTACTS_STRESS_TEST_TESTS, AddContactsStressTestTestsPrivate))
enum  {
	ADD_CONTACTS_STRESS_TEST_TESTS_DUMMY_PROPERTY
};
AddContactsStressTestTests* add_contacts_stress_test_tests_new (void);
AddContactsStressTestTests* add_contacts_stress_test_tests_construct (GType object_type);
void add_contacts_stress_test_tests_test_add_contacts (AddContactsStressTestTests* self);
static void _add_contacts_stress_test_tests_test_add_contacts_folks_test_case_test_method (gpointer self);
static void add_contacts_stress_test_tests_real_set_up (FolksTestCase* base);
static void add_contacts_stress_test_tests_real_tear_down (FolksTestCase* base);
static void _g_free0_ (gpointer var);
static void _add_contacts_stress_test_tests_test_add_persona_async (AddContactsStressTestTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _add_contacts_stress_test_tests_test_add_persona_finish (AddContactsStressTestTests* self, GAsyncResult* _res_);
static void _add_contacts_stress_test_tests_test_add_persona_async_data_free (gpointer _data);
static gboolean _add_contacts_stress_test_tests_test_add_persona_async_co (AddContactsStressTestTestsTestAddPersonaAsyncData* _data_);
static void _add_contacts_stress_test_tests_test_add_persona_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _add_contacts_stress_test_tests_individuals_changed_cb (AddContactsStressTestTests* self, GeeMultiMap* changes);
static void __add_contacts_stress_test_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static void _add_contacts_stress_test_tests_notify_pstore_cb (AddContactsStressTestTests* self, GObject* _pstore, GParamSpec* ps);
static void __add_contacts_stress_test_tests_notify_pstore_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void _add_contacts_stress_test_tests_try_to_add (AddContactsStressTestTests* self);
static void _add_contacts_stress_test_tests_add_contacts_data_free (gpointer _data);
static void _add_contacts_stress_test_tests_add_contacts (AddContactsStressTestTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _add_contacts_stress_test_tests_add_contacts_finish (AddContactsStressTestTests* self, GAsyncResult* _res_);
static gboolean _add_contacts_stress_test_tests_add_contacts_co (AddContactsStressTestTestsAddContactsData* _data_);
static void _vala_GValue_free (GValue* self);
static void __vala_GValue_free0_ (gpointer var);
static GValue* _g_value_dup (GValue* self);
static void _add_contacts_stress_test_tests_add_contacts_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _add_contacts_stress_test_tests_exit_if_all_contacts_found (AddContactsStressTestTests* self);
static void add_contacts_stress_test_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _add_contacts_stress_test_tests_test_add_contacts_folks_test_case_test_method (gpointer self) {
#line 41 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	add_contacts_stress_test_tests_test_add_contacts (self);
#line 205 "add-contacts-stress-test.c"
}


AddContactsStressTestTests* add_contacts_stress_test_tests_construct (GType object_type) {
	AddContactsStressTestTests * self = NULL;
	gint _tmp0_;
	gchar* _tmp1_ = NULL;
	gchar* test_desc;
#line 37 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	self = (AddContactsStressTestTests*) folks_test_case_construct (object_type, "AddContactsStressTestTests");
#line 39 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp0_ = self->priv->_contacts_cnt;
#line 39 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp1_ = g_strdup_printf ("stress testing adding (%d) contacts to e-d-s ", _tmp0_);
#line 39 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	test_desc = _tmp1_;
#line 41 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	folks_test_case_add_test ((FolksTestCase*) self, test_desc, _add_contacts_stress_test_tests_test_add_contacts_folks_test_case_test_method, self);
#line 35 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_g_free0 (test_desc);
#line 35 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	return self;
#line 228 "add-contacts-stress-test.c"
}


AddContactsStressTestTests* add_contacts_stress_test_tests_new (void) {
#line 35 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	return add_contacts_stress_test_tests_construct (TYPE_ADD_CONTACTS_STRESS_TEST_TESTS);
#line 235 "add-contacts-stress-test.c"
}


static void add_contacts_stress_test_tests_real_set_up (FolksTestCase* base) {
	AddContactsStressTestTests * self;
	EdsTestBackend* _tmp0_;
	EdsTestBackend* _tmp1_;
	EdsTestBackend* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_ = NULL;
	gchar* config_val;
#line 44 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	self = (AddContactsStressTestTests*) base;
#line 46 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp0_ = eds_test_backend_new ();
#line 46 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 46 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	self->priv->_eds_backend = _tmp0_;
#line 47 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp1_ = self->priv->_eds_backend;
#line 47 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	eds_test_backend_set_up (_tmp1_, FALSE, "test");
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp2_ = self->priv->_eds_backend;
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp3_ = eds_test_backend_get_address_book_uid (_tmp2_);
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp4_ = _tmp3_;
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp5_ = g_strdup_printf ("eds:%s", _tmp4_);
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	config_val = _tmp5_;
#line 51 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_setenv ("FOLKS_PRIMARY_STORE", config_val, TRUE);
#line 44 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_g_free0 (config_val);
#line 274 "add-contacts-stress-test.c"
}


static void add_contacts_stress_test_tests_real_tear_down (FolksTestCase* base) {
	AddContactsStressTestTests * self;
	EdsTestBackend* _tmp0_;
#line 54 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	self = (AddContactsStressTestTests*) base;
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp0_ = self->priv->_eds_backend;
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	eds_test_backend_tear_down (_tmp0_);
#line 287 "add-contacts-stress-test.c"
}


static void _g_free0_ (gpointer var) {
#line 63 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	var = (g_free (var), NULL);
#line 294 "add-contacts-stress-test.c"
}


void add_contacts_stress_test_tests_test_add_contacts (AddContactsStressTestTests* self) {
	GMainLoop* _tmp0_;
	GHashFunc _tmp1_;
	GEqualFunc _tmp2_;
	GHashTable* _tmp3_;
	GDateTime* _tmp14_;
	GMainLoop* _tmp15_;
	GDateTime* _tmp16_;
	GDateTime* now;
	GDateTime* _tmp17_;
	GDateTime* _tmp18_;
	GTimeSpan _tmp19_ = 0LL;
	GTimeSpan difference;
	GTimeSpan _tmp20_;
	GTimeSpan diff;
	FILE* _tmp21_;
	GTimeSpan _tmp22_;
	gint found;
	GHashTable* _tmp23_;
	GList* _tmp24_ = NULL;
	gint _tmp27_;
	gint _tmp28_;
#line 59 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_return_if_fail (self != NULL);
#line 61 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 61 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 61 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	self->priv->_main_loop = _tmp0_;
#line 63 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp1_ = g_str_hash;
#line 63 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp2_ = g_str_equal;
#line 63 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp3_ = g_hash_table_new_full (_tmp1_, _tmp2_, _g_free0_, NULL);
#line 63 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_g_hash_table_unref0 (self->priv->_contacts_found);
#line 63 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	self->priv->_contacts_found = _tmp3_;
#line 338 "add-contacts-stress-test.c"
	{
		gint i;
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		i = 0;
#line 343 "add-contacts-stress-test.c"
		{
			gboolean _tmp4_;
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp4_ = TRUE;
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			while (TRUE) {
#line 350 "add-contacts-stress-test.c"
				gboolean _tmp5_;
				gint _tmp7_;
				gint _tmp8_;
				gint _tmp9_;
				gchar* _tmp10_ = NULL;
				gchar* persona_name;
				GHashTable* _tmp11_;
				const gchar* _tmp12_;
				gchar* _tmp13_;
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_tmp5_ = _tmp4_;
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				if (!_tmp5_) {
#line 364 "add-contacts-stress-test.c"
					gint _tmp6_;
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_tmp6_ = i;
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					i = _tmp6_ + 1;
#line 370 "add-contacts-stress-test.c"
				}
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_tmp4_ = FALSE;
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_tmp7_ = i;
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_tmp8_ = self->priv->_contacts_cnt;
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				if (!(_tmp7_ < _tmp8_)) {
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					break;
#line 382 "add-contacts-stress-test.c"
				}
#line 66 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_tmp9_ = i;
#line 66 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_tmp10_ = g_strdup_printf ("full_name -%d", _tmp9_);
#line 66 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				persona_name = _tmp10_;
#line 67 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_tmp11_ = self->priv->_contacts_found;
#line 67 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_tmp12_ = persona_name;
#line 67 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_tmp13_ = g_strdup (_tmp12_);
#line 67 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				g_hash_table_insert (_tmp11_, _tmp13_, (gpointer) ((gintptr) FALSE));
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_g_free0 (persona_name);
#line 400 "add-contacts-stress-test.c"
			}
		}
	}
#line 70 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp14_ = g_date_time_new_now_utc ();
#line 70 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_g_date_time_unref0 (self->priv->_start_time);
#line 70 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	self->priv->_start_time = _tmp14_;
#line 72 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_add_contacts_stress_test_tests_test_add_persona_async (self, NULL, NULL);
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp15_ = self->priv->_main_loop;
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_main_loop_run (_tmp15_);
#line 76 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp16_ = g_date_time_new_now_utc ();
#line 76 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	now = _tmp16_;
#line 77 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp17_ = now;
#line 77 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp18_ = self->priv->_start_time;
#line 77 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp19_ = g_date_time_difference (_tmp17_, _tmp18_);
#line 77 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	difference = _tmp19_;
#line 79 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp20_ = difference;
#line 79 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	diff = _tmp20_ / G_TIME_SPAN_SECOND;
#line 80 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp21_ = stdout;
#line 80 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp22_ = diff;
#line 80 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	fprintf (_tmp21_, "(Elapsed time: %" G_GINT64_FORMAT " secs) ", _tmp22_);
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	found = 0;
#line 83 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp23_ = self->priv->_contacts_found;
#line 83 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp24_ = g_hash_table_get_values (_tmp23_);
#line 444 "add-contacts-stress-test.c"
	{
		GList* k_collection = NULL;
		GList* k_it = NULL;
#line 83 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		k_collection = _tmp24_;
#line 83 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		for (k_it = k_collection; k_it != NULL; k_it = k_it->next) {
#line 452 "add-contacts-stress-test.c"
			gboolean k = FALSE;
#line 83 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			k = (gboolean) ((gintptr) k_it->data);
#line 456 "add-contacts-stress-test.c"
			{
				gboolean _tmp25_;
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_tmp25_ = k;
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				if (_tmp25_) {
#line 463 "add-contacts-stress-test.c"
					gint _tmp26_;
#line 86 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_tmp26_ = found;
#line 86 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					found = _tmp26_ + 1;
#line 469 "add-contacts-stress-test.c"
				}
			}
		}
#line 83 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_g_list_free0 (k_collection);
#line 475 "add-contacts-stress-test.c"
	}
#line 89 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp27_ = found;
#line 89 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp28_ = self->priv->_contacts_cnt;
#line 89 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_vala_assert (_tmp27_ == _tmp28_, "found == this._contacts_cnt");
#line 59 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_g_date_time_unref0 (now);
#line 485 "add-contacts-stress-test.c"
}


static void _add_contacts_stress_test_tests_test_add_persona_async_data_free (gpointer _data) {
	AddContactsStressTestTestsTestAddPersonaAsyncData* _data_;
	_data_ = _data;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_slice_free (AddContactsStressTestTestsTestAddPersonaAsyncData, _data_);
#line 496 "add-contacts-stress-test.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	return self ? g_object_ref (self) : NULL;
#line 503 "add-contacts-stress-test.c"
}


static void _add_contacts_stress_test_tests_test_add_persona_async (AddContactsStressTestTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	AddContactsStressTestTestsTestAddPersonaAsyncData* _data_;
	AddContactsStressTestTests* _tmp0_;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_ = g_slice_new0 (AddContactsStressTestTestsTestAddPersonaAsyncData);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _add_contacts_stress_test_tests_test_add_persona_async);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _add_contacts_stress_test_tests_test_add_persona_async_data_free);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_->self = _tmp0_;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_add_contacts_stress_test_tests_test_add_persona_async_co (_data_);
#line 522 "add-contacts-stress-test.c"
}


static void _add_contacts_stress_test_tests_test_add_persona_finish (AddContactsStressTestTests* self, GAsyncResult* _res_) {
	AddContactsStressTestTestsTestAddPersonaAsyncData* _data_;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 530 "add-contacts-stress-test.c"
}


static void _add_contacts_stress_test_tests_test_add_persona_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	AddContactsStressTestTestsTestAddPersonaAsyncData* _data_;
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_ = _user_data_;
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_->_source_object_ = source_object;
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_->_res_ = _res_;
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_add_contacts_stress_test_tests_test_add_persona_async_co (_data_);
#line 544 "add-contacts-stress-test.c"
}


static void __add_contacts_stress_test_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 97 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_add_contacts_stress_test_tests_individuals_changed_cb (self, changes);
#line 551 "add-contacts-stress-test.c"
}


static void __add_contacts_stress_test_tests_notify_pstore_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 113 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_add_contacts_stress_test_tests_notify_pstore_cb (self, _sender, pspec);
#line 558 "add-contacts-stress-test.c"
}


static gboolean _add_contacts_stress_test_tests_test_add_persona_async_co (AddContactsStressTestTestsTestAddPersonaAsyncData* _data_) {
#line 92 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	switch (_data_->_state_) {
#line 92 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		case 0:
#line 567 "add-contacts-stress-test.c"
		goto _state_0;
#line 92 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		case 1:
#line 571 "add-contacts-stress-test.c"
		goto _state_1;
#line 92 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		case 2:
#line 575 "add-contacts-stress-test.c"
		goto _state_2;
		default:
#line 92 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		g_assert_not_reached ();
#line 580 "add-contacts-stress-test.c"
	}
	_state_0:
#line 94 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_->_tmp0_ = NULL;
#line 94 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 94 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_->store = _data_->_tmp0_;
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_->_state_ = 1;
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	folks_backend_store_prepare (_data_->store, _add_contacts_stress_test_tests_test_add_persona_async_ready, _data_);
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	return FALSE;
#line 595 "add-contacts-stress-test.c"
	_state_1:
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 97 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 97 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_signal_connect_object (_data_->_tmp2_, "individuals-changed-detailed", (GCallback) __add_contacts_stress_test_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed, _data_->self, 0);
#line 609 "add-contacts-stress-test.c"
	{
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_data_->_state_ = 2;
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		folks_individual_aggregator_prepare (_data_->_tmp3_, _add_contacts_stress_test_tests_test_add_persona_async_ready, _data_);
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		return FALSE;
#line 619 "add-contacts-stress-test.c"
		_state_2:
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		if (_data_->_inner_error_ != NULL) {
#line 625 "add-contacts-stress-test.c"
			goto __catch0_g_error;
		}
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_g_object_unref0 (_data_->self->priv->_pstore);
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_data_->self->priv->_pstore = NULL;
#line 632 "add-contacts-stress-test.c"
		{
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_data_->_tmp4_ = folks_backend_store_get_enabled_backends (_data_->store);
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_data_->_tmp5_ = _data_->_tmp4_;
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_data_->_tmp6_ = gee_map_get_values (_data_->_tmp5_);
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_data_->_tmp7_ = _data_->_tmp6_;
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_data_->_tmp8_ = _data_->_tmp7_;
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_data_->_tmp9_ = NULL;
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_data_->_tmp9_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp8_);
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_data_->_tmp10_ = _data_->_tmp9_;
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_g_object_unref0 (_data_->_tmp8_);
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_data_->_backend_it = _data_->_tmp10_;
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			while (TRUE) {
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp11_ = _data_->_backend_it;
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp12_ = FALSE;
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp12_ = gee_iterator_next (_data_->_tmp11_);
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				if (!_data_->_tmp12_) {
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					break;
#line 666 "add-contacts-stress-test.c"
				}
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp13_ = _data_->_backend_it;
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp14_ = NULL;
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp14_ = gee_iterator_get (_data_->_tmp13_);
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->backend = (FolksBackend*) _data_->_tmp14_;
#line 106 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp15_ = _data_->backend;
#line 106 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp16_ = folks_backend_get_persona_stores (_data_->_tmp15_);
#line 106 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp17_ = _data_->_tmp16_;
#line 106 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp18_ = _data_->self->priv->_eds_backend;
#line 106 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp19_ = eds_test_backend_get_address_book_uid (_data_->_tmp18_);
#line 106 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp20_ = _data_->_tmp19_;
#line 106 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp21_ = NULL;
#line 106 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp21_ = gee_map_get (_data_->_tmp17_, _data_->_tmp20_);
#line 106 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_g_object_unref0 (_data_->self->priv->_pstore);
#line 106 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->self->priv->_pstore = G_TYPE_CHECK_INSTANCE_CAST ((FolksPersonaStore*) _data_->_tmp21_, EDSF_TYPE_PERSONA_STORE, EdsfPersonaStore);
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp22_ = _data_->self->priv->_pstore;
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				if (_data_->_tmp22_ != NULL) {
#line 110 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_g_object_unref0 (_data_->backend);
#line 110 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					break;
#line 704 "add-contacts-stress-test.c"
				}
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_g_object_unref0 (_data_->backend);
#line 708 "add-contacts-stress-test.c"
			}
#line 104 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_g_object_unref0 (_data_->_backend_it);
#line 712 "add-contacts-stress-test.c"
		}
#line 112 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_data_->_tmp23_ = _data_->self->priv->_pstore;
#line 112 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_vala_assert (_data_->_tmp23_ != NULL, "this._pstore != null");
#line 113 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_data_->_tmp24_ = _data_->self->priv->_pstore;
#line 113 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		g_signal_connect_object ((GObject*) _data_->_tmp24_, "notify::is-prepared", (GCallback) __add_contacts_stress_test_tests_notify_pstore_cb_g_object_notify, _data_->self, 0);
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_add_contacts_stress_test_tests_try_to_add (_data_->self);
#line 724 "add-contacts-stress-test.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_data_->e = _data_->_inner_error_;
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_data_->_inner_error_ = NULL;
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_data_->_tmp25_ = _data_->e;
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_data_->_tmp26_ = _data_->_tmp25_->message;
#line 118 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		g_warning ("add-contacts-stress-test.vala:118: Error when calling prepare: %s\n", _data_->_tmp26_);
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_g_error_free0 (_data_->e);
#line 741 "add-contacts-stress-test.c"
	}
	__finally0:
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	if (_data_->_inner_error_ != NULL) {
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_g_object_unref0 (_data_->store);
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.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 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		g_clear_error (&_data_->_inner_error_);
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		return FALSE;
#line 754 "add-contacts-stress-test.c"
	}
#line 92 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_g_object_unref0 (_data_->store);
#line 92 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	if (_data_->_state_ == 0) {
#line 92 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 762 "add-contacts-stress-test.c"
	} else {
#line 92 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 766 "add-contacts-stress-test.c"
	}
#line 92 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_object_unref (_data_->_async_result);
#line 92 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	return FALSE;
#line 772 "add-contacts-stress-test.c"
}


static void _add_contacts_stress_test_tests_add_contacts_data_free (gpointer _data) {
	AddContactsStressTestTestsAddContactsData* _data_;
	_data_ = _data;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_slice_free (AddContactsStressTestTestsAddContactsData, _data_);
#line 783 "add-contacts-stress-test.c"
}


static void _add_contacts_stress_test_tests_add_contacts (AddContactsStressTestTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	AddContactsStressTestTestsAddContactsData* _data_;
	AddContactsStressTestTests* _tmp0_;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_ = g_slice_new0 (AddContactsStressTestTestsAddContactsData);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _add_contacts_stress_test_tests_add_contacts);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _add_contacts_stress_test_tests_add_contacts_data_free);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_->self = _tmp0_;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_add_contacts_stress_test_tests_add_contacts_co (_data_);
#line 802 "add-contacts-stress-test.c"
}


static void _add_contacts_stress_test_tests_add_contacts_finish (AddContactsStressTestTests* self, GAsyncResult* _res_) {
	AddContactsStressTestTestsAddContactsData* _data_;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 810 "add-contacts-stress-test.c"
}


static void _vala_GValue_free (GValue* self) {
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_value_unset (self);
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_free (self);
#line 819 "add-contacts-stress-test.c"
}


static void __vala_GValue_free0_ (gpointer var) {
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	(var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL));
#line 826 "add-contacts-stress-test.c"
}


static GValue* _g_value_dup (GValue* self) {
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	return g_boxed_copy (G_TYPE_VALUE, self);
#line 833 "add-contacts-stress-test.c"
}


static gpointer __g_value_dup0 (gpointer self) {
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	return self ? _g_value_dup (self) : NULL;
#line 840 "add-contacts-stress-test.c"
}


static void _add_contacts_stress_test_tests_add_contacts_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	AddContactsStressTestTestsAddContactsData* _data_;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_ = _user_data_;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_->_source_object_ = source_object;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_data_->_res_ = _res_;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_add_contacts_stress_test_tests_add_contacts_co (_data_);
#line 854 "add-contacts-stress-test.c"
}


static gboolean _add_contacts_stress_test_tests_add_contacts_co (AddContactsStressTestTestsAddContactsData* _data_) {
#line 122 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	switch (_data_->_state_) {
#line 122 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		case 0:
#line 863 "add-contacts-stress-test.c"
		goto _state_0;
#line 122 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		case 1:
#line 867 "add-contacts-stress-test.c"
		goto _state_1;
		default:
#line 122 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		g_assert_not_reached ();
#line 872 "add-contacts-stress-test.c"
	}
	_state_0:
	{
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_data_->i = 0;
#line 878 "add-contacts-stress-test.c"
		{
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_data_->_tmp0_ = TRUE;
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			while (TRUE) {
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp1_ = _data_->_tmp0_;
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				if (!_data_->_tmp1_) {
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_data_->_tmp2_ = _data_->i;
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_data_->i = _data_->_tmp2_ + 1;
#line 892 "add-contacts-stress-test.c"
				}
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp0_ = FALSE;
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp3_ = _data_->i;
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp4_ = _data_->self->priv->_contacts_cnt;
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				if (!(_data_->_tmp3_ < _data_->_tmp4_)) {
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					break;
#line 904 "add-contacts-stress-test.c"
				}
#line 126 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp5_ = _data_->i;
#line 126 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp6_ = NULL;
#line 126 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp6_ = g_strdup_printf ("full_name -%d", _data_->_tmp5_);
#line 126 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->persona_name = _data_->_tmp6_;
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp7_ = g_str_hash;
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp8_ = g_str_equal;
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp9_ = g_hash_table_new_full (_data_->_tmp7_, _data_->_tmp8_, _g_free0_, __vala_GValue_free0_);
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->details = _data_->_tmp9_;
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				memset (&_data_->_tmp10_, 0, sizeof (GValue));
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				g_value_init (&_data_->_tmp10_, G_TYPE_STRING);
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp11_ = _data_->_tmp10_;
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp12_ = __g_value_dup0 (&_data_->_tmp11_);
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp13_ = _data_->_tmp12_;
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				G_IS_VALUE (&_data_->_tmp11_) ? (g_value_unset (&_data_->_tmp11_), NULL) : NULL;
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->v1 = _data_->_tmp13_;
#line 131 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp14_ = _data_->v1;
#line 131 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp15_ = _data_->persona_name;
#line 131 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				g_value_set_string (_data_->_tmp14_, _data_->_tmp15_);
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp16_ = _data_->details;
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp17_ = NULL;
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp17_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_FULL_NAME);
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp18_ = g_strdup (_data_->_tmp17_);
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->_tmp19_ = _data_->v1;
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_data_->v1 = NULL;
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				g_hash_table_insert (_data_->_tmp16_, _data_->_tmp18_, _data_->_tmp19_);
#line 956 "add-contacts-stress-test.c"
				{
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_data_->_tmp20_ = _data_->self->priv->_aggregator;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_data_->_tmp21_ = _data_->self->priv->_pstore;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_data_->_tmp22_ = _data_->details;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_data_->_state_ = 1;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					folks_individual_aggregator_add_persona_from_details (_data_->_tmp20_, NULL, (FolksPersonaStore*) _data_->_tmp21_, _data_->_tmp22_, _add_contacts_stress_test_tests_add_contacts_ready, _data_);
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					return FALSE;
#line 970 "add-contacts-stress-test.c"
					_state_1:
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_data_->_tmp23_ = NULL;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_data_->_tmp23_ = folks_individual_aggregator_add_persona_from_details_finish (_data_->_tmp20_, _data_->_res_, &_data_->_inner_error_);
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_data_->_tmp24_ = _data_->_tmp23_;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_g_object_unref0 (_data_->_tmp24_);
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					if (_data_->_inner_error_ != NULL) {
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
						if (_data_->_inner_error_->domain == FOLKS_INDIVIDUAL_AGGREGATOR_ERROR) {
#line 984 "add-contacts-stress-test.c"
							goto __catch1_folks_individual_aggregator_error;
						}
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
						__vala_GValue_free0 (_data_->v1);
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
						_g_hash_table_unref0 (_data_->details);
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
						_g_free0 (_data_->persona_name);
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.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 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
						g_clear_error (&_data_->_inner_error_);
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
						return FALSE;
#line 999 "add-contacts-stress-test.c"
					}
				}
				goto __finally1;
				__catch1_folks_individual_aggregator_error:
				{
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_data_->e = _data_->_inner_error_;
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_data_->_inner_error_ = NULL;
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_data_->_tmp25_ = _data_->i;
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_data_->_tmp26_ = _data_->e;
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_data_->_tmp27_ = _data_->_tmp26_->message;
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					g_warning ("add-contacts-stress-test.vala:143: [AddContactsStressTest]: %d: %s\n", _data_->_tmp25_, _data_->_tmp27_);
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_g_error_free0 (_data_->e);
#line 1019 "add-contacts-stress-test.c"
				}
				__finally1:
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				if (_data_->_inner_error_ != NULL) {
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					__vala_GValue_free0 (_data_->v1);
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_g_hash_table_unref0 (_data_->details);
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_g_free0 (_data_->persona_name);
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.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 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					g_clear_error (&_data_->_inner_error_);
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					return FALSE;
#line 1036 "add-contacts-stress-test.c"
				}
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				__vala_GValue_free0 (_data_->v1);
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_g_hash_table_unref0 (_data_->details);
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_g_free0 (_data_->persona_name);
#line 1044 "add-contacts-stress-test.c"
			}
		}
	}
#line 122 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	if (_data_->_state_ == 0) {
#line 122 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1052 "add-contacts-stress-test.c"
	} else {
#line 122 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1056 "add-contacts-stress-test.c"
	}
#line 122 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_object_unref (_data_->_async_result);
#line 122 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	return FALSE;
#line 1062 "add-contacts-stress-test.c"
}


static void _add_contacts_stress_test_tests_individuals_changed_cb (AddContactsStressTestTests* self, GeeMultiMap* changes) {
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
	GeeSet* _tmp21_;
	gint _tmp22_;
	gint _tmp23_;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_return_if_fail (self != NULL);
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_return_if_fail (changes != NULL);
#line 152 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp0_ = changes;
#line 152 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 152 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	added = _tmp1_;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp2_ = changes;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	removed = _tmp3_;
#line 1092 "add-contacts-stress-test.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_tmp4_ = added;
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_i_it = _tmp5_;
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		while (TRUE) {
#line 1105 "add-contacts-stress-test.c"
			GeeIterator* _tmp6_;
			gboolean _tmp7_ = FALSE;
			GeeIterator* _tmp8_;
			gpointer _tmp9_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp10_;
			GHashTable* _tmp11_;
			FolksIndividual* _tmp12_;
			const gchar* _tmp13_;
			const gchar* _tmp14_;
			gconstpointer _tmp15_ = NULL;
			GHashTable* _tmp16_;
			FolksIndividual* _tmp17_;
			const gchar* _tmp18_;
			const gchar* _tmp19_;
			gchar* _tmp20_;
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp6_ = _i_it;
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			if (!_tmp7_) {
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				break;
#line 1130 "add-contacts-stress-test.c"
			}
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp8_ = _i_it;
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			i = (FolksIndividual*) _tmp9_;
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp10_ = i;
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_vala_assert (_tmp10_ != NULL, "i != null");
#line 159 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp11_ = self->priv->_contacts_found;
#line 159 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp12_ = i;
#line 159 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp13_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp12_);
#line 159 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp14_ = _tmp13_;
#line 159 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp15_ = g_hash_table_lookup (_tmp11_, _tmp14_);
#line 159 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_vala_assert (((gboolean) ((gintptr) _tmp15_)) == FALSE, "this._contacts_found.lookup (i.full_name) == false");
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp16_ = self->priv->_contacts_found;
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp17_ = i;
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp18_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp17_);
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp19_ = _tmp18_;
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp20_ = g_strdup (_tmp19_);
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			g_hash_table_replace (_tmp16_, _tmp20_, (gpointer) ((gintptr) TRUE));
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_g_object_unref0 (i);
#line 1168 "add-contacts-stress-test.c"
		}
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_g_object_unref0 (_i_it);
#line 1172 "add-contacts-stress-test.c"
	}
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp21_ = removed;
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp22_ = gee_collection_get_size ((GeeCollection*) _tmp21_);
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp23_ = _tmp22_;
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_vala_assert (_tmp23_ == 1, "removed.size == 1");
#line 1182 "add-contacts-stress-test.c"
	{
		GeeSet* _tmp24_;
		GeeIterator* _tmp25_ = NULL;
		GeeIterator* _i_it;
#line 165 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_tmp24_ = removed;
#line 165 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_tmp25_ = gee_iterable_iterator ((GeeIterable*) _tmp24_);
#line 165 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_i_it = _tmp25_;
#line 165 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		while (TRUE) {
#line 1195 "add-contacts-stress-test.c"
			GeeIterator* _tmp26_;
			gboolean _tmp27_ = FALSE;
			GeeIterator* _tmp28_;
			gpointer _tmp29_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp30_;
#line 165 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp26_ = _i_it;
#line 165 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp27_ = gee_iterator_next (_tmp26_);
#line 165 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			if (!_tmp27_) {
#line 165 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				break;
#line 1210 "add-contacts-stress-test.c"
			}
#line 165 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp28_ = _i_it;
#line 165 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp29_ = gee_iterator_get (_tmp28_);
#line 165 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			i = (FolksIndividual*) _tmp29_;
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp30_ = i;
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_vala_assert (_tmp30_ == NULL, "i == null");
#line 165 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_g_object_unref0 (i);
#line 1224 "add-contacts-stress-test.c"
		}
#line 165 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_g_object_unref0 (_i_it);
#line 1228 "add-contacts-stress-test.c"
	}
#line 170 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_add_contacts_stress_test_tests_exit_if_all_contacts_found (self);
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_g_object_unref0 (removed);
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_g_object_unref0 (added);
#line 1236 "add-contacts-stress-test.c"
}


static void _add_contacts_stress_test_tests_notify_pstore_cb (AddContactsStressTestTests* self, GObject* _pstore, GParamSpec* ps) {
#line 173 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_return_if_fail (self != NULL);
#line 173 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_return_if_fail (_pstore != NULL);
#line 173 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_return_if_fail (ps != NULL);
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_add_contacts_stress_test_tests_try_to_add (self);
#line 1249 "add-contacts-stress-test.c"
}


static void _add_contacts_stress_test_tests_try_to_add (AddContactsStressTestTests* self) {
	GError * _inner_error_ = NULL;
#line 178 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_return_if_fail (self != NULL);
#line 1257 "add-contacts-stress-test.c"
	{
		gboolean _tmp0_;
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_tmp0_ = self->priv->_added_contacts;
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		g_static_rec_mutex_lock (&self->priv->__lock__added_contacts);
#line 1264 "add-contacts-stress-test.c"
		{
			gboolean _tmp1_ = FALSE;
			EdsfPersonaStore* _tmp2_;
			gboolean _tmp3_;
			gboolean _tmp4_;
			gboolean _tmp6_;
#line 182 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp2_ = self->priv->_pstore;
#line 182 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp3_ = folks_persona_store_get_is_prepared ((FolksPersonaStore*) _tmp2_);
#line 182 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp4_ = _tmp3_;
#line 182 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			if (_tmp4_) {
#line 1279 "add-contacts-stress-test.c"
				gboolean _tmp5_;
#line 183 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_tmp5_ = self->priv->_added_contacts;
#line 183 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_tmp1_ = _tmp5_ == FALSE;
#line 1285 "add-contacts-stress-test.c"
			} else {
#line 182 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_tmp1_ = FALSE;
#line 1289 "add-contacts-stress-test.c"
			}
#line 182 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp6_ = _tmp1_;
#line 182 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			if (_tmp6_) {
#line 185 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				self->priv->_added_contacts = TRUE;
#line 186 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_add_contacts_stress_test_tests_add_contacts (self, NULL, NULL);
#line 1299 "add-contacts-stress-test.c"
			}
		}
		__finally2:
		{
			gboolean _tmp7_;
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			_tmp7_ = self->priv->_added_contacts;
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			g_static_rec_mutex_unlock (&self->priv->__lock__added_contacts);
#line 1309 "add-contacts-stress-test.c"
		}
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		if (_inner_error_ != NULL) {
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			g_clear_error (&_inner_error_);
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			return;
#line 1319 "add-contacts-stress-test.c"
		}
	}
}


static void _add_contacts_stress_test_tests_exit_if_all_contacts_found (AddContactsStressTestTests* self) {
	GHashTable* _tmp0_;
	GList* _tmp1_ = NULL;
	GMainLoop* _tmp6_;
#line 191 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_return_if_fail (self != NULL);
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp0_ = self->priv->_contacts_found;
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp1_ = g_hash_table_get_keys (_tmp0_);
#line 1335 "add-contacts-stress-test.c"
	{
		GList* k_collection = NULL;
		GList* k_it = NULL;
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		k_collection = _tmp1_;
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		for (k_it = k_collection; k_it != NULL; k_it = k_it->next) {
#line 1343 "add-contacts-stress-test.c"
			const gchar* k = NULL;
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
			k = (const gchar*) k_it->data;
#line 1347 "add-contacts-stress-test.c"
			{
				GHashTable* _tmp2_;
				const gchar* _tmp3_;
				gconstpointer _tmp4_ = NULL;
				gboolean v;
				gboolean _tmp5_;
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_tmp2_ = self->priv->_contacts_found;
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_tmp3_ = k;
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_tmp4_ = g_hash_table_lookup (_tmp2_, _tmp3_);
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				v = (gboolean) ((gintptr) _tmp4_);
#line 196 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				_tmp5_ = v;
#line 196 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
				if (_tmp5_ == FALSE) {
#line 197 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					_g_list_free0 (k_collection);
#line 197 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
					return;
#line 1370 "add-contacts-stress-test.c"
				}
			}
		}
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
		_g_list_free0 (k_collection);
#line 1376 "add-contacts-stress-test.c"
	}
#line 199 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp6_ = self->priv->_main_loop;
#line 199 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_main_loop_quit (_tmp6_);
#line 1382 "add-contacts-stress-test.c"
}


static void add_contacts_stress_test_tests_class_init (AddContactsStressTestTestsClass * klass) {
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	add_contacts_stress_test_tests_parent_class = g_type_class_peek_parent (klass);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_type_class_add_private (klass, sizeof (AddContactsStressTestTestsPrivate));
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = add_contacts_stress_test_tests_real_set_up;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = add_contacts_stress_test_tests_real_tear_down;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	G_OBJECT_CLASS (klass)->finalize = add_contacts_stress_test_tests_finalize;
#line 1397 "add-contacts-stress-test.c"
}


static void add_contacts_stress_test_tests_instance_init (AddContactsStressTestTests * self) {
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	self->priv = ADD_CONTACTS_STRESS_TEST_TESTS_GET_PRIVATE (self);
#line 30 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_static_rec_mutex_init (&self->priv->__lock__added_contacts);
#line 30 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	self->priv->_added_contacts = FALSE;
#line 32 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	self->priv->_contacts_cnt = 1000;
#line 1410 "add-contacts-stress-test.c"
}


static void add_contacts_stress_test_tests_finalize (GObject* obj) {
	AddContactsStressTestTests * self;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ADD_CONTACTS_STRESS_TEST_TESTS, AddContactsStressTestTests);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 27 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_eds_test_backend_unref0 (self->priv->_eds_backend);
#line 28 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 29 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_g_object_unref0 (self->priv->_pstore);
#line 30 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_static_rec_mutex_free (&self->priv->__lock__added_contacts);
#line 31 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_g_hash_table_unref0 (self->priv->_contacts_found);
#line 33 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_g_date_time_unref0 (self->priv->_start_time);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	G_OBJECT_CLASS (add_contacts_stress_test_tests_parent_class)->finalize (obj);
#line 1434 "add-contacts-stress-test.c"
}


GType add_contacts_stress_test_tests_get_type (void) {
	static volatile gsize add_contacts_stress_test_tests_type_id__volatile = 0;
	if (g_once_init_enter (&add_contacts_stress_test_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (AddContactsStressTestTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) add_contacts_stress_test_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AddContactsStressTestTests), 0, (GInstanceInitFunc) add_contacts_stress_test_tests_instance_init, NULL };
		GType add_contacts_stress_test_tests_type_id;
		add_contacts_stress_test_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "AddContactsStressTestTests", &g_define_type_info, 0);
		g_once_init_leave (&add_contacts_stress_test_tests_type_id__volatile, add_contacts_stress_test_tests_type_id);
	}
	return add_contacts_stress_test_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	AddContactsStressTestTests* _tmp1_;
	AddContactsStressTestTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 205 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_test_init (&args_length1, &args, NULL);
#line 207 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp0_ = g_test_get_root ();
#line 207 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	root = _tmp0_;
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp1_ = add_contacts_stress_test_tests_new ();
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp2_ = _tmp1_;
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	_g_object_unref0 (_tmp2_);
#line 210 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_test_run ();
#line 212 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	result = 0;
#line 212 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	return result;
#line 1479 "add-contacts-stress-test.c"
}


int main (int argc, char ** argv) {
#line 203 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	g_type_init ();
#line 203 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/eds/add-contacts-stress-test.vala"
	return _vala_main (argv, argc);
#line 1488 "add-contacts-stress-test.c"
}



