/* individual-properties.c generated by valac 0.13.4, the Vala compiler
 * generated from individual-properties.vala, do not modify */

/*
 * Copyright (C) 2011 Collabora Ltd.
 *
 * This library is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 2.1 of the License, or
 * (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Authors: Travis Reitter <travis.reitter@collabora.co.uk>
 */

#include <glib.h>
#include <glib-object.h>
#include <folks-test.h>
#include <tp-test-contactlist.h>
#include <folks/folks.h>
#include <gee.h>
#include <stdlib.h>
#include <string.h>
#include <folks/folks-telepathy.h>
#include <telepathy-glib/telepathy-glib.h>


#define TYPE_INDIVIDUAL_PROPERTIES_TESTS (individual_properties_tests_get_type ())
#define INDIVIDUAL_PROPERTIES_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_INDIVIDUAL_PROPERTIES_TESTS, IndividualPropertiesTests))
#define INDIVIDUAL_PROPERTIES_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_INDIVIDUAL_PROPERTIES_TESTS, IndividualPropertiesTestsClass))
#define IS_INDIVIDUAL_PROPERTIES_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_INDIVIDUAL_PROPERTIES_TESTS))
#define IS_INDIVIDUAL_PROPERTIES_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_INDIVIDUAL_PROPERTIES_TESTS))
#define INDIVIDUAL_PROPERTIES_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_INDIVIDUAL_PROPERTIES_TESTS, IndividualPropertiesTestsClass))

typedef struct _IndividualPropertiesTests IndividualPropertiesTests;
typedef struct _IndividualPropertiesTestsClass IndividualPropertiesTestsClass;
typedef struct _IndividualPropertiesTestsPrivate IndividualPropertiesTestsPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block1Data Block1Data;
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
typedef struct _Block2Data Block2Data;
typedef struct _Block3Data Block3Data;
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _Block4Data Block4Data;
typedef struct _Block5Data Block5Data;

struct _IndividualPropertiesTests {
	FolksTestCase parent_instance;
	IndividualPropertiesTestsPrivate * priv;
};

struct _IndividualPropertiesTestsClass {
	FolksTestCaseClass parent_class;
};

struct _IndividualPropertiesTestsPrivate {
	TpTestBackend* tp_backend;
	void* _account_handle;
	gint _test_timeout;
};

struct _Block1Data {
	int _ref_count_;
	IndividualPropertiesTests * self;
	GMainLoop* main_loop;
};

struct _Block2Data {
	int _ref_count_;
	IndividualPropertiesTests * self;
	GMainLoop* main_loop;
	gboolean alias_notified;
};

struct _Block3Data {
	int _ref_count_;
	Block2Data * _data2_;
	gchar* new_alias;
};

struct _Block4Data {
	int _ref_count_;
	IndividualPropertiesTests * self;
	GMainLoop* main_loop;
	gboolean alias_notified;
};

struct _Block5Data {
	int _ref_count_;
	Block4Data * _data4_;
	gchar* new_alias;
};


static gpointer individual_properties_tests_parent_class = NULL;

GType individual_properties_tests_get_type (void) G_GNUC_CONST;
#define INDIVIDUAL_PROPERTIES_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_INDIVIDUAL_PROPERTIES_TESTS, IndividualPropertiesTestsPrivate))
enum  {
	INDIVIDUAL_PROPERTIES_TESTS_DUMMY_PROPERTY
};
IndividualPropertiesTests* individual_properties_tests_new (void);
IndividualPropertiesTests* individual_properties_tests_construct (GType object_type);
void individual_properties_tests_test_individual_properties (IndividualPropertiesTests* self);
static void _individual_properties_tests_test_individual_properties_folks_test_case_test_method (gpointer self);
void individual_properties_tests_test_individual_properties_change_alias_through_tp_backend (IndividualPropertiesTests* self);
static void _individual_properties_tests_test_individual_properties_change_alias_through_tp_backend_folks_test_case_test_method (gpointer self);
void individual_properties_tests_test_individual_properties_change_alias_through_test_cm (IndividualPropertiesTests* self);
static void _individual_properties_tests_test_individual_properties_change_alias_through_test_cm_folks_test_case_test_method (gpointer self);
static void individual_properties_tests_real_set_up (FolksTestCase* base);
static void individual_properties_tests_real_tear_down (FolksTestCase* base);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (Block1Data* _data1_);
static void __lambda0_ (IndividualPropertiesTests* self, GeeMultiMap* changes);
static void ___lambda0__folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static gboolean __lambda1_ (Block1Data* _data1_);
static gboolean ___lambda1__gsource_func (gpointer self);
static Block2Data* block2_data_ref (Block2Data* _data2_);
static void block2_data_unref (Block2Data* _data2_);
static void __lambda2_ (Block2Data* _data2_, GeeMultiMap* changes);
static Block3Data* block3_data_ref (Block3Data* _data3_);
static void block3_data_unref (Block3Data* _data3_);
static void ____lambda3_ (Block3Data* _data3_, GObject* s, GParamSpec* p);
static void _____lambda3__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void ___lambda2__folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static gboolean __lambda4_ (Block2Data* _data2_);
static gboolean ___lambda4__gsource_func (gpointer self);
static Block4Data* block4_data_ref (Block4Data* _data4_);
static void block4_data_unref (Block4Data* _data4_);
static void __lambda5_ (Block4Data* _data4_, GeeMultiMap* changes);
static Block5Data* block5_data_ref (Block5Data* _data5_);
static void block5_data_unref (Block5Data* _data5_);
static void ____lambda6_ (Block5Data* _data5_, GObject* s, GParamSpec* p);
static void _____lambda6__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void ___lambda5__folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static gboolean __lambda7_ (Block4Data* _data4_);
static gboolean ___lambda7__gsource_func (gpointer self);
static void individual_properties_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _individual_properties_tests_test_individual_properties_folks_test_case_test_method (gpointer self) {
#line 39 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	individual_properties_tests_test_individual_properties (self);
#line 153 "individual-properties.c"
}


static void _individual_properties_tests_test_individual_properties_change_alias_through_tp_backend_folks_test_case_test_method (gpointer self) {
#line 41 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	individual_properties_tests_test_individual_properties_change_alias_through_tp_backend (self);
#line 160 "individual-properties.c"
}


static void _individual_properties_tests_test_individual_properties_change_alias_through_test_cm_folks_test_case_test_method (gpointer self) {
#line 43 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	individual_properties_tests_test_individual_properties_change_alias_through_test_cm (self);
#line 167 "individual-properties.c"
}


IndividualPropertiesTests* individual_properties_tests_construct (GType object_type) {
	IndividualPropertiesTests * self = NULL;
	TpTestBackend* _tmp0_;
	const gchar* _tmp1_ = NULL;
#line 35 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	self = (IndividualPropertiesTests*) folks_test_case_construct (object_type, "IndividualProperties");
#line 37 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp0_ = tp_test_backend_new ();
#line 37 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_g_object_unref0 (self->priv->tp_backend);
#line 37 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	self->priv->tp_backend = _tmp0_;
#line 39 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "individual properties", _individual_properties_tests_test_individual_properties_folks_test_case_test_method, self);
#line 41 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "individual properties:change alias through tp backend", _individual_properties_tests_test_individual_properties_change_alias_through_tp_backend_folks_test_case_test_method, self);
#line 43 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "individual properties:change alias through test cm", _individual_properties_tests_test_individual_properties_change_alias_through_test_cm_folks_test_case_test_method, self);
#line 46 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp1_ = g_getenv ("FOLKS_TEST_VALGRIND");
#line 46 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	if (_tmp1_ != NULL) {
#line 47 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		self->priv->_test_timeout = 10;
#line 195 "individual-properties.c"
	}
#line 33 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	return self;
#line 199 "individual-properties.c"
}


IndividualPropertiesTests* individual_properties_tests_new (void) {
#line 33 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	return individual_properties_tests_construct (TYPE_INDIVIDUAL_PROPERTIES_TESTS);
#line 206 "individual-properties.c"
}


static void individual_properties_tests_real_set_up (FolksTestCase* base) {
	IndividualPropertiesTests * self;
	TpTestBackend* _tmp0_;
	TpTestBackend* _tmp1_;
	void* _tmp2_ = NULL;
#line 50 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	self = (IndividualPropertiesTests*) base;
#line 52 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp0_ = self->priv->tp_backend;
#line 52 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	tp_test_backend_set_up (_tmp0_);
#line 53 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp1_ = self->priv->tp_backend;
#line 53 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp2_ = tp_test_backend_add_account (_tmp1_, "protocol", "me@example.com", "cm", "account");
#line 53 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	self->priv->_account_handle = _tmp2_;
#line 227 "individual-properties.c"
}


static void individual_properties_tests_real_tear_down (FolksTestCase* base) {
	IndividualPropertiesTests * self;
	TpTestBackend* _tmp0_;
	void* _tmp1_;
	TpTestBackend* _tmp2_;
#line 57 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	self = (IndividualPropertiesTests*) base;
#line 59 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp0_ = self->priv->tp_backend;
#line 59 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp1_ = self->priv->_account_handle;
#line 59 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	tp_test_backend_remove_account (_tmp0_, _tmp1_);
#line 60 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp2_ = self->priv->tp_backend;
#line 60 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	tp_test_backend_tear_down (_tmp2_);
#line 248 "individual-properties.c"
}


static Block1Data* block1_data_ref (Block1Data* _data1_) {
#line 63 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_atomic_int_inc (&_data1_->_ref_count_);
#line 63 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	return _data1_;
#line 257 "individual-properties.c"
}


static void block1_data_unref (Block1Data* _data1_) {
#line 63 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 63 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_g_object_unref0 (_data1_->self);
#line 63 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_g_main_loop_unref0 (_data1_->main_loop);
#line 63 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		g_slice_free (Block1Data, _data1_);
#line 270 "individual-properties.c"
	}
}


static void __lambda0_ (IndividualPropertiesTests* self, GeeMultiMap* changes) {
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
	GeeSet* _tmp41_;
	gint _tmp42_;
	gint _tmp43_;
#line 69 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_return_if_fail (changes != NULL);
#line 71 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp0_ = changes;
#line 71 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 71 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	added = _tmp1_;
#line 72 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp2_ = changes;
#line 72 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 72 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	removed = _tmp3_;
#line 299 "individual-properties.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 74 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_tmp4_ = added;
#line 74 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 74 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_i_it = _tmp5_;
#line 74 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		while (TRUE) {
#line 312 "individual-properties.c"
			GeeIterator* _tmp6_;
			gboolean _tmp7_ = FALSE;
			GeeIterator* _tmp8_;
			gpointer _tmp9_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp10_;
			FolksIndividual* _tmp11_;
			const gchar* _tmp12_;
			const gchar* _tmp13_;
			FolksIndividual* _tmp14_;
			const gchar* _tmp15_;
			const gchar* _tmp16_;
			FolksIndividual* _tmp17_;
			const gchar* _tmp18_;
			const gchar* _tmp19_;
			FolksIndividual* _tmp20_;
			const gchar* _tmp21_;
			const gchar* _tmp22_;
			FolksIndividual* _tmp23_;
			FolksPresenceType _tmp24_;
			FolksPresenceType _tmp25_;
			FolksIndividual* _tmp26_;
			gboolean _tmp27_ = FALSE;
			FolksIndividual* _tmp28_;
			GeeSet* _tmp29_;
			GeeSet* _tmp30_;
			gint _tmp31_;
			gint _tmp32_;
			FolksIndividual* _tmp33_;
			GeeSet* _tmp34_;
			GeeSet* _tmp35_;
			gboolean _tmp36_ = FALSE;
			FolksIndividual* _tmp37_;
			GeeSet* _tmp38_;
			GeeSet* _tmp39_;
			gboolean _tmp40_ = FALSE;
#line 74 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp6_ = _i_it;
#line 74 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 74 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			if (!_tmp7_) {
#line 74 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				break;
#line 357 "individual-properties.c"
			}
#line 74 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp8_ = _i_it;
#line 74 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 74 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			i = (FolksIndividual*) _tmp9_;
#line 76 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp10_ = i;
#line 76 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_assert (_tmp10_ != NULL);
#line 80 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp11_ = i;
#line 80 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp12_ = folks_individual_get_id (_tmp11_);
#line 80 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp13_ = _tmp12_;
#line 80 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			if (g_strcmp0 (_tmp13_, "0e46c5e74f61908f49550d241f2a1651892a1695") != 0) {
#line 82 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				_g_object_unref0 (i);
#line 82 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				continue;
#line 381 "individual-properties.c"
			}
#line 86 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp14_ = i;
#line 86 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp15_ = folks_alias_details_get_alias ((FolksAliasDetails*) _tmp14_);
#line 86 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp16_ = _tmp15_;
#line 86 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_assert (g_strcmp0 (_tmp16_, "Olivier") == 0);
#line 87 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp17_ = i;
#line 87 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp18_ = folks_presence_details_get_presence_message ((FolksPresenceDetails*) _tmp17_);
#line 87 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp19_ = _tmp18_;
#line 87 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_assert (g_strcmp0 (_tmp19_, "") == 0);
#line 88 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp20_ = i;
#line 88 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp21_ = folks_presence_details_get_presence_status ((FolksPresenceDetails*) _tmp20_);
#line 88 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp22_ = _tmp21_;
#line 88 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_assert (g_strcmp0 (_tmp22_, "away") == 0);
#line 89 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp23_ = i;
#line 89 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp24_ = folks_presence_details_get_presence_type ((FolksPresenceDetails*) _tmp23_);
#line 89 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp25_ = _tmp24_;
#line 89 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_assert (_tmp25_ == FOLKS_PRESENCE_TYPE_AWAY);
#line 90 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp26_ = i;
#line 90 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp27_ = folks_presence_details_is_online (FOLKS_PRESENCE_DETAILS (_tmp26_));
#line 90 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_assert (_tmp27_ == TRUE);
#line 93 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp28_ = i;
#line 93 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp29_ = folks_group_details_get_groups ((FolksGroupDetails*) _tmp28_);
#line 93 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp30_ = _tmp29_;
#line 93 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp31_ = gee_collection_get_size ((GeeCollection*) _tmp30_);
#line 93 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp32_ = _tmp31_;
#line 93 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_assert (_tmp32_ == 2);
#line 94 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp33_ = i;
#line 94 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp34_ = folks_group_details_get_groups ((FolksGroupDetails*) _tmp33_);
#line 94 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp35_ = _tmp34_;
#line 94 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp36_ = gee_collection_contains ((GeeCollection*) _tmp35_, "Montreal");
#line 94 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_assert (_tmp36_ == TRUE);
#line 95 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp37_ = i;
#line 95 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp38_ = folks_group_details_get_groups ((FolksGroupDetails*) _tmp37_);
#line 95 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp39_ = _tmp38_;
#line 95 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp40_ = gee_collection_contains ((GeeCollection*) _tmp39_, "Francophones");
#line 95 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_assert (_tmp40_ == TRUE);
#line 74 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_g_object_unref0 (i);
#line 455 "individual-properties.c"
		}
#line 74 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_g_object_unref0 (_i_it);
#line 459 "individual-properties.c"
	}
#line 98 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp41_ = removed;
#line 98 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp42_ = gee_collection_get_size ((GeeCollection*) _tmp41_);
#line 98 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp43_ = _tmp42_;
#line 98 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_assert (_tmp43_ == 1);
#line 469 "individual-properties.c"
	{
		GeeSet* _tmp44_;
		GeeIterator* _tmp45_ = NULL;
		GeeIterator* _i_it;
#line 100 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_tmp44_ = removed;
#line 100 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_tmp45_ = gee_iterable_iterator ((GeeIterable*) _tmp44_);
#line 100 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_i_it = _tmp45_;
#line 100 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		while (TRUE) {
#line 482 "individual-properties.c"
			GeeIterator* _tmp46_;
			gboolean _tmp47_ = FALSE;
			GeeIterator* _tmp48_;
			gpointer _tmp49_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp50_;
#line 100 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp46_ = _i_it;
#line 100 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp47_ = gee_iterator_next (_tmp46_);
#line 100 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			if (!_tmp47_) {
#line 100 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				break;
#line 497 "individual-properties.c"
			}
#line 100 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp48_ = _i_it;
#line 100 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp49_ = gee_iterator_get (_tmp48_);
#line 100 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			i = (FolksIndividual*) _tmp49_;
#line 102 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp50_ = i;
#line 102 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_assert (_tmp50_ == NULL);
#line 100 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_g_object_unref0 (i);
#line 511 "individual-properties.c"
		}
#line 100 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_g_object_unref0 (_i_it);
#line 515 "individual-properties.c"
	}
#line 69 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_g_object_unref0 (removed);
#line 69 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_g_object_unref0 (added);
#line 521 "individual-properties.c"
}


static void ___lambda0__folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 69 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	__lambda0_ (self, changes);
#line 528 "individual-properties.c"
}


static gboolean __lambda1_ (Block1Data* _data1_) {
	IndividualPropertiesTests * self;
	gboolean result = FALSE;
#line 110 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	self = _data1_->self;
#line 112 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_main_loop_quit (_data1_->main_loop);
#line 113 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	result = FALSE;
#line 113 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	return result;
#line 543 "individual-properties.c"
}


static gboolean ___lambda1__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda1_ (self);
#line 110 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	return result;
#line 552 "individual-properties.c"
}


void individual_properties_tests_test_individual_properties (IndividualPropertiesTests* self) {
	Block1Data* _data1_;
	GMainLoop* _tmp0_;
	FolksIndividualAggregator* _tmp1_;
	FolksIndividualAggregator* aggregator;
	FolksIndividualAggregator* _tmp2_;
	FolksIndividualAggregator* _tmp3_;
	gint _tmp4_;
#line 63 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_return_if_fail (self != NULL);
#line 63 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data1_ = g_slice_new0 (Block1Data);
#line 63 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data1_->_ref_count_ = 1;
#line 63 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data1_->self = g_object_ref (self);
#line 65 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 65 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data1_->main_loop = _tmp0_;
#line 68 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp1_ = folks_individual_aggregator_new ();
#line 68 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	aggregator = _tmp1_;
#line 69 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp2_ = aggregator;
#line 69 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_signal_connect_object (_tmp2_, "individuals-changed-detailed", (GCallback) ___lambda0__folks_individual_aggregator_individuals_changed_detailed, self, 0);
#line 105 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp3_ = aggregator;
#line 105 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	folks_individual_aggregator_prepare (_tmp3_, NULL, NULL);
#line 110 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp4_ = self->priv->_test_timeout;
#line 110 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) _tmp4_, ___lambda1__gsource_func, block1_data_ref (_data1_), block1_data_unref);
#line 116 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_main_loop_run (_data1_->main_loop);
#line 119 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_g_object_unref0 (aggregator);
#line 119 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	aggregator = NULL;
#line 63 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_g_object_unref0 (aggregator);
#line 63 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	block1_data_unref (_data1_);
#line 63 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data1_ = NULL;
#line 604 "individual-properties.c"
}


static Block2Data* block2_data_ref (Block2Data* _data2_) {
#line 122 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_atomic_int_inc (&_data2_->_ref_count_);
#line 122 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	return _data2_;
#line 613 "individual-properties.c"
}


static void block2_data_unref (Block2Data* _data2_) {
#line 122 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
#line 122 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_g_object_unref0 (_data2_->self);
#line 122 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_g_main_loop_unref0 (_data2_->main_loop);
#line 122 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		g_slice_free (Block2Data, _data2_);
#line 626 "individual-properties.c"
	}
}


static Block3Data* block3_data_ref (Block3Data* _data3_) {
#line 129 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_atomic_int_inc (&_data3_->_ref_count_);
#line 129 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	return _data3_;
#line 636 "individual-properties.c"
}


static void block3_data_unref (Block3Data* _data3_) {
#line 129 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
#line 129 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		block2_data_unref (_data3_->_data2_);
#line 129 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_data3_->_data2_ = NULL;
#line 129 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_g_free0 (_data3_->new_alias);
#line 129 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		g_slice_free (Block3Data, _data3_);
#line 651 "individual-properties.c"
	}
}


static gpointer _g_object_ref0 (gpointer self) {
#line 153 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	return self ? g_object_ref (self) : NULL;
#line 659 "individual-properties.c"
}


static void ____lambda3_ (Block3Data* _data3_, GObject* s, GParamSpec* p) {
	Block2Data* _data2_;
	IndividualPropertiesTests * self;
	GObject* _tmp0_;
	FolksIndividual* _tmp1_;
	FolksIndividual* ind;
	FolksIndividual* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	const gchar* _tmp5_;
#line 150 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data2_ = _data3_->_data2_;
#line 150 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	self = _data2_->self;
#line 150 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_return_if_fail (s != NULL);
#line 150 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_return_if_fail (p != NULL);
#line 153 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp0_ = s;
#line 153 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp1_ = _g_object_ref0 (FOLKS_INDIVIDUAL (_tmp0_));
#line 153 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	ind = _tmp1_;
#line 155 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp2_ = ind;
#line 155 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp3_ = folks_alias_details_get_alias ((FolksAliasDetails*) _tmp2_);
#line 155 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp4_ = _tmp3_;
#line 155 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp5_ = _data3_->new_alias;
#line 155 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	if (g_strcmp0 (_tmp4_, _tmp5_) == 0) {
#line 156 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_data2_->alias_notified = TRUE;
#line 699 "individual-properties.c"
	}
#line 150 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_g_object_unref0 (ind);
#line 703 "individual-properties.c"
}


static void _____lambda3__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 150 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	____lambda3_ (self, _sender, pspec);
#line 710 "individual-properties.c"
}


static void __lambda2_ (Block2Data* _data2_, GeeMultiMap* changes) {
	IndividualPropertiesTests * self;
	Block3Data* _data3_;
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
	gchar* _tmp4_;
	GeeSet* _tmp33_;
	gint _tmp34_;
	gint _tmp35_;
#line 129 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	self = _data2_->self;
#line 129 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_return_if_fail (changes != NULL);
#line 129 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data3_ = g_slice_new0 (Block3Data);
#line 129 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data3_->_ref_count_ = 1;
#line 129 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data3_->_data2_ = block2_data_ref (_data2_);
#line 131 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp0_ = changes;
#line 131 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 131 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	added = _tmp1_;
#line 132 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp2_ = changes;
#line 132 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 132 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	removed = _tmp3_;
#line 134 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp4_ = g_strdup ("New Alias");
#line 134 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data3_->new_alias = _tmp4_;
#line 753 "individual-properties.c"
	{
		GeeCollection* _tmp5_;
		GeeIterator* _tmp6_ = NULL;
		GeeIterator* _i_it;
#line 136 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_tmp5_ = added;
#line 136 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_tmp6_ = gee_iterable_iterator ((GeeIterable*) _tmp5_);
#line 136 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_i_it = _tmp6_;
#line 136 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		while (TRUE) {
#line 766 "individual-properties.c"
			GeeIterator* _tmp7_;
			gboolean _tmp8_ = FALSE;
			GeeIterator* _tmp9_;
			gpointer _tmp10_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp11_;
			FolksIndividual* _tmp12_;
			const gchar* _tmp13_;
			const gchar* _tmp14_;
			FolksIndividual* _tmp15_;
			const gchar* _tmp16_;
			const gchar* _tmp17_;
			const gchar* _tmp18_;
			FolksIndividual* _tmp19_;
			FolksPersona* persona;
			FolksPersona* _tmp30_;
			FolksPersona* _tmp31_;
			const gchar* _tmp32_;
#line 136 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp7_ = _i_it;
#line 136 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp8_ = gee_iterator_next (_tmp7_);
#line 136 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			if (!_tmp8_) {
#line 136 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				break;
#line 793 "individual-properties.c"
			}
#line 136 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp9_ = _i_it;
#line 136 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp10_ = gee_iterator_get (_tmp9_);
#line 136 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			i = (FolksIndividual*) _tmp10_;
#line 138 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp11_ = i;
#line 138 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_assert (_tmp11_ != NULL);
#line 142 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp12_ = i;
#line 142 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp13_ = folks_individual_get_id (_tmp12_);
#line 142 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp14_ = _tmp13_;
#line 142 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			if (g_strcmp0 (_tmp14_, "0e46c5e74f61908f49550d241f2a1651892a1695") != 0) {
#line 144 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				_g_object_unref0 (i);
#line 144 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				continue;
#line 817 "individual-properties.c"
			}
#line 148 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp15_ = i;
#line 148 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp16_ = folks_alias_details_get_alias ((FolksAliasDetails*) _tmp15_);
#line 148 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp17_ = _tmp16_;
#line 148 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp18_ = _data3_->new_alias;
#line 148 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_assert (g_strcmp0 (_tmp17_, _tmp18_) != 0);
#line 150 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp19_ = i;
#line 150 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_signal_connect_data ((GObject*) _tmp19_, "notify::alias", (GCallback) _____lambda3__g_object_notify, block3_data_ref (_data3_), (GClosureNotify) block3_data_unref, 0);
#line 161 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			persona = NULL;
#line 835 "individual-properties.c"
			{
				FolksIndividual* _tmp20_;
				GeeSet* _tmp21_;
				GeeSet* _tmp22_;
				GeeIterator* _tmp23_ = NULL;
				GeeIterator* _p_it;
#line 162 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				_tmp20_ = i;
#line 162 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				_tmp21_ = folks_individual_get_personas (_tmp20_);
#line 162 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				_tmp22_ = _tmp21_;
#line 162 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				_tmp23_ = gee_iterable_iterator ((GeeIterable*) _tmp22_);
#line 162 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				_p_it = _tmp23_;
#line 162 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				while (TRUE) {
#line 854 "individual-properties.c"
					GeeIterator* _tmp24_;
					gboolean _tmp25_ = FALSE;
					GeeIterator* _tmp26_;
					gpointer _tmp27_ = NULL;
					FolksPersona* p;
					FolksPersona* _tmp28_;
					FolksPersona* _tmp29_;
#line 162 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					_tmp24_ = _p_it;
#line 162 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					_tmp25_ = gee_iterator_next (_tmp24_);
#line 162 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					if (!_tmp25_) {
#line 162 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
						break;
#line 870 "individual-properties.c"
					}
#line 162 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					_tmp26_ = _p_it;
#line 162 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					_tmp27_ = gee_iterator_get (_tmp26_);
#line 162 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					p = (FolksPersona*) _tmp27_;
#line 164 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					_tmp28_ = p;
#line 164 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					_tmp29_ = _g_object_ref0 (_tmp28_);
#line 164 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					_g_object_unref0 (persona);
#line 164 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					persona = _tmp29_;
#line 165 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					_g_object_unref0 (p);
#line 165 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					break;
#line 890 "individual-properties.c"
				}
#line 162 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				_g_object_unref0 (_p_it);
#line 894 "individual-properties.c"
			}
#line 167 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp30_ = persona;
#line 167 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_assert (TPF_IS_PERSONA (_tmp30_));
#line 172 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp31_ = persona;
#line 172 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp32_ = _data3_->new_alias;
#line 172 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			folks_alias_details_set_alias ((FolksAliasDetails*) TPF_PERSONA (_tmp31_), _tmp32_);
#line 136 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_g_object_unref0 (persona);
#line 136 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_g_object_unref0 (i);
#line 910 "individual-properties.c"
		}
#line 136 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_g_object_unref0 (_i_it);
#line 914 "individual-properties.c"
	}
#line 175 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp33_ = removed;
#line 175 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp34_ = gee_collection_get_size ((GeeCollection*) _tmp33_);
#line 175 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp35_ = _tmp34_;
#line 175 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_assert (_tmp35_ == 1);
#line 924 "individual-properties.c"
	{
		GeeSet* _tmp36_;
		GeeIterator* _tmp37_ = NULL;
		GeeIterator* _i_it;
#line 177 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_tmp36_ = removed;
#line 177 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_tmp37_ = gee_iterable_iterator ((GeeIterable*) _tmp36_);
#line 177 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_i_it = _tmp37_;
#line 177 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		while (TRUE) {
#line 937 "individual-properties.c"
			GeeIterator* _tmp38_;
			gboolean _tmp39_ = FALSE;
			GeeIterator* _tmp40_;
			gpointer _tmp41_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp42_;
#line 177 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp38_ = _i_it;
#line 177 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp39_ = gee_iterator_next (_tmp38_);
#line 177 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			if (!_tmp39_) {
#line 177 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				break;
#line 952 "individual-properties.c"
			}
#line 177 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp40_ = _i_it;
#line 177 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp41_ = gee_iterator_get (_tmp40_);
#line 177 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			i = (FolksIndividual*) _tmp41_;
#line 179 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp42_ = i;
#line 179 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_assert (_tmp42_ == NULL);
#line 177 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_g_object_unref0 (i);
#line 966 "individual-properties.c"
		}
#line 177 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_g_object_unref0 (_i_it);
#line 970 "individual-properties.c"
	}
#line 129 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_g_object_unref0 (removed);
#line 129 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_g_object_unref0 (added);
#line 129 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	block3_data_unref (_data3_);
#line 129 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data3_ = NULL;
#line 980 "individual-properties.c"
}


static void ___lambda2__folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 129 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	__lambda2_ (self, changes);
#line 987 "individual-properties.c"
}


static gboolean __lambda4_ (Block2Data* _data2_) {
	IndividualPropertiesTests * self;
	gboolean result = FALSE;
#line 187 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	self = _data2_->self;
#line 189 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_main_loop_quit (_data2_->main_loop);
#line 190 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	result = FALSE;
#line 190 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	return result;
#line 1002 "individual-properties.c"
}


static gboolean ___lambda4__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda4_ (self);
#line 187 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	return result;
#line 1011 "individual-properties.c"
}


void individual_properties_tests_test_individual_properties_change_alias_through_tp_backend (IndividualPropertiesTests* self) {
	Block2Data* _data2_;
	GMainLoop* _tmp0_;
	FolksIndividualAggregator* _tmp1_;
	FolksIndividualAggregator* aggregator;
	FolksIndividualAggregator* _tmp2_;
	FolksIndividualAggregator* _tmp3_;
	gint _tmp4_;
#line 122 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_return_if_fail (self != NULL);
#line 122 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data2_ = g_slice_new0 (Block2Data);
#line 122 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data2_->_ref_count_ = 1;
#line 122 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data2_->self = g_object_ref (self);
#line 124 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 124 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data2_->main_loop = _tmp0_;
#line 125 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data2_->alias_notified = FALSE;
#line 128 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp1_ = folks_individual_aggregator_new ();
#line 128 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	aggregator = _tmp1_;
#line 129 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp2_ = aggregator;
#line 129 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_signal_connect_data (_tmp2_, "individuals-changed-detailed", (GCallback) ___lambda2__folks_individual_aggregator_individuals_changed_detailed, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
#line 182 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp3_ = aggregator;
#line 182 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	folks_individual_aggregator_prepare (_tmp3_, NULL, NULL);
#line 187 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp4_ = self->priv->_test_timeout;
#line 187 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) _tmp4_, ___lambda4__gsource_func, block2_data_ref (_data2_), block2_data_unref);
#line 193 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_main_loop_run (_data2_->main_loop);
#line 195 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_assert (_data2_->alias_notified);
#line 198 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_g_object_unref0 (aggregator);
#line 198 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	aggregator = NULL;
#line 122 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_g_object_unref0 (aggregator);
#line 122 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	block2_data_unref (_data2_);
#line 122 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data2_ = NULL;
#line 1067 "individual-properties.c"
}


static Block4Data* block4_data_ref (Block4Data* _data4_) {
#line 201 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_atomic_int_inc (&_data4_->_ref_count_);
#line 201 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	return _data4_;
#line 1076 "individual-properties.c"
}


static void block4_data_unref (Block4Data* _data4_) {
#line 201 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	if (g_atomic_int_dec_and_test (&_data4_->_ref_count_)) {
#line 201 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_g_object_unref0 (_data4_->self);
#line 201 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_g_main_loop_unref0 (_data4_->main_loop);
#line 201 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		g_slice_free (Block4Data, _data4_);
#line 1089 "individual-properties.c"
	}
}


static Block5Data* block5_data_ref (Block5Data* _data5_) {
#line 208 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_atomic_int_inc (&_data5_->_ref_count_);
#line 208 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	return _data5_;
#line 1099 "individual-properties.c"
}


static void block5_data_unref (Block5Data* _data5_) {
#line 208 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	if (g_atomic_int_dec_and_test (&_data5_->_ref_count_)) {
#line 208 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		block4_data_unref (_data5_->_data4_);
#line 208 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_data5_->_data4_ = NULL;
#line 208 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_g_free0 (_data5_->new_alias);
#line 208 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		g_slice_free (Block5Data, _data5_);
#line 1114 "individual-properties.c"
	}
}


static void ____lambda6_ (Block5Data* _data5_, GObject* s, GParamSpec* p) {
	Block4Data* _data4_;
	IndividualPropertiesTests * self;
	GObject* _tmp0_;
	FolksIndividual* _tmp1_;
	FolksIndividual* ind;
	FolksIndividual* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	const gchar* _tmp5_;
#line 229 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data4_ = _data5_->_data4_;
#line 229 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	self = _data4_->self;
#line 229 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_return_if_fail (s != NULL);
#line 229 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_return_if_fail (p != NULL);
#line 232 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp0_ = s;
#line 232 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp1_ = _g_object_ref0 (FOLKS_INDIVIDUAL (_tmp0_));
#line 232 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	ind = _tmp1_;
#line 234 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp2_ = ind;
#line 234 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp3_ = folks_alias_details_get_alias ((FolksAliasDetails*) _tmp2_);
#line 234 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp4_ = _tmp3_;
#line 234 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp5_ = _data5_->new_alias;
#line 234 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	if (g_strcmp0 (_tmp4_, _tmp5_) == 0) {
#line 235 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_data4_->alias_notified = TRUE;
#line 1155 "individual-properties.c"
	}
#line 229 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_g_object_unref0 (ind);
#line 1159 "individual-properties.c"
}


static void _____lambda6__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 229 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	____lambda6_ (self, _sender, pspec);
#line 1166 "individual-properties.c"
}


static void __lambda5_ (Block4Data* _data4_, GeeMultiMap* changes) {
	IndividualPropertiesTests * self;
	Block5Data* _data5_;
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
	gchar* _tmp4_;
	GeeSet* _tmp43_;
	gint _tmp44_;
	gint _tmp45_;
#line 208 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	self = _data4_->self;
#line 208 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_return_if_fail (changes != NULL);
#line 208 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data5_ = g_slice_new0 (Block5Data);
#line 208 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data5_->_ref_count_ = 1;
#line 208 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data5_->_data4_ = block4_data_ref (_data4_);
#line 210 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp0_ = changes;
#line 210 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 210 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	added = _tmp1_;
#line 211 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp2_ = changes;
#line 211 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 211 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	removed = _tmp3_;
#line 213 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp4_ = g_strdup ("New Alias");
#line 213 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data5_->new_alias = _tmp4_;
#line 1209 "individual-properties.c"
	{
		GeeCollection* _tmp5_;
		GeeIterator* _tmp6_ = NULL;
		GeeIterator* _i_it;
#line 215 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_tmp5_ = added;
#line 215 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_tmp6_ = gee_iterable_iterator ((GeeIterable*) _tmp5_);
#line 215 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_i_it = _tmp6_;
#line 215 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		while (TRUE) {
#line 1222 "individual-properties.c"
			GeeIterator* _tmp7_;
			gboolean _tmp8_ = FALSE;
			GeeIterator* _tmp9_;
			gpointer _tmp10_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp11_;
			FolksIndividual* _tmp12_;
			const gchar* _tmp13_;
			const gchar* _tmp14_;
			FolksIndividual* _tmp15_;
			const gchar* _tmp16_;
			const gchar* _tmp17_;
			const gchar* _tmp18_;
			FolksIndividual* _tmp19_;
			FolksPersona* persona;
			FolksPersona* _tmp30_;
			FolksPersona* _tmp31_;
			TpContact* _tmp32_;
			TpContact* _tmp33_;
			guint _tmp34_;
			guint _tmp35_;
			TpHandle handle;
			TpTestBackend* _tmp36_;
			TpTestContactListConnection* _tmp37_;
			TpTestContactListConnection* _tmp38_;
			TpTestContactListManager* _tmp39_;
			TpTestContactListManager* _tmp40_;
			TpHandle _tmp41_;
			const gchar* _tmp42_;
#line 215 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp7_ = _i_it;
#line 215 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp8_ = gee_iterator_next (_tmp7_);
#line 215 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			if (!_tmp8_) {
#line 215 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				break;
#line 1260 "individual-properties.c"
			}
#line 215 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp9_ = _i_it;
#line 215 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp10_ = gee_iterator_get (_tmp9_);
#line 215 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			i = (FolksIndividual*) _tmp10_;
#line 217 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp11_ = i;
#line 217 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_assert (_tmp11_ != NULL);
#line 221 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp12_ = i;
#line 221 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp13_ = folks_individual_get_id (_tmp12_);
#line 221 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp14_ = _tmp13_;
#line 221 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			if (g_strcmp0 (_tmp14_, "0e46c5e74f61908f49550d241f2a1651892a1695") != 0) {
#line 223 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				_g_object_unref0 (i);
#line 223 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				continue;
#line 1284 "individual-properties.c"
			}
#line 227 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp15_ = i;
#line 227 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp16_ = folks_alias_details_get_alias ((FolksAliasDetails*) _tmp15_);
#line 227 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp17_ = _tmp16_;
#line 227 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp18_ = _data5_->new_alias;
#line 227 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_assert (g_strcmp0 (_tmp17_, _tmp18_) != 0);
#line 229 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp19_ = i;
#line 229 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_signal_connect_data ((GObject*) _tmp19_, "notify::alias", (GCallback) _____lambda6__g_object_notify, block5_data_ref (_data5_), (GClosureNotify) block5_data_unref, 0);
#line 240 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			persona = NULL;
#line 1302 "individual-properties.c"
			{
				FolksIndividual* _tmp20_;
				GeeSet* _tmp21_;
				GeeSet* _tmp22_;
				GeeIterator* _tmp23_ = NULL;
				GeeIterator* _p_it;
#line 241 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				_tmp20_ = i;
#line 241 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				_tmp21_ = folks_individual_get_personas (_tmp20_);
#line 241 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				_tmp22_ = _tmp21_;
#line 241 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				_tmp23_ = gee_iterable_iterator ((GeeIterable*) _tmp22_);
#line 241 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				_p_it = _tmp23_;
#line 241 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				while (TRUE) {
#line 1321 "individual-properties.c"
					GeeIterator* _tmp24_;
					gboolean _tmp25_ = FALSE;
					GeeIterator* _tmp26_;
					gpointer _tmp27_ = NULL;
					FolksPersona* p;
					FolksPersona* _tmp28_;
					FolksPersona* _tmp29_;
#line 241 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					_tmp24_ = _p_it;
#line 241 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					_tmp25_ = gee_iterator_next (_tmp24_);
#line 241 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					if (!_tmp25_) {
#line 241 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
						break;
#line 1337 "individual-properties.c"
					}
#line 241 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					_tmp26_ = _p_it;
#line 241 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					_tmp27_ = gee_iterator_get (_tmp26_);
#line 241 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					p = (FolksPersona*) _tmp27_;
#line 243 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					_tmp28_ = p;
#line 243 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					_tmp29_ = _g_object_ref0 (_tmp28_);
#line 243 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					_g_object_unref0 (persona);
#line 243 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					persona = _tmp29_;
#line 244 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					_g_object_unref0 (p);
#line 244 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
					break;
#line 1357 "individual-properties.c"
				}
#line 241 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				_g_object_unref0 (_p_it);
#line 1361 "individual-properties.c"
			}
#line 246 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp30_ = persona;
#line 246 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_assert (TPF_IS_PERSONA (_tmp30_));
#line 251 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp31_ = persona;
#line 251 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp32_ = tpf_persona_get_contact (TPF_PERSONA (_tmp31_));
#line 251 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp33_ = _tmp32_;
#line 251 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp34_ = tp_contact_get_handle (_tmp33_);
#line 251 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp35_ = _tmp34_;
#line 251 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			handle = (TpHandle) _tmp35_;
#line 252 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp36_ = self->priv->tp_backend;
#line 252 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp37_ = tp_test_backend_get_connection (_tmp36_);
#line 252 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp38_ = _tmp37_;
#line 252 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp39_ = tp_test_contact_list_connection_get_manager (_tmp38_);
#line 252 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp40_ = _tmp39_;
#line 252 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp41_ = handle;
#line 252 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp42_ = _data5_->new_alias;
#line 252 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			tp_test_contact_list_manager_set_alias (_tmp40_, _tmp41_, _tmp42_);
#line 215 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_g_object_unref0 (persona);
#line 215 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_g_object_unref0 (i);
#line 1399 "individual-properties.c"
		}
#line 215 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_g_object_unref0 (_i_it);
#line 1403 "individual-properties.c"
	}
#line 255 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp43_ = removed;
#line 255 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp44_ = gee_collection_get_size ((GeeCollection*) _tmp43_);
#line 255 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp45_ = _tmp44_;
#line 255 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_assert (_tmp45_ == 1);
#line 1413 "individual-properties.c"
	{
		GeeSet* _tmp46_;
		GeeIterator* _tmp47_ = NULL;
		GeeIterator* _i_it;
#line 257 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_tmp46_ = removed;
#line 257 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_tmp47_ = gee_iterable_iterator ((GeeIterable*) _tmp46_);
#line 257 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_i_it = _tmp47_;
#line 257 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		while (TRUE) {
#line 1426 "individual-properties.c"
			GeeIterator* _tmp48_;
			gboolean _tmp49_ = FALSE;
			GeeIterator* _tmp50_;
			gpointer _tmp51_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp52_;
#line 257 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp48_ = _i_it;
#line 257 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp49_ = gee_iterator_next (_tmp48_);
#line 257 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			if (!_tmp49_) {
#line 257 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
				break;
#line 1441 "individual-properties.c"
			}
#line 257 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp50_ = _i_it;
#line 257 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp51_ = gee_iterator_get (_tmp50_);
#line 257 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			i = (FolksIndividual*) _tmp51_;
#line 259 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_tmp52_ = i;
#line 259 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			g_assert (_tmp52_ == NULL);
#line 257 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
			_g_object_unref0 (i);
#line 1455 "individual-properties.c"
		}
#line 257 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
		_g_object_unref0 (_i_it);
#line 1459 "individual-properties.c"
	}
#line 208 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_g_object_unref0 (removed);
#line 208 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_g_object_unref0 (added);
#line 208 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	block5_data_unref (_data5_);
#line 208 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data5_ = NULL;
#line 1469 "individual-properties.c"
}


static void ___lambda5__folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 208 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	__lambda5_ (self, changes);
#line 1476 "individual-properties.c"
}


static gboolean __lambda7_ (Block4Data* _data4_) {
	IndividualPropertiesTests * self;
	gboolean result = FALSE;
#line 267 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	self = _data4_->self;
#line 269 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_main_loop_quit (_data4_->main_loop);
#line 270 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	result = FALSE;
#line 270 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	return result;
#line 1491 "individual-properties.c"
}


static gboolean ___lambda7__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda7_ (self);
#line 267 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	return result;
#line 1500 "individual-properties.c"
}


void individual_properties_tests_test_individual_properties_change_alias_through_test_cm (IndividualPropertiesTests* self) {
	Block4Data* _data4_;
	GMainLoop* _tmp0_;
	FolksIndividualAggregator* _tmp1_;
	FolksIndividualAggregator* aggregator;
	FolksIndividualAggregator* _tmp2_;
	FolksIndividualAggregator* _tmp3_;
	gint _tmp4_;
#line 201 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_return_if_fail (self != NULL);
#line 201 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data4_ = g_slice_new0 (Block4Data);
#line 201 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data4_->_ref_count_ = 1;
#line 201 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data4_->self = g_object_ref (self);
#line 203 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 203 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data4_->main_loop = _tmp0_;
#line 204 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data4_->alias_notified = FALSE;
#line 207 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp1_ = folks_individual_aggregator_new ();
#line 207 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	aggregator = _tmp1_;
#line 208 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp2_ = aggregator;
#line 208 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_signal_connect_data (_tmp2_, "individuals-changed-detailed", (GCallback) ___lambda5__folks_individual_aggregator_individuals_changed_detailed, block4_data_ref (_data4_), (GClosureNotify) block4_data_unref, 0);
#line 262 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp3_ = aggregator;
#line 262 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	folks_individual_aggregator_prepare (_tmp3_, NULL, NULL);
#line 267 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp4_ = self->priv->_test_timeout;
#line 267 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) _tmp4_, ___lambda7__gsource_func, block4_data_ref (_data4_), block4_data_unref);
#line 273 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_main_loop_run (_data4_->main_loop);
#line 275 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_assert (_data4_->alias_notified);
#line 278 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_g_object_unref0 (aggregator);
#line 278 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	aggregator = NULL;
#line 201 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_g_object_unref0 (aggregator);
#line 201 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	block4_data_unref (_data4_);
#line 201 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_data4_ = NULL;
#line 1556 "individual-properties.c"
}


static void individual_properties_tests_class_init (IndividualPropertiesTestsClass * klass) {
#line 27 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	individual_properties_tests_parent_class = g_type_class_peek_parent (klass);
#line 27 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_type_class_add_private (klass, sizeof (IndividualPropertiesTestsPrivate));
#line 27 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = individual_properties_tests_real_set_up;
#line 27 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = individual_properties_tests_real_tear_down;
#line 27 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	G_OBJECT_CLASS (klass)->finalize = individual_properties_tests_finalize;
#line 1571 "individual-properties.c"
}


static void individual_properties_tests_instance_init (IndividualPropertiesTests * self) {
#line 27 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	self->priv = INDIVIDUAL_PROPERTIES_TESTS_GET_PRIVATE (self);
#line 31 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	self->priv->_test_timeout = 3;
#line 1580 "individual-properties.c"
}


static void individual_properties_tests_finalize (GObject* obj) {
	IndividualPropertiesTests * self;
#line 27 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	self = INDIVIDUAL_PROPERTIES_TESTS (obj);
#line 29 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_g_object_unref0 (self->priv->tp_backend);
#line 27 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	G_OBJECT_CLASS (individual_properties_tests_parent_class)->finalize (obj);
#line 1592 "individual-properties.c"
}


GType individual_properties_tests_get_type (void) {
	static volatile gsize individual_properties_tests_type_id__volatile = 0;
	if (g_once_init_enter (&individual_properties_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (IndividualPropertiesTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) individual_properties_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (IndividualPropertiesTests), 0, (GInstanceInitFunc) individual_properties_tests_instance_init, NULL };
		GType individual_properties_tests_type_id;
		individual_properties_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "IndividualPropertiesTests", &g_define_type_info, 0);
		g_once_init_leave (&individual_properties_tests_type_id__volatile, individual_properties_tests_type_id);
	}
	return individual_properties_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	IndividualPropertiesTests* _tmp1_;
	IndividualPropertiesTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 284 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_test_init (&args_length1, &args, NULL);
#line 286 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp0_ = g_test_get_root ();
#line 286 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	root = _tmp0_;
#line 287 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp1_ = individual_properties_tests_new ();
#line 287 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp2_ = _tmp1_;
#line 287 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 287 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 287 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	_g_object_unref0 (_tmp2_);
#line 289 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_test_run ();
#line 291 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	result = 0;
#line 291 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	return result;
#line 1637 "individual-properties.c"
}


int main (int argc, char ** argv) {
#line 282 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	g_type_init ();
#line 282 "/debian/rgs/devel/folks/tests/telepathy/individual-properties.vala"
	return _vala_main (argv, argc);
#line 1646 "individual-properties.c"
}



