/* event-test.c generated by valac 0.29.2.5-8632, the Vala compiler
 * generated from event-test.vala, do not modify */

/* event-test.vala
 *
 * Copyright © 2012 Christian Dywan <christian@twotoasts.de>
 *
 * Based upon a C implementation (© 2010 Canonical Ltd) by:
 *  Mikkel Kamstrup Erlandsen <mikkel.kamstrup@canonical.com>
 *
 * This program 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 program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include "zeitgeist-datamodel.h"
#include <gio/gdesktopappinfo.h>
#include "tests.h"
#include <gio/gio.h>

#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_variant_type_free0(var) ((var == NULL) ? NULL : (var = (g_variant_type_free (var), NULL)))
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
#define _g_variant_builder_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_builder_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_byte_array_unref0(var) ((var == NULL) ? NULL : (var = (g_byte_array_unref (var), NULL)))
#define _g_ptr_array_unref0(var) ((var == NULL) ? NULL : (var = (g_ptr_array_unref (var), NULL)))
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);



gint _vala_main (gchar** argv, int argv_length1);
void create_empty_test (void);
static void _create_empty_test_gtest_func (void);
void create_full_test (void);
static void _create_full_test_gtest_func (void);
void actor_from_app_info_test (void);
static void _actor_from_app_info_test_gtest_func (void);
void from_variant_test (void);
static void _from_variant_test_gtest_func (void);
void from_variant_with_new_fields_test (void);
static void _from_variant_with_new_fields_test_gtest_func (void);
void empty_to_from_variant_test (void);
static void _empty_to_from_variant_test_gtest_func (void);
void with_one_subject_to_from_variant_test (void);
static void _with_one_subject_to_from_variant_test_gtest_func (void);
void three_events_to_from_variant_test (void);
static void _three_events_to_from_variant_test_gtest_func (void);
void zero_events_to_from_variant_test (void);
static void _zero_events_to_from_variant_test_gtest_func (void);
static void _g_object_unref0_ (gpointer var);


static void _create_empty_test_gtest_func (void) {
#line 30 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	create_empty_test ();
#line 75 "event-test.c"
}


static void _create_full_test_gtest_func (void) {
#line 31 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	create_full_test ();
#line 82 "event-test.c"
}


static void _actor_from_app_info_test_gtest_func (void) {
#line 32 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	actor_from_app_info_test ();
#line 89 "event-test.c"
}


static void _from_variant_test_gtest_func (void) {
#line 33 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	from_variant_test ();
#line 96 "event-test.c"
}


static void _from_variant_with_new_fields_test_gtest_func (void) {
#line 34 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	from_variant_with_new_fields_test ();
#line 103 "event-test.c"
}


static void _empty_to_from_variant_test_gtest_func (void) {
#line 35 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	empty_to_from_variant_test ();
#line 110 "event-test.c"
}


static void _with_one_subject_to_from_variant_test_gtest_func (void) {
#line 36 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	with_one_subject_to_from_variant_test ();
#line 117 "event-test.c"
}


static void _three_events_to_from_variant_test_gtest_func (void) {
#line 37 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	three_events_to_from_variant_test ();
#line 124 "event-test.c"
}


static void _zero_events_to_from_variant_test_gtest_func (void) {
#line 38 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	zero_events_to_from_variant_test ();
#line 131 "event-test.c"
}


gint _vala_main (gchar** argv, int argv_length1) {
	gint result = 0;
	gint _tmp0_ = 0;
#line 28 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_test_init (&argv_length1, &argv, NULL);
#line 30 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_test_add_func ("/Event/CreateEmpty", _create_empty_test_gtest_func);
#line 31 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_test_add_func ("/Event/CreateFull", _create_full_test_gtest_func);
#line 32 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_test_add_func ("/Event/ActorFromAppInfo", _actor_from_app_info_test_gtest_func);
#line 33 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_test_add_func ("/Event/FromVariant", _from_variant_test_gtest_func);
#line 34 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_test_add_func ("/Event/FromVariantWithNewFields", _from_variant_with_new_fields_test_gtest_func);
#line 35 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_test_add_func ("/Event/EmptyToFromVariant", _empty_to_from_variant_test_gtest_func);
#line 36 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_test_add_func ("/Event/WithOneSubjectToFromVariant", _with_one_subject_to_from_variant_test_gtest_func);
#line 37 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_test_add_func ("/Event/3EventsToFromVariant", _three_events_to_from_variant_test_gtest_func);
#line 38 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_test_add_func ("/Event/0EventsToFromVariant", _zero_events_to_from_variant_test_gtest_func);
#line 40 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp0_ = g_test_run ();
#line 40 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	result = _tmp0_;
#line 40 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	return result;
#line 164 "event-test.c"
}


int main (int argc, char ** argv) {
#if !GLIB_CHECK_VERSION (2,35,0)
	g_type_init ();
#endif
#line 26 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	return _vala_main (argv, argc);
#line 174 "event-test.c"
}


void create_empty_test (void) {
	ZeitgeistEvent* ev = NULL;
	ZeitgeistEvent* _tmp0_ = NULL;
	guint32 _tmp1_ = 0U;
	guint32 _tmp2_ = 0U;
	gint64 _tmp3_ = 0LL;
	gint64 _tmp4_ = 0LL;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	const gchar* _tmp10_ = NULL;
	const gchar* _tmp11_ = NULL;
	const gchar* _tmp12_ = NULL;
	gint _tmp13_ = 0;
	GByteArray* _tmp14_ = NULL;
	GByteArray* _tmp15_ = NULL;
#line 45 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp0_ = zeitgeist_event_new ();
#line 45 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	ev = _tmp0_;
#line 47 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp1_ = zeitgeist_event_get_id (ev);
#line 47 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp2_ = _tmp1_;
#line 47 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (_tmp2_ == ((guint32) 0), "ev.id == 0");
#line 48 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp3_ = zeitgeist_event_get_timestamp (ev);
#line 48 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp4_ = _tmp3_;
#line 48 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (_tmp4_ == ((gint64) 0), "ev.timestamp == 0");
#line 49 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp5_ = zeitgeist_event_get_interpretation (ev);
#line 49 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp6_ = _tmp5_;
#line 49 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp6_, ==, NULL);
#line 50 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp7_ = zeitgeist_event_get_manifestation (ev);
#line 50 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp8_ = _tmp7_;
#line 50 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp8_, ==, NULL);
#line 51 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp9_ = zeitgeist_event_get_actor (ev);
#line 51 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp10_ = _tmp9_;
#line 51 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp10_, ==, NULL);
#line 52 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp11_ = zeitgeist_event_get_origin (ev);
#line 52 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp12_ = _tmp11_;
#line 52 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp12_, ==, NULL);
#line 53 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp13_ = zeitgeist_event_num_subjects (ev);
#line 53 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpint (_tmp13_, ==, 0);
#line 54 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp14_ = zeitgeist_event_get_payload (ev);
#line 54 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp15_ = _tmp14_;
#line 54 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (_tmp15_ == NULL, "ev.payload == null");
#line 43 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_object_unref0 (ev);
#line 248 "event-test.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 75 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	return self ? g_object_ref (self) : NULL;
#line 255 "event-test.c"
}


void create_full_test (void) {
	ZeitgeistEvent* ev = NULL;
	ZeitgeistEvent* _tmp0_ = NULL;
	ZeitgeistSubject* _tmp1_ = NULL;
	ZeitgeistSubject* _tmp2_ = NULL;
	ZeitgeistSubject* _tmp3_ = NULL;
	guint32 _tmp4_ = 0U;
	guint32 _tmp5_ = 0U;
	gint64 _tmp6_ = 0LL;
	gint64 _tmp7_ = 0LL;
	const gchar* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	const gchar* _tmp10_ = NULL;
	const gchar* _tmp11_ = NULL;
	const gchar* _tmp12_ = NULL;
	const gchar* _tmp13_ = NULL;
	const gchar* _tmp14_ = NULL;
	const gchar* _tmp15_ = NULL;
	gint _tmp16_ = 0;
	GByteArray* _tmp17_ = NULL;
	GByteArray* _tmp18_ = NULL;
	ZeitgeistSubject* su = NULL;
	GPtrArray* _tmp19_ = NULL;
	GPtrArray* _tmp20_ = NULL;
	gconstpointer _tmp21_ = NULL;
	ZeitgeistSubject* _tmp22_ = NULL;
	const gchar* _tmp23_ = NULL;
	const gchar* _tmp24_ = NULL;
	const gchar* _tmp25_ = NULL;
	const gchar* _tmp26_ = NULL;
	const gchar* _tmp27_ = NULL;
	const gchar* _tmp28_ = NULL;
	const gchar* _tmp29_ = NULL;
	const gchar* _tmp30_ = NULL;
	const gchar* _tmp31_ = NULL;
	const gchar* _tmp32_ = NULL;
	const gchar* _tmp33_ = NULL;
	const gchar* _tmp34_ = NULL;
	const gchar* _tmp35_ = NULL;
	const gchar* _tmp36_ = NULL;
	const gchar* _tmp37_ = NULL;
	const gchar* _tmp38_ = NULL;
#line 59 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp0_ = zeitgeist_event_new_full (ZEITGEIST_ZG_ACCESS_EVENT, ZEITGEIST_ZG_USER_ACTIVITY, "application://firefox.desktop", NULL, NULL);
#line 59 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	ev = _tmp0_;
#line 61 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp1_ = zeitgeist_subject_new_full ("http://example.com", ZEITGEIST_NFO_WEBSITE, ZEITGEIST_NFO_REMOTE_DATA_OBJECT, "text/html", "http://example.com", "example.com", "net");
#line 61 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	zeitgeist_event_take_subject (ev, _tmp1_);
#line 64 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp2_ = zeitgeist_subject_new ();
#line 64 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp3_ = _tmp2_;
#line 64 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	zeitgeist_event_add_subject (ev, _tmp3_);
#line 64 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_object_unref0 (_tmp3_);
#line 66 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp4_ = zeitgeist_event_get_id (ev);
#line 66 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp5_ = _tmp4_;
#line 66 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (_tmp5_ == ((guint32) 0), "ev.id == 0");
#line 67 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp6_ = zeitgeist_event_get_timestamp (ev);
#line 67 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp7_ = _tmp6_;
#line 67 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (_tmp7_ == ((gint64) 0), "ev.timestamp == 0");
#line 68 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp8_ = zeitgeist_event_get_interpretation (ev);
#line 68 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp9_ = _tmp8_;
#line 68 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp9_, ==, ZEITGEIST_ZG_ACCESS_EVENT);
#line 69 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp10_ = zeitgeist_event_get_manifestation (ev);
#line 69 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp11_ = _tmp10_;
#line 69 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp11_, ==, ZEITGEIST_ZG_USER_ACTIVITY);
#line 70 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp12_ = zeitgeist_event_get_actor (ev);
#line 70 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp13_ = _tmp12_;
#line 70 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp13_, ==, "application://firefox.desktop");
#line 71 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp14_ = zeitgeist_event_get_origin (ev);
#line 71 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp15_ = _tmp14_;
#line 71 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp15_, ==, NULL);
#line 72 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp16_ = zeitgeist_event_num_subjects (ev);
#line 72 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpint (_tmp16_, ==, 2);
#line 73 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp17_ = zeitgeist_event_get_payload (ev);
#line 73 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp18_ = _tmp17_;
#line 73 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (_tmp18_ == NULL, "ev.payload == null");
#line 75 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp19_ = zeitgeist_event_get_subjects (ev);
#line 75 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp20_ = _tmp19_;
#line 75 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp21_ = g_ptr_array_index (_tmp20_, (guint) 1);
#line 75 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp22_ = _g_object_ref0 ((ZeitgeistSubject*) _tmp21_);
#line 75 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	su = _tmp22_;
#line 76 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp23_ = zeitgeist_subject_get_uri (su);
#line 76 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp24_ = _tmp23_;
#line 76 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp24_, ==, NULL);
#line 77 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp25_ = zeitgeist_subject_get_interpretation (su);
#line 77 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp26_ = _tmp25_;
#line 77 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp26_, ==, NULL);
#line 78 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp27_ = zeitgeist_subject_get_manifestation (su);
#line 78 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp28_ = _tmp27_;
#line 78 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp28_, ==, NULL);
#line 79 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp29_ = zeitgeist_subject_get_mimetype (su);
#line 79 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp30_ = _tmp29_;
#line 79 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp30_, ==, NULL);
#line 80 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp31_ = zeitgeist_subject_get_origin (su);
#line 80 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp32_ = _tmp31_;
#line 80 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp32_, ==, NULL);
#line 81 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp33_ = zeitgeist_subject_get_text (su);
#line 81 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp34_ = _tmp33_;
#line 81 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp34_, ==, NULL);
#line 82 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp35_ = zeitgeist_subject_get_storage (su);
#line 82 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp36_ = _tmp35_;
#line 82 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp36_, ==, NULL);
#line 83 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp37_ = zeitgeist_subject_get_current_uri (su);
#line 83 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp38_ = _tmp37_;
#line 83 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp38_, ==, NULL);
#line 57 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_object_unref0 (su);
#line 57 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_object_unref0 (ev);
#line 425 "event-test.c"
}


void actor_from_app_info_test (void) {
	GDesktopAppInfo* appinfo = NULL;
	GDesktopAppInfo* _tmp0_ = NULL;
	ZeitgeistEvent* ev = NULL;
	ZeitgeistEvent* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
#line 88 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp0_ = g_desktop_app_info_new_from_filename (DIR "/test.desktop");
#line 88 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	appinfo = _tmp0_;
#line 89 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (G_TYPE_CHECK_INSTANCE_TYPE (appinfo, g_app_info_get_type ()), "appinfo is AppInfo");
#line 91 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp1_ = zeitgeist_event_new ();
#line 91 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	ev = _tmp1_;
#line 92 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	zeitgeist_event_set_actor_from_app_info (ev, (GAppInfo*) appinfo);
#line 93 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp2_ = zeitgeist_event_get_actor (ev);
#line 93 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp3_ = _tmp2_;
#line 93 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp3_, ==, "application://test.desktop");
#line 86 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_object_unref0 (ev);
#line 86 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_object_unref0 (appinfo);
#line 458 "event-test.c"
}


static gpointer _g_byte_array_ref0 (gpointer self) {
#line 156 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	return self ? g_byte_array_ref (self) : NULL;
#line 465 "event-test.c"
}


void from_variant_test (void) {
	GVariantBuilder* b = NULL;
	GVariantType* _tmp0_ = NULL;
	GVariantType* _tmp1_ = NULL;
	GVariantBuilder* _tmp2_ = NULL;
	GVariantBuilder* _tmp3_ = NULL;
	GVariantType* _tmp4_ = NULL;
	GVariantType* _tmp5_ = NULL;
	GVariantType* _tmp6_ = NULL;
	GVariantType* _tmp7_ = NULL;
	GVariantType* _tmp8_ = NULL;
	GVariantType* _tmp9_ = NULL;
	GVariantType* _tmp10_ = NULL;
	GVariantType* _tmp11_ = NULL;
	GVariant* var = NULL;
	GVariant* _tmp12_ = NULL;
	ZeitgeistEvent* ev = NULL;
	guint32 _tmp17_ = 0U;
	guint32 _tmp18_ = 0U;
	gint64 _tmp19_ = 0LL;
	gint64 _tmp20_ = 0LL;
	const gchar* _tmp21_ = NULL;
	const gchar* _tmp22_ = NULL;
	const gchar* _tmp23_ = NULL;
	const gchar* _tmp24_ = NULL;
	const gchar* _tmp25_ = NULL;
	const gchar* _tmp26_ = NULL;
	const gchar* _tmp27_ = NULL;
	const gchar* _tmp28_ = NULL;
	gint _tmp29_ = 0;
	ZeitgeistSubject* su = NULL;
	GPtrArray* _tmp30_ = NULL;
	GPtrArray* _tmp31_ = NULL;
	gconstpointer _tmp32_ = NULL;
	ZeitgeistSubject* _tmp33_ = NULL;
	const gchar* _tmp34_ = NULL;
	const gchar* _tmp35_ = NULL;
	const gchar* _tmp36_ = NULL;
	const gchar* _tmp37_ = NULL;
	const gchar* _tmp38_ = NULL;
	const gchar* _tmp39_ = NULL;
	const gchar* _tmp40_ = NULL;
	const gchar* _tmp41_ = NULL;
	const gchar* _tmp42_ = NULL;
	const gchar* _tmp43_ = NULL;
	const gchar* _tmp44_ = NULL;
	const gchar* _tmp45_ = NULL;
	GByteArray* payload = NULL;
	GByteArray* _tmp46_ = NULL;
	GByteArray* _tmp47_ = NULL;
	GByteArray* _tmp48_ = NULL;
	guint _tmp49_ = 0U;
	guint8* _tmp50_ = NULL;
	gint _tmp50__length1 = 0;
	guint8 _tmp51_ = 0U;
	guint8* _tmp52_ = NULL;
	gint _tmp52__length1 = 0;
	guint8 _tmp53_ = 0U;
	guint8* _tmp54_ = NULL;
	gint _tmp54__length1 = 0;
	guint8 _tmp55_ = 0U;
	GError * _inner_error_ = NULL;
#line 98 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp0_ = g_variant_type_new ("(" ZEITGEIST_UTILS_SIG_EVENT ")");
#line 98 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp1_ = _tmp0_;
#line 98 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp2_ = g_variant_builder_new (_tmp1_);
#line 98 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp3_ = _tmp2_;
#line 98 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_variant_type_free0 (_tmp1_);
#line 98 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	b = _tmp3_;
#line 101 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp4_ = g_variant_type_new ("as");
#line 101 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp5_ = _tmp4_;
#line 101 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_open (b, _tmp5_);
#line 101 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_variant_type_free0 (_tmp5_);
#line 102 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", "27", NULL);
#line 103 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", "68", NULL);
#line 104 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", ZEITGEIST_ZG_ACCESS_EVENT, NULL);
#line 105 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", ZEITGEIST_ZG_USER_ACTIVITY, NULL);
#line 106 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", "application://foo.desktop", NULL);
#line 107 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_close (b);
#line 110 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp6_ = g_variant_type_new ("aas");
#line 110 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp7_ = _tmp6_;
#line 110 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_open (b, _tmp7_);
#line 110 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_variant_type_free0 (_tmp7_);
#line 111 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp8_ = g_variant_type_new ("as");
#line 111 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp9_ = _tmp8_;
#line 111 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_open (b, _tmp9_);
#line 111 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_variant_type_free0 (_tmp9_);
#line 112 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", "file:///tmp/foo.txt", NULL);
#line 113 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", ZEITGEIST_NFO_DOCUMENT, NULL);
#line 114 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", ZEITGEIST_NFO_FILE_DATA_OBJECT, NULL);
#line 115 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", "file://tmp", NULL);
#line 116 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", "text/plain", NULL);
#line 117 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", "foo.text", NULL);
#line 118 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", "36e5604e-7e1b-4ebd-bb6a-184c6ea99627", NULL);
#line 119 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_close (b);
#line 120 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_close (b);
#line 123 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp10_ = g_variant_type_new ("ay");
#line 123 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp11_ = _tmp10_;
#line 123 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_open (b, _tmp11_);
#line 123 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_variant_type_free0 (_tmp11_);
#line 124 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "y", 1, NULL);
#line 125 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "y", 2, NULL);
#line 126 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "y", 3, NULL);
#line 127 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_close (b);
#line 129 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp12_ = g_variant_builder_end (b);
#line 129 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_ref_sink (_tmp12_);
#line 129 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	var = _tmp12_;
#line 619 "event-test.c"
	{
		ZeitgeistEvent* _tmp13_ = NULL;
		ZeitgeistEvent* _tmp14_ = NULL;
		ZeitgeistEvent* _tmp15_ = NULL;
#line 133 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_tmp14_ = zeitgeist_event_new_from_variant (var, &_inner_error_);
#line 133 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_tmp13_ = _tmp14_;
#line 133 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 133 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			if (_inner_error_->domain == ZEITGEIST_DATA_MODEL_ERROR) {
#line 632 "event-test.c"
				goto __catch0_zeitgeist_data_model_error;
			}
#line 133 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			_g_object_unref0 (ev);
#line 133 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			_g_variant_unref0 (var);
#line 133 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			_g_variant_builder_unref0 (b);
#line 133 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 133 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			g_clear_error (&_inner_error_);
#line 133 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			return;
#line 647 "event-test.c"
		}
#line 133 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_tmp15_ = _tmp13_;
#line 133 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_tmp13_ = NULL;
#line 133 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_object_unref0 (ev);
#line 133 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		ev = _tmp15_;
#line 131 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_object_unref0 (_tmp13_);
#line 659 "event-test.c"
	}
	goto __finally0;
	__catch0_zeitgeist_data_model_error:
	{
		GError* _error_ = NULL;
		const gchar* _tmp16_ = NULL;
#line 131 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_error_ = _inner_error_;
#line 131 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_inner_error_ = NULL;
#line 137 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_tmp16_ = _error_->message;
#line 137 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		g_error ("event-test.vala:137: %s", _tmp16_);
#line 131 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_error_free0 (_error_);
#line 676 "event-test.c"
	}
	__finally0:
#line 131 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 131 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_object_unref0 (ev);
#line 131 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_variant_unref0 (var);
#line 131 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_variant_builder_unref0 (b);
#line 131 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 131 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		g_clear_error (&_inner_error_);
#line 131 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		return;
#line 693 "event-test.c"
	}
#line 140 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp17_ = zeitgeist_event_get_id (ev);
#line 140 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp18_ = _tmp17_;
#line 140 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (_tmp18_ == ((guint32) 27), "ev.id == 27");
#line 141 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp19_ = zeitgeist_event_get_timestamp (ev);
#line 141 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp20_ = _tmp19_;
#line 141 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (_tmp20_ == ((gint64) 68), "ev.timestamp == 68");
#line 142 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp21_ = zeitgeist_event_get_interpretation (ev);
#line 142 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp22_ = _tmp21_;
#line 142 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp22_, ==, ZEITGEIST_ZG_ACCESS_EVENT);
#line 143 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp23_ = zeitgeist_event_get_manifestation (ev);
#line 143 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp24_ = _tmp23_;
#line 143 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp24_, ==, ZEITGEIST_ZG_USER_ACTIVITY);
#line 144 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp25_ = zeitgeist_event_get_actor (ev);
#line 144 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp26_ = _tmp25_;
#line 144 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp26_, ==, "application://foo.desktop");
#line 145 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp27_ = zeitgeist_event_get_origin (ev);
#line 145 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp28_ = _tmp27_;
#line 145 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp28_, ==, NULL);
#line 146 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp29_ = zeitgeist_event_num_subjects (ev);
#line 146 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpint (_tmp29_, ==, 1);
#line 148 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp30_ = zeitgeist_event_get_subjects (ev);
#line 148 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp31_ = _tmp30_;
#line 148 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp32_ = g_ptr_array_index (_tmp31_, (guint) 0);
#line 148 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp33_ = _g_object_ref0 ((ZeitgeistSubject*) _tmp32_);
#line 148 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	su = _tmp33_;
#line 149 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp34_ = zeitgeist_subject_get_uri (su);
#line 149 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp35_ = _tmp34_;
#line 149 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp35_, ==, "file:///tmp/foo.txt");
#line 150 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp36_ = zeitgeist_subject_get_interpretation (su);
#line 150 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp37_ = _tmp36_;
#line 150 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp37_, ==, ZEITGEIST_NFO_DOCUMENT);
#line 151 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp38_ = zeitgeist_subject_get_manifestation (su);
#line 151 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp39_ = _tmp38_;
#line 151 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp39_, ==, ZEITGEIST_NFO_FILE_DATA_OBJECT);
#line 152 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp40_ = zeitgeist_subject_get_mimetype (su);
#line 152 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp41_ = _tmp40_;
#line 152 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp41_, ==, "text/plain");
#line 153 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp42_ = zeitgeist_subject_get_origin (su);
#line 153 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp43_ = _tmp42_;
#line 153 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp43_, ==, "file://tmp");
#line 154 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp44_ = zeitgeist_subject_get_storage (su);
#line 154 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp45_ = _tmp44_;
#line 154 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp45_, ==, "36e5604e-7e1b-4ebd-bb6a-184c6ea99627");
#line 156 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp46_ = zeitgeist_event_get_payload (ev);
#line 156 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp47_ = _tmp46_;
#line 156 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp48_ = _g_byte_array_ref0 (_tmp47_);
#line 156 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	payload = _tmp48_;
#line 157 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (payload != NULL, "payload != null");
#line 158 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp49_ = payload->len;
#line 158 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpuint (_tmp49_, ==, (guint) 3);
#line 159 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp50_ = payload->data;
#line 159 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp50__length1 = (gint) payload->len;
#line 159 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp51_ = _tmp50_[0];
#line 159 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpint ((gint) _tmp51_, ==, 1);
#line 160 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp52_ = payload->data;
#line 160 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp52__length1 = (gint) payload->len;
#line 160 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp53_ = _tmp52_[1];
#line 160 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpint ((gint) _tmp53_, ==, 2);
#line 161 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp54_ = payload->data;
#line 161 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp54__length1 = (gint) payload->len;
#line 161 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp55_ = _tmp54_[2];
#line 161 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpint ((gint) _tmp55_, ==, 3);
#line 96 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_byte_array_unref0 (payload);
#line 96 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_object_unref0 (su);
#line 96 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_object_unref0 (ev);
#line 96 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_variant_unref0 (var);
#line 96 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_variant_builder_unref0 (b);
#line 829 "event-test.c"
}


void from_variant_with_new_fields_test (void) {
	GVariantBuilder* b = NULL;
	GVariantType* _tmp0_ = NULL;
	GVariantType* _tmp1_ = NULL;
	GVariantBuilder* _tmp2_ = NULL;
	GVariantBuilder* _tmp3_ = NULL;
	GVariantType* _tmp4_ = NULL;
	GVariantType* _tmp5_ = NULL;
	GVariantType* _tmp6_ = NULL;
	GVariantType* _tmp7_ = NULL;
	GVariantType* _tmp8_ = NULL;
	GVariantType* _tmp9_ = NULL;
	GVariantType* _tmp10_ = NULL;
	GVariantType* _tmp11_ = NULL;
	GVariant* var = NULL;
	GVariant* _tmp12_ = NULL;
	ZeitgeistEvent* ev = NULL;
	guint32 _tmp17_ = 0U;
	guint32 _tmp18_ = 0U;
	gint64 _tmp19_ = 0LL;
	gint64 _tmp20_ = 0LL;
	const gchar* _tmp21_ = NULL;
	const gchar* _tmp22_ = NULL;
	const gchar* _tmp23_ = NULL;
	const gchar* _tmp24_ = NULL;
	const gchar* _tmp25_ = NULL;
	const gchar* _tmp26_ = NULL;
	const gchar* _tmp27_ = NULL;
	const gchar* _tmp28_ = NULL;
	gint _tmp29_ = 0;
	ZeitgeistSubject* su = NULL;
	GPtrArray* _tmp30_ = NULL;
	GPtrArray* _tmp31_ = NULL;
	gconstpointer _tmp32_ = NULL;
	ZeitgeistSubject* _tmp33_ = NULL;
	const gchar* _tmp34_ = NULL;
	const gchar* _tmp35_ = NULL;
	const gchar* _tmp36_ = NULL;
	const gchar* _tmp37_ = NULL;
	const gchar* _tmp38_ = NULL;
	const gchar* _tmp39_ = NULL;
	const gchar* _tmp40_ = NULL;
	const gchar* _tmp41_ = NULL;
	const gchar* _tmp42_ = NULL;
	const gchar* _tmp43_ = NULL;
	const gchar* _tmp44_ = NULL;
	const gchar* _tmp45_ = NULL;
	const gchar* _tmp46_ = NULL;
	const gchar* _tmp47_ = NULL;
	const gchar* _tmp48_ = NULL;
	const gchar* _tmp49_ = NULL;
	const gchar* _tmp50_ = NULL;
	const gchar* _tmp51_ = NULL;
	GByteArray* payload = NULL;
	GByteArray* _tmp52_ = NULL;
	GByteArray* _tmp53_ = NULL;
	GByteArray* _tmp54_ = NULL;
	guint _tmp55_ = 0U;
	guint8* _tmp56_ = NULL;
	gint _tmp56__length1 = 0;
	guint8 _tmp57_ = 0U;
	guint8* _tmp58_ = NULL;
	gint _tmp58__length1 = 0;
	guint8 _tmp59_ = 0U;
	guint8* _tmp60_ = NULL;
	gint _tmp60__length1 = 0;
	guint8 _tmp61_ = 0U;
	GError * _inner_error_ = NULL;
#line 166 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp0_ = g_variant_type_new ("(" ZEITGEIST_UTILS_SIG_EVENT ")");
#line 166 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp1_ = _tmp0_;
#line 166 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp2_ = g_variant_builder_new (_tmp1_);
#line 166 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp3_ = _tmp2_;
#line 166 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_variant_type_free0 (_tmp1_);
#line 166 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	b = _tmp3_;
#line 169 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp4_ = g_variant_type_new ("as");
#line 169 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp5_ = _tmp4_;
#line 169 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_open (b, _tmp5_);
#line 169 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_variant_type_free0 (_tmp5_);
#line 170 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", "27", NULL);
#line 171 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", "68", NULL);
#line 172 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", ZEITGEIST_ZG_ACCESS_EVENT, NULL);
#line 173 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", ZEITGEIST_ZG_USER_ACTIVITY, NULL);
#line 174 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", "application://foo.desktop", NULL);
#line 175 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", "origin", NULL);
#line 176 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_close (b);
#line 179 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp6_ = g_variant_type_new ("aas");
#line 179 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp7_ = _tmp6_;
#line 179 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_open (b, _tmp7_);
#line 179 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_variant_type_free0 (_tmp7_);
#line 180 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp8_ = g_variant_type_new ("as");
#line 180 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp9_ = _tmp8_;
#line 180 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_open (b, _tmp9_);
#line 180 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_variant_type_free0 (_tmp9_);
#line 181 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", "file:///tmp/foo.txt", NULL);
#line 182 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", ZEITGEIST_NFO_DOCUMENT, NULL);
#line 183 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", ZEITGEIST_NFO_FILE_DATA_OBJECT, NULL);
#line 184 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", "file:///tmp", NULL);
#line 185 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", "text/plain", NULL);
#line 186 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", "foo.text", NULL);
#line 187 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", "36e5604e-7e1b-4ebd-bb6a-184c6ea99627", NULL);
#line 188 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", "file:///tmp/current.txt", NULL);
#line 189 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "s", "file:///tmp1", NULL);
#line 190 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_close (b);
#line 191 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_close (b);
#line 194 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp10_ = g_variant_type_new ("ay");
#line 194 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp11_ = _tmp10_;
#line 194 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_open (b, _tmp11_);
#line 194 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_variant_type_free0 (_tmp11_);
#line 195 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "y", 1, NULL);
#line 196 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "y", 2, NULL);
#line 197 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_add (b, "y", 3, NULL);
#line 198 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_builder_close (b);
#line 200 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp12_ = g_variant_builder_end (b);
#line 200 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_variant_ref_sink (_tmp12_);
#line 200 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	var = _tmp12_;
#line 995 "event-test.c"
	{
		ZeitgeistEvent* _tmp13_ = NULL;
		ZeitgeistEvent* _tmp14_ = NULL;
		ZeitgeistEvent* _tmp15_ = NULL;
#line 204 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_tmp14_ = zeitgeist_event_new_from_variant (var, &_inner_error_);
#line 204 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_tmp13_ = _tmp14_;
#line 204 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 204 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			if (_inner_error_->domain == ZEITGEIST_DATA_MODEL_ERROR) {
#line 1008 "event-test.c"
				goto __catch1_zeitgeist_data_model_error;
			}
#line 204 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			_g_object_unref0 (ev);
#line 204 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			_g_variant_unref0 (var);
#line 204 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			_g_variant_builder_unref0 (b);
#line 204 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 204 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			g_clear_error (&_inner_error_);
#line 204 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			return;
#line 1023 "event-test.c"
		}
#line 204 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_tmp15_ = _tmp13_;
#line 204 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_tmp13_ = NULL;
#line 204 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_object_unref0 (ev);
#line 204 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		ev = _tmp15_;
#line 202 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_object_unref0 (_tmp13_);
#line 1035 "event-test.c"
	}
	goto __finally1;
	__catch1_zeitgeist_data_model_error:
	{
		GError* _error_ = NULL;
		const gchar* _tmp16_ = NULL;
#line 202 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_error_ = _inner_error_;
#line 202 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_inner_error_ = NULL;
#line 208 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_tmp16_ = _error_->message;
#line 208 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		g_error ("event-test.vala:208: %s", _tmp16_);
#line 202 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_error_free0 (_error_);
#line 1052 "event-test.c"
	}
	__finally1:
#line 202 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 202 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_object_unref0 (ev);
#line 202 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_variant_unref0 (var);
#line 202 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_variant_builder_unref0 (b);
#line 202 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 202 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		g_clear_error (&_inner_error_);
#line 202 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		return;
#line 1069 "event-test.c"
	}
#line 211 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp17_ = zeitgeist_event_get_id (ev);
#line 211 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp18_ = _tmp17_;
#line 211 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (_tmp18_ == ((guint32) 27), "ev.id == 27");
#line 212 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp19_ = zeitgeist_event_get_timestamp (ev);
#line 212 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp20_ = _tmp19_;
#line 212 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (_tmp20_ == ((gint64) 68), "ev.timestamp == 68");
#line 213 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp21_ = zeitgeist_event_get_interpretation (ev);
#line 213 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp22_ = _tmp21_;
#line 213 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp22_, ==, ZEITGEIST_ZG_ACCESS_EVENT);
#line 214 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp23_ = zeitgeist_event_get_manifestation (ev);
#line 214 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp24_ = _tmp23_;
#line 214 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp24_, ==, ZEITGEIST_ZG_USER_ACTIVITY);
#line 215 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp25_ = zeitgeist_event_get_actor (ev);
#line 215 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp26_ = _tmp25_;
#line 215 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp26_, ==, "application://foo.desktop");
#line 216 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp27_ = zeitgeist_event_get_origin (ev);
#line 216 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp28_ = _tmp27_;
#line 216 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp28_, ==, "origin");
#line 217 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp29_ = zeitgeist_event_num_subjects (ev);
#line 217 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpint (_tmp29_, ==, 1);
#line 219 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp30_ = zeitgeist_event_get_subjects (ev);
#line 219 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp31_ = _tmp30_;
#line 219 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp32_ = g_ptr_array_index (_tmp31_, (guint) 0);
#line 219 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp33_ = _g_object_ref0 ((ZeitgeistSubject*) _tmp32_);
#line 219 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	su = _tmp33_;
#line 220 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp34_ = zeitgeist_subject_get_uri (su);
#line 220 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp35_ = _tmp34_;
#line 220 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp35_, ==, "file:///tmp/foo.txt");
#line 221 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp36_ = zeitgeist_subject_get_interpretation (su);
#line 221 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp37_ = _tmp36_;
#line 221 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp37_, ==, ZEITGEIST_NFO_DOCUMENT);
#line 222 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp38_ = zeitgeist_subject_get_manifestation (su);
#line 222 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp39_ = _tmp38_;
#line 222 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp39_, ==, ZEITGEIST_NFO_FILE_DATA_OBJECT);
#line 223 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp40_ = zeitgeist_subject_get_mimetype (su);
#line 223 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp41_ = _tmp40_;
#line 223 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp41_, ==, "text/plain");
#line 224 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp42_ = zeitgeist_subject_get_origin (su);
#line 224 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp43_ = _tmp42_;
#line 224 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp43_, ==, "file:///tmp");
#line 225 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp44_ = zeitgeist_subject_get_text (su);
#line 225 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp45_ = _tmp44_;
#line 225 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp45_, ==, "foo.text");
#line 226 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp46_ = zeitgeist_subject_get_storage (su);
#line 226 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp47_ = _tmp46_;
#line 226 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp47_, ==, "36e5604e-7e1b-4ebd-bb6a-184c6ea99627");
#line 227 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp48_ = zeitgeist_subject_get_current_uri (su);
#line 227 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp49_ = _tmp48_;
#line 227 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp49_, ==, "file:///tmp/current.txt");
#line 228 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp50_ = zeitgeist_subject_get_current_origin (su);
#line 228 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp51_ = _tmp50_;
#line 228 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp51_, ==, "file:///tmp1");
#line 230 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp52_ = zeitgeist_event_get_payload (ev);
#line 230 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp53_ = _tmp52_;
#line 230 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp54_ = _g_byte_array_ref0 (_tmp53_);
#line 230 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	payload = _tmp54_;
#line 231 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (payload != NULL, "payload != null");
#line 232 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp55_ = payload->len;
#line 232 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpuint (_tmp55_, ==, (guint) 3);
#line 233 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp56_ = payload->data;
#line 233 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp56__length1 = (gint) payload->len;
#line 233 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp57_ = _tmp56_[0];
#line 233 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpint ((gint) _tmp57_, ==, 1);
#line 234 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp58_ = payload->data;
#line 234 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp58__length1 = (gint) payload->len;
#line 234 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp59_ = _tmp58_[1];
#line 234 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpint ((gint) _tmp59_, ==, 2);
#line 235 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp60_ = payload->data;
#line 235 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp60__length1 = (gint) payload->len;
#line 235 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp61_ = _tmp60_[2];
#line 235 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpint ((gint) _tmp61_, ==, 3);
#line 164 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_byte_array_unref0 (payload);
#line 164 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_object_unref0 (su);
#line 164 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_object_unref0 (ev);
#line 164 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_variant_unref0 (var);
#line 164 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_variant_builder_unref0 (b);
#line 1223 "event-test.c"
}


void empty_to_from_variant_test (void) {
	ZeitgeistEvent* orig = NULL;
	ZeitgeistEvent* _tmp0_ = NULL;
	gint64 _tmp1_ = 0LL;
	ZeitgeistEvent* marshalled = NULL;
	guint32 _tmp9_ = 0U;
	guint32 _tmp10_ = 0U;
	gint64 _tmp11_ = 0LL;
	gint64 _tmp12_ = 0LL;
	gint64 _tmp13_ = 0LL;
	gint64 _tmp14_ = 0LL;
	const gchar* _tmp15_ = NULL;
	const gchar* _tmp16_ = NULL;
	const gchar* _tmp17_ = NULL;
	const gchar* _tmp18_ = NULL;
	const gchar* _tmp19_ = NULL;
	const gchar* _tmp20_ = NULL;
	const gchar* _tmp21_ = NULL;
	const gchar* _tmp22_ = NULL;
	gint _tmp23_ = 0;
	GByteArray* _tmp24_ = NULL;
	GByteArray* _tmp25_ = NULL;
	GError * _inner_error_ = NULL;
#line 241 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp0_ = zeitgeist_event_new ();
#line 241 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	orig = _tmp0_;
#line 242 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp1_ = zeitgeist_timestamp_from_now ();
#line 242 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	zeitgeist_event_set_timestamp (orig, _tmp1_);
#line 1258 "event-test.c"
	{
		ZeitgeistEvent* _tmp2_ = NULL;
		GVariant* _tmp3_ = NULL;
		GVariant* _tmp4_ = NULL;
		ZeitgeistEvent* _tmp5_ = NULL;
		ZeitgeistEvent* _tmp6_ = NULL;
		ZeitgeistEvent* _tmp7_ = NULL;
#line 246 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_tmp3_ = zeitgeist_event_to_variant (orig);
#line 246 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_tmp4_ = _tmp3_;
#line 246 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_tmp5_ = zeitgeist_event_new_from_variant (_tmp4_, &_inner_error_);
#line 246 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_tmp6_ = _tmp5_;
#line 246 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_variant_unref0 (_tmp4_);
#line 246 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_tmp2_ = _tmp6_;
#line 246 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 246 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			if (_inner_error_->domain == ZEITGEIST_DATA_MODEL_ERROR) {
#line 1282 "event-test.c"
				goto __catch2_zeitgeist_data_model_error;
			}
#line 246 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			_g_object_unref0 (marshalled);
#line 246 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			_g_object_unref0 (orig);
#line 246 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 246 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			g_clear_error (&_inner_error_);
#line 246 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
			return;
#line 1295 "event-test.c"
		}
#line 246 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_tmp7_ = _tmp2_;
#line 246 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_tmp2_ = NULL;
#line 246 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_object_unref0 (marshalled);
#line 246 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		marshalled = _tmp7_;
#line 244 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_object_unref0 (_tmp2_);
#line 1307 "event-test.c"
	}
	goto __finally2;
	__catch2_zeitgeist_data_model_error:
	{
		GError* _error_ = NULL;
		const gchar* _tmp8_ = NULL;
#line 244 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_error_ = _inner_error_;
#line 244 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_inner_error_ = NULL;
#line 250 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_tmp8_ = _error_->message;
#line 250 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		g_error ("event-test.vala:250: %s", _tmp8_);
#line 244 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_error_free0 (_error_);
#line 1324 "event-test.c"
	}
	__finally2:
#line 244 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 244 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_object_unref0 (marshalled);
#line 244 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_object_unref0 (orig);
#line 244 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 244 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		g_clear_error (&_inner_error_);
#line 244 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		return;
#line 1339 "event-test.c"
	}
#line 253 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp9_ = zeitgeist_event_get_id (marshalled);
#line 253 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp10_ = _tmp9_;
#line 253 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (_tmp10_ == ((guint32) 0), "marshalled.id == 0");
#line 254 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp11_ = zeitgeist_event_get_timestamp (marshalled);
#line 254 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp12_ = _tmp11_;
#line 254 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp13_ = zeitgeist_event_get_timestamp (orig);
#line 254 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp14_ = _tmp13_;
#line 254 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (_tmp12_ == _tmp14_, "marshalled.timestamp == orig.timestamp");
#line 255 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp15_ = zeitgeist_event_get_interpretation (marshalled);
#line 255 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp16_ = _tmp15_;
#line 255 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp16_, ==, NULL);
#line 256 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp17_ = zeitgeist_event_get_manifestation (marshalled);
#line 256 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp18_ = _tmp17_;
#line 256 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp18_, ==, NULL);
#line 257 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp19_ = zeitgeist_event_get_actor (marshalled);
#line 257 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp20_ = _tmp19_;
#line 257 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp20_, ==, NULL);
#line 258 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp21_ = zeitgeist_event_get_origin (marshalled);
#line 258 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp22_ = _tmp21_;
#line 258 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp22_, ==, NULL);
#line 259 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp23_ = zeitgeist_event_num_subjects (marshalled);
#line 259 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpint (_tmp23_, ==, 0);
#line 260 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp24_ = zeitgeist_event_get_payload (marshalled);
#line 260 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp25_ = _tmp24_;
#line 260 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (_tmp25_ == NULL, "marshalled.payload == null");
#line 239 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_object_unref0 (marshalled);
#line 239 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_object_unref0 (orig);
#line 1395 "event-test.c"
}


void with_one_subject_to_from_variant_test (void) {
	ZeitgeistEvent* orig = NULL;
	ZeitgeistEvent* _tmp0_ = NULL;
	ZeitgeistSubject* _tmp1_ = NULL;
	GPtrArray* _tmp2_ = NULL;
	GPtrArray* _tmp3_ = NULL;
	gconstpointer _tmp4_ = NULL;
	GByteArray* payload = NULL;
	GByteArray* _tmp5_ = NULL;
	guint8* byte = NULL;
	guint8* _tmp6_ = NULL;
	gint byte_length1 = 0;
	gint _byte_size_ = 0;
	GByteArray* _tmp7_ = NULL;
	GByteArray* _tmp8_ = NULL;
	ZeitgeistEvent* marshalled = NULL;
	GVariant* _tmp9_ = NULL;
	GVariant* _tmp10_ = NULL;
	ZeitgeistEvent* _tmp11_ = NULL;
	ZeitgeistEvent* _tmp12_ = NULL;
	guint32 _tmp13_ = 0U;
	guint32 _tmp14_ = 0U;
	const gchar* _tmp15_ = NULL;
	const gchar* _tmp16_ = NULL;
	const gchar* _tmp17_ = NULL;
	const gchar* _tmp18_ = NULL;
	const gchar* _tmp19_ = NULL;
	const gchar* _tmp20_ = NULL;
	const gchar* _tmp21_ = NULL;
	const gchar* _tmp22_ = NULL;
	gint _tmp23_ = 0;
	GByteArray* _tmp24_ = NULL;
	GByteArray* _tmp25_ = NULL;
	GByteArray* _tmp26_ = NULL;
	GByteArray* _tmp27_ = NULL;
	GByteArray* _tmp28_ = NULL;
	guint _tmp29_ = 0U;
	GByteArray* _tmp30_ = NULL;
	guint8* _tmp31_ = NULL;
	gint _tmp31__length1 = 0;
	guint8 _tmp32_ = 0U;
	ZeitgeistSubject* su = NULL;
	GPtrArray* _tmp33_ = NULL;
	GPtrArray* _tmp34_ = NULL;
	gconstpointer _tmp35_ = NULL;
	ZeitgeistSubject* _tmp36_ = NULL;
	ZeitgeistSubject* _tmp37_ = NULL;
	const gchar* _tmp38_ = NULL;
	const gchar* _tmp39_ = NULL;
	ZeitgeistSubject* _tmp40_ = NULL;
	const gchar* _tmp41_ = NULL;
	const gchar* _tmp42_ = NULL;
	ZeitgeistSubject* _tmp43_ = NULL;
	const gchar* _tmp44_ = NULL;
	const gchar* _tmp45_ = NULL;
	ZeitgeistSubject* _tmp46_ = NULL;
	const gchar* _tmp47_ = NULL;
	const gchar* _tmp48_ = NULL;
	ZeitgeistSubject* _tmp49_ = NULL;
	const gchar* _tmp50_ = NULL;
	const gchar* _tmp51_ = NULL;
	ZeitgeistSubject* _tmp52_ = NULL;
	const gchar* _tmp53_ = NULL;
	const gchar* _tmp54_ = NULL;
	ZeitgeistSubject* _tmp55_ = NULL;
	const gchar* _tmp56_ = NULL;
	const gchar* _tmp57_ = NULL;
	ZeitgeistSubject* _tmp58_ = NULL;
	const gchar* _tmp59_ = NULL;
	const gchar* _tmp60_ = NULL;
	GError * _inner_error_ = NULL;
#line 265 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp0_ = zeitgeist_event_new_full (ZEITGEIST_ZG_ACCESS_EVENT, ZEITGEIST_ZG_USER_ACTIVITY, "application://firefox.desktop", "origin", NULL);
#line 265 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	orig = _tmp0_;
#line 268 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp1_ = zeitgeist_subject_new_full ("http://example.com", ZEITGEIST_NFO_WEBSITE, ZEITGEIST_NFO_REMOTE_DATA_OBJECT, "text/html", "http://example.com", "example.com", "net");
#line 268 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	zeitgeist_event_take_subject (orig, _tmp1_);
#line 271 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp2_ = zeitgeist_event_get_subjects (orig);
#line 271 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp3_ = _tmp2_;
#line 271 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp4_ = g_ptr_array_index (_tmp3_, (guint) 0);
#line 271 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	zeitgeist_subject_set_current_uri ((ZeitgeistSubject*) _tmp4_, "http://current-example.com");
#line 273 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp5_ = g_byte_array_new ();
#line 273 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	payload = _tmp5_;
#line 274 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp6_ = g_new0 (guint8, 1);
#line 274 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp6_[0] = (guint8) 255;
#line 274 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	byte = _tmp6_;
#line 274 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	byte_length1 = 1;
#line 274 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_byte_size_ = byte_length1;
#line 275 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp7_ = payload;
#line 275 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_byte_array_append (_tmp7_, byte, byte_length1);
#line 276 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp8_ = payload;
#line 276 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	zeitgeist_event_set_payload (orig, _tmp8_);
#line 278 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp9_ = zeitgeist_event_to_variant (orig);
#line 278 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp10_ = _tmp9_;
#line 278 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp11_ = zeitgeist_event_new_from_variant (_tmp10_, &_inner_error_);
#line 278 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp12_ = _tmp11_;
#line 278 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_variant_unref0 (_tmp10_);
#line 278 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	marshalled = _tmp12_;
#line 278 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 278 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		byte = (g_free (byte), NULL);
#line 278 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_byte_array_unref0 (payload);
#line 278 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_object_unref0 (orig);
#line 278 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 278 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		g_clear_error (&_inner_error_);
#line 278 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		return;
#line 1534 "event-test.c"
	}
#line 280 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp13_ = zeitgeist_event_get_id (marshalled);
#line 280 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp14_ = _tmp13_;
#line 280 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (_tmp14_ == ((guint32) 0), "marshalled.id == 0");
#line 281 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp15_ = zeitgeist_event_get_interpretation (marshalled);
#line 281 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp16_ = _tmp15_;
#line 281 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp16_, ==, ZEITGEIST_ZG_ACCESS_EVENT);
#line 282 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp17_ = zeitgeist_event_get_manifestation (marshalled);
#line 282 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp18_ = _tmp17_;
#line 282 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp18_, ==, ZEITGEIST_ZG_USER_ACTIVITY);
#line 283 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp19_ = zeitgeist_event_get_actor (marshalled);
#line 283 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp20_ = _tmp19_;
#line 283 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp20_, ==, "application://firefox.desktop");
#line 284 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp21_ = zeitgeist_event_get_origin (marshalled);
#line 284 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp22_ = _tmp21_;
#line 284 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp22_, ==, "origin");
#line 285 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp23_ = zeitgeist_event_num_subjects (marshalled);
#line 285 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpint (_tmp23_, ==, 1);
#line 287 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp24_ = zeitgeist_event_get_payload (marshalled);
#line 287 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp25_ = _tmp24_;
#line 287 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp26_ = _g_byte_array_ref0 (_tmp25_);
#line 287 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_byte_array_unref0 (payload);
#line 287 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	payload = _tmp26_;
#line 288 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp27_ = payload;
#line 288 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (_tmp27_ != NULL, "payload != null");
#line 289 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp28_ = payload;
#line 289 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp29_ = _tmp28_->len;
#line 289 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (_tmp29_ == ((guint) 1), "payload.len == 1");
#line 290 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp30_ = payload;
#line 290 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp31_ = _tmp30_->data;
#line 290 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp31__length1 = (gint) _tmp30_->len;
#line 290 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp32_ = _tmp31_[0];
#line 290 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (((gint) _tmp32_) == 255, "payload.data[0] == 255");
#line 292 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp33_ = zeitgeist_event_get_subjects (marshalled);
#line 292 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp34_ = _tmp33_;
#line 292 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp35_ = g_ptr_array_index (_tmp34_, (guint) 0);
#line 292 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp36_ = _g_object_ref0 ((ZeitgeistSubject*) _tmp35_);
#line 292 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	su = _tmp36_;
#line 293 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp37_ = su;
#line 293 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp38_ = zeitgeist_subject_get_uri (_tmp37_);
#line 293 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp39_ = _tmp38_;
#line 293 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp39_, ==, "http://example.com");
#line 294 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp40_ = su;
#line 294 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp41_ = zeitgeist_subject_get_interpretation (_tmp40_);
#line 294 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp42_ = _tmp41_;
#line 294 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp42_, ==, ZEITGEIST_NFO_WEBSITE);
#line 295 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp43_ = su;
#line 295 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp44_ = zeitgeist_subject_get_manifestation (_tmp43_);
#line 295 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp45_ = _tmp44_;
#line 295 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp45_, ==, ZEITGEIST_NFO_REMOTE_DATA_OBJECT);
#line 296 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp46_ = su;
#line 296 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp47_ = zeitgeist_subject_get_mimetype (_tmp46_);
#line 296 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp48_ = _tmp47_;
#line 296 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp48_, ==, "text/html");
#line 297 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp49_ = su;
#line 297 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp50_ = zeitgeist_subject_get_origin (_tmp49_);
#line 297 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp51_ = _tmp50_;
#line 297 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp51_, ==, "http://example.com");
#line 298 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp52_ = su;
#line 298 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp53_ = zeitgeist_subject_get_text (_tmp52_);
#line 298 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp54_ = _tmp53_;
#line 298 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp54_, ==, "example.com");
#line 299 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp55_ = su;
#line 299 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp56_ = zeitgeist_subject_get_storage (_tmp55_);
#line 299 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp57_ = _tmp56_;
#line 299 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp57_, ==, "net");
#line 300 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp58_ = su;
#line 300 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp59_ = zeitgeist_subject_get_current_uri (_tmp58_);
#line 300 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp60_ = _tmp59_;
#line 300 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpstr (_tmp60_, ==, "http://current-example.com");
#line 263 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_object_unref0 (su);
#line 263 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_object_unref0 (marshalled);
#line 263 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	byte = (g_free (byte), NULL);
#line 263 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_byte_array_unref0 (payload);
#line 263 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_object_unref0 (orig);
#line 1684 "event-test.c"
}


static void _g_object_unref0_ (gpointer var) {
#line 305 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 1691 "event-test.c"
}


static gint g_ptr_array_get_length (GPtrArray* self) {
	gint result;
	guint _tmp0_ = 0U;
#line 4428 "/usr/share/vala-0.30/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, 0);
#line 4428 "/usr/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp0_ = self->len;
#line 4428 "/usr/share/vala-0.30/vapi/glib-2.0.vapi"
	result = (gint) _tmp0_;
#line 4428 "/usr/share/vala-0.30/vapi/glib-2.0.vapi"
	return result;
#line 1706 "event-test.c"
}


static void g_ptr_array_set_length (GPtrArray* self, gint value) {
	gint _tmp0_ = 0;
#line 4429 "/usr/share/vala-0.30/vapi/glib-2.0.vapi"
	g_return_if_fail (self != NULL);
#line 4429 "/usr/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp0_ = value;
#line 4429 "/usr/share/vala-0.30/vapi/glib-2.0.vapi"
	g_ptr_array_set_size (self, _tmp0_);
#line 1718 "event-test.c"
}


void three_events_to_from_variant_test (void) {
	GPtrArray* events = NULL;
	GPtrArray* _tmp0_ = NULL;
	GPtrArray* _tmp1_ = NULL;
	ZeitgeistEvent* _tmp2_ = NULL;
	GPtrArray* _tmp3_ = NULL;
	ZeitgeistEvent* _tmp4_ = NULL;
	GPtrArray* _tmp5_ = NULL;
	ZeitgeistEvent* _tmp6_ = NULL;
	GVariant* vevents = NULL;
	GPtrArray* _tmp7_ = NULL;
	GVariant* _tmp8_ = NULL;
	gsize _tmp9_ = 0UL;
	GPtrArray* _tmp10_ = NULL;
	GPtrArray* _tmp11_ = NULL;
	GPtrArray* _tmp12_ = NULL;
	GPtrArray* _tmp13_ = NULL;
	gint _tmp14_ = 0;
	gint _tmp15_ = 0;
	GPtrArray* _tmp16_ = NULL;
	gconstpointer _tmp17_ = NULL;
	GPtrArray* _tmp18_ = NULL;
	gconstpointer _tmp19_ = NULL;
	GPtrArray* _tmp20_ = NULL;
	gconstpointer _tmp21_ = NULL;
	GError * _inner_error_ = NULL;
#line 305 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp0_ = g_ptr_array_new_full ((guint) 0, _g_object_unref0_);
#line 305 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	events = _tmp0_;
#line 306 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp1_ = events;
#line 306 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp2_ = zeitgeist_event_new ();
#line 306 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_ptr_array_add (_tmp1_, _tmp2_);
#line 307 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp3_ = events;
#line 307 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp4_ = zeitgeist_event_new ();
#line 307 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_ptr_array_add (_tmp3_, _tmp4_);
#line 308 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp5_ = events;
#line 308 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp6_ = zeitgeist_event_new ();
#line 308 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_ptr_array_add (_tmp5_, _tmp6_);
#line 310 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp7_ = events;
#line 310 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp8_ = zeitgeist_events_to_variant (_tmp7_);
#line 310 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	vevents = _tmp8_;
#line 311 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp9_ = g_variant_n_children (vevents);
#line 311 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (_tmp9_ == ((gsize) 3), "vevents.n_children () == 3");
#line 313 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp11_ = zeitgeist_events_from_variant (vevents, &_inner_error_);
#line 313 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp10_ = _tmp11_;
#line 313 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 313 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_variant_unref0 (vevents);
#line 313 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_ptr_array_unref0 (events);
#line 313 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 313 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		g_clear_error (&_inner_error_);
#line 313 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		return;
#line 1796 "event-test.c"
	}
#line 313 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp12_ = _tmp10_;
#line 313 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp10_ = NULL;
#line 313 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_ptr_array_unref0 (events);
#line 313 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	events = _tmp12_;
#line 314 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp13_ = events;
#line 314 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp14_ = g_ptr_array_get_length (_tmp13_);
#line 314 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp15_ = _tmp14_;
#line 314 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (_tmp15_ == 3, "events.length == 3");
#line 315 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp16_ = events;
#line 315 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp17_ = g_ptr_array_index (_tmp16_, (guint) 0);
#line 315 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (G_TYPE_CHECK_INSTANCE_TYPE ((ZeitgeistEvent*) _tmp17_, ZEITGEIST_TYPE_EVENT), "events.get (0) is Event");
#line 316 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp18_ = events;
#line 316 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp19_ = g_ptr_array_index (_tmp18_, (guint) 1);
#line 316 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (G_TYPE_CHECK_INSTANCE_TYPE ((ZeitgeistEvent*) _tmp19_, ZEITGEIST_TYPE_EVENT), "events.get (1) is Event");
#line 317 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp20_ = events;
#line 317 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp21_ = g_ptr_array_index (_tmp20_, (guint) 2);
#line 317 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (G_TYPE_CHECK_INSTANCE_TYPE ((ZeitgeistEvent*) _tmp21_, ZEITGEIST_TYPE_EVENT), "events.get (2) is Event");
#line 303 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_ptr_array_unref0 (_tmp10_);
#line 303 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_variant_unref0 (vevents);
#line 303 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_ptr_array_unref0 (events);
#line 1838 "event-test.c"
}


void zero_events_to_from_variant_test (void) {
	GPtrArray* events = NULL;
	GPtrArray* _tmp0_ = NULL;
	GVariant* vevents = NULL;
	GPtrArray* _tmp1_ = NULL;
	GVariant* _tmp2_ = NULL;
	gsize _tmp3_ = 0UL;
	GPtrArray* _tmp4_ = NULL;
	GPtrArray* _tmp5_ = NULL;
	GPtrArray* _tmp6_ = NULL;
	GPtrArray* _tmp7_ = NULL;
	gint _tmp8_ = 0;
	gint _tmp9_ = 0;
	GError * _inner_error_ = NULL;
#line 323 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp0_ = g_ptr_array_new_full ((guint) 0, _g_object_unref0_);
#line 323 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	events = _tmp0_;
#line 324 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp1_ = events;
#line 324 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp2_ = zeitgeist_events_to_variant (_tmp1_);
#line 324 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	vevents = _tmp2_;
#line 325 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp3_ = g_variant_n_children (vevents);
#line 325 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_vala_assert (_tmp3_ == ((gsize) 0), "vevents.n_children () == 0");
#line 326 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp5_ = zeitgeist_events_from_variant (vevents, &_inner_error_);
#line 326 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp4_ = _tmp5_;
#line 326 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 326 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_variant_unref0 (vevents);
#line 326 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		_g_ptr_array_unref0 (events);
#line 326 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 326 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		g_clear_error (&_inner_error_);
#line 326 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
		return;
#line 1886 "event-test.c"
	}
#line 326 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp6_ = _tmp4_;
#line 326 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp4_ = NULL;
#line 326 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_ptr_array_unref0 (events);
#line 326 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	events = _tmp6_;
#line 327 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp7_ = events;
#line 327 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp8_ = g_ptr_array_get_length (_tmp7_);
#line 327 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_tmp9_ = _tmp8_;
#line 327 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	g_assert_cmpint (_tmp9_, ==, 0);
#line 321 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_ptr_array_unref0 (_tmp4_);
#line 321 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_variant_unref0 (vevents);
#line 321 "/home/rico/sources/repos-git/zeitgeist/fdo-zeitgeist/test/direct/event-test.vala"
	_g_ptr_array_unref0 (events);
#line 1910 "event-test.c"
}



