/* test-utils.c generated by valac 0.14.0.3-1a311, the Vala compiler
 * generated from test-utils.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.com>
 *
 */

#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <gobject/gvaluecollector.h>


#define FOLKS_TYPE_TEST_UTILS (folks_test_utils_get_type ())
#define FOLKS_TEST_UTILS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLKS_TYPE_TEST_UTILS, FolksTestUtils))
#define FOLKS_TEST_UTILS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FOLKS_TYPE_TEST_UTILS, FolksTestUtilsClass))
#define FOLKS_IS_TEST_UTILS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FOLKS_TYPE_TEST_UTILS))
#define FOLKS_IS_TEST_UTILS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FOLKS_TYPE_TEST_UTILS))
#define FOLKS_TEST_UTILS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FOLKS_TYPE_TEST_UTILS, FolksTestUtilsClass))

typedef struct _FolksTestUtils FolksTestUtils;
typedef struct _FolksTestUtilsClass FolksTestUtilsClass;
typedef struct _FolksTestUtilsPrivate FolksTestUtilsPrivate;
#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 _FolksTestUtilsLoadableIconsContentEqualData FolksTestUtilsLoadableIconsContentEqualData;
typedef struct _FolksParamSpecTestUtils FolksParamSpecTestUtils;

struct _FolksTestUtils {
	GTypeInstance parent_instance;
	volatile int ref_count;
	FolksTestUtilsPrivate * priv;
};

struct _FolksTestUtilsClass {
	GTypeClass parent_class;
	void (*finalize) (FolksTestUtils *self);
};

struct _FolksTestUtilsLoadableIconsContentEqualData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GLoadableIcon* a;
	GLoadableIcon* b;
	gint icon_size;
	gboolean result;
	gboolean retval;
	GLoadableIcon* _tmp0_;
	GLoadableIcon* _tmp1_;
	gboolean _tmp2_;
	GLoadableIcon* _tmp3_;
	GLoadableIcon* _tmp4_;
	gboolean _tmp5_;
	gchar* a_type;
	GLoadableIcon* _tmp6_;
	gint _tmp7_;
	gchar* _tmp8_;
	GInputStream* _tmp9_;
	GInputStream* a_input;
	gchar* b_type;
	GLoadableIcon* _tmp10_;
	gint _tmp11_;
	gchar* _tmp12_;
	GInputStream* _tmp13_;
	GInputStream* b_input;
	gsize bufsize;
	gsize _tmp14_;
	guint8* _tmp15_;
	guint8* a_data;
	gint a_data_length1;
	gint _a_data_size_;
	gsize _tmp16_;
	guint8* _tmp17_;
	guint8* b_data;
	gint b_data_length1;
	gint _b_data_size_;
	gsize a_read_size;
	gboolean _tmp18_;
	gboolean _tmp19_;
	gsize _tmp20_;
	GInputStream* _tmp21_;
	guint8* _tmp22_;
	gint _tmp22__length1;
	gssize _tmp23_;
	gssize _tmp24_;
	GInputStream* _tmp25_;
	guint8* _tmp26_;
	gint _tmp26__length1;
	gssize _tmp27_;
	gssize b_read_size;
	gboolean _tmp28_;
	gsize _tmp29_;
	gssize _tmp30_;
	guint8* _tmp31_;
	gint _tmp31__length1;
	guint8* _tmp32_;
	gint _tmp32__length1;
	gsize _tmp33_;
	gint _tmp34_;
	gboolean _tmp35_;
	GInputStream* _tmp36_;
	GInputStream* _tmp37_;
	GError* e1;
	GError* _tmp38_;
	const gchar* _tmp39_;
	GError * _inner_error_;
};

struct _FolksParamSpecTestUtils {
	GParamSpec parent_instance;
};


static gpointer folks_test_utils_parent_class = NULL;

gpointer folks_test_utils_ref (gpointer instance);
void folks_test_utils_unref (gpointer instance);
GParamSpec* folks_param_spec_test_utils (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void folks_value_set_test_utils (GValue* value, gpointer v_object);
void folks_value_take_test_utils (GValue* value, gpointer v_object);
gpointer folks_value_get_test_utils (const GValue* value);
GType folks_test_utils_get_type (void) G_GNUC_CONST;
enum  {
	FOLKS_TEST_UTILS_DUMMY_PROPERTY
};
static void folks_test_utils_loadable_icons_content_equal_data_free (gpointer _data);
void folks_test_utils_loadable_icons_content_equal (GLoadableIcon* a, GLoadableIcon* b, gint icon_size, GAsyncReadyCallback _callback_, gpointer _user_data_);
gboolean folks_test_utils_loadable_icons_content_equal_finish (GAsyncResult* _res_);
static gboolean folks_test_utils_loadable_icons_content_equal_co (FolksTestUtilsLoadableIconsContentEqualData* _data_);
static void folks_test_utils_loadable_icons_content_equal_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
FolksTestUtils* folks_test_utils_new (void);
FolksTestUtils* folks_test_utils_construct (GType object_type);
static void folks_test_utils_finalize (FolksTestUtils* obj);


static void folks_test_utils_loadable_icons_content_equal_data_free (gpointer _data) {
	FolksTestUtilsLoadableIconsContentEqualData* _data_;
	_data_ = _data;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_g_object_unref0 (_data_->a);
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_g_object_unref0 (_data_->b);
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	g_slice_free (FolksTestUtilsLoadableIconsContentEqualData, _data_);
#line 167 "test-utils.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	return self ? g_object_ref (self) : NULL;
#line 174 "test-utils.c"
}


void folks_test_utils_loadable_icons_content_equal (GLoadableIcon* a, GLoadableIcon* b, gint icon_size, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FolksTestUtilsLoadableIconsContentEqualData* _data_;
	GLoadableIcon* _tmp0_;
	GLoadableIcon* _tmp1_;
	GLoadableIcon* _tmp2_;
	GLoadableIcon* _tmp3_;
	gint _tmp4_;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_data_ = g_slice_new0 (FolksTestUtilsLoadableIconsContentEqualData);
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_data_->_async_result = g_simple_async_result_new (NULL, _callback_, _user_data_, folks_test_utils_loadable_icons_content_equal);
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, folks_test_utils_loadable_icons_content_equal_data_free);
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_tmp0_ = a;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_data_->a = _tmp1_;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_tmp2_ = b;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_data_->b = _tmp3_;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_tmp4_ = icon_size;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_data_->icon_size = _tmp4_;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	folks_test_utils_loadable_icons_content_equal_co (_data_);
#line 209 "test-utils.c"
}


gboolean folks_test_utils_loadable_icons_content_equal_finish (GAsyncResult* _res_) {
	gboolean result;
	FolksTestUtilsLoadableIconsContentEqualData* _data_;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	result = _data_->result;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	return result;
#line 222 "test-utils.c"
}


/**
   * Compare the content of two {@link LoadableIcon}s for equality.
   *
   * This is in contrast to {@link Icon.equal}, which returns `false` for
   * identical icons stored in different subclasses or in different storage
   * locations.
   *
   * This function is particularly useful for tests which compare an avatar set
   * on an {@link AvatarDetails}'s with that object's final avatar, since it may
   * be stored in a location in the avatar cache.
   *
   * @param a the first icon
   * @param b the second icon
   * @param size the size at which to compare the icons
   * @return `true` if the instances are equal, `false` otherwise
   */
static void folks_test_utils_loadable_icons_content_equal_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	FolksTestUtilsLoadableIconsContentEqualData* _data_;
#line 55 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_data_ = _user_data_;
#line 55 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_data_->_source_object_ = source_object;
#line 55 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_data_->_res_ = _res_;
#line 55 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	folks_test_utils_loadable_icons_content_equal_co (_data_);
#line 252 "test-utils.c"
}


static gboolean folks_test_utils_loadable_icons_content_equal_co (FolksTestUtilsLoadableIconsContentEqualData* _data_) {
#line 41 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	switch (_data_->_state_) {
#line 41 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		case 0:
#line 261 "test-utils.c"
		goto _state_0;
#line 41 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		case 1:
#line 265 "test-utils.c"
		goto _state_1;
#line 41 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		case 2:
#line 269 "test-utils.c"
		goto _state_2;
#line 41 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		case 3:
#line 273 "test-utils.c"
		goto _state_3;
#line 41 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		case 4:
#line 277 "test-utils.c"
		goto _state_4;
#line 41 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		case 5:
#line 281 "test-utils.c"
		goto _state_5;
#line 41 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		case 6:
#line 285 "test-utils.c"
		goto _state_6;
		default:
#line 41 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		g_assert_not_reached ();
#line 290 "test-utils.c"
	}
	_state_0:
#line 45 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_data_->retval = FALSE;
#line 47 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_data_->_tmp0_ = _data_->a;
#line 47 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_data_->_tmp1_ = _data_->b;
#line 47 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	if (_data_->_tmp0_ == _data_->_tmp1_) {
#line 48 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		_data_->result = TRUE;
#line 48 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		if (_data_->_state_ == 0) {
#line 48 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 307 "test-utils.c"
		} else {
#line 48 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 311 "test-utils.c"
		}
#line 48 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		g_object_unref (_data_->_async_result);
#line 48 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		return FALSE;
#line 317 "test-utils.c"
	}
#line 50 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_data_->_tmp3_ = _data_->a;
#line 50 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	if (_data_->_tmp3_ != NULL) {
#line 50 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		_data_->_tmp4_ = _data_->b;
#line 50 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		_data_->_tmp2_ = _data_->_tmp4_ != NULL;
#line 327 "test-utils.c"
	} else {
#line 50 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		_data_->_tmp2_ = FALSE;
#line 331 "test-utils.c"
	}
#line 50 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_data_->_tmp5_ = _data_->_tmp2_;
#line 50 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	if (_data_->_tmp5_) {
#line 337 "test-utils.c"
		{
#line 55 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp6_ = _data_->a;
#line 55 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp7_ = _data_->icon_size;
#line 55 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp8_ = NULL;
#line 55 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_state_ = 1;
#line 55 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			g_loadable_icon_load_async (_data_->_tmp6_, _data_->_tmp7_, NULL, folks_test_utils_loadable_icons_content_equal_ready, _data_);
#line 55 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			return FALSE;
#line 351 "test-utils.c"
			_state_1:
#line 55 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp9_ = NULL;
#line 55 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp9_ = g_loadable_icon_load_finish (_data_->_tmp6_, _data_->_res_, &_data_->_tmp8_, &_data_->_inner_error_);
#line 55 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_g_free0 (_data_->a_type);
#line 55 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->a_type = _data_->_tmp8_;
#line 55 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->a_input = _data_->_tmp9_;
#line 55 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			if (_data_->_inner_error_ != NULL) {
#line 55 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
				_g_free0 (_data_->a_type);
#line 367 "test-utils.c"
				goto __catch0_g_error;
			}
#line 57 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp10_ = _data_->b;
#line 57 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp11_ = _data_->icon_size;
#line 57 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp12_ = NULL;
#line 57 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_state_ = 2;
#line 57 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			g_loadable_icon_load_async (_data_->_tmp10_, _data_->_tmp11_, NULL, folks_test_utils_loadable_icons_content_equal_ready, _data_);
#line 57 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			return FALSE;
#line 382 "test-utils.c"
			_state_2:
#line 57 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp13_ = NULL;
#line 57 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp13_ = g_loadable_icon_load_finish (_data_->_tmp10_, _data_->_res_, &_data_->_tmp12_, &_data_->_inner_error_);
#line 57 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_g_free0 (_data_->b_type);
#line 57 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->b_type = _data_->_tmp12_;
#line 57 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->b_input = _data_->_tmp13_;
#line 57 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			if (_data_->_inner_error_ != NULL) {
#line 57 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
				_g_free0 (_data_->b_type);
#line 57 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
				_g_object_unref0 (_data_->a_input);
#line 57 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
				_g_free0 (_data_->a_type);
#line 402 "test-utils.c"
				goto __catch0_g_error;
			}
#line 60 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->bufsize = (gsize) 2048;
#line 61 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp14_ = _data_->bufsize;
#line 61 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp15_ = NULL;
#line 61 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp15_ = g_new0 (guint8, _data_->_tmp14_);
#line 61 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->a_data = _data_->_tmp15_;
#line 61 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->a_data_length1 = _data_->_tmp14_;
#line 61 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_a_data_size_ = _data_->a_data_length1;
#line 62 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp16_ = _data_->bufsize;
#line 62 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp17_ = NULL;
#line 62 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp17_ = g_new0 (guint8, _data_->_tmp16_);
#line 62 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->b_data = _data_->_tmp17_;
#line 62 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->b_data_length1 = _data_->_tmp16_;
#line 62 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_b_data_size_ = _data_->b_data_length1;
#line 65 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->retval = TRUE;
#line 66 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->a_read_size = (gsize) (-1);
#line 435 "test-utils.c"
			{
#line 67 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
				_data_->_tmp18_ = TRUE;
#line 67 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
				while (TRUE) {
#line 67 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->_tmp19_ = _data_->_tmp18_;
#line 67 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					if (!_data_->_tmp19_) {
#line 79 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_data_->_tmp20_ = _data_->a_read_size;
#line 79 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						if (!(_data_->_tmp20_ > ((gsize) 0))) {
#line 79 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
							break;
#line 451 "test-utils.c"
						}
					}
#line 67 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->_tmp18_ = FALSE;
#line 69 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->_tmp21_ = _data_->a_input;
#line 69 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->_tmp22_ = _data_->a_data;
#line 69 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->_tmp22__length1 = _data_->a_data_length1;
#line 69 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->_state_ = 3;
#line 69 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					g_input_stream_read_async (_data_->_tmp21_, _data_->_tmp22_, (gsize) _data_->_tmp22__length1, G_PRIORITY_DEFAULT, NULL, folks_test_utils_loadable_icons_content_equal_ready, _data_);
#line 69 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					return FALSE;
#line 468 "test-utils.c"
					_state_3:
#line 69 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->_tmp23_ = 0L;
#line 69 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->_tmp23_ = g_input_stream_read_finish (_data_->_tmp21_, _data_->_res_, &_data_->_inner_error_);
#line 69 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->_tmp24_ = _data_->_tmp23_;
#line 69 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					if (_data_->_inner_error_ != NULL) {
#line 69 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_data_->b_data = (g_free (_data_->b_data), NULL);
#line 69 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_data_->a_data = (g_free (_data_->a_data), NULL);
#line 69 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_g_object_unref0 (_data_->b_input);
#line 69 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_g_free0 (_data_->b_type);
#line 69 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_g_object_unref0 (_data_->a_input);
#line 69 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_g_free0 (_data_->a_type);
#line 490 "test-utils.c"
						goto __catch0_g_error;
					}
#line 69 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->a_read_size = (gsize) _data_->_tmp24_;
#line 70 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->_tmp25_ = _data_->b_input;
#line 70 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->_tmp26_ = _data_->b_data;
#line 70 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->_tmp26__length1 = _data_->b_data_length1;
#line 70 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->_state_ = 4;
#line 70 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					g_input_stream_read_async (_data_->_tmp25_, _data_->_tmp26_, (gsize) _data_->_tmp26__length1, G_PRIORITY_DEFAULT, NULL, folks_test_utils_loadable_icons_content_equal_ready, _data_);
#line 70 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					return FALSE;
#line 507 "test-utils.c"
					_state_4:
#line 70 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->_tmp27_ = 0L;
#line 70 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->_tmp27_ = g_input_stream_read_finish (_data_->_tmp25_, _data_->_res_, &_data_->_inner_error_);
#line 70 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->b_read_size = _data_->_tmp27_;
#line 70 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					if (_data_->_inner_error_ != NULL) {
#line 70 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_data_->b_data = (g_free (_data_->b_data), NULL);
#line 70 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_data_->a_data = (g_free (_data_->a_data), NULL);
#line 70 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_g_object_unref0 (_data_->b_input);
#line 70 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_g_free0 (_data_->b_type);
#line 70 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_g_object_unref0 (_data_->a_input);
#line 70 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_g_free0 (_data_->a_type);
#line 529 "test-utils.c"
						goto __catch0_g_error;
					}
#line 72 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->_tmp29_ = _data_->a_read_size;
#line 72 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->_tmp30_ = _data_->b_read_size;
#line 72 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					if (_data_->_tmp29_ != ((gsize) _data_->_tmp30_)) {
#line 72 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_data_->_tmp28_ = TRUE;
#line 540 "test-utils.c"
					} else {
#line 73 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_data_->_tmp31_ = _data_->a_data;
#line 73 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_data_->_tmp31__length1 = _data_->a_data_length1;
#line 73 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_data_->_tmp32_ = _data_->b_data;
#line 73 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_data_->_tmp32__length1 = _data_->b_data_length1;
#line 73 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_data_->_tmp33_ = _data_->a_read_size;
#line 73 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_data_->_tmp34_ = 0;
#line 73 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_data_->_tmp34_ = memcmp (_data_->_tmp31_, _data_->_tmp32_, _data_->_tmp33_);
#line 73 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_data_->_tmp28_ = _data_->_tmp34_ != 0;
#line 558 "test-utils.c"
					}
#line 72 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					_data_->_tmp35_ = _data_->_tmp28_;
#line 72 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
					if (_data_->_tmp35_) {
#line 75 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						_data_->retval = FALSE;
#line 76 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
						break;
#line 568 "test-utils.c"
					}
				}
			}
#line 81 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp36_ = _data_->a_input;
#line 81 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_state_ = 5;
#line 81 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			g_input_stream_close_async (_data_->_tmp36_, G_PRIORITY_DEFAULT, NULL, folks_test_utils_loadable_icons_content_equal_ready, _data_);
#line 81 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			return FALSE;
#line 580 "test-utils.c"
			_state_5:
#line 81 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			g_input_stream_close_finish (_data_->_tmp36_, _data_->_res_, &_data_->_inner_error_);
#line 81 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			if (_data_->_inner_error_ != NULL) {
#line 81 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
				_data_->b_data = (g_free (_data_->b_data), NULL);
#line 81 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
				_data_->a_data = (g_free (_data_->a_data), NULL);
#line 81 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
				_g_object_unref0 (_data_->b_input);
#line 81 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
				_g_free0 (_data_->b_type);
#line 81 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
				_g_object_unref0 (_data_->a_input);
#line 81 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
				_g_free0 (_data_->a_type);
#line 598 "test-utils.c"
				goto __catch0_g_error;
			}
#line 82 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp37_ = _data_->b_input;
#line 82 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_state_ = 6;
#line 82 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			g_input_stream_close_async (_data_->_tmp37_, G_PRIORITY_DEFAULT, NULL, folks_test_utils_loadable_icons_content_equal_ready, _data_);
#line 82 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			return FALSE;
#line 609 "test-utils.c"
			_state_6:
#line 82 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			g_input_stream_close_finish (_data_->_tmp37_, _data_->_res_, &_data_->_inner_error_);
#line 82 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			if (_data_->_inner_error_ != NULL) {
#line 82 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
				_data_->b_data = (g_free (_data_->b_data), NULL);
#line 82 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
				_data_->a_data = (g_free (_data_->a_data), NULL);
#line 82 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
				_g_object_unref0 (_data_->b_input);
#line 82 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
				_g_free0 (_data_->b_type);
#line 82 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
				_g_object_unref0 (_data_->a_input);
#line 82 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
				_g_free0 (_data_->a_type);
#line 627 "test-utils.c"
				goto __catch0_g_error;
			}
#line 52 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->b_data = (g_free (_data_->b_data), NULL);
#line 52 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->a_data = (g_free (_data_->a_data), NULL);
#line 52 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_g_object_unref0 (_data_->b_input);
#line 52 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_g_free0 (_data_->b_type);
#line 52 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_g_object_unref0 (_data_->a_input);
#line 52 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_g_free0 (_data_->a_type);
#line 642 "test-utils.c"
		}
		goto __finally0;
		__catch0_g_error:
		{
#line 52 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->e1 = _data_->_inner_error_;
#line 52 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_inner_error_ = NULL;
#line 86 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->retval = FALSE;
#line 87 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp38_ = _data_->e1;
#line 87 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_data_->_tmp39_ = _data_->_tmp38_->message;
#line 87 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			g_warning ("test-utils.vala:87: Failed to read loadable icon for comparison: %s", _data_->_tmp39_);
#line 52 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			_g_error_free0 (_data_->e1);
#line 661 "test-utils.c"
		}
		__finally0:
#line 52 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		if (_data_->_inner_error_ != NULL) {
#line 52 "/home/treitter/collabora/folks/tests/lib/test-utils.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 52 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			g_clear_error (&_data_->_inner_error_);
#line 52 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			return FALSE;
#line 672 "test-utils.c"
		}
	}
#line 92 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	_data_->result = _data_->retval;
#line 92 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	if (_data_->_state_ == 0) {
#line 92 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 681 "test-utils.c"
	} else {
#line 92 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 685 "test-utils.c"
	}
#line 92 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	g_object_unref (_data_->_async_result);
#line 92 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	return FALSE;
#line 41 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	if (_data_->_state_ == 0) {
#line 41 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 695 "test-utils.c"
	} else {
#line 41 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 699 "test-utils.c"
	}
#line 41 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	g_object_unref (_data_->_async_result);
#line 41 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	return FALSE;
#line 705 "test-utils.c"
}


FolksTestUtils* folks_test_utils_construct (GType object_type) {
	FolksTestUtils* self = NULL;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	self = (FolksTestUtils*) g_type_create_instance (object_type);
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	return self;
#line 715 "test-utils.c"
}


FolksTestUtils* folks_test_utils_new (void) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	return folks_test_utils_construct (FOLKS_TYPE_TEST_UTILS);
#line 722 "test-utils.c"
}


static void folks_value_test_utils_init (GValue* value) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	value->data[0].v_pointer = NULL;
#line 729 "test-utils.c"
}


static void folks_value_test_utils_free_value (GValue* value) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	if (value->data[0].v_pointer) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		folks_test_utils_unref (value->data[0].v_pointer);
#line 738 "test-utils.c"
	}
}


static void folks_value_test_utils_copy_value (const GValue* src_value, GValue* dest_value) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	if (src_value->data[0].v_pointer) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		dest_value->data[0].v_pointer = folks_test_utils_ref (src_value->data[0].v_pointer);
#line 748 "test-utils.c"
	} else {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		dest_value->data[0].v_pointer = NULL;
#line 752 "test-utils.c"
	}
}


static gpointer folks_value_test_utils_peek_pointer (const GValue* value) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	return value->data[0].v_pointer;
#line 760 "test-utils.c"
}


static gchar* folks_value_test_utils_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	if (collect_values[0].v_pointer) {
#line 767 "test-utils.c"
		FolksTestUtils* object;
		object = collect_values[0].v_pointer;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		if (object->parent_instance.g_class == NULL) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 774 "test-utils.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 778 "test-utils.c"
		}
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		value->data[0].v_pointer = folks_test_utils_ref (object);
#line 782 "test-utils.c"
	} else {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		value->data[0].v_pointer = NULL;
#line 786 "test-utils.c"
	}
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	return NULL;
#line 790 "test-utils.c"
}


static gchar* folks_value_test_utils_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	FolksTestUtils** object_p;
	object_p = collect_values[0].v_pointer;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	if (!object_p) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 801 "test-utils.c"
	}
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	if (!value->data[0].v_pointer) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		*object_p = NULL;
#line 807 "test-utils.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		*object_p = value->data[0].v_pointer;
#line 811 "test-utils.c"
	} else {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		*object_p = folks_test_utils_ref (value->data[0].v_pointer);
#line 815 "test-utils.c"
	}
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	return NULL;
#line 819 "test-utils.c"
}


GParamSpec* folks_param_spec_test_utils (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	FolksParamSpecTestUtils* spec;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	g_return_val_if_fail (g_type_is_a (object_type, FOLKS_TYPE_TEST_UTILS), NULL);
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	return G_PARAM_SPEC (spec);
#line 833 "test-utils.c"
}


gpointer folks_value_get_test_utils (const GValue* value) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, FOLKS_TYPE_TEST_UTILS), NULL);
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	return value->data[0].v_pointer;
#line 842 "test-utils.c"
}


void folks_value_set_test_utils (GValue* value, gpointer v_object) {
	FolksTestUtils* old;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, FOLKS_TYPE_TEST_UTILS));
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	old = value->data[0].v_pointer;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	if (v_object) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, FOLKS_TYPE_TEST_UTILS));
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		value->data[0].v_pointer = v_object;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		folks_test_utils_ref (value->data[0].v_pointer);
#line 862 "test-utils.c"
	} else {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		value->data[0].v_pointer = NULL;
#line 866 "test-utils.c"
	}
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	if (old) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		folks_test_utils_unref (old);
#line 872 "test-utils.c"
	}
}


void folks_value_take_test_utils (GValue* value, gpointer v_object) {
	FolksTestUtils* old;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, FOLKS_TYPE_TEST_UTILS));
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	old = value->data[0].v_pointer;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	if (v_object) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, FOLKS_TYPE_TEST_UTILS));
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		value->data[0].v_pointer = v_object;
#line 891 "test-utils.c"
	} else {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		value->data[0].v_pointer = NULL;
#line 895 "test-utils.c"
	}
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	if (old) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		folks_test_utils_unref (old);
#line 901 "test-utils.c"
	}
}


static void folks_test_utils_class_init (FolksTestUtilsClass * klass) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	folks_test_utils_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	FOLKS_TEST_UTILS_CLASS (klass)->finalize = folks_test_utils_finalize;
#line 911 "test-utils.c"
}


static void folks_test_utils_instance_init (FolksTestUtils * self) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	self->ref_count = 1;
#line 918 "test-utils.c"
}


static void folks_test_utils_finalize (FolksTestUtils* obj) {
	FolksTestUtils * self;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	self = FOLKS_TEST_UTILS (obj);
#line 926 "test-utils.c"
}


GType folks_test_utils_get_type (void) {
	static volatile gsize folks_test_utils_type_id__volatile = 0;
	if (g_once_init_enter (&folks_test_utils_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { folks_value_test_utils_init, folks_value_test_utils_free_value, folks_value_test_utils_copy_value, folks_value_test_utils_peek_pointer, "p", folks_value_test_utils_collect_value, "p", folks_value_test_utils_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (FolksTestUtilsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) folks_test_utils_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FolksTestUtils), 0, (GInstanceInitFunc) folks_test_utils_instance_init, &g_define_type_value_table };
		static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
		GType folks_test_utils_type_id;
		folks_test_utils_type_id = g_type_register_fundamental (g_type_fundamental_next (), "FolksTestUtils", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&folks_test_utils_type_id__volatile, folks_test_utils_type_id);
	}
	return folks_test_utils_type_id__volatile;
}


gpointer folks_test_utils_ref (gpointer instance) {
	FolksTestUtils* self;
	self = instance;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	g_atomic_int_inc (&self->ref_count);
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	return instance;
#line 951 "test-utils.c"
}


void folks_test_utils_unref (gpointer instance) {
	FolksTestUtils* self;
	self = instance;
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		FOLKS_TEST_UTILS_GET_CLASS (self)->finalize (self);
#line 23 "/home/treitter/collabora/folks/tests/lib/test-utils.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 964 "test-utils.c"
	}
}



