/* aggregation.c generated by valac 0.17.6.3-6918, 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)))
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

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 (void * _userdata_);
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 (void * _userdata_);
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 (void * _userdata_);
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/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	aggregation_tests_test_aggregation_libsocialweb (self);
#line 156 "aggregation.c"
}


AggregationTests* aggregation_tests_construct (GType object_type) {
	AggregationTests * self = NULL;
	LibsocialwebTestBackend* _tmp0_;
#line 36 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	self = (AggregationTests*) folks_test_case_construct (object_type, "Aggregation");
#line 38 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = libsocialweb_test_backend_new ();
#line 38 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_libsocialweb_test_backend_unref0 (self->priv->_lsw_backend);
#line 38 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	self->priv->_lsw_backend = _tmp0_;
#line 40 "/home/jpwhiting/devel/collabora/src/gnome/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/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return self;
#line 175 "aggregation.c"
}


AggregationTests* aggregation_tests_new (void) {
#line 34 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return aggregation_tests_construct (TYPE_AGGREGATION_TESTS);
#line 182 "aggregation.c"
}


static guint8* string_get_data (const gchar* self, int* result_length1) {
	guint8* result;
	guint8* res;
	gint res_length1;
	gint _res_size_;
	gint _tmp0_;
	gint _tmp1_;
	gint _tmp2_;
	guint8* _tmp3_;
	gint _tmp3__length1;
	guint8* _tmp4_;
	gint _tmp4__length1;
#line 1246 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1247 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	res = (guint8*) self;
#line 1247 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	res_length1 = -1;
#line 1247 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	_res_size_ = res_length1;
#line 1248 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp0_ = strlen (self);
#line 1248 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp1_ = _tmp0_;
#line 1248 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	res_length1 = (gint) _tmp1_;
#line 1248 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp2_ = res_length1;
#line 1249 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp3_ = res;
#line 1249 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp3__length1 = res_length1;
#line 1249 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp4_ = _tmp3_;
#line 1249 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	_tmp4__length1 = _tmp3__length1;
#line 1249 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	if (result_length1) {
#line 1249 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
		*result_length1 = _tmp4__length1;
#line 226 "aggregation.c"
	}
#line 1249 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	result = _tmp4_;
#line 1249 "/opt/gnome/share/vala-0.18/vapi/glib-2.0.vapi"
	return result;
#line 232 "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/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	self = (AggregationTests*) base;
#line 46 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_setenv ("FOLKS_PRIMARY_STORE", "key-file", TRUE);
#line 49 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = g_get_tmp_dir ();
#line 49 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = g_build_filename (_tmp0_, AGGREGATION_TESTS_KF_RELATIONSHIPS_FILE_PATH, NULL, NULL);
#line 49 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	kf_relationships_path = _tmp1_;
#line 52 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_setenv ("FOLKS_BACKEND_KEY_FILE_PATH", kf_relationships_path, TRUE);
#line 54 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp2_ = g_strdup ("#\n");
#line 54 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	kf_relationships_data = _tmp2_;
#line 55 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp3_ = g_file_new_for_path (kf_relationships_path);
#line 55 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	kf_relationships_f = _tmp3_;
#line 271 "aggregation.c"
	{
		guint8* _tmp4_;
		gint _tmp4__length1;
		guint8* _tmp5_;
		gint _tmp5__length1;
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp4_ = string_get_data (kf_relationships_data, &_tmp4__length1);
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp5_ = _tmp4_;
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp5__length1 = _tmp4__length1;
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		g_file_replace_contents (kf_relationships_f, _tmp5_, (gsize) _tmp5__length1, NULL, FALSE, G_FILE_CREATE_PRIVATE, NULL, NULL, &_inner_error_);
#line 58 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		if (_inner_error_ != NULL) {
#line 287 "aggregation.c"
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		const gchar* _tmp6_;
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		e = _inner_error_;
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_inner_error_ = NULL;
#line 63 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp6_ = e->message;
#line 63 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		g_error ("aggregation.vala:63: Could not write relationship file '%s': %s", kf_relationships_path, _tmp6_);
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_error_free0 (e);
#line 306 "aggregation.c"
	}
	__finally0:
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	if (_inner_error_ != NULL) {
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (kf_relationships_f);
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (kf_relationships_data);
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (kf_relationships_path);
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/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/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		g_clear_error (&_inner_error_);
#line 56 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		return;
#line 323 "aggregation.c"
	}
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp7_ = g_get_tmp_dir ();
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp8_ = g_build_filename (_tmp7_, AGGREGATION_TESTS_STORE_FILE_PATH, NULL, NULL);
#line 68 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	kf_path = _tmp8_;
#line 71 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_remove (kf_path);
#line 73 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp9_ = g_key_file_new ();
#line 73 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	kf = _tmp9_;
#line 74 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_key_file_set_boolean (kf, "all-others", "enabled", FALSE);
#line 75 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_key_file_set_boolean (kf, "libsocialweb", "enabled", TRUE);
#line 76 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_key_file_set_boolean (kf, "key-file", "enabled", TRUE);
#line 343 "aggregation.c"
	{
		GFile* _tmp10_ = NULL;
		GFile* backend_f;
		gchar* _tmp11_ = NULL;
		gchar* data;
		guint8* _tmp12_;
		gint _tmp12__length1;
		guint8* _tmp13_;
		gint _tmp13__length1;
#line 80 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp10_ = g_file_new_for_path (kf_path);
#line 80 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		backend_f = _tmp10_;
#line 81 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp11_ = g_key_file_to_data (kf, NULL, NULL);
#line 81 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		data = _tmp11_;
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp12_ = string_get_data (data, &_tmp12__length1);
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp13_ = _tmp12_;
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp13__length1 = _tmp12__length1;
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		g_file_replace_contents (backend_f, _tmp13_, (gsize) _tmp13__length1, NULL, FALSE, G_FILE_CREATE_PRIVATE, NULL, NULL, &_inner_error_);
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		if (_inner_error_ != NULL) {
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_g_free0 (data);
#line 82 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_g_object_unref0 (backend_f);
#line 375 "aggregation.c"
			goto __catch1_g_error;
		}
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (data);
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (backend_f);
#line 382 "aggregation.c"
	}
	goto __finally1;
	__catch1_g_error:
	{
		GError* e = NULL;
		const gchar* _tmp14_;
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		e = _inner_error_;
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_inner_error_ = NULL;
#line 87 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp14_ = e->message;
#line 87 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		g_error ("aggregation.vala:87: Could not write updated backend key file '%s': %s", kf_path, _tmp14_);
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_error_free0 (e);
#line 399 "aggregation.c"
	}
	__finally1:
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	if (_inner_error_ != NULL) {
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_key_file_free0 (kf);
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (kf_path);
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (kf_relationships_f);
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (kf_relationships_data);
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (kf_relationships_path);
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/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 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		g_clear_error (&_inner_error_);
#line 78 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		return;
#line 420 "aggregation.c"
	}
#line 91 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_setenv ("FOLKS_BACKEND_STORE_KEY_FILE_PATH", kf_path, TRUE);
#line 43 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_g_key_file_free0 (kf);
#line 43 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_g_free0 (kf_path);
#line 43 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_g_object_unref0 (kf_relationships_f);
#line 43 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_g_free0 (kf_relationships_data);
#line 43 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_g_free0 (kf_relationships_path);
#line 434 "aggregation.c"
}


static void aggregation_tests_real_tear_down (FolksTestCase* base) {
	AggregationTests * self;
#line 95 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	self = (AggregationTests*) base;
#line 442 "aggregation.c"
}


static Block1Data* block1_data_ref (Block1Data* _data1_) {
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_atomic_int_inc (&_data1_->_ref_count_);
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return _data1_;
#line 451 "aggregation.c"
}


static void block1_data_unref (void * _userdata_) {
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 460 "aggregation.c"
		AggregationTests * self;
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		self = _data1_->self;
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_data1_->personas);
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_data1_->individual_gathered = (_vala_array_free (_data1_->individual_gathered, _data1_->individual_gathered_length1, (GDestroyNotify) g_object_unref), NULL);
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_data1_->aggregator);
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_data1_->mysocialnetwork2);
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_data1_->mysocialnetwork1);
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_main_loop_unref0 (_data1_->main_loop);
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (self);
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		g_slice_free (Block1Data, _data1_);
#line 480 "aggregation.c"
	}
}


static void __lambda2_ (Block1Data* _data1_) {
	AggregationTests * self;
	GMainLoop* _tmp0_;
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	self = _data1_->self;
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = _data1_->main_loop;
#line 105 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_main_loop_quit (_tmp0_);
#line 494 "aggregation.c"
}


static void ___lambda2__libsocialweb_test_backend_ready (LibsocialwebTestBackend* _sender, gpointer self) {
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	__lambda2_ (self);
#line 501 "aggregation.c"
}


static gboolean __lambda3_ (AggregationTests* self) {
	gboolean result = FALSE;
#line 109 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_assert_not_reached ();
#line 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 511 "aggregation.c"
}


static gboolean ___lambda3__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda3_ (self);
#line 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 520 "aggregation.c"
}


static Block2Data* block2_data_ref (Block2Data* _data2_) {
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_atomic_int_inc (&_data2_->_ref_count_);
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return _data2_;
#line 529 "aggregation.c"
}


static void block2_data_unref (void * _userdata_) {
	Block2Data* _data2_;
	_data2_ = (Block2Data*) _userdata_;
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
#line 538 "aggregation.c"
		AggregationTests * self;
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		self = _data2_->self;
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (_data2_->path);
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (self);
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		g_slice_free (Block2Data, _data2_);
#line 548 "aggregation.c"
	}
}


static gboolean __lambda6_ (Block2Data* _data2_) {
	AggregationTests * self;
	gboolean result = FALSE;
	gchar* _tmp0_;
	gchar* text;
	const gchar* _tmp1_;
	GVariant* _tmp2_;
	GVariant* v;
	GError * _inner_error_ = NULL;
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	self = _data2_->self;
#line 125 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = g_strdup ("([('mysocialnetwork1', 'garg', %x, " "{'id': ['garg'], 'name': ['Gargantua']})],)");
#line 125 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	text = _tmp0_;
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = text;
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp2_ = g_variant_new_parsed (_tmp1_, 1300792578, NULL);
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_variant_ref_sink (_tmp2_);
#line 127 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	v = _tmp2_;
#line 576 "aggregation.c"
	{
		GDBusConnection* _tmp3_ = NULL;
		GDBusConnection* conn;
		GDBusConnection* _tmp4_;
		const gchar* _tmp5_;
		GVariant* _tmp6_;
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp3_ = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &_inner_error_);
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		conn = _tmp3_;
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		if (_inner_error_ != NULL) {
#line 130 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			if (_inner_error_->domain == G_IO_ERROR) {
#line 591 "aggregation.c"
				goto __catch2_g_io_error;
			}
			goto __catch2_g_error;
		}
#line 131 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp4_ = conn;
#line 131 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp5_ = _data2_->path;
#line 131 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp6_ = v;
#line 131 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		g_dbus_connection_emit_signal (_tmp4_, NULL, _tmp5_, "org.gnome.libsocialweb.ContactView", "ContactsAdded", _tmp6_, &_inner_error_);
#line 131 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		if (_inner_error_ != NULL) {
#line 131 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_g_object_unref0 (conn);
#line 131 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			if (_inner_error_->domain == G_IO_ERROR) {
#line 610 "aggregation.c"
				goto __catch2_g_io_error;
			}
			goto __catch2_g_error;
		}
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (conn);
#line 617 "aggregation.c"
	}
	goto __finally2;
	__catch2_g_io_error:
	{
		GError* e = NULL;
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		e = _inner_error_;
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_inner_error_ = NULL;
#line 137 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		g_assert_not_reached ();
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_error_free0 (e);
#line 631 "aggregation.c"
	}
	goto __finally2;
	__catch2_g_error:
	{
		GError* e = NULL;
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		e = _inner_error_;
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_inner_error_ = NULL;
#line 141 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		g_assert_not_reached ();
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_error_free0 (e);
#line 645 "aggregation.c"
	}
	__finally2:
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	if (_inner_error_ != NULL) {
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_variant_unref0 (v);
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (text);
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/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 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		g_clear_error (&_inner_error_);
#line 128 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		return FALSE;
#line 660 "aggregation.c"
	}
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	result = FALSE;
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_g_variant_unref0 (v);
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_g_free0 (text);
#line 143 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 670 "aggregation.c"
}


static gboolean ___lambda6__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda6_ (self);
#line 123 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 679 "aggregation.c"
}


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


static void ___lambda5__libsocialweb_test_libsocialweb_contact_view_test_start_called (LibsocialwebTestLibsocialwebContactViewTest* _sender, const gchar* path, gpointer self) {
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	__lambda5_ (self, path);
#line 714 "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 119 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	self = _data1_->self;
#line 119 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (query != NULL);
#line 119 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (p != NULL);
#line 119 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (path != NULL);
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = _data1_->mysocialnetwork1;
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = _tmp0_->contact_views;
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp2_ = path;
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp3_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp1_, _tmp2_);
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp4_ = (LibsocialwebTestLibsocialwebContactViewTest*) _tmp3_;
#line 121 "/home/jpwhiting/devel/collabora/src/gnome/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 121 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_g_object_unref0 (_tmp4_);
#line 747 "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 119 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	__lambda4_ (self, query, p, path);
#line 754 "aggregation.c"
}


static Block3Data* block3_data_ref (Block3Data* _data3_) {
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_atomic_int_inc (&_data3_->_ref_count_);
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return _data3_;
#line 763 "aggregation.c"
}


static void block3_data_unref (void * _userdata_) {
	Block3Data* _data3_;
	_data3_ = (Block3Data*) _userdata_;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
#line 772 "aggregation.c"
		AggregationTests * self;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		self = _data3_->self;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (_data3_->path);
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (self);
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		g_slice_free (Block3Data, _data3_);
#line 782 "aggregation.c"
	}
}


static gboolean __lambda9_ (Block3Data* _data3_) {
	AggregationTests * self;
	gboolean result = FALSE;
	gchar* _tmp0_;
	gchar* text;
	const gchar* _tmp1_;
	GVariant* _tmp2_;
	GVariant* v;
	GError * _inner_error_ = NULL;
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	self = _data3_->self;
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = g_strdup ("([('mysocialnetwork2', 'panta', %x, " "{'id': ['panta'], 'name': ['Pantagruel']})],)");
#line 155 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	text = _tmp0_;
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = text;
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp2_ = g_variant_new_parsed (_tmp1_, 1300792579, NULL);
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_variant_ref_sink (_tmp2_);
#line 157 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	v = _tmp2_;
#line 810 "aggregation.c"
	{
		GDBusConnection* _tmp3_ = NULL;
		GDBusConnection* conn;
		GDBusConnection* _tmp4_;
		const gchar* _tmp5_;
		GVariant* _tmp6_;
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp3_ = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &_inner_error_);
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		conn = _tmp3_;
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		if (_inner_error_ != NULL) {
#line 160 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			if (_inner_error_->domain == G_IO_ERROR) {
#line 825 "aggregation.c"
				goto __catch3_g_io_error;
			}
			goto __catch3_g_error;
		}
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp4_ = conn;
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp5_ = _data3_->path;
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp6_ = v;
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		g_dbus_connection_emit_signal (_tmp4_, NULL, _tmp5_, "org.gnome.libsocialweb.ContactView", "ContactsAdded", _tmp6_, &_inner_error_);
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		if (_inner_error_ != NULL) {
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_g_object_unref0 (conn);
#line 161 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			if (_inner_error_->domain == G_IO_ERROR) {
#line 844 "aggregation.c"
				goto __catch3_g_io_error;
			}
			goto __catch3_g_error;
		}
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (conn);
#line 851 "aggregation.c"
	}
	goto __finally3;
	__catch3_g_io_error:
	{
		GError* e = NULL;
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		e = _inner_error_;
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_inner_error_ = NULL;
#line 167 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		g_assert_not_reached ();
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_error_free0 (e);
#line 865 "aggregation.c"
	}
	goto __finally3;
	__catch3_g_error:
	{
		GError* e = NULL;
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		e = _inner_error_;
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_inner_error_ = NULL;
#line 171 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		g_assert_not_reached ();
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_error_free0 (e);
#line 879 "aggregation.c"
	}
	__finally3:
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	if (_inner_error_ != NULL) {
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_variant_unref0 (v);
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_free0 (text);
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/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 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		g_clear_error (&_inner_error_);
#line 158 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		return FALSE;
#line 894 "aggregation.c"
	}
#line 173 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	result = FALSE;
#line 173 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_g_variant_unref0 (v);
#line 173 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_g_free0 (text);
#line 173 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 904 "aggregation.c"
}


static gboolean ___lambda9__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda9_ (self);
#line 153 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 913 "aggregation.c"
}


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


static void ___lambda8__libsocialweb_test_libsocialweb_contact_view_test_start_called (LibsocialwebTestLibsocialwebContactViewTest* _sender, const gchar* path, gpointer self) {
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	__lambda8_ (self, path);
#line 948 "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 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	self = _data1_->self;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (query != NULL);
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (p != NULL);
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (path != NULL);
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = _data1_->mysocialnetwork2;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = _tmp0_->contact_views;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp2_ = path;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp3_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp1_, _tmp2_);
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp4_ = (LibsocialwebTestLibsocialwebContactViewTest*) _tmp3_;
#line 151 "/home/jpwhiting/devel/collabora/src/gnome/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 151 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_g_object_unref0 (_tmp4_);
#line 981 "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 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	__lambda7_ (self, query, p, path);
#line 988 "aggregation.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return self ? g_object_ref (self) : NULL;
#line 995 "aggregation.c"
}


static void _vala_array_add1 (FolksIndividual*** array, int* length, int* size, FolksIndividual* value) {
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	if ((*length) == (*size)) {
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		*array = g_renew (FolksIndividual*, *array, (*size) + 1);
#line 1006 "aggregation.c"
	}
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	(*array)[(*length)++] = value;
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	(*array)[*length] = NULL;
#line 1012 "aggregation.c"
}


static void __lambda10_ (Block1Data* _data1_, GeeMultiMap* changes) {
	AggregationTests * self;
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	FolksIndividual** _tmp12_;
	gint _tmp12__length1;
#line 181 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	self = _data1_->self;
#line 181 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (changes != NULL);
#line 183 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = changes;
#line 183 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 183 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	added = _tmp1_;
#line 185 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_debug ("aggregation.vala:185: initial individuals_changed");
#line 1035 "aggregation.c"
	{
		GeeCollection* _tmp2_;
		GeeIterator* _tmp3_ = NULL;
		GeeIterator* _i_it;
#line 186 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp2_ = added;
#line 186 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp3_ = gee_iterable_iterator ((GeeIterable*) _tmp2_);
#line 186 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_i_it = _tmp3_;
#line 186 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		while (TRUE) {
#line 1048 "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 186 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp4_ = _i_it;
#line 186 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp5_ = gee_iterator_next (_tmp4_);
#line 186 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			if (!_tmp5_) {
#line 186 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
				break;
#line 1067 "aggregation.c"
			}
#line 186 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp6_ = _i_it;
#line 186 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp7_ = gee_iterator_get (_tmp6_);
#line 186 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			i = (FolksIndividual*) _tmp7_;
#line 188 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp8_ = i;
#line 188 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			if (_tmp8_ == NULL) {
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
				_g_object_unref0 (i);
#line 190 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
				continue;
#line 1083 "aggregation.c"
			}
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp9_ = _data1_->individual_gathered;
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp9__length1 = _data1_->individual_gathered_length1;
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp10_ = i;
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp11_ = _g_object_ref0 (_tmp10_);
#line 193 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_vala_array_add1 (&_data1_->individual_gathered, &_data1_->individual_gathered_length1, &_data1_->_individual_gathered_size_, _tmp11_);
#line 186 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_g_object_unref0 (i);
#line 1097 "aggregation.c"
		}
#line 186 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_i_it);
#line 1101 "aggregation.c"
	}
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp12_ = _data1_->individual_gathered;
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp12__length1 = _data1_->individual_gathered_length1;
#line 195 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	if (_tmp12__length1 >= 2) {
#line 1109 "aggregation.c"
		GMainLoop* _tmp13_;
#line 196 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp13_ = _data1_->main_loop;
#line 196 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		g_main_loop_quit (_tmp13_);
#line 1115 "aggregation.c"
	}
#line 181 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_g_object_unref0 (added);
#line 1119 "aggregation.c"
}


static void ___lambda10__folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	__lambda10_ (self, changes);
#line 1126 "aggregation.c"
}


static gboolean __lambda11_ (AggregationTests* self) {
	gboolean result = FALSE;
#line 202 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_assert_not_reached ();
#line 200 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 1136 "aggregation.c"
}


static gboolean ___lambda11__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda11_ (self);
#line 200 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 1145 "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 218 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	self = _data1_->self;
#line 218 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (changes != NULL);
#line 220 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = changes;
#line 220 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 220 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	added = _tmp1_;
#line 221 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp2_ = changes;
#line 221 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 221 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	removed = _tmp3_;
#line 223 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp4_ = added;
#line 223 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp5_ = gee_collection_get_size (_tmp4_);
#line 223 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp6_ = _tmp5_;
#line 223 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp7_ = removed;
#line 223 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp8_ = gee_collection_get_size ((GeeCollection*) _tmp7_);
#line 223 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp9_ = _tmp8_;
#line 223 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_debug ("aggregation.vala:223: individuals_changed after link: added:%u removed" \
":%u", (guint) _tmp6_, (guint) _tmp9_);
#line 226 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp10_ = added;
#line 226 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp11_ = gee_collection_get_size (_tmp10_);
#line 226 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp12_ = _tmp11_;
#line 226 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_vala_assert (_tmp12_ == 2, "added.size == 2");
#line 227 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp13_ = removed;
#line 227 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp14_ = gee_collection_get_size ((GeeCollection*) _tmp13_);
#line 227 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp15_ = _tmp14_;
#line 227 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_vala_assert (_tmp15_ == 2, "removed.size == 2");
#line 229 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	added_ind = NULL;
#line 1219 "aggregation.c"
	{
		GeeCollection* _tmp16_;
		GeeIterator* _tmp17_ = NULL;
		GeeIterator* _i_it;
#line 231 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp16_ = added;
#line 231 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp17_ = gee_iterable_iterator ((GeeIterable*) _tmp16_);
#line 231 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_i_it = _tmp17_;
#line 231 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		while (TRUE) {
#line 1232 "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 231 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp18_ = _i_it;
#line 231 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp19_ = gee_iterator_next (_tmp18_);
#line 231 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			if (!_tmp19_) {
#line 231 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
				break;
#line 1262 "aggregation.c"
			}
#line 231 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp20_ = _i_it;
#line 231 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp21_ = gee_iterator_get (_tmp20_);
#line 231 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			i = (FolksIndividual*) _tmp21_;
#line 233 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp22_ = i;
#line 233 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_vala_assert (_tmp22_ != NULL, "i != null");
#line 234 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp24_ = added_ind;
#line 234 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			if (_tmp24_ == NULL) {
#line 234 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
				_tmp23_ = TRUE;
#line 1280 "aggregation.c"
			} else {
				FolksIndividual* _tmp25_;
				FolksIndividual* _tmp26_;
#line 234 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
				_tmp25_ = added_ind;
#line 234 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
				_tmp26_ = i;
#line 234 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
				_tmp23_ = _tmp25_ == _tmp26_;
#line 1290 "aggregation.c"
			}
#line 234 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp27_ = _tmp23_;
#line 234 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_vala_assert (_tmp27_, "added_ind == null || added_ind == i");
#line 235 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp28_ = i;
#line 235 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp29_ = _g_object_ref0 (_tmp28_);
#line 235 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_g_object_unref0 (added_ind);
#line 235 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			added_ind = _tmp29_;
#line 237 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp30_ = i;
#line 237 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp31_ = folks_individual_get_personas (_tmp30_);
#line 237 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp32_ = _tmp31_;
#line 237 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp33_ = gee_collection_get_size ((GeeCollection*) _tmp32_);
#line 237 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp34_ = _tmp33_;
#line 237 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_vala_assert (_tmp34_ == 3, "i.personas.size == 3");
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp35_ = i;
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp36_ = folks_individual_get_personas (_tmp35_);
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp37_ = _tmp36_;
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp38_ = gee_collection_get_size ((GeeCollection*) _tmp37_);
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp39_ = _tmp38_;
#line 238 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			g_debug ("aggregation.vala:238: individuals_changed: 1 individual containing %u " \
"personas", (guint) _tmp39_);
#line 231 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_g_object_unref0 (i);
#line 1330 "aggregation.c"
		}
#line 231 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_i_it);
#line 1334 "aggregation.c"
	}
	{
		GeeSet* _tmp40_;
		GeeIterator* _tmp41_ = NULL;
		GeeIterator* _i_it;
#line 242 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp40_ = removed;
#line 242 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp41_ = gee_iterable_iterator ((GeeIterable*) _tmp40_);
#line 242 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_i_it = _tmp41_;
#line 242 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		while (TRUE) {
#line 1348 "aggregation.c"
			GeeIterator* _tmp42_;
			gboolean _tmp43_ = FALSE;
			GeeIterator* _tmp44_;
			gpointer _tmp45_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp46_;
#line 242 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp42_ = _i_it;
#line 242 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp43_ = gee_iterator_next (_tmp42_);
#line 242 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			if (!_tmp43_) {
#line 242 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
				break;
#line 1363 "aggregation.c"
			}
#line 242 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp44_ = _i_it;
#line 242 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp45_ = gee_iterator_get (_tmp44_);
#line 242 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			i = (FolksIndividual*) _tmp45_;
#line 244 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp46_ = i;
#line 244 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_vala_assert (_tmp46_ != NULL, "i != null");
#line 242 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_g_object_unref0 (i);
#line 1377 "aggregation.c"
		}
#line 242 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_i_it);
#line 1381 "aggregation.c"
	}
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp47_ = _data1_->main_loop;
#line 247 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_main_loop_quit (_tmp47_);
#line 218 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_g_object_unref0 (added_ind);
#line 218 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_g_object_unref0 (removed);
#line 218 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_g_object_unref0 (added);
#line 1393 "aggregation.c"
}


static void ___lambda12__folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 218 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	__lambda12_ (self, changes);
#line 1400 "aggregation.c"
}


static gboolean __lambda13_ (Block1Data* _data1_) {
	AggregationTests * self;
	gboolean result = FALSE;
	FolksIndividualAggregator* _tmp0_;
	GeeHashSet* _tmp1_;
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	self = _data1_->self;
#line 271 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = _data1_->aggregator;
#line 271 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = _data1_->personas;
#line 271 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	folks_individual_aggregator_link_personas (_tmp0_, (GeeSet*) _tmp1_, NULL, NULL);
#line 272 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	result = FALSE;
#line 272 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 1421 "aggregation.c"
}


static gboolean ___lambda13__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda13_ (self);
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 1430 "aggregation.c"
}


static gboolean __lambda14_ (AggregationTests* self) {
	gboolean result = FALSE;
#line 277 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_assert_not_reached ();
#line 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 1440 "aggregation.c"
}


static gboolean ___lambda14__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda14_ (self);
#line 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 1449 "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 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_return_if_fail (self != NULL);
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_data1_ = g_slice_new0 (Block1Data);
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_data1_->_ref_count_ = 1;
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_data1_->self = g_object_ref (self);
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 101 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_data1_->main_loop = _tmp0_;
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = self->priv->_lsw_backend;
#line 103 "/home/jpwhiting/devel/collabora/src/gnome/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 107 "/home/jpwhiting/devel/collabora/src/gnome/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 107 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	timer_id = _tmp2_;
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp3_ = self->priv->_lsw_backend;
#line 111 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	libsocialweb_test_backend_set_up (_tmp3_);
#line 112 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp4_ = _data1_->main_loop;
#line 112 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_main_loop_run (_tmp4_);
#line 113 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp5_ = timer_id;
#line 113 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_source_remove (_tmp5_);
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp6_ = self->priv->_lsw_backend;
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp7_ = libsocialweb_test_backend_add_service (_tmp6_, "mysocialnetwork1");
#line 115 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_data1_->mysocialnetwork1 = _tmp7_;
#line 116 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp8_ = self->priv->_lsw_backend;
#line 116 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp9_ = libsocialweb_test_backend_add_service (_tmp8_, "mysocialnetwork2");
#line 116 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_data1_->mysocialnetwork2 = _tmp9_;
#line 119 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp10_ = _data1_->mysocialnetwork1;
#line 119 "/home/jpwhiting/devel/collabora/src/gnome/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 149 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp11_ = _data1_->mysocialnetwork2;
#line 149 "/home/jpwhiting/devel/collabora/src/gnome/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 178 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp12_ = folks_individual_aggregator_new ();
#line 178 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_data1_->aggregator = _tmp12_;
#line 179 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp13_ = g_new0 (FolksIndividual*, 0 + 1);
#line 179 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_data1_->individual_gathered = _tmp13_;
#line 179 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_data1_->individual_gathered_length1 = 0;
#line 179 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_data1_->_individual_gathered_size_ = _data1_->individual_gathered_length1;
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp14_ = _data1_->aggregator;
#line 180 "/home/jpwhiting/devel/collabora/src/gnome/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 180 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	handler_id = _tmp15_;
#line 198 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp16_ = _data1_->aggregator;
#line 198 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	folks_individual_aggregator_prepare (_tmp16_, NULL, NULL);
#line 200 "/home/jpwhiting/devel/collabora/src/gnome/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 200 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	timer_id = _tmp17_;
#line 204 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp18_ = _data1_->main_loop;
#line 204 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_main_loop_run (_tmp18_);
#line 205 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp19_ = timer_id;
#line 205 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_source_remove (_tmp19_);
#line 206 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp20_ = _data1_->aggregator;
#line 206 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp21_ = handler_id;
#line 206 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_signal_handler_disconnect ((GObject*) _tmp20_, _tmp21_);
#line 209 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp22_ = _data1_->individual_gathered;
#line 209 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp22__length1 = _data1_->individual_gathered_length1;
#line 209 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_vala_assert (_tmp22__length1 == 2, "individual_gathered.length == 2");
#line 211 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp25_ = _data1_->individual_gathered;
#line 211 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp25__length1 = _data1_->individual_gathered_length1;
#line 211 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp26_ = _tmp25_[0];
#line 211 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp27_ = folks_name_details_get_nickname (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, FOLKS_TYPE_NAME_DETAILS, FolksNameDetails));
#line 211 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp28_ = _tmp27_;
#line 211 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	if (g_strcmp0 (_tmp28_, "Gargantua") == 0) {
#line 1611 "aggregation.c"
		FolksIndividual** _tmp29_;
		gint _tmp29__length1;
		FolksIndividual* _tmp30_;
		const gchar* _tmp31_;
		const gchar* _tmp32_;
#line 212 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp29_ = _data1_->individual_gathered;
#line 212 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp29__length1 = _data1_->individual_gathered_length1;
#line 212 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp30_ = _tmp29_[1];
#line 212 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp31_ = folks_name_details_get_nickname (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, FOLKS_TYPE_NAME_DETAILS, FolksNameDetails));
#line 212 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp32_ = _tmp31_;
#line 212 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp24_ = g_strcmp0 (_tmp32_, "Pantagruel") == 0;
#line 1629 "aggregation.c"
	} else {
#line 211 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp24_ = FALSE;
#line 1633 "aggregation.c"
	}
#line 211 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp33_ = _tmp24_;
#line 211 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	if (_tmp33_) {
#line 211 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp23_ = TRUE;
#line 1641 "aggregation.c"
	} else {
		gboolean _tmp34_ = FALSE;
		FolksIndividual** _tmp35_;
		gint _tmp35__length1;
		FolksIndividual* _tmp36_;
		const gchar* _tmp37_;
		const gchar* _tmp38_;
		gboolean _tmp43_;
#line 214 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp35_ = _data1_->individual_gathered;
#line 214 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp35__length1 = _data1_->individual_gathered_length1;
#line 214 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp36_ = _tmp35_[0];
#line 214 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp37_ = folks_name_details_get_nickname (G_TYPE_CHECK_INSTANCE_CAST (_tmp36_, FOLKS_TYPE_NAME_DETAILS, FolksNameDetails));
#line 214 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp38_ = _tmp37_;
#line 214 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		if (g_strcmp0 (_tmp38_, "Pantagruel") == 0) {
#line 1662 "aggregation.c"
			FolksIndividual** _tmp39_;
			gint _tmp39__length1;
			FolksIndividual* _tmp40_;
			const gchar* _tmp41_;
			const gchar* _tmp42_;
#line 215 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp39_ = _data1_->individual_gathered;
#line 215 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp39__length1 = _data1_->individual_gathered_length1;
#line 215 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp40_ = _tmp39_[1];
#line 215 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp41_ = folks_name_details_get_nickname (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, FOLKS_TYPE_NAME_DETAILS, FolksNameDetails));
#line 215 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp42_ = _tmp41_;
#line 215 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp34_ = g_strcmp0 (_tmp42_, "Gargantua") == 0;
#line 1680 "aggregation.c"
		} else {
#line 214 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp34_ = FALSE;
#line 1684 "aggregation.c"
		}
#line 214 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp43_ = _tmp34_;
#line 214 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp23_ = _tmp43_;
#line 1690 "aggregation.c"
	}
#line 210 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp44_ = _tmp23_;
#line 210 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_vala_assert (_tmp44_, "(((Folks.NameDetails) individual_gathered[0]).nickname == \"Gargantua\"            && ((Folks.NameDetails) individual_gathered[1]).nickname == \"Pantagruel\")           ||           (((Folks.NameDetails) individual_gathered[0]).nickname == \"Pantagruel\"            && ((Folks.NameDetails) individual_gathered[1]).nickname == \"Gargantua\")");
#line 218 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp45_ = _data1_->aggregator;
#line 218 "/home/jpwhiting/devel/collabora/src/gnome/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 251 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp46_ = gee_hash_set_new (FOLKS_TYPE_PERSONA, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL);
#line 251 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_data1_->personas = _tmp46_;
#line 253 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	personas1 = NULL;
#line 1706 "aggregation.c"
	{
		FolksIndividual** _tmp47_;
		gint _tmp47__length1;
		FolksIndividual* _tmp48_;
		GeeSet* _tmp49_;
		GeeSet* _tmp50_;
		GeeIterator* _tmp51_ = NULL;
		GeeIterator* _p1_it;
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp47_ = _data1_->individual_gathered;
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp47__length1 = _data1_->individual_gathered_length1;
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp48_ = _tmp47_[0];
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp49_ = folks_individual_get_personas (_tmp48_);
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp50_ = _tmp49_;
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp51_ = gee_iterable_iterator ((GeeIterable*) _tmp50_);
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_p1_it = _tmp51_;
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		while (TRUE) {
#line 1731 "aggregation.c"
			GeeIterator* _tmp52_;
			gboolean _tmp53_ = FALSE;
			GeeIterator* _tmp54_;
			gpointer _tmp55_ = NULL;
			FolksPersona* p1;
			GeeHashSet* _tmp56_;
			FolksPersona* _tmp57_;
			FolksPersona* _tmp58_;
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp52_ = _p1_it;
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp53_ = gee_iterator_next (_tmp52_);
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			if (!_tmp53_) {
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
				break;
#line 1748 "aggregation.c"
			}
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp54_ = _p1_it;
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp55_ = gee_iterator_get (_tmp54_);
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			p1 = (FolksPersona*) _tmp55_;
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp56_ = _data1_->personas;
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp57_ = p1;
#line 256 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp56_, _tmp57_);
#line 257 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp58_ = p1;
#line 257 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			personas1 = g_list_append (personas1, _tmp58_);
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_g_object_unref0 (p1);
#line 1768 "aggregation.c"
		}
#line 254 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_p1_it);
#line 1772 "aggregation.c"
	}
#line 260 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	personas2 = NULL;
#line 1776 "aggregation.c"
	{
		FolksIndividual** _tmp59_;
		gint _tmp59__length1;
		FolksIndividual* _tmp60_;
		GeeSet* _tmp61_;
		GeeSet* _tmp62_;
		GeeIterator* _tmp63_ = NULL;
		GeeIterator* _p2_it;
#line 261 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp59_ = _data1_->individual_gathered;
#line 261 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp59__length1 = _data1_->individual_gathered_length1;
#line 261 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp60_ = _tmp59_[1];
#line 261 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp61_ = folks_individual_get_personas (_tmp60_);
#line 261 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp62_ = _tmp61_;
#line 261 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_tmp63_ = gee_iterable_iterator ((GeeIterable*) _tmp62_);
#line 261 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_p2_it = _tmp63_;
#line 261 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		while (TRUE) {
#line 1801 "aggregation.c"
			GeeIterator* _tmp64_;
			gboolean _tmp65_ = FALSE;
			GeeIterator* _tmp66_;
			gpointer _tmp67_ = NULL;
			FolksPersona* p2;
			GeeHashSet* _tmp68_;
			FolksPersona* _tmp69_;
			FolksPersona* _tmp70_;
#line 261 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp64_ = _p2_it;
#line 261 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp65_ = gee_iterator_next (_tmp64_);
#line 261 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			if (!_tmp65_) {
#line 261 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
				break;
#line 1818 "aggregation.c"
			}
#line 261 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp66_ = _p2_it;
#line 261 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp67_ = gee_iterator_get (_tmp66_);
#line 261 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			p2 = (FolksPersona*) _tmp67_;
#line 263 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp68_ = _data1_->personas;
#line 263 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp69_ = p2;
#line 263 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			gee_abstract_collection_add ((GeeAbstractCollection*) _tmp68_, _tmp69_);
#line 264 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_tmp70_ = p2;
#line 264 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			personas2 = g_list_append (personas2, _tmp70_);
#line 261 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
			_g_object_unref0 (p2);
#line 1838 "aggregation.c"
		}
#line 261 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
		_g_object_unref0 (_p2_it);
#line 1842 "aggregation.c"
	}
#line 267 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp71_ = _data1_->personas;
#line 267 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp72_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp71_);
#line 267 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp73_ = _tmp72_;
#line 267 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_vala_assert (_tmp73_ == 2, "personas.size == 2");
#line 269 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda13__gsource_func, block1_data_ref (_data1_), block1_data_unref);
#line 275 "/home/jpwhiting/devel/collabora/src/gnome/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 275 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	timer_id = _tmp74_;
#line 279 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp75_ = _data1_->main_loop;
#line 279 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_main_loop_run (_tmp75_);
#line 280 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp76_ = timer_id;
#line 280 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_source_remove (_tmp76_);
#line 282 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp77_ = self->priv->_lsw_backend;
#line 282 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	libsocialweb_test_backend_tear_down (_tmp77_);
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_g_list_free0 (personas2);
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_g_list_free0 (personas1);
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	block1_data_unref (_data1_);
#line 99 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_data1_ = NULL;
#line 1878 "aggregation.c"
}


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


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


static void aggregation_tests_finalize (GObject* obj) {
	AggregationTests * self;
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_AGGREGATION_TESTS, AggregationTests);
#line 28 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_libsocialweb_test_backend_unref0 (self->priv->_lsw_backend);
#line 26 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	G_OBJECT_CLASS (aggregation_tests_parent_class)->finalize (obj);
#line 1912 "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 288 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_test_init (&args_length1, &args, NULL);
#line 290 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp0_ = g_test_get_root ();
#line 290 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	root = _tmp0_;
#line 291 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp1_ = aggregation_tests_new ();
#line 291 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp2_ = _tmp1_;
#line 291 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 291 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 291 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	_g_object_unref0 (_tmp2_);
#line 293 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_test_run ();
#line 295 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	result = 0;
#line 295 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return result;
#line 1957 "aggregation.c"
}


int main (int argc, char ** argv) {
#line 286 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	g_type_init ();
#line 286 "/home/jpwhiting/devel/collabora/src/gnome/folks/tests/libsocialweb/aggregation.vala"
	return _vala_main (argv, argc);
#line 1966 "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);
}



