/* aggregation.c generated by valac 0.14.0.50-58097f, the Vala compiler
 * generated from aggregation.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: Alban Crequy <alban.crequy@collabora.co.uk>
 *
 */

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


#define TYPE_AGGREGATION_TESTS (aggregation_tests_get_type ())
#define AGGREGATION_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_AGGREGATION_TESTS, AggregationTests))
#define AGGREGATION_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_AGGREGATION_TESTS, AggregationTestsClass))
#define IS_AGGREGATION_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_AGGREGATION_TESTS))
#define IS_AGGREGATION_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_AGGREGATION_TESTS))
#define AGGREGATION_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_AGGREGATION_TESTS, AggregationTestsClass))

typedef struct _AggregationTests AggregationTests;
typedef struct _AggregationTestsClass AggregationTestsClass;
typedef struct _AggregationTestsPrivate AggregationTestsPrivate;
#define _libsocialweb_test_backend_unref0(var) ((var == NULL) ? NULL : (var = (libsocialweb_test_backend_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_key_file_free0(var) ((var == NULL) ? NULL : (var = (g_key_file_free (var), NULL)))
typedef struct _Block1Data Block1Data;
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
typedef struct _Block2Data Block2Data;
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
typedef struct _Block3Data Block3Data;
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))

struct _AggregationTests {
	FolksTestCase parent_instance;
	AggregationTestsPrivate * priv;
};

struct _AggregationTestsClass {
	FolksTestCaseClass parent_class;
};

struct _AggregationTestsPrivate {
	LibsocialwebTestBackend* _lsw_backend;
};

struct _Block1Data {
	int _ref_count_;
	AggregationTests * self;
	GMainLoop* main_loop;
	LibsocialwebTestLibsocialwebServiceTest* mysocialnetwork1;
	LibsocialwebTestLibsocialwebServiceTest* mysocialnetwork2;
	FolksIndividualAggregator* aggregator;
	FolksIndividual** individual_gathered;
	gint individual_gathered_length1;
	gint _individual_gathered_size_;
	GeeHashSet* personas;
};

struct _Block2Data {
	int _ref_count_;
	AggregationTests * self;
	gchar* path;
};

struct _Block3Data {
	int _ref_count_;
	AggregationTests * self;
	gchar* path;
};


static gpointer aggregation_tests_parent_class = NULL;

GType aggregation_tests_get_type (void) G_GNUC_CONST;
#define AGGREGATION_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_AGGREGATION_TESTS, AggregationTestsPrivate))
enum  {
	AGGREGATION_TESTS_DUMMY_PROPERTY
};
#define AGGREGATION_TESTS_STORE_FILE_PATH "folks-test-libsocialweb-aggregation-store.ini"
#define AGGREGATION_TESTS_KF_RELATIONSHIPS_FILE_PATH "folks-test-libsocialweb-aggregation-relationships.ini"
AggregationTests* aggregation_tests_new (void);
AggregationTests* aggregation_tests_construct (GType object_type);
void aggregation_tests_test_aggregation_libsocialweb (AggregationTests* self);
static void _aggregation_tests_test_aggregation_libsocialweb_folks_test_case_test_method (gpointer self);
static void aggregation_tests_real_set_up (FolksTestCase* base);
static void aggregation_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_);
static void ___lambda2__libsocialweb_test_backend_ready (LibsocialwebTestBackend* _sender, gpointer self);
static gboolean __lambda3_ (AggregationTests* self);
static gboolean ___lambda3__gsource_func (gpointer self);
static void __lambda4_ (Block1Data* _data1_, const gchar* query, GHashTable* p, const gchar* path);
static void __lambda5_ (AggregationTests* self, const gchar* path);
static Block2Data* block2_data_ref (Block2Data* _data2_);
static void block2_data_unref (Block2Data* _data2_);
static gboolean __lambda6_ (Block2Data* _data2_);
static gboolean ___lambda6__gsource_func (gpointer self);
static void ___lambda5__libsocialweb_test_libsocialweb_contact_view_test_start_called (LibsocialwebTestLibsocialwebContactViewTest* _sender, const gchar* path, gpointer self);
static void ___lambda4__libsocialweb_test_libsocialweb_service_test_open_view_called (LibsocialwebTestLibsocialwebServiceTest* _sender, const gchar* query, GHashTable* p, const gchar* path, gpointer self);
static void __lambda7_ (Block1Data* _data1_, const gchar* query, GHashTable* p, const gchar* path);
static void __lambda8_ (AggregationTests* self, const gchar* path);
static Block3Data* block3_data_ref (Block3Data* _data3_);
static void block3_data_unref (Block3Data* _data3_);
static gboolean __lambda9_ (Block3Data* _data3_);
static gboolean ___lambda9__gsource_func (gpointer self);
static void ___lambda8__libsocialweb_test_libsocialweb_contact_view_test_start_called (LibsocialwebTestLibsocialwebContactViewTest* _sender, const gchar* path, gpointer self);
static void ___lambda7__libsocialweb_test_libsocialweb_service_test_open_view_called (LibsocialwebTestLibsocialwebServiceTest* _sender, const gchar* query, GHashTable* p, const gchar* path, gpointer self);
static void __lambda10_ (Block1Data* _data1_, GeeMultiMap* changes);
static void _vala_array_add1 (FolksIndividual*** array, int* length, int* size, FolksIndividual* value);
static void ___lambda10__folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static gboolean __lambda11_ (AggregationTests* self);
static gboolean ___lambda11__gsource_func (gpointer self);
static void __lambda12_ (Block1Data* _data1_, GeeMultiMap* changes);
static void ___lambda12__folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static gboolean __lambda13_ (Block1Data* _data1_);
static gboolean ___lambda13__gsource_func (gpointer self);
static gboolean __lambda14_ (AggregationTests* self);
static gboolean ___lambda14__gsource_func (gpointer self);
static void aggregation_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);


static void _aggregation_tests_test_aggregation_libsocialweb_folks_test_case_test_method (gpointer self) {
#line 40 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	aggregation_tests_test_aggregation_libsocialweb (self);
#line 155 "aggregation.c"
}


AggregationTests* aggregation_tests_construct (GType object_type) {
	AggregationTests * self = NULL;
	LibsocialwebTestBackend* _tmp0_;
#line 36 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	self = (AggregationTests*) folks_test_case_construct (object_type, "Aggregation");
#line 38 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = libsocialweb_test_backend_new ();
#line 38 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_libsocialweb_test_backend_unref0 (self->priv->_lsw_backend);
#line 38 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	self->priv->_lsw_backend = _tmp0_;
#line 40 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "libsocialweb aggregation", _aggregation_tests_test_aggregation_libsocialweb_folks_test_case_test_method, self);
#line 34 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return self;
#line 174 "aggregation.c"
}


AggregationTests* aggregation_tests_new (void) {
#line 34 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return aggregation_tests_construct (TYPE_AGGREGATION_TESTS);
#line 181 "aggregation.c"
}


static void aggregation_tests_real_set_up (FolksTestCase* base) {
	AggregationTests * self;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* kf_relationships_path;
	gchar* _tmp2_;
	gchar* kf_relationships_data;
	GFile* _tmp3_ = NULL;
	GFile* kf_relationships_f;
	const gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* kf_path;
	GKeyFile* _tmp9_;
	GKeyFile* kf;
	GError * _inner_error_ = NULL;
#line 43 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	self = (AggregationTests*) base;
#line 46 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_setenv ("FOLKS_PRIMARY_STORE", "key-file", TRUE);
#line 49 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = g_get_tmp_dir ();
#line 49 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = g_build_filename (_tmp0_, AGGREGATION_TESTS_KF_RELATIONSHIPS_FILE_PATH, NULL, NULL);
#line 49 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	kf_relationships_path = _tmp1_;
#line 52 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_setenv ("FOLKS_BACKEND_KEY_FILE_PATH", kf_relationships_path, TRUE);
#line 54 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp2_ = g_strdup ("#\n");
#line 54 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	kf_relationships_data = _tmp2_;
#line 55 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp3_ = g_file_new_for_path (kf_relationships_path);
#line 55 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	kf_relationships_f = _tmp3_;
#line 220 "aggregation.c"
	{
		gint _tmp4_;
		gint _tmp5_;
#line 58 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp4_ = strlen (kf_relationships_data);
#line 58 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp5_ = _tmp4_;
#line 58 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		g_file_replace_contents (kf_relationships_f, kf_relationships_data, (gsize) _tmp5_, NULL, FALSE, G_FILE_CREATE_PRIVATE, NULL, NULL, &_inner_error_);
#line 58 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		if (_inner_error_ != NULL) {
#line 232 "aggregation.c"
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		const gchar* _tmp6_;
#line 56 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		e = _inner_error_;
#line 56 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_inner_error_ = NULL;
#line 64 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp6_ = e->message;
#line 64 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		g_error ("aggregation.vala:64: Could not write relationship file '%s': %s", kf_relationships_path, _tmp6_);
#line 56 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_error_free0 (e);
#line 251 "aggregation.c"
	}
	__finally0:
#line 56 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	if (_inner_error_ != NULL) {
#line 56 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (kf_relationships_f);
#line 56 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (kf_relationships_data);
#line 56 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (kf_relationships_path);
#line 56 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.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 56 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		g_clear_error (&_inner_error_);
#line 56 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		return;
#line 268 "aggregation.c"
	}
#line 69 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp7_ = g_get_tmp_dir ();
#line 69 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp8_ = g_build_filename (_tmp7_, AGGREGATION_TESTS_STORE_FILE_PATH, NULL, NULL);
#line 69 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	kf_path = _tmp8_;
#line 72 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_remove (kf_path);
#line 74 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp9_ = g_key_file_new ();
#line 74 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	kf = _tmp9_;
#line 75 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_key_file_set_boolean (kf, "all-others", "enabled", FALSE);
#line 76 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_key_file_set_boolean (kf, "libsocialweb", "enabled", TRUE);
#line 77 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_key_file_set_boolean (kf, "key-file", "enabled", TRUE);
#line 288 "aggregation.c"
	{
		GFile* _tmp10_ = NULL;
		GFile* backend_f;
		gchar* _tmp11_ = NULL;
		gchar* data;
		gint _tmp12_;
		gint _tmp13_;
#line 81 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp10_ = g_file_new_for_path (kf_path);
#line 81 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		backend_f = _tmp10_;
#line 82 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp11_ = g_key_file_to_data (kf, NULL, NULL);
#line 82 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		data = _tmp11_;
#line 83 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp12_ = strlen (data);
#line 83 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp13_ = _tmp12_;
#line 83 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		g_file_replace_contents (backend_f, data, (gsize) _tmp13_, NULL, FALSE, G_FILE_CREATE_PRIVATE, NULL, NULL, &_inner_error_);
#line 83 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		if (_inner_error_ != NULL) {
#line 83 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_g_free0 (data);
#line 83 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_g_object_unref0 (backend_f);
#line 316 "aggregation.c"
			goto __catch1_g_error;
		}
#line 79 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (data);
#line 79 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (backend_f);
#line 323 "aggregation.c"
	}
	goto __finally1;
	__catch1_g_error:
	{
		GError* e = NULL;
		const gchar* _tmp14_;
#line 79 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		e = _inner_error_;
#line 79 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_inner_error_ = NULL;
#line 89 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp14_ = e->message;
#line 89 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		g_error ("aggregation.vala:89: Could not write updated backend key file '%s': %s", kf_path, _tmp14_);
#line 79 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_error_free0 (e);
#line 340 "aggregation.c"
	}
	__finally1:
#line 79 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	if (_inner_error_ != NULL) {
#line 79 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_key_file_free0 (kf);
#line 79 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (kf_path);
#line 79 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (kf_relationships_f);
#line 79 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (kf_relationships_data);
#line 79 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (kf_relationships_path);
#line 79 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.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 79 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		g_clear_error (&_inner_error_);
#line 79 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		return;
#line 361 "aggregation.c"
	}
#line 93 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_setenv ("FOLKS_BACKEND_STORE_KEY_FILE_PATH", kf_path, TRUE);
#line 43 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_g_key_file_free0 (kf);
#line 43 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_g_free0 (kf_path);
#line 43 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_g_object_unref0 (kf_relationships_f);
#line 43 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_g_free0 (kf_relationships_data);
#line 43 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_g_free0 (kf_relationships_path);
#line 375 "aggregation.c"
}


static void aggregation_tests_real_tear_down (FolksTestCase* base) {
	AggregationTests * self;
#line 97 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	self = (AggregationTests*) base;
#line 383 "aggregation.c"
}


static Block1Data* block1_data_ref (Block1Data* _data1_) {
#line 101 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_atomic_int_inc (&_data1_->_ref_count_);
#line 101 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return _data1_;
#line 392 "aggregation.c"
}


static void block1_data_unref (Block1Data* _data1_) {
#line 101 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 101 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_data1_->self);
#line 101 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_data1_->personas);
#line 101 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_data1_->individual_gathered = (_vala_array_free (_data1_->individual_gathered, _data1_->individual_gathered_length1, (GDestroyNotify) g_object_unref), NULL);
#line 101 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_data1_->aggregator);
#line 101 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_data1_->mysocialnetwork2);
#line 101 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_data1_->mysocialnetwork1);
#line 101 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_main_loop_unref0 (_data1_->main_loop);
#line 101 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		g_slice_free (Block1Data, _data1_);
#line 415 "aggregation.c"
	}
}


static void __lambda2_ (Block1Data* _data1_) {
	AggregationTests * self;
	GMainLoop* _tmp0_;
#line 105 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	self = _data1_->self;
#line 107 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = _data1_->main_loop;
#line 107 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_main_loop_quit (_tmp0_);
#line 429 "aggregation.c"
}


static void ___lambda2__libsocialweb_test_backend_ready (LibsocialwebTestBackend* _sender, gpointer self) {
#line 105 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	__lambda2_ (self);
#line 436 "aggregation.c"
}


static gboolean __lambda3_ (AggregationTests* self) {
	gboolean result = FALSE;
#line 111 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_assert_not_reached ();
#line 109 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 446 "aggregation.c"
}


static gboolean ___lambda3__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda3_ (self);
#line 109 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 455 "aggregation.c"
}


static Block2Data* block2_data_ref (Block2Data* _data2_) {
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_atomic_int_inc (&_data2_->_ref_count_);
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return _data2_;
#line 464 "aggregation.c"
}


static void block2_data_unref (Block2Data* _data2_) {
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_data2_->self);
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (_data2_->path);
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		g_slice_free (Block2Data, _data2_);
#line 477 "aggregation.c"
	}
}


static gboolean __lambda6_ (Block2Data* _data2_) {
	AggregationTests * self;
	gboolean result = FALSE;
	gchar* _tmp0_;
	gchar* text;
	const gchar* _tmp1_;
	GVariant* _tmp2_;
	GVariant* _tmp3_;
	GVariant* v;
	GError * _inner_error_ = NULL;
#line 125 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	self = _data2_->self;
#line 127 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = g_strdup ("([('mysocialnetwork1', 'garg', %x, " "{'id': ['garg'], 'name': ['Gargantua']})],)");
#line 127 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	text = _tmp0_;
#line 129 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = text;
#line 129 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp2_ = g_variant_new_parsed (_tmp1_, 1300792578, NULL);
#line 129 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp3_ = g_variant_ref_sink (_tmp2_);
#line 129 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	v = _tmp3_;
#line 506 "aggregation.c"
	{
		GDBusConnection* _tmp4_ = NULL;
		GDBusConnection* conn;
		GDBusConnection* _tmp5_;
		const gchar* _tmp6_;
		GVariant* _tmp7_;
#line 132 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp4_ = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &_inner_error_);
#line 132 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		conn = _tmp4_;
#line 132 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		if (_inner_error_ != NULL) {
#line 132 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			if (_inner_error_->domain == G_IO_ERROR) {
#line 521 "aggregation.c"
				goto __catch2_g_io_error;
			}
			goto __catch2_g_error;
		}
#line 133 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp5_ = conn;
#line 133 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp6_ = _data2_->path;
#line 133 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp7_ = v;
#line 133 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		g_dbus_connection_emit_signal (_tmp5_, NULL, _tmp6_, "com.meego.libsocialweb.ContactView", "ContactsAdded", _tmp7_, &_inner_error_);
#line 133 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		if (_inner_error_ != NULL) {
#line 133 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_g_object_unref0 (conn);
#line 133 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			if (_inner_error_->domain == G_IO_ERROR) {
#line 540 "aggregation.c"
				goto __catch2_g_io_error;
			}
			goto __catch2_g_error;
		}
#line 130 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (conn);
#line 547 "aggregation.c"
	}
	goto __finally2;
	__catch2_g_io_error:
	{
		GError* e = NULL;
#line 130 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		e = _inner_error_;
#line 130 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_inner_error_ = NULL;
#line 139 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		g_assert_not_reached ();
#line 130 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_error_free0 (e);
#line 561 "aggregation.c"
	}
	goto __finally2;
	__catch2_g_error:
	{
		GError* e = NULL;
#line 130 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		e = _inner_error_;
#line 130 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_inner_error_ = NULL;
#line 143 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		g_assert_not_reached ();
#line 130 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_error_free0 (e);
#line 575 "aggregation.c"
	}
	__finally2:
#line 130 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	if (_inner_error_ != NULL) {
#line 130 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_variant_unref0 (v);
#line 130 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (text);
#line 130 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.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 130 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		g_clear_error (&_inner_error_);
#line 130 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		return FALSE;
#line 590 "aggregation.c"
	}
#line 145 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	result = FALSE;
#line 145 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_g_variant_unref0 (v);
#line 145 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_g_free0 (text);
#line 145 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 600 "aggregation.c"
}


static gboolean ___lambda6__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda6_ (self);
#line 125 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 609 "aggregation.c"
}


static void __lambda5_ (AggregationTests* self, const gchar* path) {
	Block2Data* _data2_;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (path != NULL);
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data2_ = g_slice_new0 (Block2Data);
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data2_->_ref_count_ = 1;
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data2_->self = g_object_ref (self);
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = path;
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data2_->path = _tmp1_;
#line 125 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda6__gsource_func, block2_data_ref (_data2_), block2_data_unref);
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	block2_data_unref (_data2_);
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data2_ = NULL;
#line 637 "aggregation.c"
}


static void ___lambda5__libsocialweb_test_libsocialweb_contact_view_test_start_called (LibsocialwebTestLibsocialwebContactViewTest* _sender, const gchar* path, gpointer self) {
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	__lambda5_ (self, path);
#line 644 "aggregation.c"
}


static void __lambda4_ (Block1Data* _data1_, const gchar* query, GHashTable* p, const gchar* path) {
	AggregationTests * self;
	LibsocialwebTestLibsocialwebServiceTest* _tmp0_;
	GeeHashMap* _tmp1_;
	const gchar* _tmp2_;
	gpointer _tmp3_ = NULL;
	LibsocialwebTestLibsocialwebContactViewTest* _tmp4_;
#line 121 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	self = _data1_->self;
#line 121 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (query != NULL);
#line 121 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (p != NULL);
#line 121 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (path != NULL);
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = _data1_->mysocialnetwork1;
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = _tmp0_->contact_views;
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp2_ = path;
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp3_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp1_, _tmp2_);
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp4_ = (LibsocialwebTestLibsocialwebContactViewTest*) _tmp3_;
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_signal_connect_object (_tmp4_, "start-called", (GCallback) ___lambda5__libsocialweb_test_libsocialweb_contact_view_test_start_called, self, 0);
#line 123 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_g_object_unref0 (_tmp4_);
#line 677 "aggregation.c"
}


static void ___lambda4__libsocialweb_test_libsocialweb_service_test_open_view_called (LibsocialwebTestLibsocialwebServiceTest* _sender, const gchar* query, GHashTable* p, const gchar* path, gpointer self) {
#line 121 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	__lambda4_ (self, query, p, path);
#line 684 "aggregation.c"
}


static Block3Data* block3_data_ref (Block3Data* _data3_) {
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_atomic_int_inc (&_data3_->_ref_count_);
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return _data3_;
#line 693 "aggregation.c"
}


static void block3_data_unref (Block3Data* _data3_) {
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_data3_->self);
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (_data3_->path);
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		g_slice_free (Block3Data, _data3_);
#line 706 "aggregation.c"
	}
}


static gboolean __lambda9_ (Block3Data* _data3_) {
	AggregationTests * self;
	gboolean result = FALSE;
	gchar* _tmp0_;
	gchar* text;
	const gchar* _tmp1_;
	GVariant* _tmp2_;
	GVariant* _tmp3_;
	GVariant* v;
	GError * _inner_error_ = NULL;
#line 155 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	self = _data3_->self;
#line 157 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = g_strdup ("([('mysocialnetwork2', 'panta', %x, " "{'id': ['panta'], 'name': ['Pantagruel']})],)");
#line 157 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	text = _tmp0_;
#line 159 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = text;
#line 159 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp2_ = g_variant_new_parsed (_tmp1_, 1300792579, NULL);
#line 159 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp3_ = g_variant_ref_sink (_tmp2_);
#line 159 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	v = _tmp3_;
#line 735 "aggregation.c"
	{
		GDBusConnection* _tmp4_ = NULL;
		GDBusConnection* conn;
		GDBusConnection* _tmp5_;
		const gchar* _tmp6_;
		GVariant* _tmp7_;
#line 162 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp4_ = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &_inner_error_);
#line 162 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		conn = _tmp4_;
#line 162 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		if (_inner_error_ != NULL) {
#line 162 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			if (_inner_error_->domain == G_IO_ERROR) {
#line 750 "aggregation.c"
				goto __catch3_g_io_error;
			}
			goto __catch3_g_error;
		}
#line 163 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp5_ = conn;
#line 163 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp6_ = _data3_->path;
#line 163 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp7_ = v;
#line 163 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		g_dbus_connection_emit_signal (_tmp5_, NULL, _tmp6_, "com.meego.libsocialweb.ContactView", "ContactsAdded", _tmp7_, &_inner_error_);
#line 163 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		if (_inner_error_ != NULL) {
#line 163 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_g_object_unref0 (conn);
#line 163 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			if (_inner_error_->domain == G_IO_ERROR) {
#line 769 "aggregation.c"
				goto __catch3_g_io_error;
			}
			goto __catch3_g_error;
		}
#line 160 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (conn);
#line 776 "aggregation.c"
	}
	goto __finally3;
	__catch3_g_io_error:
	{
		GError* e = NULL;
#line 160 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		e = _inner_error_;
#line 160 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_inner_error_ = NULL;
#line 169 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		g_assert_not_reached ();
#line 160 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_error_free0 (e);
#line 790 "aggregation.c"
	}
	goto __finally3;
	__catch3_g_error:
	{
		GError* e = NULL;
#line 160 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		e = _inner_error_;
#line 160 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_inner_error_ = NULL;
#line 173 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		g_assert_not_reached ();
#line 160 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_error_free0 (e);
#line 804 "aggregation.c"
	}
	__finally3:
#line 160 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	if (_inner_error_ != NULL) {
#line 160 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_variant_unref0 (v);
#line 160 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (text);
#line 160 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.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 160 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		g_clear_error (&_inner_error_);
#line 160 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		return FALSE;
#line 819 "aggregation.c"
	}
#line 175 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	result = FALSE;
#line 175 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_g_variant_unref0 (v);
#line 175 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_g_free0 (text);
#line 175 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 829 "aggregation.c"
}


static gboolean ___lambda9__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda9_ (self);
#line 155 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 838 "aggregation.c"
}


static void __lambda8_ (AggregationTests* self, const gchar* path) {
	Block3Data* _data3_;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (path != NULL);
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data3_ = g_slice_new0 (Block3Data);
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data3_->_ref_count_ = 1;
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data3_->self = g_object_ref (self);
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = path;
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data3_->path = _tmp1_;
#line 155 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda9__gsource_func, block3_data_ref (_data3_), block3_data_unref);
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	block3_data_unref (_data3_);
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data3_ = NULL;
#line 866 "aggregation.c"
}


static void ___lambda8__libsocialweb_test_libsocialweb_contact_view_test_start_called (LibsocialwebTestLibsocialwebContactViewTest* _sender, const gchar* path, gpointer self) {
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	__lambda8_ (self, path);
#line 873 "aggregation.c"
}


static void __lambda7_ (Block1Data* _data1_, const gchar* query, GHashTable* p, const gchar* path) {
	AggregationTests * self;
	LibsocialwebTestLibsocialwebServiceTest* _tmp0_;
	GeeHashMap* _tmp1_;
	const gchar* _tmp2_;
	gpointer _tmp3_ = NULL;
	LibsocialwebTestLibsocialwebContactViewTest* _tmp4_;
#line 151 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	self = _data1_->self;
#line 151 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (query != NULL);
#line 151 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (p != NULL);
#line 151 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (path != NULL);
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = _data1_->mysocialnetwork2;
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = _tmp0_->contact_views;
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp2_ = path;
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp3_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp1_, _tmp2_);
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp4_ = (LibsocialwebTestLibsocialwebContactViewTest*) _tmp3_;
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_signal_connect_object (_tmp4_, "start-called", (GCallback) ___lambda8__libsocialweb_test_libsocialweb_contact_view_test_start_called, self, 0);
#line 153 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_g_object_unref0 (_tmp4_);
#line 906 "aggregation.c"
}


static void ___lambda7__libsocialweb_test_libsocialweb_service_test_open_view_called (LibsocialwebTestLibsocialwebServiceTest* _sender, const gchar* query, GHashTable* p, const gchar* path, gpointer self) {
#line 151 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	__lambda7_ (self, query, p, path);
#line 913 "aggregation.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 195 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return self ? g_object_ref (self) : NULL;
#line 920 "aggregation.c"
}


static void _vala_array_add1 (FolksIndividual*** array, int* length, int* size, FolksIndividual* value) {
#line 195 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	if ((*length) == (*size)) {
#line 195 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 195 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		*array = g_renew (FolksIndividual*, *array, (*size) + 1);
#line 931 "aggregation.c"
	}
#line 195 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	(*array)[(*length)++] = value;
#line 195 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	(*array)[*length] = NULL;
#line 937 "aggregation.c"
}


static void __lambda10_ (Block1Data* _data1_, GeeMultiMap* changes) {
	AggregationTests * self;
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	FolksIndividual** _tmp12_;
	gint _tmp12__length1;
#line 183 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	self = _data1_->self;
#line 183 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (changes != NULL);
#line 185 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = changes;
#line 185 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 185 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	added = _tmp1_;
#line 187 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_debug ("aggregation.vala:187: initial individuals_changed");
#line 960 "aggregation.c"
	{
		GeeCollection* _tmp2_;
		GeeIterator* _tmp3_ = NULL;
		GeeIterator* _i_it;
#line 188 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp2_ = added;
#line 188 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp3_ = gee_iterable_iterator ((GeeIterable*) _tmp2_);
#line 188 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_i_it = _tmp3_;
#line 188 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		while (TRUE) {
#line 973 "aggregation.c"
			GeeIterator* _tmp4_;
			gboolean _tmp5_ = FALSE;
			GeeIterator* _tmp6_;
			gpointer _tmp7_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp8_;
			FolksIndividual** _tmp9_;
			gint _tmp9__length1;
			FolksIndividual* _tmp10_;
			FolksIndividual* _tmp11_;
#line 188 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp4_ = _i_it;
#line 188 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp5_ = gee_iterator_next (_tmp4_);
#line 188 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			if (!_tmp5_) {
#line 188 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
				break;
#line 992 "aggregation.c"
			}
#line 188 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp6_ = _i_it;
#line 188 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp7_ = gee_iterator_get (_tmp6_);
#line 188 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			i = (FolksIndividual*) _tmp7_;
#line 190 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp8_ = i;
#line 190 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			if (_tmp8_ == NULL) {
#line 192 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
				_g_object_unref0 (i);
#line 192 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
				continue;
#line 1008 "aggregation.c"
			}
#line 195 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp9_ = _data1_->individual_gathered;
#line 195 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp9__length1 = _data1_->individual_gathered_length1;
#line 195 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp10_ = i;
#line 195 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp11_ = _g_object_ref0 (_tmp10_);
#line 195 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_vala_array_add1 (&_data1_->individual_gathered, &_data1_->individual_gathered_length1, &_data1_->_individual_gathered_size_, _tmp11_);
#line 188 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_g_object_unref0 (i);
#line 1022 "aggregation.c"
		}
#line 188 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_i_it);
#line 1026 "aggregation.c"
	}
#line 197 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp12_ = _data1_->individual_gathered;
#line 197 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp12__length1 = _data1_->individual_gathered_length1;
#line 197 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	if (_tmp12__length1 >= 2) {
#line 1034 "aggregation.c"
		GMainLoop* _tmp13_;
#line 198 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp13_ = _data1_->main_loop;
#line 198 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		g_main_loop_quit (_tmp13_);
#line 1040 "aggregation.c"
	}
#line 183 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_g_object_unref0 (added);
#line 1044 "aggregation.c"
}


static void ___lambda10__folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 182 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	__lambda10_ (self, changes);
#line 1051 "aggregation.c"
}


static gboolean __lambda11_ (AggregationTests* self) {
	gboolean result = FALSE;
#line 204 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_assert_not_reached ();
#line 202 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 1061 "aggregation.c"
}


static gboolean ___lambda11__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda11_ (self);
#line 202 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 1070 "aggregation.c"
}


static void __lambda12_ (Block1Data* _data1_, GeeMultiMap* changes) {
	AggregationTests * self;
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
	GeeCollection* _tmp4_;
	gint _tmp5_;
	gint _tmp6_;
	GeeSet* _tmp7_;
	gint _tmp8_;
	gint _tmp9_;
	GeeCollection* _tmp10_;
	gint _tmp11_;
	gint _tmp12_;
	GeeSet* _tmp13_;
	gint _tmp14_;
	gint _tmp15_;
	FolksIndividual* added_ind;
	GMainLoop* _tmp47_;
#line 220 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	self = _data1_->self;
#line 220 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (changes != NULL);
#line 222 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = changes;
#line 222 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 222 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	added = _tmp1_;
#line 223 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp2_ = changes;
#line 223 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 223 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	removed = _tmp3_;
#line 225 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp4_ = added;
#line 225 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp5_ = gee_collection_get_size (_tmp4_);
#line 225 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp6_ = _tmp5_;
#line 225 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp7_ = removed;
#line 225 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp8_ = gee_collection_get_size ((GeeCollection*) _tmp7_);
#line 225 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp9_ = _tmp8_;
#line 225 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_debug ("aggregation.vala:225: individuals_changed after link: added:%u removed" \
":%u", (guint) _tmp6_, (guint) _tmp9_);
#line 228 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp10_ = added;
#line 228 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp11_ = gee_collection_get_size (_tmp10_);
#line 228 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp12_ = _tmp11_;
#line 228 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_assert (_tmp12_ == 2);
#line 229 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp13_ = removed;
#line 229 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp14_ = gee_collection_get_size ((GeeCollection*) _tmp13_);
#line 229 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp15_ = _tmp14_;
#line 229 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_assert (_tmp15_ == 2);
#line 231 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	added_ind = NULL;
#line 1144 "aggregation.c"
	{
		GeeCollection* _tmp16_;
		GeeIterator* _tmp17_ = NULL;
		GeeIterator* _i_it;
#line 233 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp16_ = added;
#line 233 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp17_ = gee_iterable_iterator ((GeeIterable*) _tmp16_);
#line 233 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_i_it = _tmp17_;
#line 233 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		while (TRUE) {
#line 1157 "aggregation.c"
			GeeIterator* _tmp18_;
			gboolean _tmp19_ = FALSE;
			GeeIterator* _tmp20_;
			gpointer _tmp21_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp22_;
			gboolean _tmp23_ = FALSE;
			FolksIndividual* _tmp24_;
			gboolean _tmp27_;
			FolksIndividual* _tmp28_;
			FolksIndividual* _tmp29_;
			FolksIndividual* _tmp30_;
			GeeSet* _tmp31_;
			GeeSet* _tmp32_;
			gint _tmp33_;
			gint _tmp34_;
			FolksIndividual* _tmp35_;
			GeeSet* _tmp36_;
			GeeSet* _tmp37_;
			gint _tmp38_;
			gint _tmp39_;
#line 233 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp18_ = _i_it;
#line 233 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp19_ = gee_iterator_next (_tmp18_);
#line 233 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			if (!_tmp19_) {
#line 233 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
				break;
#line 1187 "aggregation.c"
			}
#line 233 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp20_ = _i_it;
#line 233 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp21_ = gee_iterator_get (_tmp20_);
#line 233 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			i = (FolksIndividual*) _tmp21_;
#line 235 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp22_ = i;
#line 235 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			g_assert (_tmp22_ != NULL);
#line 236 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp24_ = added_ind;
#line 236 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			if (_tmp24_ == NULL) {
#line 236 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
				_tmp23_ = TRUE;
#line 1205 "aggregation.c"
			} else {
				FolksIndividual* _tmp25_;
				FolksIndividual* _tmp26_;
#line 236 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
				_tmp25_ = added_ind;
#line 236 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
				_tmp26_ = i;
#line 236 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
				_tmp23_ = _tmp25_ == _tmp26_;
#line 1215 "aggregation.c"
			}
#line 236 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp27_ = _tmp23_;
#line 236 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			g_assert (_tmp27_);
#line 237 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp28_ = i;
#line 237 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp29_ = _g_object_ref0 (_tmp28_);
#line 237 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_g_object_unref0 (added_ind);
#line 237 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			added_ind = _tmp29_;
#line 239 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp30_ = i;
#line 239 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp31_ = folks_individual_get_personas (_tmp30_);
#line 239 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp32_ = _tmp31_;
#line 239 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp33_ = gee_collection_get_size ((GeeCollection*) _tmp32_);
#line 239 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp34_ = _tmp33_;
#line 239 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			g_assert (_tmp34_ == 3);
#line 240 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp35_ = i;
#line 240 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp36_ = folks_individual_get_personas (_tmp35_);
#line 240 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp37_ = _tmp36_;
#line 240 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp38_ = gee_collection_get_size ((GeeCollection*) _tmp37_);
#line 240 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp39_ = _tmp38_;
#line 240 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			g_debug ("aggregation.vala:240: individuals_changed: 1 individual containing %u " \
"personas", (guint) _tmp39_);
#line 233 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_g_object_unref0 (i);
#line 1255 "aggregation.c"
		}
#line 233 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_i_it);
#line 1259 "aggregation.c"
	}
	{
		GeeSet* _tmp40_;
		GeeIterator* _tmp41_ = NULL;
		GeeIterator* _i_it;
#line 244 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp40_ = removed;
#line 244 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp41_ = gee_iterable_iterator ((GeeIterable*) _tmp40_);
#line 244 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_i_it = _tmp41_;
#line 244 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		while (TRUE) {
#line 1273 "aggregation.c"
			GeeIterator* _tmp42_;
			gboolean _tmp43_ = FALSE;
			GeeIterator* _tmp44_;
			gpointer _tmp45_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp46_;
#line 244 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp42_ = _i_it;
#line 244 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp43_ = gee_iterator_next (_tmp42_);
#line 244 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			if (!_tmp43_) {
#line 244 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
				break;
#line 1288 "aggregation.c"
			}
#line 244 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp44_ = _i_it;
#line 244 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp45_ = gee_iterator_get (_tmp44_);
#line 244 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			i = (FolksIndividual*) _tmp45_;
#line 246 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp46_ = i;
#line 246 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			g_assert (_tmp46_ != NULL);
#line 244 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_g_object_unref0 (i);
#line 1302 "aggregation.c"
		}
#line 244 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_i_it);
#line 1306 "aggregation.c"
	}
#line 249 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp47_ = _data1_->main_loop;
#line 249 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_main_loop_quit (_tmp47_);
#line 220 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_g_object_unref0 (added_ind);
#line 220 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_g_object_unref0 (removed);
#line 220 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_g_object_unref0 (added);
#line 1318 "aggregation.c"
}


static void ___lambda12__folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 220 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	__lambda12_ (self, changes);
#line 1325 "aggregation.c"
}


static gboolean __lambda13_ (Block1Data* _data1_) {
	AggregationTests * self;
	gboolean result = FALSE;
	FolksIndividualAggregator* _tmp0_;
	GeeHashSet* _tmp1_;
#line 271 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	self = _data1_->self;
#line 273 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = _data1_->aggregator;
#line 273 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = _data1_->personas;
#line 273 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	folks_individual_aggregator_link_personas (_tmp0_, (GeeSet*) _tmp1_, NULL, NULL);
#line 274 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	result = FALSE;
#line 274 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 1346 "aggregation.c"
}


static gboolean ___lambda13__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda13_ (self);
#line 271 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 1355 "aggregation.c"
}


static gboolean __lambda14_ (AggregationTests* self) {
	gboolean result = FALSE;
#line 279 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_assert_not_reached ();
#line 277 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 1365 "aggregation.c"
}


static gboolean ___lambda14__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda14_ (self);
#line 277 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 1374 "aggregation.c"
}


void aggregation_tests_test_aggregation_libsocialweb (AggregationTests* self) {
	Block1Data* _data1_;
	GMainLoop* _tmp0_;
	LibsocialwebTestBackend* _tmp1_;
	guint _tmp2_ = 0U;
	guint timer_id;
	LibsocialwebTestBackend* _tmp3_;
	GMainLoop* _tmp4_;
	guint _tmp5_;
	LibsocialwebTestBackend* _tmp6_;
	LibsocialwebTestLibsocialwebServiceTest* _tmp7_ = NULL;
	LibsocialwebTestBackend* _tmp8_;
	LibsocialwebTestLibsocialwebServiceTest* _tmp9_ = NULL;
	LibsocialwebTestLibsocialwebServiceTest* _tmp10_;
	LibsocialwebTestLibsocialwebServiceTest* _tmp11_;
	FolksIndividualAggregator* _tmp12_;
	FolksIndividual** _tmp13_ = NULL;
	FolksIndividualAggregator* _tmp14_;
	gulong _tmp15_ = 0UL;
	gulong handler_id;
	FolksIndividualAggregator* _tmp16_;
	guint _tmp17_ = 0U;
	GMainLoop* _tmp18_;
	guint _tmp19_;
	FolksIndividualAggregator* _tmp20_;
	gulong _tmp21_;
	FolksIndividual** _tmp22_;
	gint _tmp22__length1;
	gboolean _tmp23_ = FALSE;
	gboolean _tmp24_ = FALSE;
	FolksIndividual** _tmp25_;
	gint _tmp25__length1;
	FolksIndividual* _tmp26_;
	const gchar* _tmp27_;
	const gchar* _tmp28_;
	gboolean _tmp33_;
	gboolean _tmp44_;
	FolksIndividualAggregator* _tmp45_;
	GeeHashSet* _tmp46_;
	GList* personas1;
	GList* personas2;
	GeeHashSet* _tmp71_;
	gint _tmp72_;
	gint _tmp73_;
	guint _tmp74_ = 0U;
	GMainLoop* _tmp75_;
	guint _tmp76_;
	LibsocialwebTestBackend* _tmp77_;
#line 101 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (self != NULL);
#line 101 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data1_ = g_slice_new0 (Block1Data);
#line 101 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data1_->_ref_count_ = 1;
#line 101 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data1_->self = g_object_ref (self);
#line 103 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 103 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data1_->main_loop = _tmp0_;
#line 105 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = self->priv->_lsw_backend;
#line 105 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_signal_connect_data (_tmp1_, "ready", (GCallback) ___lambda2__libsocialweb_test_backend_ready, block1_data_ref (_data1_), (GClosureNotify) block1_data_unref, 0);
#line 109 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp2_ = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda3__gsource_func, g_object_ref (self), g_object_unref);
#line 109 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	timer_id = _tmp2_;
#line 113 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp3_ = self->priv->_lsw_backend;
#line 113 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	libsocialweb_test_backend_set_up (_tmp3_);
#line 114 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp4_ = _data1_->main_loop;
#line 114 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_main_loop_run (_tmp4_);
#line 115 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp5_ = timer_id;
#line 115 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_source_remove (_tmp5_);
#line 117 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp6_ = self->priv->_lsw_backend;
#line 117 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp7_ = libsocialweb_test_backend_add_service (_tmp6_, "mysocialnetwork1");
#line 117 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data1_->mysocialnetwork1 = _tmp7_;
#line 118 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp8_ = self->priv->_lsw_backend;
#line 118 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp9_ = libsocialweb_test_backend_add_service (_tmp8_, "mysocialnetwork2");
#line 118 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data1_->mysocialnetwork2 = _tmp9_;
#line 121 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp10_ = _data1_->mysocialnetwork1;
#line 121 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_signal_connect_data (_tmp10_, "open-view-called", (GCallback) ___lambda4__libsocialweb_test_libsocialweb_service_test_open_view_called, block1_data_ref (_data1_), (GClosureNotify) block1_data_unref, 0);
#line 151 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp11_ = _data1_->mysocialnetwork2;
#line 151 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_signal_connect_data (_tmp11_, "open-view-called", (GCallback) ___lambda7__libsocialweb_test_libsocialweb_service_test_open_view_called, block1_data_ref (_data1_), (GClosureNotify) block1_data_unref, 0);
#line 180 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp12_ = folks_individual_aggregator_new ();
#line 180 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data1_->aggregator = _tmp12_;
#line 181 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp13_ = g_new0 (FolksIndividual*, 0 + 1);
#line 181 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data1_->individual_gathered = _tmp13_;
#line 181 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data1_->individual_gathered_length1 = 0;
#line 181 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data1_->_individual_gathered_size_ = _data1_->individual_gathered_length1;
#line 182 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp14_ = _data1_->aggregator;
#line 182 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp15_ = g_signal_connect_data (_tmp14_, "individuals-changed-detailed", (GCallback) ___lambda10__folks_individual_aggregator_individuals_changed_detailed, block1_data_ref (_data1_), (GClosureNotify) block1_data_unref, 0);
#line 182 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	handler_id = _tmp15_;
#line 200 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp16_ = _data1_->aggregator;
#line 200 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	folks_individual_aggregator_prepare (_tmp16_, NULL, NULL);
#line 202 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp17_ = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda11__gsource_func, g_object_ref (self), g_object_unref);
#line 202 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	timer_id = _tmp17_;
#line 206 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp18_ = _data1_->main_loop;
#line 206 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_main_loop_run (_tmp18_);
#line 207 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp19_ = timer_id;
#line 207 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_source_remove (_tmp19_);
#line 208 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp20_ = _data1_->aggregator;
#line 208 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp21_ = handler_id;
#line 208 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_signal_handler_disconnect ((GObject*) _tmp20_, _tmp21_);
#line 211 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp22_ = _data1_->individual_gathered;
#line 211 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp22__length1 = _data1_->individual_gathered_length1;
#line 211 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_assert (_tmp22__length1 == 2);
#line 213 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp25_ = _data1_->individual_gathered;
#line 213 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp25__length1 = _data1_->individual_gathered_length1;
#line 213 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp26_ = _tmp25_[0];
#line 213 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp27_ = folks_name_details_get_nickname (FOLKS_NAME_DETAILS (_tmp26_));
#line 213 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp28_ = _tmp27_;
#line 213 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	if (g_strcmp0 (_tmp28_, "Gargantua") == 0) {
#line 1536 "aggregation.c"
		FolksIndividual** _tmp29_;
		gint _tmp29__length1;
		FolksIndividual* _tmp30_;
		const gchar* _tmp31_;
		const gchar* _tmp32_;
#line 214 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp29_ = _data1_->individual_gathered;
#line 214 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp29__length1 = _data1_->individual_gathered_length1;
#line 214 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp30_ = _tmp29_[1];
#line 214 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp31_ = folks_name_details_get_nickname (FOLKS_NAME_DETAILS (_tmp30_));
#line 214 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp32_ = _tmp31_;
#line 214 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp24_ = g_strcmp0 (_tmp32_, "Pantagruel") == 0;
#line 1554 "aggregation.c"
	} else {
#line 213 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp24_ = FALSE;
#line 1558 "aggregation.c"
	}
#line 213 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp33_ = _tmp24_;
#line 213 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	if (_tmp33_) {
#line 213 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp23_ = TRUE;
#line 1566 "aggregation.c"
	} else {
		gboolean _tmp34_ = FALSE;
		FolksIndividual** _tmp35_;
		gint _tmp35__length1;
		FolksIndividual* _tmp36_;
		const gchar* _tmp37_;
		const gchar* _tmp38_;
		gboolean _tmp43_;
#line 216 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp35_ = _data1_->individual_gathered;
#line 216 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp35__length1 = _data1_->individual_gathered_length1;
#line 216 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp36_ = _tmp35_[0];
#line 216 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp37_ = folks_name_details_get_nickname (FOLKS_NAME_DETAILS (_tmp36_));
#line 216 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp38_ = _tmp37_;
#line 216 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		if (g_strcmp0 (_tmp38_, "Pantagruel") == 0) {
#line 1587 "aggregation.c"
			FolksIndividual** _tmp39_;
			gint _tmp39__length1;
			FolksIndividual* _tmp40_;
			const gchar* _tmp41_;
			const gchar* _tmp42_;
#line 217 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp39_ = _data1_->individual_gathered;
#line 217 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp39__length1 = _data1_->individual_gathered_length1;
#line 217 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp40_ = _tmp39_[1];
#line 217 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp41_ = folks_name_details_get_nickname (FOLKS_NAME_DETAILS (_tmp40_));
#line 217 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp42_ = _tmp41_;
#line 217 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp34_ = g_strcmp0 (_tmp42_, "Gargantua") == 0;
#line 1605 "aggregation.c"
		} else {
#line 216 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp34_ = FALSE;
#line 1609 "aggregation.c"
		}
#line 216 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp43_ = _tmp34_;
#line 216 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp23_ = _tmp43_;
#line 1615 "aggregation.c"
	}
#line 212 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp44_ = _tmp23_;
#line 212 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_assert (_tmp44_);
#line 220 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp45_ = _data1_->aggregator;
#line 220 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_signal_connect_data (_tmp45_, "individuals-changed-detailed", (GCallback) ___lambda12__folks_individual_aggregator_individuals_changed_detailed, block1_data_ref (_data1_), (GClosureNotify) block1_data_unref, 0);
#line 253 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp46_ = gee_hash_set_new (FOLKS_TYPE_PERSONA, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL);
#line 253 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data1_->personas = _tmp46_;
#line 255 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	personas1 = NULL;
#line 1631 "aggregation.c"
	{
		FolksIndividual** _tmp47_;
		gint _tmp47__length1;
		FolksIndividual* _tmp48_;
		GeeSet* _tmp49_;
		GeeSet* _tmp50_;
		GeeIterator* _tmp51_ = NULL;
		GeeIterator* _p1_it;
#line 256 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp47_ = _data1_->individual_gathered;
#line 256 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp47__length1 = _data1_->individual_gathered_length1;
#line 256 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp48_ = _tmp47_[0];
#line 256 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp49_ = folks_individual_get_personas (_tmp48_);
#line 256 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp50_ = _tmp49_;
#line 256 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp51_ = gee_iterable_iterator ((GeeIterable*) _tmp50_);
#line 256 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_p1_it = _tmp51_;
#line 256 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		while (TRUE) {
#line 1656 "aggregation.c"
			GeeIterator* _tmp52_;
			gboolean _tmp53_ = FALSE;
			GeeIterator* _tmp54_;
			gpointer _tmp55_ = NULL;
			FolksPersona* p1;
			GeeHashSet* _tmp56_;
			FolksPersona* _tmp57_;
			FolksPersona* _tmp58_;
#line 256 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp52_ = _p1_it;
#line 256 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp53_ = gee_iterator_next (_tmp52_);
#line 256 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			if (!_tmp53_) {
#line 256 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
				break;
#line 1673 "aggregation.c"
			}
#line 256 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp54_ = _p1_it;
#line 256 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp55_ = gee_iterator_get (_tmp54_);
#line 256 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			p1 = (FolksPersona*) _tmp55_;
#line 258 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp56_ = _data1_->personas;
#line 258 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp57_ = p1;
#line 258 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp56_, _tmp57_);
#line 259 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp58_ = p1;
#line 259 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			personas1 = g_list_append (personas1, _tmp58_);
#line 256 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_g_object_unref0 (p1);
#line 1693 "aggregation.c"
		}
#line 256 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_p1_it);
#line 1697 "aggregation.c"
	}
#line 262 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	personas2 = NULL;
#line 1701 "aggregation.c"
	{
		FolksIndividual** _tmp59_;
		gint _tmp59__length1;
		FolksIndividual* _tmp60_;
		GeeSet* _tmp61_;
		GeeSet* _tmp62_;
		GeeIterator* _tmp63_ = NULL;
		GeeIterator* _p2_it;
#line 263 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp59_ = _data1_->individual_gathered;
#line 263 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp59__length1 = _data1_->individual_gathered_length1;
#line 263 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp60_ = _tmp59_[1];
#line 263 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp61_ = folks_individual_get_personas (_tmp60_);
#line 263 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp62_ = _tmp61_;
#line 263 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_tmp63_ = gee_iterable_iterator ((GeeIterable*) _tmp62_);
#line 263 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_p2_it = _tmp63_;
#line 263 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		while (TRUE) {
#line 1726 "aggregation.c"
			GeeIterator* _tmp64_;
			gboolean _tmp65_ = FALSE;
			GeeIterator* _tmp66_;
			gpointer _tmp67_ = NULL;
			FolksPersona* p2;
			GeeHashSet* _tmp68_;
			FolksPersona* _tmp69_;
			FolksPersona* _tmp70_;
#line 263 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp64_ = _p2_it;
#line 263 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp65_ = gee_iterator_next (_tmp64_);
#line 263 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			if (!_tmp65_) {
#line 263 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
				break;
#line 1743 "aggregation.c"
			}
#line 263 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp66_ = _p2_it;
#line 263 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp67_ = gee_iterator_get (_tmp66_);
#line 263 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			p2 = (FolksPersona*) _tmp67_;
#line 265 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp68_ = _data1_->personas;
#line 265 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp69_ = p2;
#line 265 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp68_, _tmp69_);
#line 266 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_tmp70_ = p2;
#line 266 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			personas2 = g_list_append (personas2, _tmp70_);
#line 263 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
			_g_object_unref0 (p2);
#line 1763 "aggregation.c"
		}
#line 263 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_p2_it);
#line 1767 "aggregation.c"
	}
#line 269 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp71_ = _data1_->personas;
#line 269 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp72_ = gee_collection_get_size ((GeeCollection*) _tmp71_);
#line 269 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp73_ = _tmp72_;
#line 269 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_assert (_tmp73_ == 2);
#line 271 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda13__gsource_func, block1_data_ref (_data1_), block1_data_unref);
#line 277 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp74_ = g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda14__gsource_func, g_object_ref (self), g_object_unref);
#line 277 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	timer_id = _tmp74_;
#line 281 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp75_ = _data1_->main_loop;
#line 281 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_main_loop_run (_tmp75_);
#line 282 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp76_ = timer_id;
#line 282 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_source_remove (_tmp76_);
#line 284 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp77_ = self->priv->_lsw_backend;
#line 284 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	libsocialweb_test_backend_tear_down (_tmp77_);
#line 101 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_g_list_free0 (personas2);
#line 101 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_g_list_free0 (personas1);
#line 101 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	block1_data_unref (_data1_);
#line 101 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_data1_ = NULL;
#line 1803 "aggregation.c"
}


static void aggregation_tests_class_init (AggregationTestsClass * klass) {
#line 26 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	aggregation_tests_parent_class = g_type_class_peek_parent (klass);
#line 26 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_type_class_add_private (klass, sizeof (AggregationTestsPrivate));
#line 26 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = aggregation_tests_real_set_up;
#line 26 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = aggregation_tests_real_tear_down;
#line 26 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	G_OBJECT_CLASS (klass)->finalize = aggregation_tests_finalize;
#line 1818 "aggregation.c"
}


static void aggregation_tests_instance_init (AggregationTests * self) {
#line 26 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	self->priv = AGGREGATION_TESTS_GET_PRIVATE (self);
#line 1825 "aggregation.c"
}


static void aggregation_tests_finalize (GObject* obj) {
	AggregationTests * self;
#line 26 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	self = AGGREGATION_TESTS (obj);
#line 28 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_libsocialweb_test_backend_unref0 (self->priv->_lsw_backend);
#line 26 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	G_OBJECT_CLASS (aggregation_tests_parent_class)->finalize (obj);
#line 1837 "aggregation.c"
}


GType aggregation_tests_get_type (void) {
	static volatile gsize aggregation_tests_type_id__volatile = 0;
	if (g_once_init_enter (&aggregation_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (AggregationTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) aggregation_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AggregationTests), 0, (GInstanceInitFunc) aggregation_tests_instance_init, NULL };
		GType aggregation_tests_type_id;
		aggregation_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "AggregationTests", &g_define_type_info, 0);
		g_once_init_leave (&aggregation_tests_type_id__volatile, aggregation_tests_type_id);
	}
	return aggregation_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	AggregationTests* _tmp1_;
	AggregationTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 290 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_test_init (&args_length1, &args, NULL);
#line 292 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = g_test_get_root ();
#line 292 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	root = _tmp0_;
#line 293 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = aggregation_tests_new ();
#line 293 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp2_ = _tmp1_;
#line 293 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 293 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 293 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	_g_object_unref0 (_tmp2_);
#line 295 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_test_run ();
#line 297 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	result = 0;
#line 297 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 1882 "aggregation.c"
}


int main (int argc, char ** argv) {
#line 288 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	g_type_init ();
#line 288 "/home/treitter/collabora/folks/tests/libsocialweb/aggregation.vala"
	return _vala_main (argv, argc);
#line 1891 "aggregation.c"
}


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


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



