/* init.c generated by valac 0.17.6.3-6918, the Vala compiler
 * generated from init.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: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
 *          Philip Withnall <philip@tecnocode.co.uk>
 */

#include <glib.h>
#include <glib-object.h>
#include <folks-test.h>
#include <kf-test.h>
#include <tp-test-contactlist.h>
#include <folks/folks.h>
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <gee.h>


#define TYPE_INIT_TESTS (init_tests_get_type ())
#define INIT_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INIT_TESTS, InitTests))
#define INIT_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INIT_TESTS, InitTestsClass))
#define IS_INIT_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INIT_TESTS))
#define IS_INIT_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INIT_TESTS))
#define INIT_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INIT_TESTS, InitTestsClass))

typedef struct _InitTests InitTests;
typedef struct _InitTestsClass InitTestsClass;
typedef struct _InitTestsPrivate InitTestsPrivate;
#define _kf_test_backend_unref0(var) ((var == NULL) ? NULL : (var = (kf_test_backend_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block1Data Block1Data;
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
typedef struct _Block2Data Block2Data;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _InitTestsTestIndividualCountLoopData InitTestsTestIndividualCountLoopData;
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

struct _InitTests {
	FolksTestCase parent_instance;
	InitTestsPrivate * priv;
};

struct _InitTestsClass {
	FolksTestCaseClass parent_class;
};

struct _InitTestsPrivate {
	KfTestBackend* _kf_backend;
	TpTestsBackend* _tp_backend;
	gint _test_timeout;
};

struct _Block1Data {
	int _ref_count_;
	InitTests * self;
	GMainLoop* main_loop;
};

struct _Block2Data {
	int _ref_count_;
	InitTests * self;
	GMainLoop* main_loop;
};

struct _InitTestsTestIndividualCountLoopData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	InitTests* self;
	gchar** previous_individual_ids;
	gint previous_individual_ids_length1;
	gint _previous_individual_ids_size_;
	guint i;
	gboolean _tmp0_;
	gboolean _tmp1_;
	guint _tmp2_;
	guint _tmp3_;
	FolksIndividualAggregator* _tmp4_;
	FolksIndividualAggregator* aggregator;
	FolksIndividualAggregator* _tmp5_;
	GError* e1;
	GError* _tmp6_;
	const gchar* _tmp7_;
	gchar** _tmp8_;
	gint _tmp8__length1;
	FolksIndividualAggregator* _tmp9_;
	GeeMap* _tmp10_;
	GeeMap* _tmp11_;
	GeeSet* _tmp12_;
	GeeSet* _tmp13_;
	GeeSet* _tmp14_;
	gint _tmp15_;
	gpointer* _tmp16_;
	gchar** _tmp17_;
	gint _tmp17__length1;
	FolksIndividualAggregator* _tmp18_;
	GeeMap* _tmp19_;
	GeeMap* _tmp20_;
	gint _tmp21_;
	gint _tmp22_;
	gchar** _tmp23_;
	gint _tmp23__length1;
	FolksIndividualAggregator* _tmp24_;
	GeeMap* _tmp25_;
	GeeMap* _tmp26_;
	gint _tmp27_;
	gint _tmp28_;
	FolksIndividualAggregator* _tmp29_;
	GeeMap* _tmp30_;
	GeeMap* _tmp31_;
	gint _tmp32_;
	gint _tmp33_;
	gchar** _tmp34_;
	gint _tmp34__length1;
	gchar** id_collection;
	gint id_collection_length1;
	gint _id_collection_size_;
	gint id_it;
	gchar* _tmp35_;
	gchar* id;
	const gchar* _tmp36_;
	FolksIndividualAggregator* _tmp37_;
	GeeMap* _tmp38_;
	GeeMap* _tmp39_;
	const gchar* _tmp40_;
	gboolean _tmp41_;
	GError * _inner_error_;
};


static gpointer init_tests_parent_class = NULL;

GType init_tests_get_type (void) G_GNUC_CONST;
#define INIT_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_INIT_TESTS, InitTestsPrivate))
enum  {
	INIT_TESTS_DUMMY_PROPERTY
};
InitTests* init_tests_new (void);
InitTests* init_tests_construct (GType object_type);
void init_tests_test_looped (InitTests* self);
static void _init_tests_test_looped_folks_test_case_test_method (gpointer self);
void init_tests_test_individual_count (InitTests* self);
static void _init_tests_test_individual_count_folks_test_case_test_method (gpointer self);
static void init_tests_real_set_up (FolksTestCase* base);
static void init_tests_real_tear_down (FolksTestCase* base);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
static gboolean __lambda2_ (Block1Data* _data1_);
static gboolean ___lambda2__gsource_func (gpointer self);
static Block2Data* block2_data_ref (Block2Data* _data2_);
static void block2_data_unref (void * _userdata_);
static gboolean __lambda3_ (Block2Data* _data2_);
static void _init_tests_test_individual_count_loop (InitTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _init_tests_test_individual_count_loop_finish (InitTests* self, GAsyncResult* _res_);
static void __lambda4_ (Block2Data* _data2_, GObject* obj, GAsyncResult* res);
static void ___lambda4__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static gboolean ___lambda3__gsource_func (gpointer self);
static void _init_tests_test_individual_count_loop_data_free (gpointer _data);
static gboolean _init_tests_test_individual_count_loop_co (InitTestsTestIndividualCountLoopData* _data_);
static void _init_tests_test_individual_count_loop_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void init_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);


static void _init_tests_test_looped_folks_test_case_test_method (gpointer self) {
#line 38 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	init_tests_test_looped (self);
#line 190 "init.c"
}


static void _init_tests_test_individual_count_folks_test_case_test_method (gpointer self) {
#line 39 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	init_tests_test_individual_count (self);
#line 197 "init.c"
}


InitTests* init_tests_construct (GType object_type) {
	InitTests * self = NULL;
	KfTestBackend* _tmp0_;
	TpTestsBackend* _tmp1_;
#line 32 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	self = (InitTests*) folks_test_case_construct (object_type, "Init");
#line 34 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp0_ = kf_test_backend_new ();
#line 34 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_kf_test_backend_unref0 (self->priv->_kf_backend);
#line 34 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	self->priv->_kf_backend = _tmp0_;
#line 35 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp1_ = tp_tests_backend_new ();
#line 35 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_g_object_unref0 (self->priv->_tp_backend);
#line 35 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	self->priv->_tp_backend = _tmp1_;
#line 38 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "looped", _init_tests_test_looped_folks_test_case_test_method, self);
#line 39 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "individual-count", _init_tests_test_individual_count_folks_test_case_test_method, self);
#line 30 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	return self;
#line 225 "init.c"
}


InitTests* init_tests_new (void) {
#line 30 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	return init_tests_construct (TYPE_INIT_TESTS);
#line 232 "init.c"
}


static void init_tests_real_set_up (FolksTestCase* base) {
	InitTests * self;
	TpTestsBackend* _tmp0_;
#line 42 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	self = (InitTests*) base;
#line 44 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp0_ = self->priv->_tp_backend;
#line 44 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	tp_tests_backend_set_up (_tmp0_);
#line 245 "init.c"
}


static void init_tests_real_tear_down (FolksTestCase* base) {
	InitTests * self;
	TpTestsBackend* _tmp0_;
#line 47 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	self = (InitTests*) base;
#line 49 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp0_ = self->priv->_tp_backend;
#line 49 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	tp_tests_backend_tear_down (_tmp0_);
#line 258 "init.c"
}


static Block1Data* block1_data_ref (Block1Data* _data1_) {
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	g_atomic_int_inc (&_data1_->_ref_count_);
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	return _data1_;
#line 267 "init.c"
}


static void block1_data_unref (void * _userdata_) {
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 276 "init.c"
		InitTests * self;
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
		self = _data1_->self;
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
		_g_main_loop_unref0 (_data1_->main_loop);
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
		_g_object_unref0 (self);
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
		g_slice_free (Block1Data, _data1_);
#line 286 "init.c"
	}
}


static gboolean __lambda2_ (Block1Data* _data1_) {
	InitTests * self;
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 76 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	self = _data1_->self;
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp0_ = _data1_->main_loop;
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	g_main_loop_quit (_tmp0_);
#line 79 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	result = FALSE;
#line 79 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	return result;
#line 305 "init.c"
}


static gboolean ___lambda2__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda2_ (self);
#line 76 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	return result;
#line 314 "init.c"
}


void init_tests_test_looped (InitTests* self) {
	Block1Data* _data1_;
	GMainLoop* _tmp0_;
	KfTestBackend* _tmp1_;
	TpTestsBackend* _tmp2_;
	void* _tmp3_ = NULL;
	void* account1_handle;
	TpTestsBackend* _tmp4_;
	void* _tmp5_ = NULL;
	void* account2_handle;
	gint _tmp12_;
	GMainLoop* _tmp13_;
	TpTestsBackend* _tmp14_;
	void* _tmp15_;
	TpTestsBackend* _tmp16_;
	void* _tmp17_;
	KfTestBackend* _tmp18_;
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	g_return_if_fail (self != NULL);
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data1_ = g_slice_new0 (Block1Data);
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data1_->_ref_count_ = 1;
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data1_->self = g_object_ref (self);
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data1_->main_loop = _tmp0_;
#line 60 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp1_ = self->priv->_kf_backend;
#line 60 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	kf_test_backend_set_up (_tmp1_, "");
#line 62 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp2_ = self->priv->_tp_backend;
#line 62 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp3_ = tp_tests_backend_add_account (_tmp2_, "protocol", "me@example.com", "cm", "account");
#line 62 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	account1_handle = _tmp3_;
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp4_ = self->priv->_tp_backend;
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp5_ = tp_tests_backend_add_account (_tmp4_, "protocol", "me2@example.com", "cm", "account2");
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	account2_handle = _tmp5_;
#line 363 "init.c"
	{
		guint i;
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
		i = (guint) 0;
#line 368 "init.c"
		{
			gboolean _tmp6_;
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
			_tmp6_ = TRUE;
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
			while (TRUE) {
#line 375 "init.c"
				gboolean _tmp7_;
				guint _tmp9_;
				FolksIndividualAggregator* _tmp10_;
				FolksIndividualAggregator* aggregator;
				FolksIndividualAggregator* _tmp11_;
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				_tmp7_ = _tmp6_;
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				if (!_tmp7_) {
#line 385 "init.c"
					guint _tmp8_;
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_tmp8_ = i;
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					i = _tmp8_ + 1;
#line 391 "init.c"
				}
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				_tmp6_ = FALSE;
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				_tmp9_ = i;
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				if (!(_tmp9_ < ((guint) 10))) {
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					break;
#line 401 "init.c"
				}
#line 70 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				_tmp10_ = folks_individual_aggregator_new ();
#line 70 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				aggregator = _tmp10_;
#line 71 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				_tmp11_ = aggregator;
#line 71 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				folks_individual_aggregator_prepare (_tmp11_, NULL, NULL);
#line 72 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				_g_object_unref0 (aggregator);
#line 72 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				aggregator = NULL;
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				_g_object_unref0 (aggregator);
#line 417 "init.c"
			}
		}
	}
#line 76 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp12_ = self->priv->_test_timeout;
#line 76 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) _tmp12_, ___lambda2__gsource_func, block1_data_ref (_data1_), block1_data_unref);
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp13_ = _data1_->main_loop;
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	g_main_loop_run (_tmp13_);
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp14_ = self->priv->_tp_backend;
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp15_ = account2_handle;
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	tp_tests_backend_remove_account (_tmp14_, _tmp15_);
#line 86 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp16_ = self->priv->_tp_backend;
#line 86 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp17_ = account1_handle;
#line 86 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	tp_tests_backend_remove_account (_tmp16_, _tmp17_);
#line 87 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp18_ = self->priv->_kf_backend;
#line 87 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	kf_test_backend_tear_down (_tmp18_);
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	block1_data_unref (_data1_);
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data1_ = NULL;
#line 449 "init.c"
}


static Block2Data* block2_data_ref (Block2Data* _data2_) {
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	g_atomic_int_inc (&_data2_->_ref_count_);
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	return _data2_;
#line 458 "init.c"
}


static void block2_data_unref (void * _userdata_) {
	Block2Data* _data2_;
	_data2_ = (Block2Data*) _userdata_;
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
#line 467 "init.c"
		InitTests * self;
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
		self = _data2_->self;
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
		_g_main_loop_unref0 (_data2_->main_loop);
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
		_g_object_unref0 (self);
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
		g_slice_free (Block2Data, _data2_);
#line 477 "init.c"
	}
}


static void __lambda4_ (Block2Data* _data2_, GObject* obj, GAsyncResult* res) {
	InitTests * self;
	GAsyncResult* _tmp0_;
#line 117 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	self = _data2_->self;
#line 117 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	g_return_if_fail (res != NULL);
#line 119 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp0_ = res;
#line 119 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_init_tests_test_individual_count_loop_finish (self, _tmp0_);
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	g_main_loop_quit (_data2_->main_loop);
#line 495 "init.c"
}


static void ___lambda4__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 117 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	__lambda4_ (self, source_object, res);
#line 117 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	block2_data_unref (self);
#line 504 "init.c"
}


static gboolean __lambda3_ (Block2Data* _data2_) {
	InitTests * self;
	gboolean result = FALSE;
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	self = _data2_->self;
#line 117 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_init_tests_test_individual_count_loop (self, ___lambda4__gasync_ready_callback, block2_data_ref (_data2_));
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	result = FALSE;
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	return result;
#line 519 "init.c"
}


static gboolean ___lambda3__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda3_ (self);
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	return result;
#line 528 "init.c"
}


void init_tests_test_individual_count (InitTests* self) {
	Block2Data* _data2_;
	GMainLoop* _tmp0_;
	KfTestBackend* _tmp1_;
	TpTestsBackend* _tmp2_;
	void* _tmp3_ = NULL;
	void* account1_handle;
	TpTestsBackend* _tmp4_;
	void* _tmp5_ = NULL;
	void* account2_handle;
	TpTestsBackend* _tmp6_;
	TpTestsBackend* _tmp7_;
	KfTestBackend* _tmp8_;
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	g_return_if_fail (self != NULL);
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data2_ = g_slice_new0 (Block2Data);
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data2_->_ref_count_ = 1;
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data2_->self = g_object_ref (self);
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data2_->main_loop = _tmp0_;
#line 102 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp1_ = self->priv->_kf_backend;
#line 102 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	kf_test_backend_set_up (_tmp1_, "[0]\n" "msn=foo@hotmail.com\n" "[1]\n" "__alias=Bar McBadgerson\n" "jabber=bar@jabber.org\n");
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp2_ = self->priv->_tp_backend;
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp3_ = tp_tests_backend_add_account (_tmp2_, "protocol", "me@example.com", "cm", "account");
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	account1_handle = _tmp3_;
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp4_ = self->priv->_tp_backend;
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp5_ = tp_tests_backend_add_account (_tmp4_, "protocol", "me2@example.com", "cm", "account2");
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	account2_handle = _tmp5_;
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda3__gsource_func, block2_data_ref (_data2_), block2_data_unref);
#line 126 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	g_main_loop_run (_data2_->main_loop);
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp6_ = self->priv->_tp_backend;
#line 129 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	tp_tests_backend_remove_account (_tmp6_, account2_handle);
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp7_ = self->priv->_tp_backend;
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	tp_tests_backend_remove_account (_tmp7_, account1_handle);
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp8_ = self->priv->_kf_backend;
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	kf_test_backend_tear_down (_tmp8_);
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	block2_data_unref (_data2_);
#line 98 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data2_ = NULL;
#line 593 "init.c"
}


static void _init_tests_test_individual_count_loop_data_free (gpointer _data) {
	InitTestsTestIndividualCountLoopData* _data_;
	_data_ = _data;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_g_object_unref0 (_data_->self);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	g_slice_free (InitTestsTestIndividualCountLoopData, _data_);
#line 604 "init.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	return self ? g_object_ref (self) : NULL;
#line 611 "init.c"
}


static void _init_tests_test_individual_count_loop (InitTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	InitTestsTestIndividualCountLoopData* _data_;
	InitTests* _tmp0_;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data_ = g_slice_new0 (InitTestsTestIndividualCountLoopData);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _init_tests_test_individual_count_loop);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _init_tests_test_individual_count_loop_data_free);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data_->self = _tmp0_;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_init_tests_test_individual_count_loop_co (_data_);
#line 630 "init.c"
}


static void _init_tests_test_individual_count_loop_finish (InitTests* self, GAsyncResult* _res_) {
	InitTestsTestIndividualCountLoopData* _data_;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 638 "init.c"
}


static void _init_tests_test_individual_count_loop_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	InitTestsTestIndividualCountLoopData* _data_;
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data_ = _user_data_;
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data_->_source_object_ = source_object;
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data_->_res_ = _res_;
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_init_tests_test_individual_count_loop_co (_data_);
#line 652 "init.c"
}


static gboolean _init_tests_test_individual_count_loop_co (InitTestsTestIndividualCountLoopData* _data_) {
#line 135 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	switch (_data_->_state_) {
#line 135 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
		case 0:
#line 661 "init.c"
		goto _state_0;
#line 135 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
		case 1:
#line 665 "init.c"
		goto _state_1;
		default:
#line 135 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
		g_assert_not_reached ();
#line 670 "init.c"
	}
	_state_0:
#line 137 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data_->previous_individual_ids = NULL;
#line 137 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data_->previous_individual_ids_length1 = 0;
#line 137 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data_->_previous_individual_ids_size_ = _data_->previous_individual_ids_length1;
#line 679 "init.c"
	{
#line 139 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
		_data_->i = (guint) 0;
#line 683 "init.c"
		{
#line 139 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
			_data_->_tmp0_ = TRUE;
#line 139 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
			while (TRUE) {
#line 139 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				_data_->_tmp1_ = _data_->_tmp0_;
#line 139 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				if (!_data_->_tmp1_) {
#line 139 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp2_ = _data_->i;
#line 139 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->i = _data_->_tmp2_ + 1;
#line 697 "init.c"
				}
#line 139 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				_data_->_tmp0_ = FALSE;
#line 139 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				_data_->_tmp3_ = _data_->i;
#line 139 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				if (!(_data_->_tmp3_ < ((guint) 10))) {
#line 139 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					break;
#line 707 "init.c"
				}
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				_data_->_tmp4_ = folks_individual_aggregator_new ();
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				_data_->aggregator = _data_->_tmp4_;
#line 713 "init.c"
				{
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp5_ = _data_->aggregator;
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_state_ = 1;
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					folks_test_utils_aggregator_prepare_and_wait_for_quiescence (_data_->_tmp5_, _init_tests_test_individual_count_loop_ready, _data_);
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					return FALSE;
#line 723 "init.c"
					_state_1:
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					folks_test_utils_aggregator_prepare_and_wait_for_quiescence_finish (_data_->_res_, &_data_->_inner_error_);
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					if (_data_->_inner_error_ != NULL) {
#line 729 "init.c"
						goto __catch0_g_error;
					}
				}
				goto __finally0;
				__catch0_g_error:
				{
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->e1 = _data_->_inner_error_;
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_inner_error_ = NULL;
#line 150 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp6_ = _data_->e1;
#line 150 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp7_ = _data_->_tmp6_->message;
#line 150 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					g_critical ("init.vala:150: Error preparing aggregator: %s", _data_->_tmp7_);
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_g_error_free0 (_data_->e1);
#line 748 "init.c"
				}
				__finally0:
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				if (_data_->_inner_error_ != NULL) {
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_g_object_unref0 (_data_->aggregator);
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->previous_individual_ids = (_vala_array_free (_data_->previous_individual_ids, _data_->previous_individual_ids_length1, (GDestroyNotify) g_free), NULL);
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.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 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					g_clear_error (&_data_->_inner_error_);
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					return FALSE;
#line 763 "init.c"
				}
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				_data_->_tmp8_ = _data_->previous_individual_ids;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				_data_->_tmp8__length1 = _data_->previous_individual_ids_length1;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				if (_data_->_tmp8_ == NULL) {
#line 156 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp9_ = _data_->aggregator;
#line 156 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp10_ = folks_individual_aggregator_get_individuals (_data_->_tmp9_);
#line 156 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp11_ = _data_->_tmp10_;
#line 156 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp12_ = gee_map_get_keys (_data_->_tmp11_);
#line 156 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp13_ = _data_->_tmp12_;
#line 156 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp14_ = _data_->_tmp13_;
#line 156 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp15_ = 0;
#line 156 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp16_ = NULL;
#line 156 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp16_ = gee_collection_to_array ((GeeCollection*) _data_->_tmp14_, &_data_->_tmp15_);
#line 156 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->previous_individual_ids = (_vala_array_free (_data_->previous_individual_ids, _data_->previous_individual_ids_length1, (GDestroyNotify) g_free), NULL);
#line 156 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->previous_individual_ids = _data_->_tmp16_;
#line 156 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->previous_individual_ids_length1 = _data_->_tmp15_;
#line 156 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_previous_individual_ids_size_ = _data_->previous_individual_ids_length1;
#line 156 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_g_object_unref0 (_data_->_tmp14_);
#line 799 "init.c"
				} else {
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp17_ = _data_->previous_individual_ids;
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp17__length1 = _data_->previous_individual_ids_length1;
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp18_ = _data_->aggregator;
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp19_ = folks_individual_aggregator_get_individuals (_data_->_tmp18_);
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp20_ = _data_->_tmp19_;
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp21_ = gee_map_get_size (_data_->_tmp20_);
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp22_ = _data_->_tmp21_;
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					g_debug ("init.vala:161: %u vs %u individuals:", (guint) _data_->_tmp17__length1, (guint) _data_->_tmp22_);
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp23_ = _data_->previous_individual_ids;
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp23__length1 = _data_->previous_individual_ids_length1;
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp24_ = _data_->aggregator;
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp25_ = folks_individual_aggregator_get_individuals (_data_->_tmp24_);
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp26_ = _data_->_tmp25_;
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp27_ = gee_map_get_size (_data_->_tmp26_);
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp28_ = _data_->_tmp27_;
#line 163 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_vala_assert (_data_->_tmp23__length1 == _data_->_tmp28_, "previous_individual_ids.length ==                   aggregator.individuals.size");
#line 165 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp29_ = _data_->aggregator;
#line 165 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp30_ = folks_individual_aggregator_get_individuals (_data_->_tmp29_);
#line 165 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp31_ = _data_->_tmp30_;
#line 165 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp32_ = gee_map_get_size (_data_->_tmp31_);
#line 165 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp33_ = _data_->_tmp32_;
#line 165 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_vala_assert (_data_->_tmp33_ > 0, "aggregator.individuals.size > 0");
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp34_ = _data_->previous_individual_ids;
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
					_data_->_tmp34__length1 = _data_->previous_individual_ids_length1;
#line 849 "init.c"
					{
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
						_data_->id_collection_length1 = 0;
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
						_data_->_id_collection_size_ = 0;
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
						_data_->id_collection = _data_->_tmp34_;
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
						_data_->id_collection_length1 = _data_->_tmp34__length1;
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
						for (_data_->id_it = 0; _data_->id_it < _data_->_tmp34__length1; _data_->id_it = _data_->id_it + 1) {
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
							_data_->_tmp35_ = g_strdup (_data_->id_collection[_data_->id_it]);
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
							_data_->id = _data_->_tmp35_;
#line 865 "init.c"
							{
#line 169 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
								_data_->_tmp36_ = _data_->id;
#line 169 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
								g_debug ("init.vala:169:   %s", _data_->_tmp36_);
#line 170 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
								_data_->_tmp37_ = _data_->aggregator;
#line 170 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
								_data_->_tmp38_ = folks_individual_aggregator_get_individuals (_data_->_tmp37_);
#line 170 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
								_data_->_tmp39_ = _data_->_tmp38_;
#line 170 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
								_data_->_tmp40_ = _data_->id;
#line 170 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
								_data_->_tmp41_ = FALSE;
#line 170 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
								_data_->_tmp41_ = gee_map_has_key (_data_->_tmp39_, _data_->_tmp40_);
#line 170 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
								_vala_assert (_data_->_tmp41_ == TRUE, "aggregator.individuals.has_key (id) == true");
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
								_g_free0 (_data_->id);
#line 887 "init.c"
							}
						}
					}
				}
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				_g_object_unref0 (_data_->aggregator);
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				_data_->aggregator = NULL;
#line 139 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
				_g_object_unref0 (_data_->aggregator);
#line 898 "init.c"
			}
		}
	}
#line 135 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_data_->previous_individual_ids = (_vala_array_free (_data_->previous_individual_ids, _data_->previous_individual_ids_length1, (GDestroyNotify) g_free), NULL);
#line 135 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	if (_data_->_state_ == 0) {
#line 135 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 908 "init.c"
	} else {
#line 135 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 912 "init.c"
	}
#line 135 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	g_object_unref (_data_->_async_result);
#line 135 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	return FALSE;
#line 918 "init.c"
}


static void init_tests_class_init (InitTestsClass * klass) {
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	init_tests_parent_class = g_type_class_peek_parent (klass);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	g_type_class_add_private (klass, sizeof (InitTestsPrivate));
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = init_tests_real_set_up;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = init_tests_real_tear_down;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	G_OBJECT_CLASS (klass)->finalize = init_tests_finalize;
#line 933 "init.c"
}


static void init_tests_instance_init (InitTests * self) {
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	self->priv = INIT_TESTS_GET_PRIVATE (self);
#line 28 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	self->priv->_test_timeout = 5;
#line 942 "init.c"
}


static void init_tests_finalize (GObject* obj) {
	InitTests * self;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_INIT_TESTS, InitTests);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_kf_test_backend_unref0 (self->priv->_kf_backend);
#line 27 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_g_object_unref0 (self->priv->_tp_backend);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	G_OBJECT_CLASS (init_tests_parent_class)->finalize (obj);
#line 956 "init.c"
}


GType init_tests_get_type (void) {
	static volatile gsize init_tests_type_id__volatile = 0;
	if (g_once_init_enter (&init_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (InitTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) init_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (InitTests), 0, (GInstanceInitFunc) init_tests_instance_init, NULL };
		GType init_tests_type_id;
		init_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "InitTests", &g_define_type_info, 0);
		g_once_init_leave (&init_tests_type_id__volatile, init_tests_type_id);
	}
	return init_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	InitTests* _tmp1_;
	InitTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 182 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	g_test_init (&args_length1, &args, NULL);
#line 184 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp0_ = g_test_get_root ();
#line 184 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	root = _tmp0_;
#line 185 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp1_ = init_tests_new ();
#line 185 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp2_ = _tmp1_;
#line 185 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 185 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 185 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	_g_object_unref0 (_tmp2_);
#line 187 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	g_test_run ();
#line 189 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	result = 0;
#line 189 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	return result;
#line 1001 "init.c"
}


int main (int argc, char ** argv) {
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	g_type_init ();
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/init.vala"
	return _vala_main (argv, argc);
#line 1010 "init.c"
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}



