/* backend-loading.c generated by valac 0.17.6.3-6918, the Vala compiler
 * generated from backend-loading.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: Travis Reitter <travis.reitter@collabora.co.uk>
 */

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


#define TYPE_BACKEND_LOADING_TESTS (backend_loading_tests_get_type ())
#define BACKEND_LOADING_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKEND_LOADING_TESTS, BackendLoadingTests))
#define BACKEND_LOADING_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKEND_LOADING_TESTS, BackendLoadingTestsClass))
#define IS_BACKEND_LOADING_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKEND_LOADING_TESTS))
#define IS_BACKEND_LOADING_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKEND_LOADING_TESTS))
#define BACKEND_LOADING_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKEND_LOADING_TESTS, BackendLoadingTestsClass))

typedef struct _BackendLoadingTests BackendLoadingTests;
typedef struct _BackendLoadingTestsClass BackendLoadingTestsClass;
typedef struct _BackendLoadingTestsPrivate BackendLoadingTestsPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_key_file_free0(var) ((var == NULL) ? NULL : (var = (g_key_file_free (var), NULL)))
typedef struct _Block1Data Block1Data;
typedef struct _BackendLoadingTestsTestDisablingAsyncData BackendLoadingTestsTestDisablingAsyncData;
typedef struct _BackendLoadingTestsTestReloadingAsyncData BackendLoadingTestsTestReloadingAsyncData;
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

struct _BackendLoadingTests {
	FolksTestCase parent_instance;
	BackendLoadingTestsPrivate * priv;
};

struct _BackendLoadingTestsClass {
	FolksTestCaseClass parent_class;
};

struct _BackendLoadingTestsPrivate {
	TpTestsBackend* _tp_backend;
	void* _account_handle;
	GMainLoop* main_loop;
};

struct _Block1Data {
	int _ref_count_;
	BackendLoadingTests * self;
	GMainLoop* main_loop;
	GeeHashSet* backends_expected;
	FolksBackendStore* store;
};

struct _BackendLoadingTestsTestDisablingAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BackendLoadingTests* self;
	FolksBackendStore* store;
	GHashFunc _tmp0_;
	GEqualFunc _tmp1_;
	GeeHashSet* _tmp2_;
	GeeHashSet* backends_expected;
	FolksBackendStore* _tmp3_;
	FolksBackendStore* _tmp4_;
	FolksBackendStore* _tmp5_;
	FolksBackendStore* _tmp6_;
	GeeMap* _tmp7_;
	GeeMap* _tmp8_;
	GeeCollection* _tmp9_;
	GeeCollection* _tmp10_;
	GeeCollection* _tmp11_;
	GeeIterator* _tmp12_;
	GeeIterator* _tmp13_;
	GeeIterator* _backend_it;
	GeeIterator* _tmp14_;
	gboolean _tmp15_;
	GeeIterator* _tmp16_;
	gpointer _tmp17_;
	FolksBackend* backend;
	FolksBackend* _tmp18_;
	const gchar* _tmp19_;
	const gchar* _tmp20_;
	gboolean _tmp21_;
	FolksBackend* _tmp22_;
	const gchar* _tmp23_;
	const gchar* _tmp24_;
	gint _tmp25_;
	gint _tmp26_;
	GMainLoop* _tmp27_;
	GError* e;
	const gchar* _tmp28_;
	GError * _inner_error_;
};

struct _BackendLoadingTestsTestReloadingAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BackendLoadingTests* self;
	FolksBackendStore* store;
	GeeHashSet* backends_expected;
	GHashFunc _tmp0_;
	GEqualFunc _tmp1_;
	GeeHashSet* _tmp2_;
	GeeHashSet* _tmp3_;
	GeeHashSet* _tmp4_;
	FolksBackendStore* _tmp5_;
	FolksBackendStore* _tmp6_;
	GeeMap* _tmp7_;
	GeeMap* _tmp8_;
	GeeCollection* _tmp9_;
	GeeCollection* _tmp10_;
	GeeCollection* _tmp11_;
	GeeIterator* _tmp12_;
	GeeIterator* _tmp13_;
	GeeIterator* _backend1_it;
	GeeIterator* _tmp14_;
	gboolean _tmp15_;
	GeeIterator* _tmp16_;
	gpointer _tmp17_;
	FolksBackend* backend1;
	GeeHashSet* _tmp18_;
	FolksBackend* _tmp19_;
	const gchar* _tmp20_;
	const gchar* _tmp21_;
	gboolean _tmp22_;
	GeeHashSet* _tmp23_;
	FolksBackend* _tmp24_;
	const gchar* _tmp25_;
	const gchar* _tmp26_;
	GeeHashSet* _tmp27_;
	gint _tmp28_;
	gint _tmp29_;
	GError* e1;
	const gchar* _tmp30_;
	GHashFunc _tmp31_;
	GEqualFunc _tmp32_;
	GeeHashSet* _tmp33_;
	GeeHashSet* _tmp34_;
	FolksBackendStore* _tmp35_;
	FolksBackendStore* _tmp36_;
	FolksBackendStore* _tmp37_;
	GeeMap* _tmp38_;
	GeeMap* _tmp39_;
	GeeCollection* _tmp40_;
	GeeCollection* _tmp41_;
	GeeCollection* _tmp42_;
	GeeIterator* _tmp43_;
	GeeIterator* _tmp44_;
	GeeIterator* _backend2_it;
	GeeIterator* _tmp45_;
	gboolean _tmp46_;
	GeeIterator* _tmp47_;
	gpointer _tmp48_;
	FolksBackend* backend2;
	GeeHashSet* _tmp49_;
	FolksBackend* _tmp50_;
	const gchar* _tmp51_;
	const gchar* _tmp52_;
	gboolean _tmp53_;
	GeeHashSet* _tmp54_;
	FolksBackend* _tmp55_;
	const gchar* _tmp56_;
	const gchar* _tmp57_;
	GeeHashSet* _tmp58_;
	gint _tmp59_;
	gint _tmp60_;
	GError* e2;
	const gchar* _tmp61_;
	GHashFunc _tmp62_;
	GEqualFunc _tmp63_;
	GeeHashSet* _tmp64_;
	GeeHashSet* _tmp65_;
	GeeHashSet* _tmp66_;
	FolksBackendStore* _tmp67_;
	FolksBackendStore* _tmp68_;
	FolksBackendStore* _tmp69_;
	GeeMap* _tmp70_;
	GeeMap* _tmp71_;
	GeeCollection* _tmp72_;
	GeeCollection* _tmp73_;
	GeeCollection* _tmp74_;
	GeeIterator* _tmp75_;
	GeeIterator* _tmp76_;
	GeeIterator* _backend3_it;
	GeeIterator* _tmp77_;
	gboolean _tmp78_;
	GeeIterator* _tmp79_;
	gpointer _tmp80_;
	FolksBackend* backend3;
	GeeHashSet* _tmp81_;
	FolksBackend* _tmp82_;
	const gchar* _tmp83_;
	const gchar* _tmp84_;
	gboolean _tmp85_;
	GeeHashSet* _tmp86_;
	FolksBackend* _tmp87_;
	const gchar* _tmp88_;
	const gchar* _tmp89_;
	GeeHashSet* _tmp90_;
	gint _tmp91_;
	gint _tmp92_;
	GError* e3;
	const gchar* _tmp93_;
	GHashFunc _tmp94_;
	GEqualFunc _tmp95_;
	GeeHashSet* _tmp96_;
	GeeHashSet* _tmp97_;
	GeeHashSet* _tmp98_;
	FolksBackendStore* _tmp99_;
	FolksBackendStore* _tmp100_;
	GeeMap* _tmp101_;
	GeeMap* _tmp102_;
	GeeCollection* _tmp103_;
	GeeCollection* _tmp104_;
	GeeCollection* _tmp105_;
	GeeIterator* _tmp106_;
	GeeIterator* _tmp107_;
	GeeIterator* _backend_it;
	GeeIterator* _tmp108_;
	gboolean _tmp109_;
	GeeIterator* _tmp110_;
	gpointer _tmp111_;
	FolksBackend* backend;
	GeeHashSet* _tmp112_;
	FolksBackend* _tmp113_;
	const gchar* _tmp114_;
	const gchar* _tmp115_;
	gboolean _tmp116_;
	GeeHashSet* _tmp117_;
	FolksBackend* _tmp118_;
	const gchar* _tmp119_;
	const gchar* _tmp120_;
	GeeHashSet* _tmp121_;
	gint _tmp122_;
	gint _tmp123_;
	GError* e4;
	const gchar* _tmp124_;
	GMainLoop* _tmp125_;
	GError * _inner_error_;
};


static gpointer backend_loading_tests_parent_class = NULL;

GType backend_loading_tests_get_type (void) G_GNUC_CONST;
#define BACKEND_LOADING_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_BACKEND_LOADING_TESTS, BackendLoadingTestsPrivate))
enum  {
	BACKEND_LOADING_TESTS_DUMMY_PROPERTY
};
#define BACKEND_LOADING_TESTS_STORE_FILE_PATH "folks-test-backend-store.ini"
BackendLoadingTests* backend_loading_tests_new (void);
BackendLoadingTests* backend_loading_tests_construct (GType object_type);
void backend_loading_tests_test_load_and_prep (BackendLoadingTests* self);
static void _backend_loading_tests_test_load_and_prep_folks_test_case_test_method (gpointer self);
void backend_loading_tests_test_disabling (BackendLoadingTests* self);
static void _backend_loading_tests_test_disabling_folks_test_case_test_method (gpointer self);
void backend_loading_tests_test_reloading (BackendLoadingTests* self);
static void _backend_loading_tests_test_reloading_folks_test_case_test_method (gpointer self);
static void backend_loading_tests_real_set_up (FolksTestCase* base);
static void backend_loading_tests_real_tear_down (FolksTestCase* base);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
static void __lambda2_ (Block1Data* _data1_, GObject* o, GAsyncResult* r);
static void ___lambda2__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void __lambda3_ (Block1Data* _data1_, GObject* o, GAsyncResult* r);
static void ___lambda3__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void backend_loading_tests_test_disabling_async (BackendLoadingTests* self, FolksBackendStore* store, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void backend_loading_tests_test_disabling_finish (BackendLoadingTests* self, GAsyncResult* _res_);
static void __lambda4_ (BackendLoadingTests* self, GObject* o, GAsyncResult* r);
static void ___lambda4__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void backend_loading_tests_test_disabling_async_data_free (gpointer _data);
static gboolean backend_loading_tests_test_disabling_async_co (BackendLoadingTestsTestDisablingAsyncData* _data_);
static void backend_loading_tests_test_disabling_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void backend_loading_tests_test_reloading_async (BackendLoadingTests* self, FolksBackendStore* store, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void backend_loading_tests_test_reloading_finish (BackendLoadingTests* self, GAsyncResult* _res_);
static void __lambda5_ (BackendLoadingTests* self, GObject* o, GAsyncResult* r);
static void ___lambda5__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void backend_loading_tests_test_reloading_async_data_free (gpointer _data);
static gboolean backend_loading_tests_test_reloading_async_co (BackendLoadingTestsTestReloadingAsyncData* _data_);
static void backend_loading_tests_test_reloading_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void backend_loading_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _backend_loading_tests_test_load_and_prep_folks_test_case_test_method (gpointer self) {
#line 36 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	backend_loading_tests_test_load_and_prep (self);
#line 317 "backend-loading.c"
}


static void _backend_loading_tests_test_disabling_folks_test_case_test_method (gpointer self) {
#line 37 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	backend_loading_tests_test_disabling (self);
#line 324 "backend-loading.c"
}


static void _backend_loading_tests_test_reloading_folks_test_case_test_method (gpointer self) {
#line 38 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	backend_loading_tests_test_reloading (self);
#line 331 "backend-loading.c"
}


BackendLoadingTests* backend_loading_tests_construct (GType object_type) {
	BackendLoadingTests * self = NULL;
	TpTestsBackend* _tmp0_;
#line 32 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	self = (BackendLoadingTests*) folks_test_case_construct (object_type, "BackendLoading");
#line 34 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp0_ = tp_tests_backend_new ();
#line 34 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (self->priv->_tp_backend);
#line 34 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	self->priv->_tp_backend = _tmp0_;
#line 36 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "load and prep", _backend_loading_tests_test_load_and_prep_folks_test_case_test_method, self);
#line 37 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "disabling", _backend_loading_tests_test_disabling_folks_test_case_test_method, self);
#line 38 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "reloading", _backend_loading_tests_test_reloading_folks_test_case_test_method, self);
#line 30 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	return self;
#line 354 "backend-loading.c"
}


BackendLoadingTests* backend_loading_tests_new (void) {
#line 30 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	return backend_loading_tests_construct (TYPE_BACKEND_LOADING_TESTS);
#line 361 "backend-loading.c"
}


static guint8* string_get_data (const gchar* self, int* result_length1) {
	guint8* result;
	guint8* res;
	gint res_length1;
	gint _res_size_;
	gint _tmp0_;
	gint _tmp1_;
	gint _tmp2_;
	guint8* _tmp3_;
	gint _tmp3__length1;
	guint8* _tmp4_;
	gint _tmp4__length1;
#line 1246 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1247 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	res = (guint8*) self;
#line 1247 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	res_length1 = -1;
#line 1247 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	_res_size_ = res_length1;
#line 1248 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp0_ = strlen (self);
#line 1248 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp1_ = _tmp0_;
#line 1248 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	res_length1 = (gint) _tmp1_;
#line 1248 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp2_ = res_length1;
#line 1249 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp3_ = res;
#line 1249 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp3__length1 = res_length1;
#line 1249 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp4_ = _tmp3_;
#line 1249 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp4__length1 = _tmp3__length1;
#line 1249 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	if (result_length1) {
#line 1249 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
		*result_length1 = _tmp4__length1;
#line 405 "backend-loading.c"
	}
#line 1249 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	result = _tmp4_;
#line 1249 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	return result;
#line 411 "backend-loading.c"
}


static void backend_loading_tests_real_set_up (FolksTestCase* base) {
	BackendLoadingTests * self;
	TpTestsBackend* _tmp0_;
	TpTestsBackend* _tmp1_;
	void* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* kf_path;
	GKeyFile* _tmp5_;
	GKeyFile* kf;
	GError * _inner_error_ = NULL;
#line 41 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	self = (BackendLoadingTests*) base;
#line 43 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp0_ = self->priv->_tp_backend;
#line 43 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	tp_tests_backend_set_up (_tmp0_);
#line 44 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp1_ = self->priv->_tp_backend;
#line 44 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp2_ = tp_tests_backend_add_account (_tmp1_, "protocol", "me@example.com", "cm", "account");
#line 44 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	self->priv->_account_handle = _tmp2_;
#line 48 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp3_ = g_get_tmp_dir ();
#line 48 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp4_ = g_build_filename (_tmp3_, BACKEND_LOADING_TESTS_STORE_FILE_PATH, NULL, NULL);
#line 48 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	kf_path = _tmp4_;
#line 51 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_remove (kf_path);
#line 53 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp5_ = g_key_file_new ();
#line 53 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	kf = _tmp5_;
#line 54 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_key_file_set_boolean (kf, "all-others", "enabled", FALSE);
#line 55 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_key_file_set_boolean (kf, "telepathy", "enabled", TRUE);
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_key_file_set_boolean (kf, "key-file", "enabled", TRUE);
#line 456 "backend-loading.c"
	{
		GFile* _tmp6_ = NULL;
		GFile* backend_f;
		gchar* _tmp7_ = NULL;
		gchar* data;
		guint8* _tmp8_;
		gint _tmp8__length1;
		guint8* _tmp9_;
		gint _tmp9__length1;
#line 60 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_tmp6_ = g_file_new_for_path (kf_path);
#line 60 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		backend_f = _tmp6_;
#line 61 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_tmp7_ = g_key_file_to_data (kf, NULL, NULL);
#line 61 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		data = _tmp7_;
#line 62 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_tmp8_ = string_get_data (data, &_tmp8__length1);
#line 62 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_tmp9_ = _tmp8_;
#line 62 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_tmp9__length1 = _tmp8__length1;
#line 62 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_file_replace_contents (backend_f, _tmp9_, (gsize) _tmp9__length1, NULL, FALSE, G_FILE_CREATE_PRIVATE, NULL, NULL, &_inner_error_);
#line 62 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		if (_inner_error_ != NULL) {
#line 62 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_g_free0 (data);
#line 62 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (backend_f);
#line 488 "backend-loading.c"
			goto __catch0_g_error;
		}
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_free0 (data);
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_object_unref0 (backend_f);
#line 495 "backend-loading.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp10_;
		const gchar* _tmp11_;
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		e = _inner_error_;
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_inner_error_ = NULL;
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_tmp10_ = e;
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_tmp11_ = _tmp10_->message;
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_warning ("backend-loading.vala:68: Could not write updated backend key file '%s'" \
": %s", kf_path, _tmp11_);
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_error_free0 (e);
#line 515 "backend-loading.c"
	}
	__finally0:
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	if (_inner_error_ != NULL) {
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_key_file_free0 (kf);
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_free0 (kf_path);
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.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 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_clear_error (&_inner_error_);
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		return;
#line 530 "backend-loading.c"
	}
#line 72 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_setenv ("FOLKS_BACKEND_STORE_KEY_FILE_PATH", kf_path, TRUE);
#line 41 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_key_file_free0 (kf);
#line 41 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_free0 (kf_path);
#line 538 "backend-loading.c"
}


static void backend_loading_tests_real_tear_down (FolksTestCase* base) {
	BackendLoadingTests * self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_;
	TpTestsBackend* _tmp3_;
	void* _tmp4_;
	TpTestsBackend* _tmp5_;
#line 76 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	self = (BackendLoadingTests*) base;
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp0_ = g_get_tmp_dir ();
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp1_ = g_build_filename (_tmp0_, BACKEND_LOADING_TESTS_STORE_FILE_PATH, NULL, NULL);
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp2_ = _tmp1_;
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_remove (_tmp2_);
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_free0 (_tmp2_);
#line 81 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp3_ = self->priv->_tp_backend;
#line 81 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp4_ = self->priv->_account_handle;
#line 81 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	tp_tests_backend_remove_account (_tmp3_, _tmp4_);
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp5_ = self->priv->_tp_backend;
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	tp_tests_backend_tear_down (_tmp5_);
#line 572 "backend-loading.c"
}


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


static void block1_data_unref (void * _userdata_) {
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 590 "backend-loading.c"
		BackendLoadingTests * self;
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		self = _data1_->self;
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_object_unref0 (_data1_->store);
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_object_unref0 (_data1_->backends_expected);
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_main_loop_unref0 (_data1_->main_loop);
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_object_unref0 (self);
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_slice_free (Block1Data, _data1_);
#line 604 "backend-loading.c"
	}
}


static void __lambda2_ (Block1Data* _data1_, GObject* o, GAsyncResult* r) {
	BackendLoadingTests * self;
	GAsyncResult* _tmp0_;
#line 94 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	self = _data1_->self;
#line 94 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_return_if_fail (r != NULL);
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp0_ = r;
#line 96 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	folks_backend_store_prepare_finish (_data1_->store, _tmp0_);
#line 620 "backend-loading.c"
}


static void ___lambda2__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 94 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	__lambda2_ (self, source_object, res);
#line 94 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	block1_data_unref (self);
#line 629 "backend-loading.c"
}


static void __lambda3_ (Block1Data* _data1_, GObject* o, GAsyncResult* r) {
	BackendLoadingTests * self;
	GError * _inner_error_ = NULL;
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	self = _data1_->self;
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_return_if_fail (r != NULL);
#line 640 "backend-loading.c"
	{
		GAsyncResult* _tmp0_;
		gint _tmp19_;
		gint _tmp20_;
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_tmp0_ = r;
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends_finish (_data1_->store, _tmp0_, &_inner_error_);
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		if (_inner_error_ != NULL) {
#line 651 "backend-loading.c"
			goto __catch1_g_error;
		}
		{
			GeeMap* _tmp1_;
			GeeMap* _tmp2_;
			GeeCollection* _tmp3_;
			GeeCollection* _tmp4_;
			GeeCollection* _tmp5_;
			GeeIterator* _tmp6_ = NULL;
			GeeIterator* _tmp7_;
			GeeIterator* _backend_it;
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_tmp1_ = folks_backend_store_get_enabled_backends (_data1_->store);
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_tmp2_ = _tmp1_;
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_tmp3_ = gee_map_get_values (_tmp2_);
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_tmp4_ = _tmp3_;
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_tmp5_ = _tmp4_;
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_tmp6_ = gee_iterable_iterator ((GeeIterable*) _tmp5_);
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_tmp7_ = _tmp6_;
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_tmp5_);
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_backend_it = _tmp7_;
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			while (TRUE) {
#line 683 "backend-loading.c"
				GeeIterator* _tmp8_;
				gboolean _tmp9_ = FALSE;
				GeeIterator* _tmp10_;
				gpointer _tmp11_ = NULL;
				FolksBackend* backend;
				FolksBackend* _tmp12_;
				const gchar* _tmp13_;
				const gchar* _tmp14_;
				gboolean _tmp15_ = FALSE;
				FolksBackend* _tmp16_;
				const gchar* _tmp17_;
				const gchar* _tmp18_;
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_tmp8_ = _backend_it;
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_tmp9_ = gee_iterator_next (_tmp8_);
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				if (!_tmp9_) {
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
					break;
#line 704 "backend-loading.c"
				}
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_tmp10_ = _backend_it;
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_tmp11_ = gee_iterator_get (_tmp10_);
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				backend = (FolksBackend*) _tmp11_;
#line 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_tmp12_ = backend;
#line 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_tmp13_ = folks_backend_get_name (_tmp12_);
#line 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_tmp14_ = _tmp13_;
#line 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_tmp15_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _data1_->backends_expected, _tmp14_);
#line 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_vala_assert (_tmp15_, "backends_expected.contains (backend.name)");
#line 108 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_tmp16_ = backend;
#line 108 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_tmp17_ = folks_backend_get_name (_tmp16_);
#line 108 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_tmp18_ = _tmp17_;
#line 108 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				gee_abstract_collection_remove ((GeeAbstractCollection*) _data1_->backends_expected, _tmp18_);
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_g_object_unref0 (backend);
#line 732 "backend-loading.c"
			}
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_backend_it);
#line 736 "backend-loading.c"
		}
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_tmp19_ = gee_abstract_collection_get_size ((GeeCollection*) _data1_->backends_expected);
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_tmp20_ = _tmp19_;
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_vala_assert (_tmp20_ == 0, "backends_expected.size == 0");
#line 112 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_main_loop_quit (_data1_->main_loop);
#line 746 "backend-loading.c"
	}
	goto __finally1;
	__catch1_g_error:
	{
		GError* e = NULL;
		const gchar* _tmp21_;
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		e = _inner_error_;
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_inner_error_ = NULL;
#line 116 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_tmp21_ = e->message;
#line 116 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_error ("backend-loading.vala:116: Failed to load backends: %s", _tmp21_);
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_error_free0 (e);
#line 763 "backend-loading.c"
	}
	__finally1:
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	if (_inner_error_ != NULL) {
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.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 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_clear_error (&_inner_error_);
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		return;
#line 774 "backend-loading.c"
	}
}


static void ___lambda3__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	__lambda3_ (self, source_object, res);
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	block1_data_unref (self);
#line 784 "backend-loading.c"
}


void backend_loading_tests_test_load_and_prep (BackendLoadingTests* self) {
	Block1Data* _data1_;
	GMainLoop* _tmp0_;
	GHashFunc _tmp1_;
	GEqualFunc _tmp2_;
	GeeHashSet* _tmp3_;
	FolksBackendStore* _tmp4_ = NULL;
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_return_if_fail (self != NULL);
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data1_ = g_slice_new0 (Block1Data);
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data1_->_ref_count_ = 1;
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data1_->self = g_object_ref (self);
#line 87 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 87 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data1_->main_loop = _tmp0_;
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp1_ = g_str_hash;
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp2_ = g_str_equal;
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp3_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, _tmp1_, _tmp2_);
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data1_->backends_expected = _tmp3_;
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data1_->backends_expected, "key-file");
#line 91 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data1_->backends_expected, "telepathy");
#line 93 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp4_ = folks_backend_store_dup ();
#line 93 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data1_->store = _tmp4_;
#line 94 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	folks_backend_store_prepare (_data1_->store, ___lambda2__gasync_ready_callback, block1_data_ref (_data1_));
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	folks_backend_store_load_backends (_data1_->store, ___lambda3__gasync_ready_callback, block1_data_ref (_data1_));
#line 120 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_main_loop_run (_data1_->main_loop);
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	block1_data_unref (_data1_);
#line 85 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data1_ = NULL;
#line 833 "backend-loading.c"
}


static void __lambda4_ (BackendLoadingTests* self, GObject* o, GAsyncResult* r) {
	GAsyncResult* _tmp0_;
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_return_if_fail (r != NULL);
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp0_ = r;
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	backend_loading_tests_test_disabling_finish (self, _tmp0_);
#line 845 "backend-loading.c"
}


static void ___lambda4__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	__lambda4_ (self, source_object, res);
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_object_unref (self);
#line 854 "backend-loading.c"
}


void backend_loading_tests_test_disabling (BackendLoadingTests* self) {
	GMainLoop* _tmp0_;
	FolksBackendStore* _tmp1_ = NULL;
	FolksBackendStore* store;
	GMainLoop* _tmp2_;
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_return_if_fail (self != NULL);
#line 125 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 125 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_main_loop_unref0 (self->priv->main_loop);
#line 125 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	self->priv->main_loop = _tmp0_;
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp1_ = folks_backend_store_dup ();
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	store = _tmp1_;
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	backend_loading_tests_test_disabling_async (self, store, ___lambda4__gasync_ready_callback, g_object_ref (self));
#line 133 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp2_ = self->priv->main_loop;
#line 133 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_main_loop_run (_tmp2_);
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (store);
#line 883 "backend-loading.c"
}


static void backend_loading_tests_test_disabling_async_data_free (gpointer _data) {
	BackendLoadingTestsTestDisablingAsyncData* _data_;
	_data_ = _data;
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_data_->store);
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_data_->self);
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_slice_free (BackendLoadingTestsTestDisablingAsyncData, _data_);
#line 896 "backend-loading.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	return self ? g_object_ref (self) : NULL;
#line 903 "backend-loading.c"
}


static void backend_loading_tests_test_disabling_async (BackendLoadingTests* self, FolksBackendStore* store, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BackendLoadingTestsTestDisablingAsyncData* _data_;
	BackendLoadingTests* _tmp0_;
	FolksBackendStore* _tmp1_;
	FolksBackendStore* _tmp2_;
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_ = g_slice_new0 (BackendLoadingTestsTestDisablingAsyncData);
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, backend_loading_tests_test_disabling_async);
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, backend_loading_tests_test_disabling_async_data_free);
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->self = _tmp0_;
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp1_ = store;
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->store = _tmp2_;
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	backend_loading_tests_test_disabling_async_co (_data_);
#line 930 "backend-loading.c"
}


static void backend_loading_tests_test_disabling_finish (BackendLoadingTests* self, GAsyncResult* _res_) {
	BackendLoadingTestsTestDisablingAsyncData* _data_;
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 938 "backend-loading.c"
}


static void backend_loading_tests_test_disabling_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BackendLoadingTestsTestDisablingAsyncData* _data_;
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_ = _user_data_;
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_source_object_ = source_object;
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_res_ = _res_;
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	backend_loading_tests_test_disabling_async_co (_data_);
#line 952 "backend-loading.c"
}


static gboolean backend_loading_tests_test_disabling_async_co (BackendLoadingTestsTestDisablingAsyncData* _data_) {
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	switch (_data_->_state_) {
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		case 0:
#line 961 "backend-loading.c"
		goto _state_0;
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		case 1:
#line 965 "backend-loading.c"
		goto _state_1;
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		case 2:
#line 969 "backend-loading.c"
		goto _state_2;
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		case 3:
#line 973 "backend-loading.c"
		goto _state_3;
		default:
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_assert_not_reached ();
#line 978 "backend-loading.c"
	}
	_state_0:
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp0_ = g_str_hash;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp1_ = g_str_equal;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp2_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, _data_->_tmp0_, _data_->_tmp1_);
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->backends_expected = _data_->_tmp2_;
#line 139 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->backends_expected, "key-file");
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp3_ = _data_->store;
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_state_ = 1;
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	folks_backend_store_prepare (_data_->_tmp3_, backend_loading_tests_test_disabling_async_ready, _data_);
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	return FALSE;
#line 999 "backend-loading.c"
	_state_1:
#line 142 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	folks_backend_store_prepare_finish (_data_->_tmp3_, _data_->_res_);
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp4_ = _data_->store;
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_state_ = 2;
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	folks_backend_store_disable_backend (_data_->_tmp4_, "telepathy", backend_loading_tests_test_disabling_async_ready, _data_);
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	return FALSE;
#line 1011 "backend-loading.c"
	_state_2:
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	folks_backend_store_disable_backend_finish (_data_->_tmp4_, _data_->_res_);
#line 1015 "backend-loading.c"
	{
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp5_ = _data_->store;
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_state_ = 3;
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends (_data_->_tmp5_, backend_loading_tests_test_disabling_async_ready, _data_);
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 1025 "backend-loading.c"
		_state_3:
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends_finish (_data_->_tmp5_, _data_->_res_, &_data_->_inner_error_);
#line 147 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		if (_data_->_inner_error_ != NULL) {
#line 1031 "backend-loading.c"
			goto __catch2_g_error;
		}
		{
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp6_ = _data_->store;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp7_ = folks_backend_store_get_enabled_backends (_data_->_tmp6_);
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp8_ = _data_->_tmp7_;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp9_ = gee_map_get_values (_data_->_tmp8_);
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp10_ = _data_->_tmp9_;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp11_ = _data_->_tmp10_;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp12_ = NULL;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp12_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp11_);
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp13_ = _data_->_tmp12_;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_tmp11_);
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_backend_it = _data_->_tmp13_;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			while (TRUE) {
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp14_ = _data_->_backend_it;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp15_ = FALSE;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp15_ = gee_iterator_next (_data_->_tmp14_);
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				if (!_data_->_tmp15_) {
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
					break;
#line 1069 "backend-loading.c"
				}
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp16_ = _data_->_backend_it;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp17_ = NULL;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp17_ = gee_iterator_get (_data_->_tmp16_);
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->backend = (FolksBackend*) _data_->_tmp17_;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp18_ = _data_->backend;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp19_ = folks_backend_get_name (_data_->_tmp18_);
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp20_ = _data_->_tmp19_;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp21_ = FALSE;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp21_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _data_->backends_expected, _data_->_tmp20_);
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_vala_assert (_data_->_tmp21_, "backends_expected.contains (backend.name)");
#line 152 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp22_ = _data_->backend;
#line 152 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp23_ = folks_backend_get_name (_data_->_tmp22_);
#line 152 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp24_ = _data_->_tmp23_;
#line 152 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				gee_abstract_collection_remove ((GeeAbstractCollection*) _data_->backends_expected, _data_->_tmp24_);
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_g_object_unref0 (_data_->backend);
#line 1101 "backend-loading.c"
			}
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_backend_it);
#line 1105 "backend-loading.c"
		}
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp25_ = gee_abstract_collection_get_size ((GeeCollection*) _data_->backends_expected);
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp26_ = _data_->_tmp25_;
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_vala_assert (_data_->_tmp26_ == 0, "backends_expected.size == 0");
#line 156 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp27_ = _data_->self->priv->main_loop;
#line 156 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_main_loop_quit (_data_->_tmp27_);
#line 1117 "backend-loading.c"
	}
	goto __finally2;
	__catch2_g_error:
	{
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->e = _data_->_inner_error_;
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_inner_error_ = NULL;
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp28_ = _data_->e->message;
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_error ("backend-loading.vala:160: Failed to load backends: %s", _data_->_tmp28_);
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_error_free0 (_data_->e);
#line 1132 "backend-loading.c"
	}
	__finally2:
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	if (_data_->_inner_error_ != NULL) {
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_object_unref0 (_data_->backends_expected);
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.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 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_clear_error (&_data_->_inner_error_);
#line 145 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 1145 "backend-loading.c"
	}
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_data_->backends_expected);
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	if (_data_->_state_ == 0) {
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1153 "backend-loading.c"
	} else {
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1157 "backend-loading.c"
	}
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_object_unref (_data_->_async_result);
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	return FALSE;
#line 1163 "backend-loading.c"
}


static void __lambda5_ (BackendLoadingTests* self, GObject* o, GAsyncResult* r) {
	GAsyncResult* _tmp0_;
#line 169 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_return_if_fail (r != NULL);
#line 171 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp0_ = r;
#line 171 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	backend_loading_tests_test_reloading_finish (self, _tmp0_);
#line 1175 "backend-loading.c"
}


static void ___lambda5__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 169 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	__lambda5_ (self, source_object, res);
#line 169 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_object_unref (self);
#line 1184 "backend-loading.c"
}


void backend_loading_tests_test_reloading (BackendLoadingTests* self) {
	GMainLoop* _tmp0_;
	FolksBackendStore* _tmp1_ = NULL;
	FolksBackendStore* store;
	GMainLoop* _tmp2_;
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_return_if_fail (self != NULL);
#line 166 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 166 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_main_loop_unref0 (self->priv->main_loop);
#line 166 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	self->priv->main_loop = _tmp0_;
#line 168 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp1_ = folks_backend_store_dup ();
#line 168 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	store = _tmp1_;
#line 169 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	backend_loading_tests_test_reloading_async (self, store, ___lambda5__gasync_ready_callback, g_object_ref (self));
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp2_ = self->priv->main_loop;
#line 174 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_main_loop_run (_tmp2_);
#line 164 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (store);
#line 1213 "backend-loading.c"
}


static void backend_loading_tests_test_reloading_async_data_free (gpointer _data) {
	BackendLoadingTestsTestReloadingAsyncData* _data_;
	_data_ = _data;
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_data_->store);
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_data_->self);
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_slice_free (BackendLoadingTestsTestReloadingAsyncData, _data_);
#line 1226 "backend-loading.c"
}


static void backend_loading_tests_test_reloading_async (BackendLoadingTests* self, FolksBackendStore* store, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BackendLoadingTestsTestReloadingAsyncData* _data_;
	BackendLoadingTests* _tmp0_;
	FolksBackendStore* _tmp1_;
	FolksBackendStore* _tmp2_;
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_ = g_slice_new0 (BackendLoadingTestsTestReloadingAsyncData);
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, backend_loading_tests_test_reloading_async);
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, backend_loading_tests_test_reloading_async_data_free);
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->self = _tmp0_;
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp1_ = store;
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->store = _tmp2_;
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	backend_loading_tests_test_reloading_async_co (_data_);
#line 1253 "backend-loading.c"
}


static void backend_loading_tests_test_reloading_finish (BackendLoadingTests* self, GAsyncResult* _res_) {
	BackendLoadingTestsTestReloadingAsyncData* _data_;
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1261 "backend-loading.c"
}


static void backend_loading_tests_test_reloading_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BackendLoadingTestsTestReloadingAsyncData* _data_;
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_ = _user_data_;
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_source_object_ = source_object;
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_res_ = _res_;
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	backend_loading_tests_test_reloading_async_co (_data_);
#line 1275 "backend-loading.c"
}


static gboolean backend_loading_tests_test_reloading_async_co (BackendLoadingTestsTestReloadingAsyncData* _data_) {
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	switch (_data_->_state_) {
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		case 0:
#line 1284 "backend-loading.c"
		goto _state_0;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		case 1:
#line 1288 "backend-loading.c"
		goto _state_1;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		case 2:
#line 1292 "backend-loading.c"
		goto _state_2;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		case 3:
#line 1296 "backend-loading.c"
		goto _state_3;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		case 4:
#line 1300 "backend-loading.c"
		goto _state_4;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		case 5:
#line 1304 "backend-loading.c"
		goto _state_5;
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		case 6:
#line 1308 "backend-loading.c"
		goto _state_6;
		default:
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_assert_not_reached ();
#line 1313 "backend-loading.c"
	}
	_state_0:
#line 184 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp0_ = g_str_hash;
#line 184 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp1_ = g_str_equal;
#line 184 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp2_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, _data_->_tmp0_, _data_->_tmp1_);
#line 184 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_data_->backends_expected);
#line 184 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->backends_expected = _data_->_tmp2_;
#line 185 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp3_ = _data_->backends_expected;
#line 185 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp3_, "key-file");
#line 186 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp4_ = _data_->backends_expected;
#line 186 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp4_, "telepathy");
#line 1334 "backend-loading.c"
	{
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp5_ = _data_->store;
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_state_ = 1;
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends (_data_->_tmp5_, backend_loading_tests_test_reloading_async_ready, _data_);
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 1344 "backend-loading.c"
		_state_1:
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends_finish (_data_->_tmp5_, _data_->_res_, &_data_->_inner_error_);
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		if (_data_->_inner_error_ != NULL) {
#line 1350 "backend-loading.c"
			goto __catch3_g_error;
		}
		{
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp6_ = _data_->store;
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp7_ = folks_backend_store_get_enabled_backends (_data_->_tmp6_);
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp8_ = _data_->_tmp7_;
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp9_ = gee_map_get_values (_data_->_tmp8_);
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp10_ = _data_->_tmp9_;
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp11_ = _data_->_tmp10_;
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp12_ = NULL;
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp12_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp11_);
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp13_ = _data_->_tmp12_;
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_tmp11_);
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_backend1_it = _data_->_tmp13_;
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			while (TRUE) {
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp14_ = _data_->_backend1_it;
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp15_ = FALSE;
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp15_ = gee_iterator_next (_data_->_tmp14_);
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				if (!_data_->_tmp15_) {
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
					break;
#line 1388 "backend-loading.c"
				}
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp16_ = _data_->_backend1_it;
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp17_ = NULL;
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp17_ = gee_iterator_get (_data_->_tmp16_);
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->backend1 = (FolksBackend*) _data_->_tmp17_;
#line 194 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp18_ = _data_->backends_expected;
#line 194 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp19_ = _data_->backend1;
#line 194 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp20_ = folks_backend_get_name (_data_->_tmp19_);
#line 194 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp21_ = _data_->_tmp20_;
#line 194 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp22_ = FALSE;
#line 194 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp22_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _data_->_tmp18_, _data_->_tmp21_);
#line 194 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_vala_assert (_data_->_tmp22_, "backends_expected.contains (backend1.name)");
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp23_ = _data_->backends_expected;
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp24_ = _data_->backend1;
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp25_ = folks_backend_get_name (_data_->_tmp24_);
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp26_ = _data_->_tmp25_;
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				gee_abstract_collection_remove ((GeeAbstractCollection*) _data_->_tmp23_, _data_->_tmp26_);
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_g_object_unref0 (_data_->backend1);
#line 1424 "backend-loading.c"
			}
#line 192 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_backend1_it);
#line 1428 "backend-loading.c"
		}
#line 198 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp27_ = _data_->backends_expected;
#line 198 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp28_ = gee_abstract_collection_get_size ((GeeCollection*) _data_->_tmp27_);
#line 198 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp29_ = _data_->_tmp28_;
#line 198 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_vala_assert (_data_->_tmp29_ == 0, "backends_expected.size == 0");
#line 1438 "backend-loading.c"
	}
	goto __finally3;
	__catch3_g_error:
	{
#line 188 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->e1 = _data_->_inner_error_;
#line 188 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_inner_error_ = NULL;
#line 202 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp30_ = _data_->e1->message;
#line 202 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_error ("backend-loading.vala:202: Failed to load backends: %s", _data_->_tmp30_);
#line 188 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_error_free0 (_data_->e1);
#line 1453 "backend-loading.c"
	}
	__finally3:
#line 188 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	if (_data_->_inner_error_ != NULL) {
#line 188 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_object_unref0 (_data_->backends_expected);
#line 188 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.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 188 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_clear_error (&_data_->_inner_error_);
#line 188 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 1466 "backend-loading.c"
	}
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp31_ = g_str_hash;
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp32_ = g_str_equal;
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp33_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, _data_->_tmp31_, _data_->_tmp32_);
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_data_->backends_expected);
#line 208 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->backends_expected = _data_->_tmp33_;
#line 209 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp34_ = _data_->backends_expected;
#line 209 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp34_, "telepathy");
#line 212 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp35_ = _data_->store;
#line 212 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_state_ = 2;
#line 212 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	folks_backend_store_disable_backend (_data_->_tmp35_, "key-file", backend_loading_tests_test_reloading_async_ready, _data_);
#line 212 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	return FALSE;
#line 1490 "backend-loading.c"
	_state_2:
#line 212 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	folks_backend_store_disable_backend_finish (_data_->_tmp35_, _data_->_res_);
#line 1494 "backend-loading.c"
	{
#line 217 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp36_ = _data_->store;
#line 217 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_state_ = 3;
#line 217 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends (_data_->_tmp36_, backend_loading_tests_test_reloading_async_ready, _data_);
#line 217 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 1504 "backend-loading.c"
		_state_3:
#line 217 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends_finish (_data_->_tmp36_, _data_->_res_, &_data_->_inner_error_);
#line 217 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		if (_data_->_inner_error_ != NULL) {
#line 1510 "backend-loading.c"
			goto __catch4_g_error;
		}
		{
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp37_ = _data_->store;
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp38_ = folks_backend_store_get_enabled_backends (_data_->_tmp37_);
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp39_ = _data_->_tmp38_;
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp40_ = gee_map_get_values (_data_->_tmp39_);
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp41_ = _data_->_tmp40_;
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp42_ = _data_->_tmp41_;
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp43_ = NULL;
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp43_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp42_);
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp44_ = _data_->_tmp43_;
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_tmp42_);
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_backend2_it = _data_->_tmp44_;
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			while (TRUE) {
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp45_ = _data_->_backend2_it;
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp46_ = FALSE;
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp46_ = gee_iterator_next (_data_->_tmp45_);
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				if (!_data_->_tmp46_) {
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
					break;
#line 1548 "backend-loading.c"
				}
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp47_ = _data_->_backend2_it;
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp48_ = NULL;
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp48_ = gee_iterator_get (_data_->_tmp47_);
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->backend2 = (FolksBackend*) _data_->_tmp48_;
#line 221 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp49_ = _data_->backends_expected;
#line 221 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp50_ = _data_->backend2;
#line 221 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp51_ = folks_backend_get_name (_data_->_tmp50_);
#line 221 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp52_ = _data_->_tmp51_;
#line 221 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp53_ = FALSE;
#line 221 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp53_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _data_->_tmp49_, _data_->_tmp52_);
#line 221 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_vala_assert (_data_->_tmp53_, "backends_expected.contains (backend2.name)");
#line 222 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp54_ = _data_->backends_expected;
#line 222 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp55_ = _data_->backend2;
#line 222 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp56_ = folks_backend_get_name (_data_->_tmp55_);
#line 222 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp57_ = _data_->_tmp56_;
#line 222 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				gee_abstract_collection_remove ((GeeAbstractCollection*) _data_->_tmp54_, _data_->_tmp57_);
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_g_object_unref0 (_data_->backend2);
#line 1584 "backend-loading.c"
			}
#line 219 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_backend2_it);
#line 1588 "backend-loading.c"
		}
#line 225 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp58_ = _data_->backends_expected;
#line 225 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp59_ = gee_abstract_collection_get_size ((GeeCollection*) _data_->_tmp58_);
#line 225 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp60_ = _data_->_tmp59_;
#line 225 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_vala_assert (_data_->_tmp60_ == 0, "backends_expected.size == 0");
#line 1598 "backend-loading.c"
	}
	goto __finally4;
	__catch4_g_error:
	{
#line 215 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->e2 = _data_->_inner_error_;
#line 215 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_inner_error_ = NULL;
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp61_ = _data_->e2->message;
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_error ("backend-loading.vala:229: Failed to load backends: %s", _data_->_tmp61_);
#line 215 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_error_free0 (_data_->e2);
#line 1613 "backend-loading.c"
	}
	__finally4:
#line 215 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	if (_data_->_inner_error_ != NULL) {
#line 215 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_object_unref0 (_data_->backends_expected);
#line 215 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.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 215 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_clear_error (&_data_->_inner_error_);
#line 215 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 1626 "backend-loading.c"
	}
#line 235 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp62_ = g_str_hash;
#line 235 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp63_ = g_str_equal;
#line 235 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp64_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, _data_->_tmp62_, _data_->_tmp63_);
#line 235 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_data_->backends_expected);
#line 235 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->backends_expected = _data_->_tmp64_;
#line 236 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp65_ = _data_->backends_expected;
#line 236 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp65_, "key-file");
#line 237 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp66_ = _data_->backends_expected;
#line 237 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp66_, "telepathy");
#line 240 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp67_ = _data_->store;
#line 240 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_state_ = 4;
#line 240 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	folks_backend_store_enable_backend (_data_->_tmp67_, "key-file", backend_loading_tests_test_reloading_async_ready, _data_);
#line 240 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	return FALSE;
#line 1654 "backend-loading.c"
	_state_4:
#line 240 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	folks_backend_store_enable_backend_finish (_data_->_tmp67_, _data_->_res_);
#line 1658 "backend-loading.c"
	{
#line 245 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp68_ = _data_->store;
#line 245 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_state_ = 5;
#line 245 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends (_data_->_tmp68_, backend_loading_tests_test_reloading_async_ready, _data_);
#line 245 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 1668 "backend-loading.c"
		_state_5:
#line 245 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends_finish (_data_->_tmp68_, _data_->_res_, &_data_->_inner_error_);
#line 245 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		if (_data_->_inner_error_ != NULL) {
#line 1674 "backend-loading.c"
			goto __catch5_g_error;
		}
		{
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp69_ = _data_->store;
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp70_ = folks_backend_store_get_enabled_backends (_data_->_tmp69_);
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp71_ = _data_->_tmp70_;
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp72_ = gee_map_get_values (_data_->_tmp71_);
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp73_ = _data_->_tmp72_;
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp74_ = _data_->_tmp73_;
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp75_ = NULL;
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp75_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp74_);
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp76_ = _data_->_tmp75_;
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_tmp74_);
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_backend3_it = _data_->_tmp76_;
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			while (TRUE) {
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp77_ = _data_->_backend3_it;
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp78_ = FALSE;
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp78_ = gee_iterator_next (_data_->_tmp77_);
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				if (!_data_->_tmp78_) {
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
					break;
#line 1712 "backend-loading.c"
				}
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp79_ = _data_->_backend3_it;
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp80_ = NULL;
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp80_ = gee_iterator_get (_data_->_tmp79_);
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->backend3 = (FolksBackend*) _data_->_tmp80_;
#line 249 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp81_ = _data_->backends_expected;
#line 249 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp82_ = _data_->backend3;
#line 249 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp83_ = folks_backend_get_name (_data_->_tmp82_);
#line 249 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp84_ = _data_->_tmp83_;
#line 249 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp85_ = FALSE;
#line 249 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp85_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _data_->_tmp81_, _data_->_tmp84_);
#line 249 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_vala_assert (_data_->_tmp85_, "backends_expected.contains (backend3.name)");
#line 250 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp86_ = _data_->backends_expected;
#line 250 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp87_ = _data_->backend3;
#line 250 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp88_ = folks_backend_get_name (_data_->_tmp87_);
#line 250 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp89_ = _data_->_tmp88_;
#line 250 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				gee_abstract_collection_remove ((GeeAbstractCollection*) _data_->_tmp86_, _data_->_tmp89_);
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_g_object_unref0 (_data_->backend3);
#line 1748 "backend-loading.c"
			}
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_backend3_it);
#line 1752 "backend-loading.c"
		}
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp90_ = _data_->backends_expected;
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp91_ = gee_abstract_collection_get_size ((GeeCollection*) _data_->_tmp90_);
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp92_ = _data_->_tmp91_;
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_vala_assert (_data_->_tmp92_ == 0, "backends_expected.size == 0");
#line 1762 "backend-loading.c"
	}
	goto __finally5;
	__catch5_g_error:
	{
#line 243 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->e3 = _data_->_inner_error_;
#line 243 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_inner_error_ = NULL;
#line 257 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp93_ = _data_->e3->message;
#line 257 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_error ("backend-loading.vala:257: Failed to load backends: %s", _data_->_tmp93_);
#line 243 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_error_free0 (_data_->e3);
#line 1777 "backend-loading.c"
	}
	__finally5:
#line 243 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	if (_data_->_inner_error_ != NULL) {
#line 243 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_object_unref0 (_data_->backends_expected);
#line 243 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.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 243 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_clear_error (&_data_->_inner_error_);
#line 243 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 1790 "backend-loading.c"
	}
#line 264 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp94_ = g_str_hash;
#line 264 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp95_ = g_str_equal;
#line 264 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp96_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, _data_->_tmp94_, _data_->_tmp95_);
#line 264 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_data_->backends_expected);
#line 264 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->backends_expected = _data_->_tmp96_;
#line 265 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp97_ = _data_->backends_expected;
#line 265 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp97_, "key-file");
#line 266 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp98_ = _data_->backends_expected;
#line 266 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp98_, "telepathy");
#line 1810 "backend-loading.c"
	{
#line 271 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp99_ = _data_->store;
#line 271 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_state_ = 6;
#line 271 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends (_data_->_tmp99_, backend_loading_tests_test_reloading_async_ready, _data_);
#line 271 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 1820 "backend-loading.c"
		_state_6:
#line 271 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends_finish (_data_->_tmp99_, _data_->_res_, &_data_->_inner_error_);
#line 271 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		if (_data_->_inner_error_ != NULL) {
#line 1826 "backend-loading.c"
			goto __catch6_g_error;
		}
		{
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp100_ = _data_->store;
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp101_ = folks_backend_store_get_enabled_backends (_data_->_tmp100_);
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp102_ = _data_->_tmp101_;
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp103_ = gee_map_get_values (_data_->_tmp102_);
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp104_ = _data_->_tmp103_;
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp105_ = _data_->_tmp104_;
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp106_ = NULL;
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp106_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp105_);
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_tmp107_ = _data_->_tmp106_;
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_tmp105_);
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_data_->_backend_it = _data_->_tmp107_;
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			while (TRUE) {
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp108_ = _data_->_backend_it;
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp109_ = FALSE;
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp109_ = gee_iterator_next (_data_->_tmp108_);
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				if (!_data_->_tmp109_) {
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
					break;
#line 1864 "backend-loading.c"
				}
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp110_ = _data_->_backend_it;
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp111_ = NULL;
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp111_ = gee_iterator_get (_data_->_tmp110_);
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->backend = (FolksBackend*) _data_->_tmp111_;
#line 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp112_ = _data_->backends_expected;
#line 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp113_ = _data_->backend;
#line 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp114_ = folks_backend_get_name (_data_->_tmp113_);
#line 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp115_ = _data_->_tmp114_;
#line 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp116_ = FALSE;
#line 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp116_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _data_->_tmp112_, _data_->_tmp115_);
#line 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_vala_assert (_data_->_tmp116_, "backends_expected.contains (backend.name)");
#line 276 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp117_ = _data_->backends_expected;
#line 276 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp118_ = _data_->backend;
#line 276 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp119_ = folks_backend_get_name (_data_->_tmp118_);
#line 276 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_data_->_tmp120_ = _data_->_tmp119_;
#line 276 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				gee_abstract_collection_remove ((GeeAbstractCollection*) _data_->_tmp117_, _data_->_tmp120_);
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
				_g_object_unref0 (_data_->backend);
#line 1900 "backend-loading.c"
			}
#line 273 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_backend_it);
#line 1904 "backend-loading.c"
		}
#line 279 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp121_ = _data_->backends_expected;
#line 279 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp122_ = gee_abstract_collection_get_size ((GeeCollection*) _data_->_tmp121_);
#line 279 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp123_ = _data_->_tmp122_;
#line 279 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_vala_assert (_data_->_tmp123_ == 0, "backends_expected.size == 0");
#line 1914 "backend-loading.c"
	}
	goto __finally6;
	__catch6_g_error:
	{
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->e4 = _data_->_inner_error_;
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_inner_error_ = NULL;
#line 283 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_data_->_tmp124_ = _data_->e4->message;
#line 283 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_error ("backend-loading.vala:283: Failed to load backends: %s", _data_->_tmp124_);
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_error_free0 (_data_->e4);
#line 1929 "backend-loading.c"
	}
	__finally6:
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	if (_data_->_inner_error_ != NULL) {
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		_g_object_unref0 (_data_->backends_expected);
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.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 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_clear_error (&_data_->_inner_error_);
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 1942 "backend-loading.c"
	}
#line 286 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_data_->_tmp125_ = _data_->self->priv->main_loop;
#line 286 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_main_loop_quit (_data_->_tmp125_);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_data_->backends_expected);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	if (_data_->_state_ == 0) {
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1954 "backend-loading.c"
	} else {
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1958 "backend-loading.c"
	}
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_object_unref (_data_->_async_result);
#line 177 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	return FALSE;
#line 1964 "backend-loading.c"
}


static void backend_loading_tests_class_init (BackendLoadingTestsClass * klass) {
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	backend_loading_tests_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_type_class_add_private (klass, sizeof (BackendLoadingTestsPrivate));
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = backend_loading_tests_real_set_up;
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = backend_loading_tests_real_tear_down;
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	G_OBJECT_CLASS (klass)->finalize = backend_loading_tests_finalize;
#line 1979 "backend-loading.c"
}


static void backend_loading_tests_instance_init (BackendLoadingTests * self) {
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	self->priv = BACKEND_LOADING_TESTS_GET_PRIVATE (self);
#line 1986 "backend-loading.c"
}


static void backend_loading_tests_finalize (GObject* obj) {
	BackendLoadingTests * self;
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_BACKEND_LOADING_TESTS, BackendLoadingTests);
#line 25 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (self->priv->_tp_backend);
#line 27 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_main_loop_unref0 (self->priv->main_loop);
#line 23 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	G_OBJECT_CLASS (backend_loading_tests_parent_class)->finalize (obj);
#line 2000 "backend-loading.c"
}


GType backend_loading_tests_get_type (void) {
	static volatile gsize backend_loading_tests_type_id__volatile = 0;
	if (g_once_init_enter (&backend_loading_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BackendLoadingTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) backend_loading_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BackendLoadingTests), 0, (GInstanceInitFunc) backend_loading_tests_instance_init, NULL };
		GType backend_loading_tests_type_id;
		backend_loading_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "BackendLoadingTests", &g_define_type_info, 0);
		g_once_init_leave (&backend_loading_tests_type_id__volatile, backend_loading_tests_type_id);
	}
	return backend_loading_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	BackendLoadingTests* _tmp1_;
	BackendLoadingTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 292 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_test_init (&args_length1, &args, NULL);
#line 294 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp0_ = g_test_get_root ();
#line 294 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	root = _tmp0_;
#line 295 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp1_ = backend_loading_tests_new ();
#line 295 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp2_ = _tmp1_;
#line 295 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 295 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 295 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_tmp2_);
#line 297 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_test_run ();
#line 299 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	result = 0;
#line 299 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	return result;
#line 2045 "backend-loading.c"
}


int main (int argc, char ** argv) {
#line 290 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	g_type_init ();
#line 290 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/folks/backend-loading.vala"
	return _vala_main (argv, argc);
#line 2054 "backend-loading.c"
}



