/* backend-loading.c generated by valac 0.14.0.3-1a311, 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;

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

struct _BackendLoadingTestsClass {
	FolksTestCaseClass parent_class;
};

struct _BackendLoadingTestsPrivate {
	TpTestBackend* _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 (Block1Data* _data1_);
static void __lambda0_ (Block1Data* _data1_, GObject* o, GAsyncResult* r);
static void ___lambda0__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void __lambda1_ (Block1Data* _data1_, GObject* o, GAsyncResult* r);
static void ___lambda1__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 __lambda2_ (BackendLoadingTests* self, GObject* o, GAsyncResult* r);
static void ___lambda2__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 __lambda3_ (BackendLoadingTests* self, GObject* o, GAsyncResult* r);
static void ___lambda3__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/treitter/collabora/folks/tests/folks/backend-loading.vala"
	backend_loading_tests_test_load_and_prep (self);
#line 316 "backend-loading.c"
}


static void _backend_loading_tests_test_disabling_folks_test_case_test_method (gpointer self) {
#line 37 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	backend_loading_tests_test_disabling (self);
#line 323 "backend-loading.c"
}


static void _backend_loading_tests_test_reloading_folks_test_case_test_method (gpointer self) {
#line 38 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	backend_loading_tests_test_reloading (self);
#line 330 "backend-loading.c"
}


BackendLoadingTests* backend_loading_tests_construct (GType object_type) {
	BackendLoadingTests * self = NULL;
	TpTestBackend* _tmp0_;
#line 32 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	self = (BackendLoadingTests*) folks_test_case_construct (object_type, "BackendLoading");
#line 34 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp0_ = tp_test_backend_new ();
#line 34 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (self->priv->_tp_backend);
#line 34 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	self->priv->_tp_backend = _tmp0_;
#line 36 "/home/treitter/collabora/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/treitter/collabora/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/treitter/collabora/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/treitter/collabora/folks/tests/folks/backend-loading.vala"
	return self;
#line 353 "backend-loading.c"
}


BackendLoadingTests* backend_loading_tests_new (void) {
#line 30 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	return backend_loading_tests_construct (TYPE_BACKEND_LOADING_TESTS);
#line 360 "backend-loading.c"
}


static void backend_loading_tests_real_set_up (FolksTestCase* base) {
	BackendLoadingTests * self;
	TpTestBackend* _tmp0_;
	TpTestBackend* _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/treitter/collabora/folks/tests/folks/backend-loading.vala"
	self = (BackendLoadingTests*) base;
#line 43 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp0_ = self->priv->_tp_backend;
#line 43 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	tp_test_backend_set_up (_tmp0_);
#line 44 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp1_ = self->priv->_tp_backend;
#line 44 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp2_ = tp_test_backend_add_account (_tmp1_, "protocol", "me@example.com", "cm", "account");
#line 44 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	self->priv->_account_handle = _tmp2_;
#line 48 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp3_ = g_get_tmp_dir ();
#line 48 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp4_ = g_build_filename (_tmp3_, BACKEND_LOADING_TESTS_STORE_FILE_PATH, NULL, NULL);
#line 48 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	kf_path = _tmp4_;
#line 51 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	g_remove (kf_path);
#line 53 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp5_ = g_key_file_new ();
#line 53 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	kf = _tmp5_;
#line 54 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	g_key_file_set_boolean (kf, "all-others", "enabled", FALSE);
#line 55 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	g_key_file_set_boolean (kf, "telepathy", "enabled", TRUE);
#line 56 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	g_key_file_set_boolean (kf, "key-file", "enabled", TRUE);
#line 405 "backend-loading.c"
	{
		GFile* _tmp6_ = NULL;
		GFile* backend_f;
		gchar* _tmp7_ = NULL;
		gchar* data;
		gint _tmp8_;
		gint _tmp9_;
#line 60 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_tmp6_ = g_file_new_for_path (kf_path);
#line 60 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		backend_f = _tmp6_;
#line 61 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_tmp7_ = g_key_file_to_data (kf, NULL, NULL);
#line 61 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		data = _tmp7_;
#line 62 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_tmp8_ = strlen (data);
#line 62 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_tmp9_ = _tmp8_;
#line 62 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_file_replace_contents (backend_f, data, (gsize) _tmp9_, NULL, FALSE, G_FILE_CREATE_PRIVATE, NULL, NULL, &_inner_error_);
#line 62 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		if (_inner_error_ != NULL) {
#line 62 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_g_free0 (data);
#line 62 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (backend_f);
#line 433 "backend-loading.c"
			goto __catch0_g_error;
		}
#line 58 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_free0 (data);
#line 58 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_object_unref0 (backend_f);
#line 440 "backend-loading.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp10_;
		const gchar* _tmp11_;
#line 58 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		e = _inner_error_;
#line 58 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_inner_error_ = NULL;
#line 68 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_tmp10_ = e;
#line 68 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_tmp11_ = _tmp10_->message;
#line 68 "/home/treitter/collabora/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/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_error_free0 (e);
#line 460 "backend-loading.c"
	}
	__finally0:
#line 58 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	if (_inner_error_ != NULL) {
#line 58 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_key_file_free0 (kf);
#line 58 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_free0 (kf_path);
#line 58 "/home/treitter/collabora/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/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_clear_error (&_inner_error_);
#line 58 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		return;
#line 475 "backend-loading.c"
	}
#line 72 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	g_setenv ("FOLKS_BACKEND_STORE_KEY_FILE_PATH", kf_path, TRUE);
#line 41 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_g_key_file_free0 (kf);
#line 41 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_g_free0 (kf_path);
#line 483 "backend-loading.c"
}


static void backend_loading_tests_real_tear_down (FolksTestCase* base) {
	BackendLoadingTests * self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_;
	TpTestBackend* _tmp3_;
	void* _tmp4_;
	TpTestBackend* _tmp5_;
#line 76 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	self = (BackendLoadingTests*) base;
#line 78 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp0_ = g_get_tmp_dir ();
#line 78 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp1_ = g_build_filename (_tmp0_, BACKEND_LOADING_TESTS_STORE_FILE_PATH, NULL, NULL);
#line 78 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp2_ = _tmp1_;
#line 78 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	g_remove (_tmp2_);
#line 78 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_g_free0 (_tmp2_);
#line 81 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp3_ = self->priv->_tp_backend;
#line 81 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp4_ = self->priv->_account_handle;
#line 81 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	tp_test_backend_remove_account (_tmp3_, _tmp4_);
#line 82 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp5_ = self->priv->_tp_backend;
#line 82 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	tp_test_backend_tear_down (_tmp5_);
#line 517 "backend-loading.c"
}


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


static void block1_data_unref (Block1Data* _data1_) {
#line 85 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 85 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_object_unref0 (_data1_->self);
#line 85 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_object_unref0 (_data1_->store);
#line 85 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_object_unref0 (_data1_->backends_expected);
#line 85 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_main_loop_unref0 (_data1_->main_loop);
#line 85 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_slice_free (Block1Data, _data1_);
#line 543 "backend-loading.c"
	}
}


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


static void ___lambda0__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 94 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	__lambda0_ (self, source_object, res);
#line 94 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	block1_data_unref (self);
#line 568 "backend-loading.c"
}


static void __lambda1_ (Block1Data* _data1_, GObject* o, GAsyncResult* r) {
	BackendLoadingTests * self;
	GError * _inner_error_ = NULL;
#line 99 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	self = _data1_->self;
#line 99 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	g_return_if_fail (r != NULL);
#line 579 "backend-loading.c"
	{
		GAsyncResult* _tmp0_;
		gint _tmp19_;
		gint _tmp20_;
#line 103 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_tmp0_ = r;
#line 103 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends_finish (_data1_->store, _tmp0_, &_inner_error_);
#line 103 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		if (_inner_error_ != NULL) {
#line 590 "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/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_tmp1_ = folks_backend_store_get_enabled_backends (_data1_->store);
#line 105 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_tmp2_ = _tmp1_;
#line 105 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_tmp3_ = gee_map_get_values (_tmp2_);
#line 105 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_tmp4_ = _tmp3_;
#line 105 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_tmp5_ = _tmp4_;
#line 105 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_tmp6_ = gee_iterable_iterator ((GeeIterable*) _tmp5_);
#line 105 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_tmp7_ = _tmp6_;
#line 105 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_tmp5_);
#line 105 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_backend_it = _tmp7_;
#line 105 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			while (TRUE) {
#line 622 "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/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_tmp8_ = _backend_it;
#line 105 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_tmp9_ = gee_iterator_next (_tmp8_);
#line 105 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				if (!_tmp9_) {
#line 105 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
					break;
#line 643 "backend-loading.c"
				}
#line 105 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_tmp10_ = _backend_it;
#line 105 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_tmp11_ = gee_iterator_get (_tmp10_);
#line 105 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				backend = (FolksBackend*) _tmp11_;
#line 107 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_tmp12_ = backend;
#line 107 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_tmp13_ = folks_backend_get_name (_tmp12_);
#line 107 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_tmp14_ = _tmp13_;
#line 107 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_tmp15_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _data1_->backends_expected, _tmp14_);
#line 107 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				g_assert (_tmp15_);
#line 108 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_tmp16_ = backend;
#line 108 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_tmp17_ = folks_backend_get_name (_tmp16_);
#line 108 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_tmp18_ = _tmp17_;
#line 108 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				gee_abstract_collection_remove ((GeeAbstractCollection*) _data1_->backends_expected, _tmp18_);
#line 105 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_g_object_unref0 (backend);
#line 671 "backend-loading.c"
			}
#line 105 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_backend_it);
#line 675 "backend-loading.c"
		}
#line 111 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_tmp19_ = gee_collection_get_size ((GeeCollection*) _data1_->backends_expected);
#line 111 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_tmp20_ = _tmp19_;
#line 111 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_assert (_tmp20_ == 0);
#line 112 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_main_loop_quit (_data1_->main_loop);
#line 685 "backend-loading.c"
	}
	goto __finally1;
	__catch1_g_error:
	{
		GError* e = NULL;
		const gchar* _tmp21_;
#line 101 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		e = _inner_error_;
#line 101 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_inner_error_ = NULL;
#line 116 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_tmp21_ = e->message;
#line 116 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_error ("backend-loading.vala:116: Failed to load backends: %s", _tmp21_);
#line 101 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_error_free0 (e);
#line 702 "backend-loading.c"
	}
	__finally1:
#line 101 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	if (_inner_error_ != NULL) {
#line 101 "/home/treitter/collabora/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/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_clear_error (&_inner_error_);
#line 101 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		return;
#line 713 "backend-loading.c"
	}
}


static void ___lambda1__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 99 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	__lambda1_ (self, source_object, res);
#line 99 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	block1_data_unref (self);
#line 723 "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/treitter/collabora/folks/tests/folks/backend-loading.vala"
	g_return_if_fail (self != NULL);
#line 85 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data1_ = g_slice_new0 (Block1Data);
#line 85 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data1_->_ref_count_ = 1;
#line 85 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data1_->self = g_object_ref (self);
#line 87 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 87 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data1_->main_loop = _tmp0_;
#line 88 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp1_ = g_str_hash;
#line 88 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp2_ = g_str_equal;
#line 88 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp3_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, _tmp1_, _tmp2_);
#line 88 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data1_->backends_expected = _tmp3_;
#line 90 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data1_->backends_expected, "key-file");
#line 91 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data1_->backends_expected, "telepathy");
#line 93 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp4_ = folks_backend_store_dup ();
#line 93 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data1_->store = _tmp4_;
#line 94 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	folks_backend_store_prepare (_data1_->store, ___lambda0__gasync_ready_callback, block1_data_ref (_data1_));
#line 99 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	folks_backend_store_load_backends (_data1_->store, ___lambda1__gasync_ready_callback, block1_data_ref (_data1_));
#line 120 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	g_main_loop_run (_data1_->main_loop);
#line 85 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	block1_data_unref (_data1_);
#line 85 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data1_ = NULL;
#line 772 "backend-loading.c"
}


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


static void ___lambda2__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 128 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	__lambda2_ (self, source_object, res);
#line 128 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	g_object_unref (self);
#line 793 "backend-loading.c"
}


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


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


static gpointer _g_object_ref0 (gpointer self) {
#line 23 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	return self ? g_object_ref (self) : NULL;
#line 842 "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/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_ = g_slice_new0 (BackendLoadingTestsTestDisablingAsyncData);
#line 23 "/home/treitter/collabora/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/treitter/collabora/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/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 23 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->self = _tmp0_;
#line 23 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp1_ = store;
#line 23 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 23 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->store = _tmp2_;
#line 23 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	backend_loading_tests_test_disabling_async_co (_data_);
#line 869 "backend-loading.c"
}


static void backend_loading_tests_test_disabling_finish (BackendLoadingTests* self, GAsyncResult* _res_) {
	BackendLoadingTestsTestDisablingAsyncData* _data_;
#line 23 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 877 "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/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_ = _user_data_;
#line 142 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_source_object_ = source_object;
#line 142 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_res_ = _res_;
#line 142 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	backend_loading_tests_test_disabling_async_co (_data_);
#line 891 "backend-loading.c"
}


static gboolean backend_loading_tests_test_disabling_async_co (BackendLoadingTestsTestDisablingAsyncData* _data_) {
#line 136 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	switch (_data_->_state_) {
#line 136 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		case 0:
#line 900 "backend-loading.c"
		goto _state_0;
#line 136 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		case 1:
#line 904 "backend-loading.c"
		goto _state_1;
#line 136 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		case 2:
#line 908 "backend-loading.c"
		goto _state_2;
#line 136 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		case 3:
#line 912 "backend-loading.c"
		goto _state_3;
		default:
#line 136 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_assert_not_reached ();
#line 917 "backend-loading.c"
	}
	_state_0:
#line 138 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp0_ = g_str_hash;
#line 138 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp1_ = g_str_equal;
#line 138 "/home/treitter/collabora/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/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->backends_expected = _data_->_tmp2_;
#line 139 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->backends_expected, "key-file");
#line 142 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp3_ = _data_->store;
#line 142 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_state_ = 1;
#line 142 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	folks_backend_store_prepare (_data_->_tmp3_, backend_loading_tests_test_disabling_async_ready, _data_);
#line 142 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	return FALSE;
#line 938 "backend-loading.c"
	_state_1:
#line 142 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	folks_backend_store_prepare_finish (_data_->_tmp3_, _data_->_res_);
#line 143 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp4_ = _data_->store;
#line 143 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_state_ = 2;
#line 143 "/home/treitter/collabora/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/treitter/collabora/folks/tests/folks/backend-loading.vala"
	return FALSE;
#line 950 "backend-loading.c"
	_state_2:
#line 143 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	folks_backend_store_disable_backend_finish (_data_->_tmp4_, _data_->_res_);
#line 954 "backend-loading.c"
	{
#line 147 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp5_ = _data_->store;
#line 147 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_state_ = 3;
#line 147 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends (_data_->_tmp5_, backend_loading_tests_test_disabling_async_ready, _data_);
#line 147 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 964 "backend-loading.c"
		_state_3:
#line 147 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends_finish (_data_->_tmp5_, _data_->_res_, &_data_->_inner_error_);
#line 147 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		if (_data_->_inner_error_ != NULL) {
#line 970 "backend-loading.c"
			goto __catch2_g_error;
		}
		{
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp6_ = _data_->store;
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp7_ = folks_backend_store_get_enabled_backends (_data_->_tmp6_);
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp8_ = _data_->_tmp7_;
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp9_ = gee_map_get_values (_data_->_tmp8_);
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp10_ = _data_->_tmp9_;
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp11_ = _data_->_tmp10_;
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp12_ = NULL;
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp12_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp11_);
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp13_ = _data_->_tmp12_;
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_tmp11_);
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_backend_it = _data_->_tmp13_;
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			while (TRUE) {
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp14_ = _data_->_backend_it;
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp15_ = FALSE;
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp15_ = gee_iterator_next (_data_->_tmp14_);
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				if (!_data_->_tmp15_) {
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
					break;
#line 1008 "backend-loading.c"
				}
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp16_ = _data_->_backend_it;
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp17_ = NULL;
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp17_ = gee_iterator_get (_data_->_tmp16_);
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->backend = (FolksBackend*) _data_->_tmp17_;
#line 151 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp18_ = _data_->backend;
#line 151 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp19_ = folks_backend_get_name (_data_->_tmp18_);
#line 151 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp20_ = _data_->_tmp19_;
#line 151 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp21_ = FALSE;
#line 151 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp21_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _data_->backends_expected, _data_->_tmp20_);
#line 151 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				g_assert (_data_->_tmp21_);
#line 152 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp22_ = _data_->backend;
#line 152 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp23_ = folks_backend_get_name (_data_->_tmp22_);
#line 152 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp24_ = _data_->_tmp23_;
#line 152 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				gee_abstract_collection_remove ((GeeAbstractCollection*) _data_->backends_expected, _data_->_tmp24_);
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_g_object_unref0 (_data_->backend);
#line 1040 "backend-loading.c"
			}
#line 149 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_backend_it);
#line 1044 "backend-loading.c"
		}
#line 155 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp25_ = gee_collection_get_size ((GeeCollection*) _data_->backends_expected);
#line 155 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp26_ = _data_->_tmp25_;
#line 155 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_assert (_data_->_tmp26_ == 0);
#line 156 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp27_ = _data_->self->priv->main_loop;
#line 156 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_main_loop_quit (_data_->_tmp27_);
#line 1056 "backend-loading.c"
	}
	goto __finally2;
	__catch2_g_error:
	{
#line 145 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->e = _data_->_inner_error_;
#line 145 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_inner_error_ = NULL;
#line 160 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp28_ = _data_->e->message;
#line 160 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_error ("backend-loading.vala:160: Failed to load backends: %s", _data_->_tmp28_);
#line 145 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_error_free0 (_data_->e);
#line 1071 "backend-loading.c"
	}
	__finally2:
#line 145 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	if (_data_->_inner_error_ != NULL) {
#line 145 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_object_unref0 (_data_->backends_expected);
#line 145 "/home/treitter/collabora/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/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_clear_error (&_data_->_inner_error_);
#line 145 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 1084 "backend-loading.c"
	}
#line 136 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_data_->backends_expected);
#line 136 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	if (_data_->_state_ == 0) {
#line 136 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1092 "backend-loading.c"
	} else {
#line 136 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1096 "backend-loading.c"
	}
#line 136 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	g_object_unref (_data_->_async_result);
#line 136 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	return FALSE;
#line 1102 "backend-loading.c"
}


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


static void ___lambda3__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 169 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	__lambda3_ (self, source_object, res);
#line 169 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	g_object_unref (self);
#line 1123 "backend-loading.c"
}


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


static void backend_loading_tests_test_reloading_async_data_free (gpointer _data) {
	BackendLoadingTestsTestReloadingAsyncData* _data_;
	_data_ = _data;
#line 23 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_data_->store);
#line 23 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_data_->self);
#line 23 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	g_slice_free (BackendLoadingTestsTestReloadingAsyncData, _data_);
#line 1165 "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/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_ = g_slice_new0 (BackendLoadingTestsTestReloadingAsyncData);
#line 23 "/home/treitter/collabora/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/treitter/collabora/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/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 23 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->self = _tmp0_;
#line 23 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp1_ = store;
#line 23 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 23 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->store = _tmp2_;
#line 23 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	backend_loading_tests_test_reloading_async_co (_data_);
#line 1192 "backend-loading.c"
}


static void backend_loading_tests_test_reloading_finish (BackendLoadingTests* self, GAsyncResult* _res_) {
	BackendLoadingTestsTestReloadingAsyncData* _data_;
#line 23 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1200 "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/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_ = _user_data_;
#line 190 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_source_object_ = source_object;
#line 190 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_res_ = _res_;
#line 190 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	backend_loading_tests_test_reloading_async_co (_data_);
#line 1214 "backend-loading.c"
}


static gboolean backend_loading_tests_test_reloading_async_co (BackendLoadingTestsTestReloadingAsyncData* _data_) {
#line 177 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	switch (_data_->_state_) {
#line 177 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		case 0:
#line 1223 "backend-loading.c"
		goto _state_0;
#line 177 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		case 1:
#line 1227 "backend-loading.c"
		goto _state_1;
#line 177 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		case 2:
#line 1231 "backend-loading.c"
		goto _state_2;
#line 177 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		case 3:
#line 1235 "backend-loading.c"
		goto _state_3;
#line 177 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		case 4:
#line 1239 "backend-loading.c"
		goto _state_4;
#line 177 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		case 5:
#line 1243 "backend-loading.c"
		goto _state_5;
#line 177 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		case 6:
#line 1247 "backend-loading.c"
		goto _state_6;
		default:
#line 177 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_assert_not_reached ();
#line 1252 "backend-loading.c"
	}
	_state_0:
#line 184 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp0_ = g_str_hash;
#line 184 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp1_ = g_str_equal;
#line 184 "/home/treitter/collabora/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/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_data_->backends_expected);
#line 184 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->backends_expected = _data_->_tmp2_;
#line 185 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp3_ = _data_->backends_expected;
#line 185 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp3_, "key-file");
#line 186 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp4_ = _data_->backends_expected;
#line 186 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp4_, "telepathy");
#line 1273 "backend-loading.c"
	{
#line 190 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp5_ = _data_->store;
#line 190 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_state_ = 1;
#line 190 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends (_data_->_tmp5_, backend_loading_tests_test_reloading_async_ready, _data_);
#line 190 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 1283 "backend-loading.c"
		_state_1:
#line 190 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends_finish (_data_->_tmp5_, _data_->_res_, &_data_->_inner_error_);
#line 190 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		if (_data_->_inner_error_ != NULL) {
#line 1289 "backend-loading.c"
			goto __catch3_g_error;
		}
		{
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp6_ = _data_->store;
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp7_ = folks_backend_store_get_enabled_backends (_data_->_tmp6_);
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp8_ = _data_->_tmp7_;
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp9_ = gee_map_get_values (_data_->_tmp8_);
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp10_ = _data_->_tmp9_;
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp11_ = _data_->_tmp10_;
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp12_ = NULL;
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp12_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp11_);
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp13_ = _data_->_tmp12_;
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_tmp11_);
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_backend1_it = _data_->_tmp13_;
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			while (TRUE) {
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp14_ = _data_->_backend1_it;
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp15_ = FALSE;
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp15_ = gee_iterator_next (_data_->_tmp14_);
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				if (!_data_->_tmp15_) {
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
					break;
#line 1327 "backend-loading.c"
				}
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp16_ = _data_->_backend1_it;
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp17_ = NULL;
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp17_ = gee_iterator_get (_data_->_tmp16_);
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->backend1 = (FolksBackend*) _data_->_tmp17_;
#line 194 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp18_ = _data_->backends_expected;
#line 194 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp19_ = _data_->backend1;
#line 194 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp20_ = folks_backend_get_name (_data_->_tmp19_);
#line 194 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp21_ = _data_->_tmp20_;
#line 194 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp22_ = FALSE;
#line 194 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp22_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _data_->_tmp18_, _data_->_tmp21_);
#line 194 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				g_assert (_data_->_tmp22_);
#line 195 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp23_ = _data_->backends_expected;
#line 195 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp24_ = _data_->backend1;
#line 195 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp25_ = folks_backend_get_name (_data_->_tmp24_);
#line 195 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp26_ = _data_->_tmp25_;
#line 195 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				gee_abstract_collection_remove ((GeeAbstractCollection*) _data_->_tmp23_, _data_->_tmp26_);
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_g_object_unref0 (_data_->backend1);
#line 1363 "backend-loading.c"
			}
#line 192 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_backend1_it);
#line 1367 "backend-loading.c"
		}
#line 198 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp27_ = _data_->backends_expected;
#line 198 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp28_ = gee_collection_get_size ((GeeCollection*) _data_->_tmp27_);
#line 198 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp29_ = _data_->_tmp28_;
#line 198 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_assert (_data_->_tmp29_ == 0);
#line 1377 "backend-loading.c"
	}
	goto __finally3;
	__catch3_g_error:
	{
#line 188 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->e1 = _data_->_inner_error_;
#line 188 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_inner_error_ = NULL;
#line 202 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp30_ = _data_->e1->message;
#line 202 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_error ("backend-loading.vala:202: Failed to load backends: %s", _data_->_tmp30_);
#line 188 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_error_free0 (_data_->e1);
#line 1392 "backend-loading.c"
	}
	__finally3:
#line 188 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	if (_data_->_inner_error_ != NULL) {
#line 188 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_object_unref0 (_data_->backends_expected);
#line 188 "/home/treitter/collabora/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/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_clear_error (&_data_->_inner_error_);
#line 188 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 1405 "backend-loading.c"
	}
#line 208 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp31_ = g_str_hash;
#line 208 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp32_ = g_str_equal;
#line 208 "/home/treitter/collabora/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/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_data_->backends_expected);
#line 208 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->backends_expected = _data_->_tmp33_;
#line 209 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp34_ = _data_->backends_expected;
#line 209 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp34_, "telepathy");
#line 212 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp35_ = _data_->store;
#line 212 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_state_ = 2;
#line 212 "/home/treitter/collabora/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/treitter/collabora/folks/tests/folks/backend-loading.vala"
	return FALSE;
#line 1429 "backend-loading.c"
	_state_2:
#line 212 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	folks_backend_store_disable_backend_finish (_data_->_tmp35_, _data_->_res_);
#line 1433 "backend-loading.c"
	{
#line 217 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp36_ = _data_->store;
#line 217 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_state_ = 3;
#line 217 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends (_data_->_tmp36_, backend_loading_tests_test_reloading_async_ready, _data_);
#line 217 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 1443 "backend-loading.c"
		_state_3:
#line 217 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends_finish (_data_->_tmp36_, _data_->_res_, &_data_->_inner_error_);
#line 217 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		if (_data_->_inner_error_ != NULL) {
#line 1449 "backend-loading.c"
			goto __catch4_g_error;
		}
		{
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp37_ = _data_->store;
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp38_ = folks_backend_store_get_enabled_backends (_data_->_tmp37_);
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp39_ = _data_->_tmp38_;
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp40_ = gee_map_get_values (_data_->_tmp39_);
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp41_ = _data_->_tmp40_;
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp42_ = _data_->_tmp41_;
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp43_ = NULL;
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp43_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp42_);
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp44_ = _data_->_tmp43_;
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_tmp42_);
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_backend2_it = _data_->_tmp44_;
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			while (TRUE) {
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp45_ = _data_->_backend2_it;
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp46_ = FALSE;
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp46_ = gee_iterator_next (_data_->_tmp45_);
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				if (!_data_->_tmp46_) {
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
					break;
#line 1487 "backend-loading.c"
				}
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp47_ = _data_->_backend2_it;
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp48_ = NULL;
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp48_ = gee_iterator_get (_data_->_tmp47_);
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->backend2 = (FolksBackend*) _data_->_tmp48_;
#line 221 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp49_ = _data_->backends_expected;
#line 221 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp50_ = _data_->backend2;
#line 221 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp51_ = folks_backend_get_name (_data_->_tmp50_);
#line 221 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp52_ = _data_->_tmp51_;
#line 221 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp53_ = FALSE;
#line 221 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp53_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _data_->_tmp49_, _data_->_tmp52_);
#line 221 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				g_assert (_data_->_tmp53_);
#line 222 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp54_ = _data_->backends_expected;
#line 222 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp55_ = _data_->backend2;
#line 222 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp56_ = folks_backend_get_name (_data_->_tmp55_);
#line 222 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp57_ = _data_->_tmp56_;
#line 222 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				gee_abstract_collection_remove ((GeeAbstractCollection*) _data_->_tmp54_, _data_->_tmp57_);
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_g_object_unref0 (_data_->backend2);
#line 1523 "backend-loading.c"
			}
#line 219 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_backend2_it);
#line 1527 "backend-loading.c"
		}
#line 225 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp58_ = _data_->backends_expected;
#line 225 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp59_ = gee_collection_get_size ((GeeCollection*) _data_->_tmp58_);
#line 225 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp60_ = _data_->_tmp59_;
#line 225 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_assert (_data_->_tmp60_ == 0);
#line 1537 "backend-loading.c"
	}
	goto __finally4;
	__catch4_g_error:
	{
#line 215 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->e2 = _data_->_inner_error_;
#line 215 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_inner_error_ = NULL;
#line 229 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp61_ = _data_->e2->message;
#line 229 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_error ("backend-loading.vala:229: Failed to load backends: %s", _data_->_tmp61_);
#line 215 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_error_free0 (_data_->e2);
#line 1552 "backend-loading.c"
	}
	__finally4:
#line 215 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	if (_data_->_inner_error_ != NULL) {
#line 215 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_object_unref0 (_data_->backends_expected);
#line 215 "/home/treitter/collabora/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/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_clear_error (&_data_->_inner_error_);
#line 215 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 1565 "backend-loading.c"
	}
#line 235 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp62_ = g_str_hash;
#line 235 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp63_ = g_str_equal;
#line 235 "/home/treitter/collabora/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/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_data_->backends_expected);
#line 235 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->backends_expected = _data_->_tmp64_;
#line 236 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp65_ = _data_->backends_expected;
#line 236 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp65_, "key-file");
#line 237 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp66_ = _data_->backends_expected;
#line 237 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp66_, "telepathy");
#line 240 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp67_ = _data_->store;
#line 240 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_state_ = 4;
#line 240 "/home/treitter/collabora/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/treitter/collabora/folks/tests/folks/backend-loading.vala"
	return FALSE;
#line 1593 "backend-loading.c"
	_state_4:
#line 240 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	folks_backend_store_enable_backend_finish (_data_->_tmp67_, _data_->_res_);
#line 1597 "backend-loading.c"
	{
#line 245 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp68_ = _data_->store;
#line 245 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_state_ = 5;
#line 245 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends (_data_->_tmp68_, backend_loading_tests_test_reloading_async_ready, _data_);
#line 245 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 1607 "backend-loading.c"
		_state_5:
#line 245 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends_finish (_data_->_tmp68_, _data_->_res_, &_data_->_inner_error_);
#line 245 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		if (_data_->_inner_error_ != NULL) {
#line 1613 "backend-loading.c"
			goto __catch5_g_error;
		}
		{
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp69_ = _data_->store;
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp70_ = folks_backend_store_get_enabled_backends (_data_->_tmp69_);
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp71_ = _data_->_tmp70_;
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp72_ = gee_map_get_values (_data_->_tmp71_);
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp73_ = _data_->_tmp72_;
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp74_ = _data_->_tmp73_;
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp75_ = NULL;
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp75_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp74_);
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp76_ = _data_->_tmp75_;
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_tmp74_);
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_backend3_it = _data_->_tmp76_;
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			while (TRUE) {
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp77_ = _data_->_backend3_it;
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp78_ = FALSE;
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp78_ = gee_iterator_next (_data_->_tmp77_);
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				if (!_data_->_tmp78_) {
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
					break;
#line 1651 "backend-loading.c"
				}
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp79_ = _data_->_backend3_it;
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp80_ = NULL;
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp80_ = gee_iterator_get (_data_->_tmp79_);
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->backend3 = (FolksBackend*) _data_->_tmp80_;
#line 249 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp81_ = _data_->backends_expected;
#line 249 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp82_ = _data_->backend3;
#line 249 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp83_ = folks_backend_get_name (_data_->_tmp82_);
#line 249 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp84_ = _data_->_tmp83_;
#line 249 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp85_ = FALSE;
#line 249 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp85_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _data_->_tmp81_, _data_->_tmp84_);
#line 249 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				g_assert (_data_->_tmp85_);
#line 250 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp86_ = _data_->backends_expected;
#line 250 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp87_ = _data_->backend3;
#line 250 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp88_ = folks_backend_get_name (_data_->_tmp87_);
#line 250 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp89_ = _data_->_tmp88_;
#line 250 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				gee_abstract_collection_remove ((GeeAbstractCollection*) _data_->_tmp86_, _data_->_tmp89_);
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_g_object_unref0 (_data_->backend3);
#line 1687 "backend-loading.c"
			}
#line 247 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_backend3_it);
#line 1691 "backend-loading.c"
		}
#line 253 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp90_ = _data_->backends_expected;
#line 253 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp91_ = gee_collection_get_size ((GeeCollection*) _data_->_tmp90_);
#line 253 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp92_ = _data_->_tmp91_;
#line 253 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_assert (_data_->_tmp92_ == 0);
#line 1701 "backend-loading.c"
	}
	goto __finally5;
	__catch5_g_error:
	{
#line 243 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->e3 = _data_->_inner_error_;
#line 243 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_inner_error_ = NULL;
#line 257 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp93_ = _data_->e3->message;
#line 257 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_error ("backend-loading.vala:257: Failed to load backends: %s", _data_->_tmp93_);
#line 243 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_error_free0 (_data_->e3);
#line 1716 "backend-loading.c"
	}
	__finally5:
#line 243 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	if (_data_->_inner_error_ != NULL) {
#line 243 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_object_unref0 (_data_->backends_expected);
#line 243 "/home/treitter/collabora/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/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_clear_error (&_data_->_inner_error_);
#line 243 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 1729 "backend-loading.c"
	}
#line 264 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp94_ = g_str_hash;
#line 264 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp95_ = g_str_equal;
#line 264 "/home/treitter/collabora/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/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_data_->backends_expected);
#line 264 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->backends_expected = _data_->_tmp96_;
#line 265 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp97_ = _data_->backends_expected;
#line 265 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp97_, "key-file");
#line 266 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp98_ = _data_->backends_expected;
#line 266 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp98_, "telepathy");
#line 1749 "backend-loading.c"
	{
#line 271 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp99_ = _data_->store;
#line 271 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_state_ = 6;
#line 271 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends (_data_->_tmp99_, backend_loading_tests_test_reloading_async_ready, _data_);
#line 271 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 1759 "backend-loading.c"
		_state_6:
#line 271 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		folks_backend_store_load_backends_finish (_data_->_tmp99_, _data_->_res_, &_data_->_inner_error_);
#line 271 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		if (_data_->_inner_error_ != NULL) {
#line 1765 "backend-loading.c"
			goto __catch6_g_error;
		}
		{
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp100_ = _data_->store;
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp101_ = folks_backend_store_get_enabled_backends (_data_->_tmp100_);
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp102_ = _data_->_tmp101_;
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp103_ = gee_map_get_values (_data_->_tmp102_);
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp104_ = _data_->_tmp103_;
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp105_ = _data_->_tmp104_;
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp106_ = NULL;
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp106_ = gee_iterable_iterator ((GeeIterable*) _data_->_tmp105_);
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_tmp107_ = _data_->_tmp106_;
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_tmp105_);
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_data_->_backend_it = _data_->_tmp107_;
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			while (TRUE) {
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp108_ = _data_->_backend_it;
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp109_ = FALSE;
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp109_ = gee_iterator_next (_data_->_tmp108_);
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				if (!_data_->_tmp109_) {
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
					break;
#line 1803 "backend-loading.c"
				}
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp110_ = _data_->_backend_it;
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp111_ = NULL;
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp111_ = gee_iterator_get (_data_->_tmp110_);
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->backend = (FolksBackend*) _data_->_tmp111_;
#line 275 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp112_ = _data_->backends_expected;
#line 275 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp113_ = _data_->backend;
#line 275 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp114_ = folks_backend_get_name (_data_->_tmp113_);
#line 275 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp115_ = _data_->_tmp114_;
#line 275 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp116_ = FALSE;
#line 275 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp116_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _data_->_tmp112_, _data_->_tmp115_);
#line 275 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				g_assert (_data_->_tmp116_);
#line 276 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp117_ = _data_->backends_expected;
#line 276 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp118_ = _data_->backend;
#line 276 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp119_ = folks_backend_get_name (_data_->_tmp118_);
#line 276 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_data_->_tmp120_ = _data_->_tmp119_;
#line 276 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				gee_abstract_collection_remove ((GeeAbstractCollection*) _data_->_tmp117_, _data_->_tmp120_);
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
				_g_object_unref0 (_data_->backend);
#line 1839 "backend-loading.c"
			}
#line 273 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
			_g_object_unref0 (_data_->_backend_it);
#line 1843 "backend-loading.c"
		}
#line 279 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp121_ = _data_->backends_expected;
#line 279 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp122_ = gee_collection_get_size ((GeeCollection*) _data_->_tmp121_);
#line 279 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp123_ = _data_->_tmp122_;
#line 279 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_assert (_data_->_tmp123_ == 0);
#line 1853 "backend-loading.c"
	}
	goto __finally6;
	__catch6_g_error:
	{
#line 269 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->e4 = _data_->_inner_error_;
#line 269 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_inner_error_ = NULL;
#line 283 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_data_->_tmp124_ = _data_->e4->message;
#line 283 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_error ("backend-loading.vala:283: Failed to load backends: %s", _data_->_tmp124_);
#line 269 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_error_free0 (_data_->e4);
#line 1868 "backend-loading.c"
	}
	__finally6:
#line 269 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	if (_data_->_inner_error_ != NULL) {
#line 269 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		_g_object_unref0 (_data_->backends_expected);
#line 269 "/home/treitter/collabora/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/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_clear_error (&_data_->_inner_error_);
#line 269 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		return FALSE;
#line 1881 "backend-loading.c"
	}
#line 286 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_data_->_tmp125_ = _data_->self->priv->main_loop;
#line 286 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	g_main_loop_quit (_data_->_tmp125_);
#line 177 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_data_->backends_expected);
#line 177 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	if (_data_->_state_ == 0) {
#line 177 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1893 "backend-loading.c"
	} else {
#line 177 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1897 "backend-loading.c"
	}
#line 177 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	g_object_unref (_data_->_async_result);
#line 177 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	return FALSE;
#line 1903 "backend-loading.c"
}


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


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


static void backend_loading_tests_finalize (GObject* obj) {
	BackendLoadingTests * self;
#line 23 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	self = BACKEND_LOADING_TESTS (obj);
#line 25 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (self->priv->_tp_backend);
#line 27 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_g_main_loop_unref0 (self->priv->main_loop);
#line 23 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	G_OBJECT_CLASS (backend_loading_tests_parent_class)->finalize (obj);
#line 1939 "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/treitter/collabora/folks/tests/folks/backend-loading.vala"
	g_test_init (&args_length1, &args, NULL);
#line 294 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp0_ = g_test_get_root ();
#line 294 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	root = _tmp0_;
#line 295 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp1_ = backend_loading_tests_new ();
#line 295 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp2_ = _tmp1_;
#line 295 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 295 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 295 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	_g_object_unref0 (_tmp2_);
#line 297 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	g_test_run ();
#line 299 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	result = 0;
#line 299 "/home/treitter/collabora/folks/tests/folks/backend-loading.vala"
	return result;
#line 1984 "backend-loading.c"
}


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



