/* set-null-avatar.c generated by valac 0.14.0.3-1a311, the Vala compiler
 * generated from set-null-avatar.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: Raul Gutierrez Segales <raul.gutierrez.segales@collabora.co.uk>
 *
 */

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


#define TYPE_SET_NULL_AVATAR_TESTS (set_null_avatar_tests_get_type ())
#define SET_NULL_AVATAR_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SET_NULL_AVATAR_TESTS, SetNullAvatarTests))
#define SET_NULL_AVATAR_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SET_NULL_AVATAR_TESTS, SetNullAvatarTestsClass))
#define IS_SET_NULL_AVATAR_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SET_NULL_AVATAR_TESTS))
#define IS_SET_NULL_AVATAR_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SET_NULL_AVATAR_TESTS))
#define SET_NULL_AVATAR_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SET_NULL_AVATAR_TESTS, SetNullAvatarTestsClass))

typedef struct _SetNullAvatarTests SetNullAvatarTests;
typedef struct _SetNullAvatarTestsClass SetNullAvatarTestsClass;
typedef struct _SetNullAvatarTestsPrivate SetNullAvatarTestsPrivate;
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define _tracker_test_backend_unref0(var) ((var == NULL) ? NULL : (var = (tracker_test_backend_unref (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_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _SetNullAvatarTestsTestSetNullAvatarAsyncData SetNullAvatarTestsTestSetNullAvatarAsyncData;
typedef struct _SetNullAvatarTestsSetNullAvatarAsyncData SetNullAvatarTestsSetNullAvatarAsyncData;
typedef struct _SetNullAvatarTestsDoSetNullAvatarAsyncData SetNullAvatarTestsDoSetNullAvatarAsyncData;

struct _SetNullAvatarTests {
	FolksTestCase parent_instance;
	SetNullAvatarTestsPrivate * priv;
};

struct _SetNullAvatarTestsClass {
	FolksTestCaseClass parent_class;
};

struct _SetNullAvatarTestsPrivate {
	GMainLoop* _main_loop;
	TrackerTestBackend* _tracker_backend;
	FolksIndividualAggregator* _aggregator;
	gchar* _persona_fullname;
	gboolean _null_avatar_set;
};

struct _SetNullAvatarTestsTestSetNullAvatarAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	SetNullAvatarTests* self;
	FolksBackendStore* _tmp0_;
	FolksBackendStore* store;
	FolksIndividualAggregator* _tmp1_;
	FolksIndividualAggregator* _tmp2_;
	FolksIndividualAggregator* _tmp3_;
	GError* e;
	GError* _tmp4_;
	const gchar* _tmp5_;
	GError * _inner_error_;
};

struct _SetNullAvatarTestsSetNullAvatarAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	SetNullAvatarTests* self;
	GMainLoop* _tmp0_;
};

struct _SetNullAvatarTestsDoSetNullAvatarAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	SetNullAvatarTests* self;
};


static gpointer set_null_avatar_tests_parent_class = NULL;

GType set_null_avatar_tests_get_type (void) G_GNUC_CONST;
#define SET_NULL_AVATAR_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SET_NULL_AVATAR_TESTS, SetNullAvatarTestsPrivate))
enum  {
	SET_NULL_AVATAR_TESTS_DUMMY_PROPERTY
};
SetNullAvatarTests* set_null_avatar_tests_new (void);
SetNullAvatarTests* set_null_avatar_tests_construct (GType object_type);
void set_null_avatar_tests_test_set_null_avatar (SetNullAvatarTests* self);
static void _set_null_avatar_tests_test_set_null_avatar_folks_test_case_test_method (gpointer self);
static void set_null_avatar_tests_real_set_up (FolksTestCase* base);
static void set_null_avatar_tests_real_tear_down (FolksTestCase* base);
static void _set_null_avatar_tests_test_set_null_avatar_async (SetNullAvatarTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _set_null_avatar_tests_test_set_null_avatar_finish (SetNullAvatarTests* self, GAsyncResult* _res_);
static gboolean __lambda0_ (SetNullAvatarTests* self);
static gboolean ___lambda0__gsource_func (gpointer self);
static void _set_null_avatar_tests_test_set_null_avatar_async_data_free (gpointer _data);
static gboolean _set_null_avatar_tests_test_set_null_avatar_async_co (SetNullAvatarTestsTestSetNullAvatarAsyncData* _data_);
static void _set_null_avatar_tests_test_set_null_avatar_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _set_null_avatar_tests_individuals_changed_cb (SetNullAvatarTests* self, GeeMultiMap* changes);
static void __set_null_avatar_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self);
static void _set_null_avatar_tests_set_null_avatar_async (SetNullAvatarTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _set_null_avatar_tests_set_null_avatar_finish (SetNullAvatarTests* self, GAsyncResult* _res_);
static void _set_null_avatar_tests_set_null_avatar_async_data_free (gpointer _data);
static gboolean _set_null_avatar_tests_set_null_avatar_async_co (SetNullAvatarTestsSetNullAvatarAsyncData* _data_);
static void _set_null_avatar_tests_do_set_null_avatar_async (SetNullAvatarTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _set_null_avatar_tests_do_set_null_avatar_finish (SetNullAvatarTests* self, GAsyncResult* _res_);
static void _set_null_avatar_tests_set_null_avatar_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _set_null_avatar_tests_do_set_null_avatar_async_data_free (gpointer _data);
static gboolean _set_null_avatar_tests_do_set_null_avatar_async_co (SetNullAvatarTestsDoSetNullAvatarAsyncData* _data_);
static void set_null_avatar_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _set_null_avatar_tests_test_set_null_avatar_folks_test_case_test_method (gpointer self) {
#line 40 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	set_null_avatar_tests_test_set_null_avatar (self);
#line 146 "set-null-avatar.c"
}


SetNullAvatarTests* set_null_avatar_tests_construct (GType object_type) {
	SetNullAvatarTests * self = NULL;
	TrackerTestBackend* _tmp0_;
#line 36 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	self = (SetNullAvatarTests*) folks_test_case_construct (object_type, "SetNullAvatarTests");
#line 38 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp0_ = tracker_test_backend_new ();
#line 38 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 38 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	self->priv->_tracker_backend = _tmp0_;
#line 40 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "test setting null avatar ", _set_null_avatar_tests_test_set_null_avatar_folks_test_case_test_method, self);
#line 34 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	return self;
#line 165 "set-null-avatar.c"
}


SetNullAvatarTests* set_null_avatar_tests_new (void) {
#line 34 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	return set_null_avatar_tests_construct (TYPE_SET_NULL_AVATAR_TESTS);
#line 172 "set-null-avatar.c"
}


static void set_null_avatar_tests_real_set_up (FolksTestCase* base) {
	SetNullAvatarTests * self;
#line 43 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	self = (SetNullAvatarTests*) base;
#line 180 "set-null-avatar.c"
}


static void set_null_avatar_tests_real_tear_down (FolksTestCase* base) {
	SetNullAvatarTests * self;
#line 47 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	self = (SetNullAvatarTests*) base;
#line 188 "set-null-avatar.c"
}


static gboolean __lambda0_ (SetNullAvatarTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
#line 68 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp0_ = self->priv->_main_loop;
#line 68 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_main_loop_quit (_tmp0_);
#line 69 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_assert_not_reached ();
#line 66 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	return result;
#line 203 "set-null-avatar.c"
}


static gboolean ___lambda0__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda0_ (self);
#line 66 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	return result;
#line 212 "set-null-avatar.c"
}


void set_null_avatar_tests_test_set_null_avatar (SetNullAvatarTests* self) {
	GMainLoop* _tmp0_;
	GeeHashMap* _tmp1_;
	GeeHashMap* c1;
	gchar* _tmp2_;
	const gchar* _tmp3_;
	TrackerTestBackend* _tmp4_;
	TrackerTestBackend* _tmp5_;
	GMainLoop* _tmp6_;
	gboolean _tmp7_;
	TrackerTestBackend* _tmp8_;
#line 51 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_return_if_fail (self != NULL);
#line 53 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 53 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 53 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	self->priv->_main_loop = _tmp0_;
#line 54 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
#line 54 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	c1 = _tmp1_;
#line 55 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp2_ = g_strdup ("persona #1");
#line 55 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_g_free0 (self->priv->_persona_fullname);
#line 55 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	self->priv->_persona_fullname = _tmp2_;
#line 57 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp3_ = self->priv->_persona_fullname;
#line 57 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	gee_abstract_map_set ((GeeAbstractMap*) c1, TRF_ONTOLOGY_DEFS_NCO_FULLNAME, _tmp3_);
#line 58 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp4_ = self->priv->_tracker_backend;
#line 58 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	tracker_test_backend_add_contact (_tmp4_, c1);
#line 60 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp5_ = self->priv->_tracker_backend;
#line 60 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	tracker_test_backend_set_up (_tmp5_);
#line 62 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	self->priv->_null_avatar_set = FALSE;
#line 64 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_set_null_avatar_tests_test_set_null_avatar_async (self, NULL, NULL);
#line 66 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, ___lambda0__gsource_func, g_object_ref (self), g_object_unref);
#line 72 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp6_ = self->priv->_main_loop;
#line 72 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_main_loop_run (_tmp6_);
#line 74 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp7_ = self->priv->_null_avatar_set;
#line 74 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_assert (_tmp7_);
#line 76 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp8_ = self->priv->_tracker_backend;
#line 76 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	tracker_test_backend_tear_down (_tmp8_);
#line 51 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_g_object_unref0 (c1);
#line 277 "set-null-avatar.c"
}


static void _set_null_avatar_tests_test_set_null_avatar_async_data_free (gpointer _data) {
	SetNullAvatarTestsTestSetNullAvatarAsyncData* _data_;
	_data_ = _data;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_slice_free (SetNullAvatarTestsTestSetNullAvatarAsyncData, _data_);
#line 288 "set-null-avatar.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	return self ? g_object_ref (self) : NULL;
#line 295 "set-null-avatar.c"
}


static void _set_null_avatar_tests_test_set_null_avatar_async (SetNullAvatarTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	SetNullAvatarTestsTestSetNullAvatarAsyncData* _data_;
	SetNullAvatarTests* _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_ = g_slice_new0 (SetNullAvatarTestsTestSetNullAvatarAsyncData);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _set_null_avatar_tests_test_set_null_avatar_async);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _set_null_avatar_tests_test_set_null_avatar_async_data_free);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->self = _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_set_null_avatar_tests_test_set_null_avatar_async_co (_data_);
#line 314 "set-null-avatar.c"
}


static void _set_null_avatar_tests_test_set_null_avatar_finish (SetNullAvatarTests* self, GAsyncResult* _res_) {
	SetNullAvatarTestsTestSetNullAvatarAsyncData* _data_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 322 "set-null-avatar.c"
}


static void _set_null_avatar_tests_test_set_null_avatar_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	SetNullAvatarTestsTestSetNullAvatarAsyncData* _data_;
#line 82 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_ = _user_data_;
#line 82 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->_source_object_ = source_object;
#line 82 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->_res_ = _res_;
#line 82 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_set_null_avatar_tests_test_set_null_avatar_async_co (_data_);
#line 336 "set-null-avatar.c"
}


static void __set_null_avatar_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed (FolksIndividualAggregator* _sender, GeeMultiMap* changes, gpointer self) {
#line 84 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_set_null_avatar_tests_individuals_changed_cb (self, changes);
#line 343 "set-null-avatar.c"
}


static gboolean _set_null_avatar_tests_test_set_null_avatar_async_co (SetNullAvatarTestsTestSetNullAvatarAsyncData* _data_) {
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	switch (_data_->_state_) {
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		case 0:
#line 352 "set-null-avatar.c"
		goto _state_0;
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		case 1:
#line 356 "set-null-avatar.c"
		goto _state_1;
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		case 2:
#line 360 "set-null-avatar.c"
		goto _state_2;
		default:
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		g_assert_not_reached ();
#line 365 "set-null-avatar.c"
	}
	_state_0:
#line 81 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->_tmp0_ = NULL;
#line 81 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->_tmp0_ = folks_backend_store_dup ();
#line 81 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->store = _data_->_tmp0_;
#line 82 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->_state_ = 1;
#line 82 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	folks_backend_store_prepare (_data_->store, _set_null_avatar_tests_test_set_null_avatar_async_ready, _data_);
#line 82 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	return FALSE;
#line 380 "set-null-avatar.c"
	_state_1:
#line 82 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	folks_backend_store_prepare_finish (_data_->store, _data_->_res_);
#line 83 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->_tmp1_ = folks_individual_aggregator_new ();
#line 83 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_g_object_unref0 (_data_->self->priv->_aggregator);
#line 83 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->self->priv->_aggregator = _data_->_tmp1_;
#line 84 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->_tmp2_ = _data_->self->priv->_aggregator;
#line 84 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_signal_connect_object (_data_->_tmp2_, "individuals-changed-detailed", (GCallback) __set_null_avatar_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed_detailed, _data_->self, 0);
#line 394 "set-null-avatar.c"
	{
#line 88 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		_data_->_tmp3_ = _data_->self->priv->_aggregator;
#line 88 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		_data_->_state_ = 2;
#line 88 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		folks_individual_aggregator_prepare (_data_->_tmp3_, _set_null_avatar_tests_test_set_null_avatar_async_ready, _data_);
#line 88 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		return FALSE;
#line 404 "set-null-avatar.c"
		_state_2:
#line 88 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		folks_individual_aggregator_prepare_finish (_data_->_tmp3_, _data_->_res_, &_data_->_inner_error_);
#line 88 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		if (_data_->_inner_error_ != NULL) {
#line 410 "set-null-avatar.c"
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
#line 86 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		_data_->e = _data_->_inner_error_;
#line 86 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		_data_->_inner_error_ = NULL;
#line 92 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		_data_->_tmp4_ = _data_->e;
#line 92 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		_data_->_tmp5_ = _data_->_tmp4_->message;
#line 92 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		g_warning ("set-null-avatar.vala:92: Error when calling prepare: %s\n", _data_->_tmp5_);
#line 86 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		_g_error_free0 (_data_->e);
#line 429 "set-null-avatar.c"
	}
	__finally0:
#line 86 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	if (_data_->_inner_error_ != NULL) {
#line 86 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		_g_object_unref0 (_data_->store);
#line 86 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 86 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		g_clear_error (&_data_->_inner_error_);
#line 86 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		return FALSE;
#line 442 "set-null-avatar.c"
	}
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_g_object_unref0 (_data_->store);
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	if (_data_->_state_ == 0) {
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 450 "set-null-avatar.c"
	} else {
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 454 "set-null-avatar.c"
	}
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_object_unref (_data_->_async_result);
#line 79 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	return FALSE;
#line 460 "set-null-avatar.c"
}


static void _set_null_avatar_tests_individuals_changed_cb (SetNullAvatarTests* self, GeeMultiMap* changes) {
	GeeMultiMap* _tmp0_;
	GeeCollection* _tmp1_ = NULL;
	GeeCollection* added;
	GeeMultiMap* _tmp2_;
	GeeSet* _tmp3_ = NULL;
	GeeSet* removed;
	GeeSet* _tmp24_;
	gint _tmp25_;
	gint _tmp26_;
#line 96 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_return_if_fail (self != NULL);
#line 96 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_return_if_fail (changes != NULL);
#line 99 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp0_ = changes;
#line 99 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp1_ = gee_multi_map_get_values (_tmp0_);
#line 99 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	added = _tmp1_;
#line 100 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp2_ = changes;
#line 100 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp3_ = gee_multi_map_get_keys (_tmp2_);
#line 100 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	removed = _tmp3_;
#line 490 "set-null-avatar.c"
	{
		GeeCollection* _tmp4_;
		GeeIterator* _tmp5_ = NULL;
		GeeIterator* _i_it;
#line 102 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		_tmp4_ = added;
#line 102 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		_tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
#line 102 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		_i_it = _tmp5_;
#line 102 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		while (TRUE) {
#line 503 "set-null-avatar.c"
			GeeIterator* _tmp6_;
			gboolean _tmp7_ = FALSE;
			GeeIterator* _tmp8_;
			gpointer _tmp9_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp10_;
			FolksIndividual* _tmp11_;
			const gchar* _tmp12_;
			const gchar* _tmp13_;
			const gchar* _tmp14_;
#line 102 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			_tmp6_ = _i_it;
#line 102 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			_tmp7_ = gee_iterator_next (_tmp6_);
#line 102 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			if (!_tmp7_) {
#line 102 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
				break;
#line 522 "set-null-avatar.c"
			}
#line 102 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			_tmp8_ = _i_it;
#line 102 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			_tmp9_ = gee_iterator_get (_tmp8_);
#line 102 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			i = (FolksIndividual*) _tmp9_;
#line 104 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			_tmp10_ = i;
#line 104 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			g_assert (_tmp10_ != NULL);
#line 106 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			_tmp11_ = i;
#line 106 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			_tmp12_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp11_);
#line 106 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			_tmp13_ = _tmp12_;
#line 106 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			_tmp14_ = self->priv->_persona_fullname;
#line 106 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			if (g_strcmp0 (_tmp13_, _tmp14_) == 0) {
#line 544 "set-null-avatar.c"
				{
					FolksIndividual* _tmp15_;
					GeeSet* _tmp16_;
					GeeSet* _tmp17_;
					GeeIterator* _tmp18_ = NULL;
					GeeIterator* _p_it;
#line 108 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
					_tmp15_ = i;
#line 108 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
					_tmp16_ = folks_individual_get_personas (_tmp15_);
#line 108 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
					_tmp17_ = _tmp16_;
#line 108 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
					_tmp18_ = gee_iterable_iterator ((GeeIterable*) _tmp17_);
#line 108 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
					_p_it = _tmp18_;
#line 108 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
					while (TRUE) {
#line 563 "set-null-avatar.c"
						GeeIterator* _tmp19_;
						gboolean _tmp20_ = FALSE;
						GeeIterator* _tmp21_;
						gpointer _tmp22_ = NULL;
						FolksPersona* p;
						FolksPersona* _tmp23_;
#line 108 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
						_tmp19_ = _p_it;
#line 108 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
						_tmp20_ = gee_iterator_next (_tmp19_);
#line 108 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
						if (!_tmp20_) {
#line 108 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
							break;
#line 578 "set-null-avatar.c"
						}
#line 108 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
						_tmp21_ = _p_it;
#line 108 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
						_tmp22_ = gee_iterator_get (_tmp21_);
#line 108 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
						p = (FolksPersona*) _tmp22_;
#line 110 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
						_tmp23_ = p;
#line 110 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
						folks_avatar_details_set_avatar (FOLKS_AVATAR_DETAILS (_tmp23_), NULL);
#line 111 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
						_set_null_avatar_tests_set_null_avatar_async (self, NULL, NULL);
#line 108 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
						_g_object_unref0 (p);
#line 594 "set-null-avatar.c"
					}
#line 108 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
					_g_object_unref0 (_p_it);
#line 598 "set-null-avatar.c"
				}
			}
#line 102 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			_g_object_unref0 (i);
#line 603 "set-null-avatar.c"
		}
#line 102 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		_g_object_unref0 (_i_it);
#line 607 "set-null-avatar.c"
	}
#line 116 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp24_ = removed;
#line 116 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp25_ = gee_collection_get_size ((GeeCollection*) _tmp24_);
#line 116 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp26_ = _tmp25_;
#line 116 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_assert (_tmp26_ == 1);
#line 617 "set-null-avatar.c"
	{
		GeeSet* _tmp27_;
		GeeIterator* _tmp28_ = NULL;
		GeeIterator* _i_it;
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		_tmp27_ = removed;
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		_tmp28_ = gee_iterable_iterator ((GeeIterable*) _tmp27_);
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		_i_it = _tmp28_;
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		while (TRUE) {
#line 630 "set-null-avatar.c"
			GeeIterator* _tmp29_;
			gboolean _tmp30_ = FALSE;
			GeeIterator* _tmp31_;
			gpointer _tmp32_ = NULL;
			FolksIndividual* i;
			FolksIndividual* _tmp33_;
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			_tmp29_ = _i_it;
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			_tmp30_ = gee_iterator_next (_tmp29_);
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			if (!_tmp30_) {
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
				break;
#line 645 "set-null-avatar.c"
			}
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			_tmp31_ = _i_it;
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			_tmp32_ = gee_iterator_get (_tmp31_);
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			i = (FolksIndividual*) _tmp32_;
#line 120 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			_tmp33_ = i;
#line 120 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			g_assert (_tmp33_ == NULL);
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
			_g_object_unref0 (i);
#line 659 "set-null-avatar.c"
		}
#line 118 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		_g_object_unref0 (_i_it);
#line 663 "set-null-avatar.c"
	}
#line 96 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_g_object_unref0 (removed);
#line 96 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_g_object_unref0 (added);
#line 669 "set-null-avatar.c"
}


static void _set_null_avatar_tests_set_null_avatar_async_data_free (gpointer _data) {
	SetNullAvatarTestsSetNullAvatarAsyncData* _data_;
	_data_ = _data;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_slice_free (SetNullAvatarTestsSetNullAvatarAsyncData, _data_);
#line 680 "set-null-avatar.c"
}


static void _set_null_avatar_tests_set_null_avatar_async (SetNullAvatarTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	SetNullAvatarTestsSetNullAvatarAsyncData* _data_;
	SetNullAvatarTests* _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_ = g_slice_new0 (SetNullAvatarTestsSetNullAvatarAsyncData);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _set_null_avatar_tests_set_null_avatar_async);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _set_null_avatar_tests_set_null_avatar_async_data_free);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->self = _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_set_null_avatar_tests_set_null_avatar_async_co (_data_);
#line 699 "set-null-avatar.c"
}


static void _set_null_avatar_tests_set_null_avatar_finish (SetNullAvatarTests* self, GAsyncResult* _res_) {
	SetNullAvatarTestsSetNullAvatarAsyncData* _data_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 707 "set-null-avatar.c"
}


static void _set_null_avatar_tests_set_null_avatar_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	SetNullAvatarTestsSetNullAvatarAsyncData* _data_;
#line 126 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_ = _user_data_;
#line 126 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->_source_object_ = source_object;
#line 126 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->_res_ = _res_;
#line 126 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_set_null_avatar_tests_set_null_avatar_async_co (_data_);
#line 721 "set-null-avatar.c"
}


static gboolean _set_null_avatar_tests_set_null_avatar_async_co (SetNullAvatarTestsSetNullAvatarAsyncData* _data_) {
#line 124 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	switch (_data_->_state_) {
#line 124 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		case 0:
#line 730 "set-null-avatar.c"
		goto _state_0;
#line 124 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		case 1:
#line 734 "set-null-avatar.c"
		goto _state_1;
		default:
#line 124 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		g_assert_not_reached ();
#line 739 "set-null-avatar.c"
	}
	_state_0:
#line 126 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->_state_ = 1;
#line 126 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_set_null_avatar_tests_do_set_null_avatar_async (_data_->self, _set_null_avatar_tests_set_null_avatar_async_ready, _data_);
#line 126 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	return FALSE;
#line 748 "set-null-avatar.c"
	_state_1:
#line 126 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_set_null_avatar_tests_do_set_null_avatar_finish (_data_->self, _data_->_res_);
#line 127 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->_tmp0_ = _data_->self->priv->_main_loop;
#line 127 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_main_loop_quit (_data_->_tmp0_);
#line 124 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	if (_data_->_state_ == 0) {
#line 124 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 760 "set-null-avatar.c"
	} else {
#line 124 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 764 "set-null-avatar.c"
	}
#line 124 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_object_unref (_data_->_async_result);
#line 124 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	return FALSE;
#line 770 "set-null-avatar.c"
}


static void _set_null_avatar_tests_do_set_null_avatar_async_data_free (gpointer _data) {
	SetNullAvatarTestsDoSetNullAvatarAsyncData* _data_;
	_data_ = _data;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_g_object_unref0 (_data_->self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_slice_free (SetNullAvatarTestsDoSetNullAvatarAsyncData, _data_);
#line 781 "set-null-avatar.c"
}


static void _set_null_avatar_tests_do_set_null_avatar_async (SetNullAvatarTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	SetNullAvatarTestsDoSetNullAvatarAsyncData* _data_;
	SetNullAvatarTests* _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_ = g_slice_new0 (SetNullAvatarTestsDoSetNullAvatarAsyncData);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _set_null_avatar_tests_do_set_null_avatar_async);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _set_null_avatar_tests_do_set_null_avatar_async_data_free);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->self = _tmp0_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_set_null_avatar_tests_do_set_null_avatar_async_co (_data_);
#line 800 "set-null-avatar.c"
}


static void _set_null_avatar_tests_do_set_null_avatar_finish (SetNullAvatarTests* self, GAsyncResult* _res_) {
	SetNullAvatarTestsDoSetNullAvatarAsyncData* _data_;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 808 "set-null-avatar.c"
}


static gboolean _set_null_avatar_tests_do_set_null_avatar_async_co (SetNullAvatarTestsDoSetNullAvatarAsyncData* _data_) {
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	switch (_data_->_state_) {
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		case 0:
#line 817 "set-null-avatar.c"
		goto _state_0;
		default:
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		g_assert_not_reached ();
#line 822 "set-null-avatar.c"
	}
	_state_0:
#line 132 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_data_->self->priv->_null_avatar_set = TRUE;
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	if (_data_->_state_ == 0) {
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 831 "set-null-avatar.c"
	} else {
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 835 "set-null-avatar.c"
	}
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_object_unref (_data_->_async_result);
#line 130 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	return FALSE;
#line 841 "set-null-avatar.c"
}


static void set_null_avatar_tests_class_init (SetNullAvatarTestsClass * klass) {
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	set_null_avatar_tests_parent_class = g_type_class_peek_parent (klass);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_type_class_add_private (klass, sizeof (SetNullAvatarTestsPrivate));
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = set_null_avatar_tests_real_set_up;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = set_null_avatar_tests_real_tear_down;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	G_OBJECT_CLASS (klass)->finalize = set_null_avatar_tests_finalize;
#line 856 "set-null-avatar.c"
}


static void set_null_avatar_tests_instance_init (SetNullAvatarTests * self) {
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	self->priv = SET_NULL_AVATAR_TESTS_GET_PRIVATE (self);
#line 863 "set-null-avatar.c"
}


static void set_null_avatar_tests_finalize (GObject* obj) {
	SetNullAvatarTests * self;
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	self = SET_NULL_AVATAR_TESTS (obj);
#line 28 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_g_main_loop_unref0 (self->priv->_main_loop);
#line 29 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tracker_test_backend_unref0 (self->priv->_tracker_backend);
#line 30 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_g_object_unref0 (self->priv->_aggregator);
#line 31 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_g_free0 (self->priv->_persona_fullname);
#line 26 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	G_OBJECT_CLASS (set_null_avatar_tests_parent_class)->finalize (obj);
#line 881 "set-null-avatar.c"
}


GType set_null_avatar_tests_get_type (void) {
	static volatile gsize set_null_avatar_tests_type_id__volatile = 0;
	if (g_once_init_enter (&set_null_avatar_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (SetNullAvatarTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) set_null_avatar_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SetNullAvatarTests), 0, (GInstanceInitFunc) set_null_avatar_tests_instance_init, NULL };
		GType set_null_avatar_tests_type_id;
		set_null_avatar_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "SetNullAvatarTests", &g_define_type_info, 0);
		g_once_init_leave (&set_null_avatar_tests_type_id__volatile, set_null_avatar_tests_type_id);
	}
	return set_null_avatar_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	SetNullAvatarTests* _tmp1_;
	SetNullAvatarTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 138 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_test_init (&args_length1, &args, NULL);
#line 140 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp0_ = g_test_get_root ();
#line 140 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	root = _tmp0_;
#line 141 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp1_ = set_null_avatar_tests_new ();
#line 141 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp2_ = _tmp1_;
#line 141 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 141 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 141 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	_g_object_unref0 (_tmp2_);
#line 143 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_test_run ();
#line 145 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	result = 0;
#line 145 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	return result;
#line 926 "set-null-avatar.c"
}


int main (int argc, char ** argv) {
#line 136 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	g_type_init ();
#line 136 "/home/treitter/collabora/folks/tests/tracker/set-null-avatar.vala"
	return _vala_main (argv, argc);
#line 935 "set-null-avatar.c"
}



