/* individual-retrieval.c generated by valac 0.17.6.3-6918, 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 <kf-test.h>
#include <gee.h>
#include <stdlib.h>
#include <string.h>
#include <folks/folks.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 _kf_test_backend_unref0(var) ((var == NULL) ? NULL : (var = (kf_test_backend_unref (var), NULL)))
typedef struct _Block1Data Block1Data;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
typedef struct _Block2Data Block2Data;
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

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

struct _IndividualRetrievalTestsClass {
	FolksTestCaseClass parent_class;
};

struct _IndividualRetrievalTestsPrivate {
	KfTestBackend* kf_backend;
	gint _test_timeout;
};

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

struct _Block2Data {
	int _ref_count_;
	IndividualRetrievalTests * self;
	GMainLoop* main_loop;
	guint individuals_changed_count;
};


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_singleton_individuals (IndividualRetrievalTests* self);
static void _individual_retrieval_tests_test_singleton_individuals_folks_test_case_test_method (gpointer self);
void individual_retrieval_tests_test_aliases (IndividualRetrievalTests* self);
static void _individual_retrieval_tests_test_aliases_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 (void * _userdata_);
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 Block2Data* block2_data_ref (Block2Data* _data2_);
static void block2_data_unref (void * _userdata_);
static void __lambda4_ (Block2Data* _data2_, GeeMultiMap* changes);
static void ___lambda4__folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static gboolean __lambda5_ (Block2Data* _data2_);
static gboolean ___lambda5__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_singleton_individuals_folks_test_case_test_method (gpointer self) {
#line 35 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	individual_retrieval_tests_test_singleton_individuals (self);
#line 114 "individual-retrieval.c"
}


static void _individual_retrieval_tests_test_aliases_folks_test_case_test_method (gpointer self) {
#line 36 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	individual_retrieval_tests_test_aliases (self);
#line 121 "individual-retrieval.c"
}


IndividualRetrievalTests* individual_retrieval_tests_construct (GType object_type) {
	IndividualRetrievalTests * self = NULL;
	KfTestBackend* _tmp0_;
	const gchar* _tmp1_ = NULL;
#line 31 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	self = (IndividualRetrievalTests*) folks_test_case_construct (object_type, "IndividualRetrieval");
#line 33 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp0_ = kf_test_backend_new ();
#line 33 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_kf_test_backend_unref0 (self->priv->kf_backend);
#line 33 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	self->priv->kf_backend = _tmp0_;
#line 35 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "singleton individuals", _individual_retrieval_tests_test_singleton_individuals_folks_test_case_test_method, self);
#line 36 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "aliases", _individual_retrieval_tests_test_aliases_folks_test_case_test_method, self);
#line 38 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp1_ = g_getenv ("FOLKS_TEST_VALGRIND");
#line 38 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	if (_tmp1_ != NULL) {
#line 39 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		self->priv->_test_timeout = 10;
#line 147 "individual-retrieval.c"
	}
#line 29 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	return self;
#line 151 "individual-retrieval.c"
}


IndividualRetrievalTests* individual_retrieval_tests_new (void) {
#line 29 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	return individual_retrieval_tests_construct (TYPE_INDIVIDUAL_RETRIEVAL_TESTS);
#line 158 "individual-retrieval.c"
}


static void individual_retrieval_tests_real_set_up (FolksTestCase* base) {
	IndividualRetrievalTests * self;
#line 42 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	self = (IndividualRetrievalTests*) base;
#line 166 "individual-retrieval.c"
}


static void individual_retrieval_tests_real_tear_down (FolksTestCase* base) {
	IndividualRetrievalTests * self;
#line 46 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	self = (IndividualRetrievalTests*) base;
#line 174 "individual-retrieval.c"
}


static Block1Data* block1_data_ref (Block1Data* _data1_) {
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	g_atomic_int_inc (&_data1_->_ref_count_);
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	return _data1_;
#line 183 "individual-retrieval.c"
}


static void block1_data_unref (void * _userdata_) {
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 192 "individual-retrieval.c"
		IndividualRetrievalTests * self;
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		self = _data1_->self;
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_g_object_unref0 (_data1_->expected_individuals);
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_g_main_loop_unref0 (_data1_->main_loop);
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_g_object_unref0 (self);
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		g_slice_free (Block1Data, _data1_);
#line 204 "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* _tmp27_;
	gint _tmp28_;
	gint _tmp29_;
#line 69 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	self = _data1_->self;
#line 69 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	g_return_if_fail (changes != NULL);
#line 71 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp0_ = changes;
#line 71 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 71 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	added = _tmp1_;
#line 72 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp2_ = changes;
#line 72 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 72 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	removed = _tmp3_;
#line 236 "individual-retrieval.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_tmp4_ = added;
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_i_it = _tmp5_;
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		while (TRUE) {
#line 249 "individual-retrieval.c"
			GeeIterator* _tmp6_;
			gboolean _tmp7_ = FALSE;
			GeeIterator* _tmp8_;
			gpointer _tmp9_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp10_;
			FolksIndividual* _tmp11_;
			GeeSet* _tmp12_;
			GeeSet* _tmp13_;
			gint _tmp14_;
			gint _tmp15_;
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp6_ = _i_it;
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			if (!_tmp7_) {
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
				break;
#line 269 "individual-retrieval.c"
			}
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp8_ = _i_it;
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			i = (FolksIndividual*) _tmp9_;
#line 76 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp10_ = i;
#line 76 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_vala_assert (_tmp10_ != NULL, "i != null");
#line 77 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp11_ = i;
#line 77 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp12_ = folks_individual_get_personas (_tmp11_);
#line 77 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp13_ = _tmp12_;
#line 77 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp14_ = gee_collection_get_size ((GeeCollection*) _tmp13_);
#line 77 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp15_ = _tmp14_;
#line 77 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_vala_assert (_tmp15_ == 1, "i.personas.size == 1");
#line 293 "individual-retrieval.c"
			{
				FolksIndividual* _tmp16_;
				GeeSet* _tmp17_;
				GeeSet* _tmp18_;
				GeeIterator* _tmp19_ = NULL;
				GeeIterator* _persona_it;
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
				_tmp16_ = i;
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
				_tmp17_ = folks_individual_get_personas (_tmp16_);
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
				_tmp18_ = _tmp17_;
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
				_tmp19_ = gee_iterable_iterator ((GeeIterable*) _tmp18_);
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
				_persona_it = _tmp19_;
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
				while (TRUE) {
#line 312 "individual-retrieval.c"
					GeeIterator* _tmp20_;
					gboolean _tmp21_ = FALSE;
					GeeIterator* _tmp22_;
					gpointer _tmp23_ = NULL;
					FolksPersona* persona;
					FolksPersona* _tmp24_;
					const gchar* _tmp25_;
					const gchar* _tmp26_;
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
					_tmp20_ = _persona_it;
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
					_tmp21_ = gee_iterator_next (_tmp20_);
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
					if (!_tmp21_) {
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
						break;
#line 329 "individual-retrieval.c"
					}
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
					_tmp22_ = _persona_it;
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
					_tmp23_ = gee_iterator_get (_tmp22_);
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
					persona = (FolksPersona*) _tmp23_;
#line 84 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
					_tmp24_ = persona;
#line 84 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
					_tmp25_ = folks_persona_get_display_id (_tmp24_);
#line 84 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
					_tmp26_ = _tmp25_;
#line 84 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
					gee_abstract_collection_remove ((GeeAbstractCollection*) _data1_->expected_individuals, _tmp26_);
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
					_g_object_unref0 (persona);
#line 347 "individual-retrieval.c"
				}
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
				_g_object_unref0 (_persona_it);
#line 351 "individual-retrieval.c"
			}
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_g_object_unref0 (i);
#line 355 "individual-retrieval.c"
		}
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_g_object_unref0 (_i_it);
#line 359 "individual-retrieval.c"
	}
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp27_ = removed;
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp28_ = gee_collection_get_size ((GeeCollection*) _tmp27_);
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp29_ = _tmp28_;
#line 88 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_vala_assert (_tmp29_ == 1, "removed.size == 1");
#line 369 "individual-retrieval.c"
	{
		GeeSet* _tmp30_;
		GeeIterator* _tmp31_ = NULL;
		GeeIterator* _i_it;
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_tmp30_ = removed;
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_tmp31_ = gee_iterable_iterator ((GeeIterable*) _tmp30_);
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_i_it = _tmp31_;
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		while (TRUE) {
#line 382 "individual-retrieval.c"
			GeeIterator* _tmp32_;
			gboolean _tmp33_ = FALSE;
			GeeIterator* _tmp34_;
			gpointer _tmp35_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp36_;
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp32_ = _i_it;
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp33_ = gee_iterator_next (_tmp32_);
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			if (!_tmp33_) {
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
				break;
#line 397 "individual-retrieval.c"
			}
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp34_ = _i_it;
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp35_ = gee_iterator_get (_tmp34_);
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			i = (FolksIndividual*) _tmp35_;
#line 92 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp36_ = i;
#line 92 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_vala_assert (_tmp36_ == NULL, "i == null");
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_g_object_unref0 (i);
#line 411 "individual-retrieval.c"
		}
#line 90 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_g_object_unref0 (_i_it);
#line 415 "individual-retrieval.c"
	}
#line 69 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_g_object_unref0 (removed);
#line 69 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_g_object_unref0 (added);
#line 421 "individual-retrieval.c"
}


static void ___lambda2__folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 69 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	__lambda2_ (self, changes);
#line 428 "individual-retrieval.c"
}


static gboolean __lambda3_ (Block1Data* _data1_) {
	IndividualRetrievalTests * self;
	gboolean result = FALSE;
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	self = _data1_->self;
#line 102 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	g_main_loop_quit (_data1_->main_loop);
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	result = FALSE;
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	return result;
#line 443 "individual-retrieval.c"
}


static gboolean ___lambda3__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda3_ (self);
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	return result;
#line 452 "individual-retrieval.c"
}


void individual_retrieval_tests_test_singleton_individuals (IndividualRetrievalTests* self) {
	Block1Data* _data1_;
	GMainLoop* _tmp0_;
	KfTestBackend* _tmp1_;
	GHashFunc _tmp2_;
	GEqualFunc _tmp3_;
	GeeHashSet* _tmp4_;
	FolksIndividualAggregator* _tmp5_;
	FolksIndividualAggregator* aggregator;
	gint _tmp6_;
	gint _tmp7_;
	gint _tmp8_;
	KfTestBackend* _tmp9_;
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	g_return_if_fail (self != NULL);
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_data1_ = g_slice_new0 (Block1Data);
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_data1_->_ref_count_ = 1;
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_data1_->self = g_object_ref (self);
#line 52 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 52 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_data1_->main_loop = _tmp0_;
#line 53 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp1_ = self->priv->kf_backend;
#line 53 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	kf_test_backend_set_up (_tmp1_, "[0]\n" "msn=foo@hotmail.com\n" "[1]\n" "__alias=Bar McBadgerson\n" "jabber=bar@jabber.org\n");
#line 61 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp2_ = g_str_hash;
#line 61 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp3_ = g_str_equal;
#line 61 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp4_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, _tmp2_, _tmp3_);
#line 61 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_data1_->expected_individuals = _tmp4_;
#line 64 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data1_->expected_individuals, "0");
#line 65 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _data1_->expected_individuals, "1");
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp5_ = folks_individual_aggregator_new ();
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	aggregator = _tmp5_;
#line 69 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	g_signal_connect_data (aggregator, "individuals-changed-detailed", (GCallback) ___lambda2__folks_individual_aggregator_individuals_changed_detailed, block1_data_ref (_data1_), (GClosureNotify) block1_data_unref, 0);
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	folks_individual_aggregator_prepare (aggregator, NULL, NULL);
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp6_ = self->priv->_test_timeout;
#line 100 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) _tmp6_, ___lambda3__gsource_func, block1_data_ref (_data1_), block1_data_unref);
#line 106 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	g_main_loop_run (_data1_->main_loop);
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp7_ = gee_abstract_collection_get_size ((GeeCollection*) _data1_->expected_individuals);
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp8_ = _tmp7_;
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_vala_assert (_tmp8_ == 0, "expected_individuals.size == 0");
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp9_ = self->priv->kf_backend;
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	kf_test_backend_tear_down (_tmp9_);
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_g_object_unref0 (aggregator);
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	block1_data_unref (_data1_);
#line 50 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_data1_ = NULL;
#line 527 "individual-retrieval.c"
}


static Block2Data* block2_data_ref (Block2Data* _data2_) {
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	g_atomic_int_inc (&_data2_->_ref_count_);
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	return _data2_;
#line 536 "individual-retrieval.c"
}


static void block2_data_unref (void * _userdata_) {
	Block2Data* _data2_;
	_data2_ = (Block2Data*) _userdata_;
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
#line 545 "individual-retrieval.c"
		IndividualRetrievalTests * self;
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		self = _data2_->self;
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_g_main_loop_unref0 (_data2_->main_loop);
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_g_object_unref0 (self);
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		g_slice_free (Block2Data, _data2_);
#line 555 "individual-retrieval.c"
	}
}


static void __lambda4_ (Block2Data* _data2_, GeeMultiMap* changes) {
	IndividualRetrievalTests * self;
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
	guint _tmp4_;
	GeeCollection* _tmp5_;
	gint _tmp6_;
	gint _tmp7_;
	GeeSet* _tmp8_;
	gint _tmp9_;
	gint _tmp10_;
#line 125 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	self = _data2_->self;
#line 125 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	g_return_if_fail (changes != NULL);
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp0_ = changes;
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	added = _tmp1_;
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp2_ = changes;
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	removed = _tmp3_;
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp4_ = _data2_->individuals_changed_count;
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_data2_->individuals_changed_count = _tmp4_ + 1;
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp5_ = added;
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp6_ = gee_collection_get_size (_tmp5_);
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp7_ = _tmp6_;
#line 132 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_vala_assert (_tmp7_ == 1, "added.size == 1");
#line 133 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp8_ = removed;
#line 133 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp9_ = gee_collection_get_size ((GeeCollection*) _tmp8_);
#line 133 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp10_ = _tmp9_;
#line 133 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_vala_assert (_tmp10_ == 1, "removed.size == 1");
#line 611 "individual-retrieval.c"
	{
		GeeCollection* _tmp11_;
		GeeIterator* _tmp12_ = NULL;
		GeeIterator* _i_it;
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_tmp11_ = added;
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_tmp12_ = gee_iterable_iterator ((GeeIterable*) _tmp11_);
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_i_it = _tmp12_;
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		while (TRUE) {
#line 624 "individual-retrieval.c"
			GeeIterator* _tmp13_;
			gboolean _tmp14_ = FALSE;
			GeeIterator* _tmp15_;
			gpointer _tmp16_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp17_;
			const gchar* _tmp18_;
			const gchar* _tmp19_;
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp13_ = _i_it;
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp14_ = gee_iterator_next (_tmp13_);
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			if (!_tmp14_) {
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
				break;
#line 641 "individual-retrieval.c"
			}
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp15_ = _i_it;
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp16_ = gee_iterator_get (_tmp15_);
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			i = (FolksIndividual*) _tmp16_;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp17_ = i;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp18_ = folks_alias_details_get_alias ((FolksAliasDetails*) _tmp17_);
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp19_ = _tmp18_;
#line 138 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_vala_assert (g_strcmp0 (_tmp19_, "Brian Briansson") == 0, "i.alias == \"Brian Briansson\"");
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_g_object_unref0 (i);
#line 659 "individual-retrieval.c"
		}
#line 136 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_g_object_unref0 (_i_it);
#line 663 "individual-retrieval.c"
	}
	{
		GeeSet* _tmp20_;
		GeeIterator* _tmp21_ = NULL;
		GeeIterator* _i_it;
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_tmp20_ = removed;
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_tmp21_ = gee_iterable_iterator ((GeeIterable*) _tmp20_);
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_i_it = _tmp21_;
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		while (TRUE) {
#line 677 "individual-retrieval.c"
			GeeIterator* _tmp22_;
			gboolean _tmp23_ = FALSE;
			GeeIterator* _tmp24_;
			gpointer _tmp25_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp26_;
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp22_ = _i_it;
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp23_ = gee_iterator_next (_tmp22_);
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			if (!_tmp23_) {
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
				break;
#line 692 "individual-retrieval.c"
			}
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp24_ = _i_it;
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp25_ = gee_iterator_get (_tmp24_);
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			i = (FolksIndividual*) _tmp25_;
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_tmp26_ = i;
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_vala_assert (_tmp26_ == NULL, "i == null");
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
			_g_object_unref0 (i);
#line 706 "individual-retrieval.c"
		}
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
		_g_object_unref0 (_i_it);
#line 710 "individual-retrieval.c"
	}
#line 125 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_g_object_unref0 (removed);
#line 125 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_g_object_unref0 (added);
#line 716 "individual-retrieval.c"
}


static void ___lambda4__folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 125 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	__lambda4_ (self, changes);
#line 723 "individual-retrieval.c"
}


static gboolean __lambda5_ (Block2Data* _data2_) {
	IndividualRetrievalTests * self;
	gboolean result = FALSE;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	self = _data2_->self;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	g_main_loop_quit (_data2_->main_loop);
#line 154 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	result = FALSE;
#line 154 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	return result;
#line 738 "individual-retrieval.c"
}


static gboolean ___lambda5__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda5_ (self);
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	return result;
#line 747 "individual-retrieval.c"
}


void individual_retrieval_tests_test_aliases (IndividualRetrievalTests* self) {
	Block2Data* _data2_;
	GMainLoop* _tmp0_;
	KfTestBackend* _tmp1_;
	FolksIndividualAggregator* _tmp2_;
	FolksIndividualAggregator* aggregator;
	gint _tmp3_;
	KfTestBackend* _tmp4_;
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	g_return_if_fail (self != NULL);
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_data2_ = g_slice_new0 (Block2Data);
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_data2_->_ref_count_ = 1;
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_data2_->self = g_object_ref (self);
#line 116 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 116 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_data2_->main_loop = _tmp0_;
#line 117 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp1_ = self->priv->kf_backend;
#line 117 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	kf_test_backend_set_up (_tmp1_, "[0]\n" "__alias=Brian Briansson\n" "msn=foo@hotmail.com\n");
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp2_ = folks_individual_aggregator_new ();
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	aggregator = _tmp2_;
#line 124 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_data2_->individuals_changed_count = (guint) 0;
#line 125 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	g_signal_connect_data (aggregator, "individuals-changed-detailed", (GCallback) ___lambda4__folks_individual_aggregator_individuals_changed_detailed, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
#line 146 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	folks_individual_aggregator_prepare (aggregator, NULL, NULL);
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp3_ = self->priv->_test_timeout;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) _tmp3_, ___lambda5__gsource_func, block2_data_ref (_data2_), block2_data_unref);
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	g_main_loop_run (_data2_->main_loop);
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_vala_assert (_data2_->individuals_changed_count == ((guint) 1), "individuals_changed_count == 1");
#line 162 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp4_ = self->priv->kf_backend;
#line 162 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	kf_test_backend_tear_down (_tmp4_);
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_g_object_unref0 (aggregator);
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	block2_data_unref (_data2_);
#line 114 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_data2_ = NULL;
#line 803 "individual-retrieval.c"
}


static void individual_retrieval_tests_class_init (IndividualRetrievalTestsClass * klass) {
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	individual_retrieval_tests_parent_class = g_type_class_peek_parent (klass);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	g_type_class_add_private (klass, sizeof (IndividualRetrievalTestsPrivate));
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = individual_retrieval_tests_real_set_up;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = individual_retrieval_tests_real_tear_down;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	G_OBJECT_CLASS (klass)->finalize = individual_retrieval_tests_finalize;
#line 818 "individual-retrieval.c"
}


static void individual_retrieval_tests_instance_init (IndividualRetrievalTests * self) {
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	self->priv = INDIVIDUAL_RETRIEVAL_TESTS_GET_PRIVATE (self);
#line 27 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	self->priv->_test_timeout = 3;
#line 827 "individual-retrieval.c"
}


static void individual_retrieval_tests_finalize (GObject* obj) {
	IndividualRetrievalTests * self;
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_INDIVIDUAL_RETRIEVAL_TESTS, IndividualRetrievalTests);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_kf_test_backend_unref0 (self->priv->kf_backend);
#line 24 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	G_OBJECT_CLASS (individual_retrieval_tests_parent_class)->finalize (obj);
#line 839 "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 168 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	g_test_init (&args_length1, &args, NULL);
#line 170 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp0_ = g_test_get_root ();
#line 170 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	root = _tmp0_;
#line 171 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp1_ = individual_retrieval_tests_new ();
#line 171 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp2_ = _tmp1_;
#line 171 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 171 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 171 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	_g_object_unref0 (_tmp2_);
#line 173 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	g_test_run ();
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	result = 0;
#line 175 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	return result;
#line 884 "individual-retrieval.c"
}


int main (int argc, char ** argv) {
#line 166 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	g_type_init ();
#line 166 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/key-file/individual-retrieval.vala"
	return _vala_main (argv, argc);
#line 893 "individual-retrieval.c"
}



