/* individual-retrieval.c generated by valac 0.14.0.15-f8b5, the Vala compiler
 * generated from individual-retrieval.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 <gee.h>
#include <stdlib.h>
#include <string.h>
#include <folks/folks.h>
#include <gio/gio.h>
#include <folks/folks-telepathy.h>


#define TYPE_INDIVIDUAL_RETRIEVAL_TESTS (individual_retrieval_tests_get_type ())
#define INDIVIDUAL_RETRIEVAL_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDIVIDUAL_RETRIEVAL_TESTS, IndividualRetrievalTests))
#define INDIVIDUAL_RETRIEVAL_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INDIVIDUAL_RETRIEVAL_TESTS, IndividualRetrievalTestsClass))
#define IS_INDIVIDUAL_RETRIEVAL_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDIVIDUAL_RETRIEVAL_TESTS))
#define IS_INDIVIDUAL_RETRIEVAL_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INDIVIDUAL_RETRIEVAL_TESTS))
#define INDIVIDUAL_RETRIEVAL_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INDIVIDUAL_RETRIEVAL_TESTS, IndividualRetrievalTestsClass))

typedef struct _IndividualRetrievalTests IndividualRetrievalTests;
typedef struct _IndividualRetrievalTestsClass IndividualRetrievalTestsClass;
typedef struct _IndividualRetrievalTestsPrivate IndividualRetrievalTestsPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block1Data Block1Data;
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _Block2Data Block2Data;
typedef struct _Block3Data Block3Data;
typedef struct _Block4Data Block4Data;
typedef struct _Block5Data Block5Data;
typedef struct _Block6Data Block6Data;
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
#define __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL)))
typedef struct _IndividualRetrievalTestsAddPersonasData IndividualRetrievalTestsAddPersonasData;

struct _IndividualRetrievalTests {
	FolksTestCase parent_instance;
	IndividualRetrievalTestsPrivate * priv;
};

struct _IndividualRetrievalTestsClass {
	FolksTestCaseClass parent_class;
};

struct _IndividualRetrievalTestsPrivate {
	TpTestBackend* tp_backend;
	void* _account_handle;
	GeeHashSet* default_individuals;
	gint _test_timeout;
};

struct _Block1Data {
	int _ref_count_;
	IndividualRetrievalTests * self;
	GMainLoop* main_loop;
	GeeHashSet* expected_individuals;
	FolksIndividualAggregator* aggregator;
};

struct _Block2Data {
	int _ref_count_;
	IndividualRetrievalTests * self;
	GMainLoop* main_loop;
	GeeHashSet* added_individuals;
	FolksIndividualAggregator* aggregator;
};

struct _Block3Data {
	int _ref_count_;
	Block2Data * _data2_;
	gboolean adding_done;
};

struct _Block4Data {
	int _ref_count_;
	IndividualRetrievalTests * self;
	TpfPersonaStore* store;
	gpointer _async_data_;
};

struct _Block5Data {
	int _ref_count_;
	Block4Data * _data4_;
	GeeHashSet* ids_remaining;
};

struct _Block6Data {
	int _ref_count_;
	Block5Data * _data5_;
	GHashTable* details;
};

struct _IndividualRetrievalTestsAddPersonasData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	IndividualRetrievalTests* self;
	TpfPersonaStore* store;
	GeeHashSet* ids_add;
	Block4Data* _data4_;
	TpfPersonaStore* _tmp0_;
	TpfPersonaStore* _tmp1_;
	Block5Data* _data5_;
	TpfPersonaStore* _tmp2_;
	GHashFunc _tmp3_;
	GEqualFunc _tmp4_;
	GeeHashSet* _tmp5_;
	GeeHashSet* _tmp6_;
	GeeIterator* _tmp7_;
	GeeIterator* _contact_id_it;
	GeeIterator* _tmp8_;
	gboolean _tmp9_;
	GeeIterator* _tmp10_;
	gpointer _tmp11_;
	gchar* contact_id;
	GeeHashSet* _tmp12_;
	const gchar* _tmp13_;
	GError* e2;
	TpfPersonaStore* _tmp14_;
	const gchar* _tmp15_;
	const gchar* _tmp16_;
	const gchar* _tmp17_;
	GError * _inner_error_;
};


static gpointer individual_retrieval_tests_parent_class = NULL;

GType individual_retrieval_tests_get_type (void) G_GNUC_CONST;
#define INDIVIDUAL_RETRIEVAL_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_INDIVIDUAL_RETRIEVAL_TESTS, IndividualRetrievalTestsPrivate))
enum  {
	INDIVIDUAL_RETRIEVAL_TESTS_DUMMY_PROPERTY
};
IndividualRetrievalTests* individual_retrieval_tests_new (void);
IndividualRetrievalTests* individual_retrieval_tests_construct (GType object_type);
void individual_retrieval_tests_test_aggregator (IndividualRetrievalTests* self);
static void _individual_retrieval_tests_test_aggregator_folks_test_case_test_method (gpointer self);
void individual_retrieval_tests_test_aggregator_add (IndividualRetrievalTests* self);
static void _individual_retrieval_tests_test_aggregator_add_folks_test_case_test_method (gpointer self);
static void individual_retrieval_tests_real_set_up (FolksTestCase* base);
static void individual_retrieval_tests_real_tear_down (FolksTestCase* base);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (Block1Data* _data1_);
static void __lambda2_ (Block1Data* _data1_, GeeMultiMap* changes);
static void ___lambda2__folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static gboolean __lambda3_ (Block1Data* _data1_);
static gboolean ___lambda3__gsource_func (gpointer self);
static gboolean __lambda4_ (Block1Data* _data1_);
static void __lambda5_ (Block1Data* _data1_, GObject* s, GAsyncResult* r);
static void ___lambda5__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static gboolean ___lambda4__gsource_func (gpointer self);
static Block2Data* block2_data_ref (Block2Data* _data2_);
static void block2_data_unref (Block2Data* _data2_);
static void __lambda6_ (Block2Data* _data2_, GeeMultiMap* changes);
static void ___lambda6__folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static gboolean __lambda7_ (Block2Data* _data2_);
static gboolean ___lambda7__gsource_func (gpointer self);
static gboolean __lambda8_ (Block2Data* _data2_);
static void __lambda9_ (Block2Data* _data2_, GObject* s, GAsyncResult* r);
static Block3Data* block3_data_ref (Block3Data* _data3_);
static void block3_data_unref (Block3Data* _data3_);
static void ____lambda10_ (Block3Data* _data3_, FolksPersonaStore* store);
static void individual_retrieval_tests_add_personas (IndividualRetrievalTests* self, TpfPersonaStore* store, GeeHashSet* ids_add, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void individual_retrieval_tests_add_personas_finish (IndividualRetrievalTests* self, GAsyncResult* _res_);
static void _____lambda10__folks_backend_persona_store_added (FolksBackend* _sender, FolksPersonaStore* store, gpointer self);
static void ___lambda9__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static gboolean ___lambda8__gsource_func (gpointer self);
static void individual_retrieval_tests_add_personas_data_free (gpointer _data);
static gboolean individual_retrieval_tests_add_personas_co (IndividualRetrievalTestsAddPersonasData* _data_);
static Block4Data* block4_data_ref (Block4Data* _data4_);
static void block4_data_unref (Block4Data* _data4_);
static Block5Data* block5_data_ref (Block5Data* _data5_);
static void block5_data_unref (Block5Data* _data5_);
static void individual_retrieval_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static gboolean ___lambda11_ (Block5Data* _data5_);
static Block6Data* block6_data_ref (Block6Data* _data6_);
static void block6_data_unref (Block6Data* _data6_);
static void _g_free0_ (gpointer var);
static void _vala_GValue_free (GValue* self);
static void __vala_GValue_free0_ (gpointer var);
static void ____lambda12_ (Block6Data* _data6_, GObject* s2, GAsyncResult* res);
static GValue* _g_value_dup (GValue* self);
static void _____lambda12__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static gboolean ____lambda11__gsource_func (gpointer self);
static void individual_retrieval_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _individual_retrieval_tests_test_aggregator_folks_test_case_test_method (gpointer self) {
#line 68 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	individual_retrieval_tests_test_aggregator (self);
#line 217 "individual-retrieval.c"
}


static void _individual_retrieval_tests_test_aggregator_add_folks_test_case_test_method (gpointer self) {
#line 69 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	individual_retrieval_tests_test_aggregator_add (self);
#line 224 "individual-retrieval.c"
}


IndividualRetrievalTests* individual_retrieval_tests_construct (GType object_type) {
	IndividualRetrievalTests * self = NULL;
	TpTestBackend* _tmp0_;
	GHashFunc _tmp1_;
	GEqualFunc _tmp2_;
	GeeHashSet* _tmp3_;
	GeeHashSet* _tmp4_;
	GeeHashSet* _tmp5_;
	GeeHashSet* _tmp6_;
	GeeHashSet* _tmp7_;
	GeeHashSet* _tmp8_;
	GeeHashSet* _tmp9_;
	GeeHashSet* _tmp10_;
	GeeHashSet* _tmp11_;
	GeeHashSet* _tmp12_;
	const gchar* _tmp13_ = NULL;
#line 36 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self = (IndividualRetrievalTests*) folks_test_case_construct (object_type, "IndividualRetrieval");
#line 38 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp0_ = tp_test_backend_new ();
#line 38 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_g_object_unref0 (self->priv->tp_backend);
#line 38 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self->priv->tp_backend = _tmp0_;
#line 47 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp1_ = g_str_hash;
#line 47 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp2_ = g_str_equal;
#line 47 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp3_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, _tmp1_, _tmp2_);
#line 47 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_g_object_unref0 (self->priv->default_individuals);
#line 47 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self->priv->default_individuals = _tmp3_;
#line 50 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp4_ = self->priv->default_individuals;
#line 50 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp4_, "48fa372a81026063187255e3f5c184665d2ed7ce");
#line 52 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp5_ = self->priv->default_individuals;
#line 52 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp5_, "60c91326018f6a60604f8d260fc24a60a5b8512c");
#line 54 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp6_ = self->priv->default_individuals;
#line 54 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp6_, "6380b17dc511b21a1defd4811f1add97b278f92c");
#line 56 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp7_ = self->priv->default_individuals;
#line 56 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp7_, "0e46c5e74f61908f49550d241f2a1651892a1695");
#line 58 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp8_ = self->priv->default_individuals;
#line 58 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp8_, "6b08188cb2ef8cbaca140b277780069b5af8add6");
#line 60 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp9_ = self->priv->default_individuals;
#line 60 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp9_, "f948d4d2af79085ab860f0ef67bf0c201c4602d4");
#line 62 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp10_ = self->priv->default_individuals;
#line 62 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp10_, "f34529a442577b840a75271b464e90666c38c464");
#line 64 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp11_ = self->priv->default_individuals;
#line 64 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp11_, "467d13f955e62bf30ebf9620fa052aaee2160260");
#line 66 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp12_ = self->priv->default_individuals;
#line 66 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp12_, "07b913b8977c04d2f2011e26a46ea3e3dcfe3e3d");
#line 68 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "aggregator", _individual_retrieval_tests_test_aggregator_folks_test_case_test_method, self);
#line 69 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "aggregator:add", _individual_retrieval_tests_test_aggregator_add_folks_test_case_test_method, self);
#line 71 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp13_ = g_getenv ("FOLKS_TEST_VALGRIND");
#line 71 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	if (_tmp13_ != NULL) {
#line 72 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		self->priv->_test_timeout = 10;
#line 308 "individual-retrieval.c"
	}
#line 34 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return self;
#line 312 "individual-retrieval.c"
}


IndividualRetrievalTests* individual_retrieval_tests_new (void) {
#line 34 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return individual_retrieval_tests_construct (TYPE_INDIVIDUAL_RETRIEVAL_TESTS);
#line 319 "individual-retrieval.c"
}


static void individual_retrieval_tests_real_set_up (FolksTestCase* base) {
	IndividualRetrievalTests * self;
	TpTestBackend* _tmp0_;
	TpTestBackend* _tmp1_;
	void* _tmp2_ = NULL;
#line 75 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self = (IndividualRetrievalTests*) base;
#line 77 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp0_ = self->priv->tp_backend;
#line 77 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	tp_test_backend_set_up (_tmp0_);
#line 78 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp1_ = self->priv->tp_backend;
#line 78 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp2_ = tp_test_backend_add_account (_tmp1_, "protocol", "me@example.com", "cm", "account");
#line 78 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self->priv->_account_handle = _tmp2_;
#line 340 "individual-retrieval.c"
}


static void individual_retrieval_tests_real_tear_down (FolksTestCase* base) {
	IndividualRetrievalTests * self;
	TpTestBackend* _tmp0_;
	void* _tmp1_;
	TpTestBackend* _tmp2_;
#line 82 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self = (IndividualRetrievalTests*) base;
#line 84 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp0_ = self->priv->tp_backend;
#line 84 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp1_ = self->priv->_account_handle;
#line 84 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	tp_test_backend_remove_account (_tmp0_, _tmp1_);
#line 85 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp2_ = self->priv->tp_backend;
#line 85 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	tp_test_backend_tear_down (_tmp2_);
#line 361 "individual-retrieval.c"
}


static Block1Data* block1_data_ref (Block1Data* _data1_) {
#line 88 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_atomic_int_inc (&_data1_->_ref_count_);
#line 88 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return _data1_;
#line 370 "individual-retrieval.c"
}


static void block1_data_unref (Block1Data* _data1_) {
#line 88 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 88 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_object_unref0 (_data1_->self);
#line 88 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_object_unref0 (_data1_->aggregator);
#line 88 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_object_unref0 (_data1_->expected_individuals);
#line 88 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_main_loop_unref0 (_data1_->main_loop);
#line 88 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_slice_free (Block1Data, _data1_);
#line 387 "individual-retrieval.c"
	}
}


static void __lambda2_ (Block1Data* _data1_, GeeMultiMap* changes) {
	IndividualRetrievalTests * self;
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
	GeeSet* _tmp15_;
	gint _tmp16_;
	gint _tmp17_;
#line 99 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self = _data1_->self;
#line 99 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_return_if_fail (changes != NULL);
#line 101 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp0_ = changes;
#line 101 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 101 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	added = _tmp1_;
#line 102 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp2_ = changes;
#line 102 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 102 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	removed = _tmp3_;
#line 419 "individual-retrieval.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 104 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp4_ = added;
#line 104 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 104 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_i_it = _tmp5_;
#line 104 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		while (TRUE) {
#line 432 "individual-retrieval.c"
			GeeIterator* _tmp6_;
			gboolean _tmp7_ = FALSE;
			GeeIterator* _tmp8_;
			gpointer _tmp9_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp10_;
			GeeHashSet* _tmp11_;
			FolksIndividual* _tmp12_;
			const gchar* _tmp13_;
			const gchar* _tmp14_;
#line 104 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp6_ = _i_it;
#line 104 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 104 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			if (!_tmp7_) {
#line 104 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				break;
#line 451 "individual-retrieval.c"
			}
#line 104 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp8_ = _i_it;
#line 104 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 104 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			i = (FolksIndividual*) _tmp9_;
#line 106 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp10_ = i;
#line 106 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			g_assert (_tmp10_ != NULL);
#line 107 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp11_ = _data1_->expected_individuals;
#line 107 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp12_ = i;
#line 107 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp13_ = folks_individual_get_id (_tmp12_);
#line 107 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp14_ = _tmp13_;
#line 107 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp11_, _tmp14_);
#line 104 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_g_object_unref0 (i);
#line 475 "individual-retrieval.c"
		}
#line 104 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_object_unref0 (_i_it);
#line 479 "individual-retrieval.c"
	}
#line 110 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp15_ = removed;
#line 110 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp16_ = gee_collection_get_size ((GeeCollection*) _tmp15_);
#line 110 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp17_ = _tmp16_;
#line 110 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_assert (_tmp17_ == 1);
#line 489 "individual-retrieval.c"
	{
		GeeSet* _tmp18_;
		GeeIterator* _tmp19_ = NULL;
		GeeIterator* _i_it;
#line 112 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp18_ = removed;
#line 112 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp19_ = gee_iterable_iterator ((GeeIterable*) _tmp18_);
#line 112 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_i_it = _tmp19_;
#line 112 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		while (TRUE) {
#line 502 "individual-retrieval.c"
			GeeIterator* _tmp20_;
			gboolean _tmp21_ = FALSE;
			GeeIterator* _tmp22_;
			gpointer _tmp23_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp24_;
#line 112 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp20_ = _i_it;
#line 112 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp21_ = gee_iterator_next (_tmp20_);
#line 112 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			if (!_tmp21_) {
#line 112 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				break;
#line 517 "individual-retrieval.c"
			}
#line 112 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp22_ = _i_it;
#line 112 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp23_ = gee_iterator_get (_tmp22_);
#line 112 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			i = (FolksIndividual*) _tmp23_;
#line 114 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp24_ = i;
#line 114 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			g_assert (_tmp24_ == NULL);
#line 112 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_g_object_unref0 (i);
#line 531 "individual-retrieval.c"
		}
#line 112 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_object_unref0 (_i_it);
#line 535 "individual-retrieval.c"
	}
#line 99 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_g_object_unref0 (removed);
#line 99 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_g_object_unref0 (added);
#line 541 "individual-retrieval.c"
}


static void ___lambda2__folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 99 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	__lambda2_ (self, changes);
#line 548 "individual-retrieval.c"
}


static gboolean __lambda3_ (Block1Data* _data1_) {
	IndividualRetrievalTests * self;
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 121 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self = _data1_->self;
#line 123 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp0_ = _data1_->main_loop;
#line 123 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_main_loop_quit (_tmp0_);
#line 124 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	result = FALSE;
#line 124 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return result;
#line 566 "individual-retrieval.c"
}


static gboolean ___lambda3__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda3_ (self);
#line 121 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return result;
#line 575 "individual-retrieval.c"
}


static void __lambda5_ (Block1Data* _data1_, GObject* s, GAsyncResult* r) {
	IndividualRetrievalTests * self;
	GError * _inner_error_ = NULL;
#line 129 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self = _data1_->self;
#line 129 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_return_if_fail (r != NULL);
#line 586 "individual-retrieval.c"
	{
		FolksIndividualAggregator* _tmp0_;
		GAsyncResult* _tmp1_;
#line 133 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp0_ = _data1_->aggregator;
#line 133 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp1_ = r;
#line 133 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		folks_individual_aggregator_prepare_finish (_tmp0_, _tmp1_, &_inner_error_);
#line 133 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		if (_inner_error_ != NULL) {
#line 598 "individual-retrieval.c"
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e1 = NULL;
		const gchar* _tmp2_;
#line 131 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		e1 = _inner_error_;
#line 131 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_inner_error_ = NULL;
#line 137 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp2_ = e1->message;
#line 137 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_critical ("individual-retrieval.vala:137: failed to prepare aggregator: %s", _tmp2_);
#line 139 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_assert_not_reached ();
#line 131 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_error_free0 (e1);
#line 619 "individual-retrieval.c"
	}
	__finally0:
#line 131 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	if (_inner_error_ != NULL) {
#line 131 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.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 131 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_clear_error (&_inner_error_);
#line 131 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		return;
#line 630 "individual-retrieval.c"
	}
}


static void ___lambda5__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 129 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	__lambda5_ (self, source_object, res);
#line 129 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	block1_data_unref (self);
#line 640 "individual-retrieval.c"
}


static gboolean __lambda4_ (Block1Data* _data1_) {
	IndividualRetrievalTests * self;
	gboolean result = FALSE;
	FolksIndividualAggregator* _tmp0_;
#line 127 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self = _data1_->self;
#line 129 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp0_ = _data1_->aggregator;
#line 129 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	folks_individual_aggregator_prepare (_tmp0_, ___lambda5__gasync_ready_callback, block1_data_ref (_data1_));
#line 143 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	result = FALSE;
#line 143 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return result;
#line 658 "individual-retrieval.c"
}


static gboolean ___lambda4__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda4_ (self);
#line 127 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return result;
#line 667 "individual-retrieval.c"
}


void individual_retrieval_tests_test_aggregator (IndividualRetrievalTests* self) {
	Block1Data* _data1_;
	GMainLoop* _tmp0_;
	GeeHashSet* _tmp1_;
	FolksIndividualAggregator* _tmp10_;
	FolksIndividualAggregator* _tmp11_;
	gint _tmp12_;
	GMainLoop* _tmp13_;
	GeeHashSet* _tmp14_;
	gint _tmp15_;
	gint _tmp16_;
#line 88 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_return_if_fail (self != NULL);
#line 88 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data1_ = g_slice_new0 (Block1Data);
#line 88 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data1_->_ref_count_ = 1;
#line 88 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data1_->self = g_object_ref (self);
#line 90 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 90 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data1_->main_loop = _tmp0_;
#line 93 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp1_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL);
#line 93 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data1_->expected_individuals = _tmp1_;
#line 698 "individual-retrieval.c"
	{
		GeeHashSet* _tmp2_;
		GeeIterator* _tmp3_ = NULL;
		GeeIterator* _id_it;
#line 94 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp2_ = self->priv->default_individuals;
#line 94 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp3_ = gee_abstract_collection_iterator ((GeeAbstractCollection*) _tmp2_);
#line 94 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_id_it = _tmp3_;
#line 94 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		while (TRUE) {
#line 711 "individual-retrieval.c"
			GeeIterator* _tmp4_;
			gboolean _tmp5_ = FALSE;
			GeeIterator* _tmp6_;
			gpointer _tmp7_ = NULL;
			gchar* id;
			GeeHashSet* _tmp8_;
			const gchar* _tmp9_;
#line 94 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp4_ = _id_it;
#line 94 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp5_ = gee_iterator_next (_tmp4_);
#line 94 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			if (!_tmp5_) {
#line 94 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				break;
#line 727 "individual-retrieval.c"
			}
#line 94 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp6_ = _id_it;
#line 94 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp7_ = gee_iterator_get (_tmp6_);
#line 94 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			id = (gchar*) _tmp7_;
#line 95 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp8_ = _data1_->expected_individuals;
#line 95 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp9_ = id;
#line 95 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp8_, _tmp9_);
#line 94 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_g_free0 (id);
#line 743 "individual-retrieval.c"
		}
#line 94 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_object_unref0 (_id_it);
#line 747 "individual-retrieval.c"
	}
#line 98 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp10_ = folks_individual_aggregator_new ();
#line 98 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data1_->aggregator = _tmp10_;
#line 99 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp11_ = _data1_->aggregator;
#line 99 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_signal_connect_data (_tmp11_, "individuals-changed-detailed", (GCallback) ___lambda2__folks_individual_aggregator_individuals_changed_detailed, block1_data_ref (_data1_), (GClosureNotify) block1_data_unref, 0);
#line 121 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp12_ = self->priv->_test_timeout;
#line 121 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) _tmp12_, ___lambda3__gsource_func, block1_data_ref (_data1_), block1_data_unref);
#line 127 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda4__gsource_func, block1_data_ref (_data1_), block1_data_unref);
#line 146 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp13_ = _data1_->main_loop;
#line 146 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_main_loop_run (_tmp13_);
#line 149 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp14_ = _data1_->expected_individuals;
#line 149 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp15_ = gee_collection_get_size ((GeeCollection*) _tmp14_);
#line 149 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp16_ = _tmp15_;
#line 149 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_assert (_tmp16_ == 0);
#line 152 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_g_object_unref0 (_data1_->aggregator);
#line 152 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data1_->aggregator = NULL;
#line 88 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	block1_data_unref (_data1_);
#line 88 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data1_ = NULL;
#line 783 "individual-retrieval.c"
}


static Block2Data* block2_data_ref (Block2Data* _data2_) {
#line 155 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_atomic_int_inc (&_data2_->_ref_count_);
#line 155 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return _data2_;
#line 792 "individual-retrieval.c"
}


static void block2_data_unref (Block2Data* _data2_) {
#line 155 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
#line 155 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_object_unref0 (_data2_->self);
#line 155 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_object_unref0 (_data2_->aggregator);
#line 155 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_object_unref0 (_data2_->added_individuals);
#line 155 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_main_loop_unref0 (_data2_->main_loop);
#line 155 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_slice_free (Block2Data, _data2_);
#line 809 "individual-retrieval.c"
	}
}


static void __lambda6_ (Block2Data* _data2_, GeeMultiMap* changes) {
	IndividualRetrievalTests * self;
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
	GeeSet* _tmp24_;
	gint _tmp25_;
	gint _tmp26_;
#line 167 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self = _data2_->self;
#line 167 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_return_if_fail (changes != NULL);
#line 169 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp0_ = changes;
#line 169 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 169 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	added = _tmp1_;
#line 170 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp2_ = changes;
#line 170 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 170 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	removed = _tmp3_;
#line 841 "individual-retrieval.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 174 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp4_ = added;
#line 174 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 174 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_i_it = _tmp5_;
#line 174 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		while (TRUE) {
#line 854 "individual-retrieval.c"
			GeeIterator* _tmp6_;
			gboolean _tmp7_ = FALSE;
			GeeIterator* _tmp8_;
			gpointer _tmp9_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp10_;
#line 174 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp6_ = _i_it;
#line 174 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 174 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			if (!_tmp7_) {
#line 174 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				break;
#line 869 "individual-retrieval.c"
			}
#line 174 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp8_ = _i_it;
#line 174 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 174 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			i = (FolksIndividual*) _tmp9_;
#line 176 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp10_ = i;
#line 176 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			g_assert (_tmp10_ != NULL);
#line 881 "individual-retrieval.c"
			{
				FolksIndividual* _tmp11_;
				GeeSet* _tmp12_;
				GeeSet* _tmp13_;
				GeeIterator* _tmp14_ = NULL;
				GeeIterator* _p_it;
#line 182 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_tmp11_ = i;
#line 182 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_tmp12_ = folks_individual_get_personas (_tmp11_);
#line 182 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_tmp13_ = _tmp12_;
#line 182 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_tmp14_ = gee_iterable_iterator ((GeeIterable*) _tmp13_);
#line 182 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_p_it = _tmp14_;
#line 182 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				while (TRUE) {
#line 900 "individual-retrieval.c"
					GeeIterator* _tmp15_;
					gboolean _tmp16_ = FALSE;
					GeeIterator* _tmp17_;
					gpointer _tmp18_ = NULL;
					FolksPersona* p;
					FolksPersona* _tmp19_;
#line 182 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					_tmp15_ = _p_it;
#line 182 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					_tmp16_ = gee_iterator_next (_tmp15_);
#line 182 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					if (!_tmp16_) {
#line 182 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
						break;
#line 915 "individual-retrieval.c"
					}
#line 182 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					_tmp17_ = _p_it;
#line 182 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					_tmp18_ = gee_iterator_get (_tmp17_);
#line 182 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					p = (FolksPersona*) _tmp18_;
#line 184 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					_tmp19_ = p;
#line 184 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					if (TPF_IS_PERSONA (_tmp19_)) {
#line 927 "individual-retrieval.c"
						FolksPersona* _tmp20_;
						const gchar* _tmp21_;
						const gchar* _tmp22_;
						gboolean _tmp23_ = FALSE;
#line 185 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
						_tmp20_ = p;
#line 185 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
						_tmp21_ = folks_persona_get_display_id ((FolksPersona*) TPF_PERSONA (_tmp20_));
#line 185 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
						_tmp22_ = _tmp21_;
#line 185 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
						_tmp23_ = gee_abstract_collection_remove ((GeeAbstractCollection*) _data2_->added_individuals, _tmp22_);
#line 185 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
						if (_tmp23_) {
#line 186 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
							_g_object_unref0 (p);
#line 186 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
							break;
#line 946 "individual-retrieval.c"
						}
					}
#line 182 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					_g_object_unref0 (p);
#line 951 "individual-retrieval.c"
				}
#line 182 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_g_object_unref0 (_p_it);
#line 955 "individual-retrieval.c"
			}
#line 174 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_g_object_unref0 (i);
#line 959 "individual-retrieval.c"
		}
#line 174 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_object_unref0 (_i_it);
#line 963 "individual-retrieval.c"
	}
#line 190 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp24_ = removed;
#line 190 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp25_ = gee_collection_get_size ((GeeCollection*) _tmp24_);
#line 190 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp26_ = _tmp25_;
#line 190 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_assert (_tmp26_ == 1);
#line 973 "individual-retrieval.c"
	{
		GeeSet* _tmp27_;
		GeeIterator* _tmp28_ = NULL;
		GeeIterator* _i_it;
#line 192 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp27_ = removed;
#line 192 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp28_ = gee_iterable_iterator ((GeeIterable*) _tmp27_);
#line 192 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_i_it = _tmp28_;
#line 192 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		while (TRUE) {
#line 986 "individual-retrieval.c"
			GeeIterator* _tmp29_;
			gboolean _tmp30_ = FALSE;
			GeeIterator* _tmp31_;
			gpointer _tmp32_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp33_;
#line 192 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp29_ = _i_it;
#line 192 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp30_ = gee_iterator_next (_tmp29_);
#line 192 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			if (!_tmp30_) {
#line 192 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				break;
#line 1001 "individual-retrieval.c"
			}
#line 192 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp31_ = _i_it;
#line 192 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp32_ = gee_iterator_get (_tmp31_);
#line 192 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			i = (FolksIndividual*) _tmp32_;
#line 194 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp33_ = i;
#line 194 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			g_assert (_tmp33_ == NULL);
#line 192 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_g_object_unref0 (i);
#line 1015 "individual-retrieval.c"
		}
#line 192 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_object_unref0 (_i_it);
#line 1019 "individual-retrieval.c"
	}
#line 167 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_g_object_unref0 (removed);
#line 167 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_g_object_unref0 (added);
#line 1025 "individual-retrieval.c"
}


static void ___lambda6__folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 167 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	__lambda6_ (self, changes);
#line 1032 "individual-retrieval.c"
}


static gboolean __lambda7_ (Block2Data* _data2_) {
	IndividualRetrievalTests * self;
	gboolean result = FALSE;
#line 201 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self = _data2_->self;
#line 203 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_main_loop_quit (_data2_->main_loop);
#line 204 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	result = FALSE;
#line 204 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return result;
#line 1047 "individual-retrieval.c"
}


static gboolean ___lambda7__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda7_ (self);
#line 201 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return result;
#line 1056 "individual-retrieval.c"
}


static Block3Data* block3_data_ref (Block3Data* _data3_) {
#line 209 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_atomic_int_inc (&_data3_->_ref_count_);
#line 209 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return _data3_;
#line 1065 "individual-retrieval.c"
}


static void block3_data_unref (Block3Data* _data3_) {
#line 209 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
#line 209 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		block2_data_unref (_data3_->_data2_);
#line 209 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data3_->_data2_ = NULL;
#line 209 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_slice_free (Block3Data, _data3_);
#line 1078 "individual-retrieval.c"
	}
}


static void ____lambda10_ (Block3Data* _data3_, FolksPersonaStore* store) {
	Block2Data* _data2_;
	IndividualRetrievalTests * self;
	gboolean _tmp0_ = FALSE;
	FolksPersonaStore* _tmp1_;
	gboolean _tmp3_;
#line 234 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data2_ = _data3_->_data2_;
#line 234 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self = _data2_->self;
#line 234 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_return_if_fail (store != NULL);
#line 236 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp1_ = store;
#line 236 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	if (TPF_IS_PERSONA_STORE (_tmp1_)) {
#line 1099 "individual-retrieval.c"
		gboolean _tmp2_;
#line 236 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp2_ = _data3_->adding_done;
#line 236 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp0_ = !_tmp2_;
#line 1105 "individual-retrieval.c"
	} else {
#line 236 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp0_ = FALSE;
#line 1109 "individual-retrieval.c"
	}
#line 236 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp3_ = _tmp0_;
#line 236 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	if (_tmp3_) {
#line 1115 "individual-retrieval.c"
		FolksPersonaStore* _tmp4_;
#line 238 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp4_ = store;
#line 238 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		individual_retrieval_tests_add_personas (self, TPF_PERSONA_STORE (_tmp4_), _data2_->added_individuals, NULL, NULL);
#line 240 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data3_->adding_done = TRUE;
#line 1123 "individual-retrieval.c"
	}
}


static void _____lambda10__folks_backend_persona_store_added (FolksBackend* _sender, FolksPersonaStore* store, gpointer self) {
#line 234 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	____lambda10_ (self, store);
#line 1131 "individual-retrieval.c"
}


static void __lambda9_ (Block2Data* _data2_, GObject* s, GAsyncResult* r) {
	IndividualRetrievalTests * self;
	Block3Data* _data3_;
	FolksBackendStore* _tmp3_ = NULL;
	FolksBackendStore* backend_store;
	GError * _inner_error_ = NULL;
#line 209 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self = _data2_->self;
#line 209 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_return_if_fail (r != NULL);
#line 209 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data3_ = g_slice_new0 (Block3Data);
#line 209 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data3_->_ref_count_ = 1;
#line 209 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data3_->_data2_ = block2_data_ref (_data2_);
#line 1151 "individual-retrieval.c"
	{
		FolksIndividualAggregator* _tmp0_;
		GAsyncResult* _tmp1_;
#line 213 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp0_ = _data2_->aggregator;
#line 213 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp1_ = r;
#line 213 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		folks_individual_aggregator_prepare_finish (_tmp0_, _tmp1_, &_inner_error_);
#line 213 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		if (_inner_error_ != NULL) {
#line 1163 "individual-retrieval.c"
			goto __catch1_g_error;
		}
	}
	goto __finally1;
	__catch1_g_error:
	{
		GError* e1 = NULL;
		const gchar* _tmp2_;
#line 211 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		e1 = _inner_error_;
#line 211 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_inner_error_ = NULL;
#line 217 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp2_ = e1->message;
#line 217 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_critical ("individual-retrieval.vala:217: failed to prepare aggregator: %s", _tmp2_);
#line 219 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_assert_not_reached ();
#line 211 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_error_free0 (e1);
#line 1184 "individual-retrieval.c"
	}
	__finally1:
#line 211 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	if (_inner_error_ != NULL) {
#line 211 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		block3_data_unref (_data3_);
#line 211 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data3_ = NULL;
#line 211 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.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 211 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_clear_error (&_inner_error_);
#line 211 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		return;
#line 1199 "individual-retrieval.c"
	}
#line 227 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data3_->adding_done = FALSE;
#line 230 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp3_ = folks_backend_store_dup ();
#line 230 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	backend_store = _tmp3_;
#line 1207 "individual-retrieval.c"
	{
		FolksBackendStore* _tmp4_;
		GeeMap* _tmp5_;
		GeeMap* _tmp6_;
		GeeCollection* _tmp7_;
		GeeCollection* _tmp8_;
		GeeCollection* _tmp9_;
		GeeIterator* _tmp10_ = NULL;
		GeeIterator* _tmp11_;
		GeeIterator* _backend_it;
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp4_ = backend_store;
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp5_ = folks_backend_store_get_enabled_backends (_tmp4_);
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp6_ = _tmp5_;
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp7_ = gee_map_get_values (_tmp6_);
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp8_ = _tmp7_;
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp9_ = _tmp8_;
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp10_ = gee_iterable_iterator ((GeeIterable*) _tmp9_);
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp11_ = _tmp10_;
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_object_unref0 (_tmp9_);
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_backend_it = _tmp11_;
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		while (TRUE) {
#line 1240 "individual-retrieval.c"
			GeeIterator* _tmp12_;
			gboolean _tmp13_ = FALSE;
			GeeIterator* _tmp14_;
			gpointer _tmp15_ = NULL;
			FolksBackend* backend;
			FolksBackend* _tmp16_;
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp12_ = _backend_it;
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp13_ = gee_iterator_next (_tmp12_);
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			if (!_tmp13_) {
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				break;
#line 1255 "individual-retrieval.c"
			}
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp14_ = _backend_it;
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp15_ = gee_iterator_get (_tmp14_);
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			backend = (FolksBackend*) _tmp15_;
#line 234 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp16_ = backend;
#line 234 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			g_signal_connect_data (_tmp16_, "persona-store-added", (GCallback) _____lambda10__folks_backend_persona_store_added, block3_data_ref (_data3_), (GClosureNotify) block3_data_unref, 0);
#line 1267 "individual-retrieval.c"
			{
				FolksBackend* _tmp17_;
				GeeMap* _tmp18_;
				GeeMap* _tmp19_;
				GeeCollection* _tmp20_;
				GeeCollection* _tmp21_;
				GeeCollection* _tmp22_;
				GeeIterator* _tmp23_ = NULL;
				GeeIterator* _tmp24_;
				GeeIterator* _store_it;
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_tmp17_ = backend;
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_tmp18_ = folks_backend_get_persona_stores (_tmp17_);
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_tmp19_ = _tmp18_;
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_tmp20_ = gee_map_get_values (_tmp19_);
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_tmp21_ = _tmp20_;
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_tmp22_ = _tmp21_;
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_tmp23_ = gee_iterable_iterator ((GeeIterable*) _tmp22_);
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_tmp24_ = _tmp23_;
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_g_object_unref0 (_tmp22_);
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_store_it = _tmp24_;
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				while (TRUE) {
#line 1300 "individual-retrieval.c"
					GeeIterator* _tmp25_;
					gboolean _tmp26_ = FALSE;
					GeeIterator* _tmp27_;
					gpointer _tmp28_ = NULL;
					FolksPersonaStore* store;
					gboolean _tmp29_ = FALSE;
					FolksPersonaStore* _tmp30_;
					gboolean _tmp32_;
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					_tmp25_ = _store_it;
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					_tmp26_ = gee_iterator_next (_tmp25_);
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					if (!_tmp26_) {
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
						break;
#line 1317 "individual-retrieval.c"
					}
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					_tmp27_ = _store_it;
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					_tmp28_ = gee_iterator_get (_tmp27_);
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					store = (FolksPersonaStore*) _tmp28_;
#line 246 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					_tmp30_ = store;
#line 246 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					if (TPF_IS_PERSONA_STORE (_tmp30_)) {
#line 1329 "individual-retrieval.c"
						gboolean _tmp31_;
#line 246 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
						_tmp31_ = _data3_->adding_done;
#line 246 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
						_tmp29_ = !_tmp31_;
#line 1335 "individual-retrieval.c"
					} else {
#line 246 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
						_tmp29_ = FALSE;
#line 1339 "individual-retrieval.c"
					}
#line 246 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					_tmp32_ = _tmp29_;
#line 246 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					if (_tmp32_) {
#line 1345 "individual-retrieval.c"
						FolksPersonaStore* _tmp33_;
#line 248 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
						_tmp33_ = store;
#line 248 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
						individual_retrieval_tests_add_personas (self, TPF_PERSONA_STORE (_tmp33_), _data2_->added_individuals, NULL, NULL);
#line 250 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
						_data3_->adding_done = TRUE;
#line 1353 "individual-retrieval.c"
					}
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					_g_object_unref0 (store);
#line 1357 "individual-retrieval.c"
				}
#line 244 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_g_object_unref0 (_store_it);
#line 1361 "individual-retrieval.c"
			}
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_g_object_unref0 (backend);
#line 1365 "individual-retrieval.c"
		}
#line 231 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_object_unref0 (_backend_it);
#line 1369 "individual-retrieval.c"
	}
#line 209 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_g_object_unref0 (backend_store);
#line 209 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	block3_data_unref (_data3_);
#line 209 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data3_ = NULL;
#line 1377 "individual-retrieval.c"
}


static void ___lambda9__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 209 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	__lambda9_ (self, source_object, res);
#line 209 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	block2_data_unref (self);
#line 1386 "individual-retrieval.c"
}


static gboolean __lambda8_ (Block2Data* _data2_) {
	IndividualRetrievalTests * self;
	gboolean result = FALSE;
	FolksIndividualAggregator* _tmp0_;
#line 207 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self = _data2_->self;
#line 209 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp0_ = _data2_->aggregator;
#line 209 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	folks_individual_aggregator_prepare (_tmp0_, ___lambda9__gasync_ready_callback, block2_data_ref (_data2_));
#line 256 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	result = FALSE;
#line 256 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return result;
#line 1404 "individual-retrieval.c"
}


static gboolean ___lambda8__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda8_ (self);
#line 207 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return result;
#line 1413 "individual-retrieval.c"
}


void individual_retrieval_tests_test_aggregator_add (IndividualRetrievalTests* self) {
	Block2Data* _data2_;
	GMainLoop* _tmp0_;
	GeeHashSet* _tmp1_;
	FolksIndividualAggregator* _tmp2_;
	FolksIndividualAggregator* _tmp3_;
	gint _tmp4_;
	gint _tmp5_;
	gint _tmp6_;
#line 155 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_return_if_fail (self != NULL);
#line 155 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data2_ = g_slice_new0 (Block2Data);
#line 155 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data2_->_ref_count_ = 1;
#line 155 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data2_->self = g_object_ref (self);
#line 157 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 157 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data2_->main_loop = _tmp0_;
#line 159 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp1_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL);
#line 159 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data2_->added_individuals = _tmp1_;
#line 160 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data2_->added_individuals, "master.shake@example.com");
#line 161 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data2_->added_individuals, "2wycked@example.com");
#line 162 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data2_->added_individuals, "carl-brutananadilewski@example.com");
#line 165 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp2_ = folks_individual_aggregator_new ();
#line 165 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data2_->aggregator = _tmp2_;
#line 167 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp3_ = _data2_->aggregator;
#line 167 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_signal_connect_data (_tmp3_, "individuals-changed-detailed", (GCallback) ___lambda6__folks_individual_aggregator_individuals_changed_detailed, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
#line 201 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp4_ = self->priv->_test_timeout;
#line 201 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) _tmp4_, ___lambda7__gsource_func, block2_data_ref (_data2_), block2_data_unref);
#line 207 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda8__gsource_func, block2_data_ref (_data2_), block2_data_unref);
#line 259 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_main_loop_run (_data2_->main_loop);
#line 262 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp5_ = gee_collection_get_size ((GeeCollection*) _data2_->added_individuals);
#line 262 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp6_ = _tmp5_;
#line 262 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_assert (_tmp6_ == 0);
#line 265 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_g_object_unref0 (_data2_->aggregator);
#line 265 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data2_->aggregator = NULL;
#line 155 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	block2_data_unref (_data2_);
#line 155 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data2_ = NULL;
#line 1478 "individual-retrieval.c"
}


static void individual_retrieval_tests_add_personas_data_free (gpointer _data) {
	IndividualRetrievalTestsAddPersonasData* _data_;
	_data_ = _data;
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_g_object_unref0 (_data_->store);
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_g_object_unref0 (_data_->ids_add);
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_g_object_unref0 (_data_->self);
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_slice_free (IndividualRetrievalTestsAddPersonasData, _data_);
#line 1493 "individual-retrieval.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return self ? g_object_ref (self) : NULL;
#line 1500 "individual-retrieval.c"
}


static void individual_retrieval_tests_add_personas (IndividualRetrievalTests* self, TpfPersonaStore* store, GeeHashSet* ids_add, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	IndividualRetrievalTestsAddPersonasData* _data_;
	IndividualRetrievalTests* _tmp0_;
	TpfPersonaStore* _tmp1_;
	TpfPersonaStore* _tmp2_;
	GeeHashSet* _tmp3_;
	GeeHashSet* _tmp4_;
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data_ = g_slice_new0 (IndividualRetrievalTestsAddPersonasData);
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, individual_retrieval_tests_add_personas);
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, individual_retrieval_tests_add_personas_data_free);
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data_->self = _tmp0_;
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp1_ = store;
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data_->store = _tmp2_;
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp3_ = ids_add;
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data_->ids_add = _tmp4_;
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	individual_retrieval_tests_add_personas_co (_data_);
#line 1535 "individual-retrieval.c"
}


static void individual_retrieval_tests_add_personas_finish (IndividualRetrievalTests* self, GAsyncResult* _res_) {
	IndividualRetrievalTestsAddPersonasData* _data_;
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1543 "individual-retrieval.c"
}


static Block4Data* block4_data_ref (Block4Data* _data4_) {
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_atomic_int_inc (&_data4_->_ref_count_);
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return _data4_;
#line 1552 "individual-retrieval.c"
}


static void block4_data_unref (Block4Data* _data4_) {
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	if (g_atomic_int_dec_and_test (&_data4_->_ref_count_)) {
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_object_unref0 (_data4_->self);
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_object_unref0 (_data4_->store);
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_slice_free (Block4Data, _data4_);
#line 1565 "individual-retrieval.c"
	}
}


static Block5Data* block5_data_ref (Block5Data* _data5_) {
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_atomic_int_inc (&_data5_->_ref_count_);
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return _data5_;
#line 1575 "individual-retrieval.c"
}


static void block5_data_unref (Block5Data* _data5_) {
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	if (g_atomic_int_dec_and_test (&_data5_->_ref_count_)) {
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		block4_data_unref (_data5_->_data4_);
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data5_->_data4_ = NULL;
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_object_unref0 (_data5_->ids_remaining);
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_slice_free (Block5Data, _data5_);
#line 1590 "individual-retrieval.c"
	}
}


static void individual_retrieval_tests_add_personas_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	IndividualRetrievalTestsAddPersonasData* _data_;
#line 273 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data_ = _user_data_;
#line 273 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data_->_source_object_ = source_object;
#line 273 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data_->_res_ = _res_;
#line 273 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	individual_retrieval_tests_add_personas_co (_data_);
#line 1605 "individual-retrieval.c"
}


static Block6Data* block6_data_ref (Block6Data* _data6_) {
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_atomic_int_inc (&_data6_->_ref_count_);
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return _data6_;
#line 1614 "individual-retrieval.c"
}


static void block6_data_unref (Block6Data* _data6_) {
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	if (g_atomic_int_dec_and_test (&_data6_->_ref_count_)) {
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		block5_data_unref (_data6_->_data5_);
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data6_->_data5_ = NULL;
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_hash_table_unref0 (_data6_->details);
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_slice_free (Block6Data, _data6_);
#line 1629 "individual-retrieval.c"
	}
}


static void _g_free0_ (gpointer var) {
#line 289 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	var = (g_free (var), NULL);
#line 1637 "individual-retrieval.c"
}


static void _vala_GValue_free (GValue* self) {
#line 289 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_value_unset (self);
#line 289 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_free (self);
#line 1646 "individual-retrieval.c"
}


static void __vala_GValue_free0_ (gpointer var) {
#line 289 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	(var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL));
#line 1653 "individual-retrieval.c"
}


static GValue* _g_value_dup (GValue* self) {
#line 303 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return g_boxed_copy (G_TYPE_VALUE, self);
#line 1660 "individual-retrieval.c"
}


static gpointer __g_value_dup0 (gpointer self) {
#line 303 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return self ? _g_value_dup (self) : NULL;
#line 1667 "individual-retrieval.c"
}


static void ____lambda12_ (Block6Data* _data6_, GObject* s2, GAsyncResult* res) {
	Block5Data* _data5_;
	Block4Data* _data4_;
	IndividualRetrievalTests * self;
	GError * _inner_error_ = NULL;
#line 297 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data5_ = _data6_->_data5_;
#line 297 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data4_ = _data5_->_data4_;
#line 297 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self = _data4_->self;
#line 297 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_return_if_fail (res != NULL);
#line 1684 "individual-retrieval.c"
	{
		TpfPersonaStore* _tmp0_;
		GAsyncResult* _tmp1_;
		FolksPersona* _tmp2_ = NULL;
		FolksPersona* _tmp3_;
		GHashTable* _tmp4_;
		gconstpointer _tmp5_ = NULL;
		GValue* _tmp6_;
		GValue* id_added_value;
		GValue* _tmp7_;
		const gchar* _tmp8_ = NULL;
		gchar* _tmp9_;
		gchar* id_added;
		const gchar* _tmp10_;
#line 301 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp0_ = _data4_->store;
#line 301 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp1_ = res;
#line 301 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp2_ = folks_persona_store_add_persona_from_details_finish ((FolksPersonaStore*) _tmp0_, _tmp1_, &_inner_error_);
#line 301 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp3_ = _tmp2_;
#line 301 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_object_unref0 (_tmp3_);
#line 301 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		if (_inner_error_ != NULL) {
#line 1711 "individual-retrieval.c"
			goto __catch3_g_error;
		}
#line 303 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp4_ = _data6_->details;
#line 303 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp5_ = g_hash_table_lookup (_tmp4_, "contact");
#line 303 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp6_ = __g_value_dup0 ((GValue*) _tmp5_);
#line 303 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		id_added_value = _tmp6_;
#line 304 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp7_ = id_added_value;
#line 304 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp8_ = g_value_get_string (_tmp7_);
#line 304 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp9_ = g_strdup (_tmp8_);
#line 304 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		id_added = _tmp9_;
#line 305 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp10_ = id_added;
#line 305 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		if (_tmp10_ != NULL) {
#line 1734 "individual-retrieval.c"
			GeeHashSet* _tmp11_;
			const gchar* _tmp12_;
#line 306 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp11_ = _data5_->ids_remaining;
#line 306 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp12_ = id_added;
#line 306 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp11_, _tmp12_);
#line 1743 "individual-retrieval.c"
		}
#line 299 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_free0 (id_added);
#line 299 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		__vala_GValue_free0 (id_added_value);
#line 1749 "individual-retrieval.c"
	}
	goto __finally3;
	__catch3_g_error:
	{
		GError* e1 = NULL;
		GError* _tmp13_;
#line 299 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		e1 = _inner_error_;
#line 299 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_inner_error_ = NULL;
#line 311 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp13_ = e1;
#line 311 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		if (!g_error_matches (_tmp13_, FOLKS_PERSONA_STORE_ERROR, FOLKS_PERSONA_STORE_ERROR_STORE_OFFLINE)) {
#line 1764 "individual-retrieval.c"
			GError* _tmp14_;
			const gchar* _tmp15_;
#line 313 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp14_ = e1;
#line 313 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp15_ = _tmp14_->message;
#line 313 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			g_critical ("individual-retrieval.vala:313: failed to add persona: %s", _tmp15_);
#line 315 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			g_assert_not_reached ();
#line 1775 "individual-retrieval.c"
		}
#line 299 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_error_free0 (e1);
#line 1779 "individual-retrieval.c"
	}
	__finally3:
#line 299 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	if (_inner_error_ != NULL) {
#line 299 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.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 299 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_clear_error (&_inner_error_);
#line 299 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		return;
#line 1790 "individual-retrieval.c"
	}
}


static void _____lambda12__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 297 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	____lambda12_ (self, source_object, res);
#line 297 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	block6_data_unref (self);
#line 1800 "individual-retrieval.c"
}


static gboolean ___lambda11_ (Block5Data* _data5_) {
	Block4Data* _data4_;
	IndividualRetrievalTests * self;
	gboolean result = FALSE;
	gboolean try_again;
#line 283 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data4_ = _data5_->_data4_;
#line 283 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self = _data4_->self;
#line 285 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	try_again = FALSE;
#line 1815 "individual-retrieval.c"
	{
		GeeHashSet* _tmp0_;
		GeeIterator* _tmp1_ = NULL;
		GeeIterator* _id_it;
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp0_ = _data5_->ids_remaining;
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_tmp1_ = gee_abstract_collection_iterator ((GeeAbstractCollection*) _tmp0_);
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_id_it = _tmp1_;
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		while (TRUE) {
#line 1828 "individual-retrieval.c"
			Block6Data* _data6_;
			GeeIterator* _tmp2_;
			gboolean _tmp3_ = FALSE;
			GeeIterator* _tmp4_;
			gpointer _tmp5_ = NULL;
			gchar* id;
			GHashFunc _tmp6_;
			GEqualFunc _tmp7_;
			GHashTable* _tmp8_;
			GHashTable* _tmp9_;
			gchar* _tmp10_;
			const gchar* _tmp11_;
			GValue* _tmp12_ = NULL;
			TpfPersonaStore* _tmp13_;
			GHashTable* _tmp14_;
			GeeHashSet* _tmp15_;
			gint _tmp16_;
			gint _tmp17_;
			gboolean _tmp18_;
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_data6_ = g_slice_new0 (Block6Data);
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_data6_->_ref_count_ = 1;
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_data6_->_data5_ = block5_data_ref (_data5_);
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp2_ = _id_it;
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp3_ = gee_iterator_next (_tmp2_);
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			if (!_tmp3_) {
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				block6_data_unref (_data6_);
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_data6_ = NULL;
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				break;
#line 1866 "individual-retrieval.c"
			}
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp4_ = _id_it;
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp5_ = gee_iterator_get (_tmp4_);
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			id = (gchar*) _tmp5_;
#line 289 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp6_ = g_str_hash;
#line 289 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp7_ = g_str_equal;
#line 289 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp8_ = g_hash_table_new_full (_tmp6_, _tmp7_, _g_free0_, __vala_GValue_free0_);
#line 289 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_data6_->details = _tmp8_;
#line 291 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp9_ = _data6_->details;
#line 291 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp10_ = g_strdup ("contact");
#line 291 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp11_ = id;
#line 291 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp12_ = g_new0 (GValue, 1);
#line 291 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			g_value_init (_tmp12_, G_TYPE_STRING);
#line 291 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			g_value_set_string (_tmp12_, _tmp11_);
#line 291 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			g_hash_table_insert (_tmp9_, _tmp10_, _tmp12_);
#line 297 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp13_ = _data4_->store;
#line 297 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp14_ = _data6_->details;
#line 297 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			folks_persona_store_add_persona_from_details ((FolksPersonaStore*) _tmp13_, _tmp14_, _____lambda12__gasync_ready_callback, block6_data_ref (_data6_));
#line 320 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp15_ = _data5_->ids_remaining;
#line 320 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp16_ = gee_collection_get_size ((GeeCollection*) _tmp15_);
#line 320 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp17_ = _tmp16_;
#line 320 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			try_again = _tmp17_ > 0;
#line 321 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_tmp18_ = try_again;
#line 321 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			if (_tmp18_) {
#line 322 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_g_free0 (id);
#line 322 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				block6_data_unref (_data6_);
#line 322 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_data6_ = NULL;
#line 322 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				break;
#line 1922 "individual-retrieval.c"
			}
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_g_free0 (id);
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			block6_data_unref (_data6_);
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_data6_ = NULL;
#line 1930 "individual-retrieval.c"
		}
#line 287 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_object_unref0 (_id_it);
#line 1934 "individual-retrieval.c"
	}
#line 325 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	result = try_again;
#line 325 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return result;
#line 1940 "individual-retrieval.c"
}


static gboolean ____lambda11__gsource_func (gpointer self) {
	gboolean result;
	result = ___lambda11_ (self);
#line 283 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return result;
#line 1949 "individual-retrieval.c"
}


static gboolean individual_retrieval_tests_add_personas_co (IndividualRetrievalTestsAddPersonasData* _data_) {
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	switch (_data_->_state_) {
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		case 0:
#line 1958 "individual-retrieval.c"
		goto _state_0;
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		case 1:
#line 1962 "individual-retrieval.c"
		goto _state_1;
		default:
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_assert_not_reached ();
#line 1967 "individual-retrieval.c"
	}
	_state_0:
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data_->_data4_ = g_slice_new0 (Block4Data);
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data_->_data4_->_ref_count_ = 1;
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data_->_data4_->self = g_object_ref (_data_->self);
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data_->_tmp0_ = _data_->store;
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data_->_tmp1_ = _g_object_ref0 (_data_->_tmp0_);
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data_->_data4_->store = _data_->_tmp1_;
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data_->_data4_->_async_data_ = _data_;
#line 1984 "individual-retrieval.c"
	{
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data_->_data5_ = g_slice_new0 (Block5Data);
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data_->_data5_->_ref_count_ = 1;
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data_->_data5_->_data4_ = block4_data_ref (_data_->_data4_);
#line 273 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data_->_tmp2_ = _data_->_data4_->store;
#line 273 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data_->_state_ = 1;
#line 273 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		folks_persona_store_prepare ((FolksPersonaStore*) _data_->_tmp2_, individual_retrieval_tests_add_personas_ready, _data_);
#line 273 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		return FALSE;
#line 2000 "individual-retrieval.c"
		_state_1:
#line 273 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		folks_persona_store_prepare_finish ((FolksPersonaStore*) _data_->_tmp2_, _data_->_res_, &_data_->_inner_error_);
#line 273 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		if (_data_->_inner_error_ != NULL) {
#line 273 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			block5_data_unref (_data_->_data5_);
#line 273 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_data_->_data5_ = NULL;
#line 2010 "individual-retrieval.c"
			goto __catch2_g_error;
		}
#line 279 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data_->_tmp3_ = g_str_hash;
#line 279 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data_->_tmp4_ = g_str_equal;
#line 279 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data_->_tmp5_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, _data_->_tmp3_, _data_->_tmp4_);
#line 279 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data_->_data5_->ids_remaining = _data_->_tmp5_;
#line 2021 "individual-retrieval.c"
		{
#line 280 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_data_->_tmp6_ = _data_->ids_add;
#line 280 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_data_->_tmp7_ = NULL;
#line 280 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_data_->_tmp7_ = gee_abstract_collection_iterator ((GeeAbstractCollection*) _data_->_tmp6_);
#line 280 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_data_->_contact_id_it = _data_->_tmp7_;
#line 280 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			while (TRUE) {
#line 280 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_data_->_tmp8_ = _data_->_contact_id_it;
#line 280 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_data_->_tmp9_ = FALSE;
#line 280 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_data_->_tmp9_ = gee_iterator_next (_data_->_tmp8_);
#line 280 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				if (!_data_->_tmp9_) {
#line 280 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
					break;
#line 2043 "individual-retrieval.c"
				}
#line 280 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_data_->_tmp10_ = _data_->_contact_id_it;
#line 280 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_data_->_tmp11_ = NULL;
#line 280 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_data_->_tmp11_ = gee_iterator_get (_data_->_tmp10_);
#line 280 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_data_->contact_id = (gchar*) _data_->_tmp11_;
#line 281 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_data_->_tmp12_ = _data_->_data5_->ids_remaining;
#line 281 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_data_->_tmp13_ = _data_->contact_id;
#line 281 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				gee_abstract_collection_add ((GeeAbstractCollection*) _data_->_tmp12_, _data_->_tmp13_);
#line 280 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
				_g_free0 (_data_->contact_id);
#line 2061 "individual-retrieval.c"
			}
#line 280 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
			_g_object_unref0 (_data_->_contact_id_it);
#line 2065 "individual-retrieval.c"
		}
#line 283 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ____lambda11__gsource_func, block5_data_ref (_data_->_data5_), block5_data_unref);
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		block5_data_unref (_data_->_data5_);
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data_->_data5_ = NULL;
#line 2073 "individual-retrieval.c"
	}
	goto __finally2;
	__catch2_g_error:
	{
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data_->e2 = _data_->_inner_error_;
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data_->_inner_error_ = NULL;
#line 330 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data_->_tmp14_ = _data_->_data4_->store;
#line 330 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data_->_tmp15_ = folks_persona_store_get_id ((FolksPersonaStore*) _data_->_tmp14_);
#line 330 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data_->_tmp16_ = _data_->_tmp15_;
#line 330 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data_->_tmp17_ = _data_->e2->message;
#line 330 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_warning ("individual-retrieval.vala:330: Error preparing PersonaStore '%s': %s", _data_->_tmp16_, _data_->_tmp17_);
#line 332 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_assert_not_reached ();
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_g_error_free0 (_data_->e2);
#line 2096 "individual-retrieval.c"
	}
	__finally2:
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	if (_data_->_inner_error_ != NULL) {
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		block4_data_unref (_data_->_data4_);
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		_data_->_data4_ = NULL;
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.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 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_clear_error (&_data_->_inner_error_);
#line 271 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		return FALSE;
#line 2111 "individual-retrieval.c"
	}
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	block4_data_unref (_data_->_data4_);
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_data_->_data4_ = NULL;
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	if (_data_->_state_ == 0) {
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2121 "individual-retrieval.c"
	} else {
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2125 "individual-retrieval.c"
	}
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_object_unref (_data_->_async_result);
#line 268 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return FALSE;
#line 2131 "individual-retrieval.c"
}


static void individual_retrieval_tests_class_init (IndividualRetrievalTestsClass * klass) {
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	individual_retrieval_tests_parent_class = g_type_class_peek_parent (klass);
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_type_class_add_private (klass, sizeof (IndividualRetrievalTestsPrivate));
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = individual_retrieval_tests_real_set_up;
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = individual_retrieval_tests_real_tear_down;
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	G_OBJECT_CLASS (klass)->finalize = individual_retrieval_tests_finalize;
#line 2146 "individual-retrieval.c"
}


static void individual_retrieval_tests_instance_init (IndividualRetrievalTests * self) {
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self->priv = INDIVIDUAL_RETRIEVAL_TESTS_GET_PRIVATE (self);
#line 32 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self->priv->_test_timeout = 3;
#line 2155 "individual-retrieval.c"
}


static void individual_retrieval_tests_finalize (GObject* obj) {
	IndividualRetrievalTests * self;
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	self = INDIVIDUAL_RETRIEVAL_TESTS (obj);
#line 29 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_g_object_unref0 (self->priv->tp_backend);
#line 31 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_g_object_unref0 (self->priv->default_individuals);
#line 27 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	G_OBJECT_CLASS (individual_retrieval_tests_parent_class)->finalize (obj);
#line 2169 "individual-retrieval.c"
}


GType individual_retrieval_tests_get_type (void) {
	static volatile gsize individual_retrieval_tests_type_id__volatile = 0;
	if (g_once_init_enter (&individual_retrieval_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (IndividualRetrievalTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) individual_retrieval_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (IndividualRetrievalTests), 0, (GInstanceInitFunc) individual_retrieval_tests_instance_init, NULL };
		GType individual_retrieval_tests_type_id;
		individual_retrieval_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "IndividualRetrievalTests", &g_define_type_info, 0);
		g_once_init_leave (&individual_retrieval_tests_type_id__volatile, individual_retrieval_tests_type_id);
	}
	return individual_retrieval_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	IndividualRetrievalTests* _tmp1_;
	IndividualRetrievalTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 339 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_test_init (&args_length1, &args, NULL);
#line 341 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp0_ = g_test_get_root ();
#line 341 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	root = _tmp0_;
#line 342 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp1_ = individual_retrieval_tests_new ();
#line 342 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp2_ = _tmp1_;
#line 342 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 342 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 342 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	_g_object_unref0 (_tmp2_);
#line 344 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_test_run ();
#line 346 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	result = 0;
#line 346 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return result;
#line 2214 "individual-retrieval.c"
}


int main (int argc, char ** argv) {
#line 337 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	g_type_init ();
#line 337 "/home/treitter/collabora/folks/tests/telepathy/individual-retrieval.vala"
	return _vala_main (argv, argc);
#line 2223 "individual-retrieval.c"
}



