/* rygel-album-art-spec-test.c generated by valac 0.17.4.16-52707, the Vala compiler
 * generated from rygel-album-art-spec-test.vala, do not modify */

/*
 * Copyright (C) 2010 Jens Georg.
 *
 * Author: Jens Georg <mail@jensge.org>
 *
 * This file is part of Rygel.
 *
 * Rygel 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 of the License, or
 * (at your option) any later version.
 *
 * Rygel is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */

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


#define RYGEL_TYPE_MEDIA_ITEM (rygel_media_item_get_type ())
#define RYGEL_MEDIA_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_MEDIA_ITEM, RygelMediaItem))
#define RYGEL_MEDIA_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_MEDIA_ITEM, RygelMediaItemClass))
#define RYGEL_IS_MEDIA_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_MEDIA_ITEM))
#define RYGEL_IS_MEDIA_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_MEDIA_ITEM))
#define RYGEL_MEDIA_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_MEDIA_ITEM, RygelMediaItemClass))

typedef struct _RygelMediaItem RygelMediaItem;
typedef struct _RygelMediaItemClass RygelMediaItemClass;
typedef struct _RygelMediaItemPrivate RygelMediaItemPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))

#define RYGEL_TYPE_AUDIO_ITEM (rygel_audio_item_get_type ())
#define RYGEL_AUDIO_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_AUDIO_ITEM, RygelAudioItem))
#define RYGEL_AUDIO_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_AUDIO_ITEM, RygelAudioItemClass))
#define RYGEL_IS_AUDIO_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_AUDIO_ITEM))
#define RYGEL_IS_AUDIO_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_AUDIO_ITEM))
#define RYGEL_AUDIO_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_AUDIO_ITEM, RygelAudioItemClass))

typedef struct _RygelAudioItem RygelAudioItem;
typedef struct _RygelAudioItemClass RygelAudioItemClass;
typedef struct _RygelAudioItemPrivate RygelAudioItemPrivate;

#define RYGEL_TYPE_MUSIC_ITEM (rygel_music_item_get_type ())
#define RYGEL_MUSIC_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_MUSIC_ITEM, RygelMusicItem))
#define RYGEL_MUSIC_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_MUSIC_ITEM, RygelMusicItemClass))
#define RYGEL_IS_MUSIC_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_MUSIC_ITEM))
#define RYGEL_IS_MUSIC_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_MUSIC_ITEM))
#define RYGEL_MUSIC_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_MUSIC_ITEM, RygelMusicItemClass))

typedef struct _RygelMusicItem RygelMusicItem;
typedef struct _RygelMusicItemClass RygelMusicItemClass;
typedef struct _RygelMusicItemPrivate RygelMusicItemPrivate;

#define RYGEL_TYPE_ALBUM_ART_SPEC_TEST (rygel_album_art_spec_test_get_type ())
#define RYGEL_ALBUM_ART_SPEC_TEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_ALBUM_ART_SPEC_TEST, RygelAlbumArtSpecTest))
#define RYGEL_ALBUM_ART_SPEC_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_ALBUM_ART_SPEC_TEST, RygelAlbumArtSpecTestClass))
#define RYGEL_IS_ALBUM_ART_SPEC_TEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_ALBUM_ART_SPEC_TEST))
#define RYGEL_IS_ALBUM_ART_SPEC_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_ALBUM_ART_SPEC_TEST))
#define RYGEL_ALBUM_ART_SPEC_TEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_ALBUM_ART_SPEC_TEST, RygelAlbumArtSpecTestClass))

typedef struct _RygelAlbumArtSpecTest RygelAlbumArtSpecTest;
typedef struct _RygelAlbumArtSpecTestClass RygelAlbumArtSpecTestClass;
typedef struct _RygelAlbumArtSpecTestPrivate RygelAlbumArtSpecTestPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define RYGEL_TYPE_MEDIA_ART_STORE (rygel_media_art_store_get_type ())
#define RYGEL_MEDIA_ART_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_MEDIA_ART_STORE, RygelMediaArtStore))
#define RYGEL_MEDIA_ART_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_MEDIA_ART_STORE, RygelMediaArtStoreClass))
#define RYGEL_IS_MEDIA_ART_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_MEDIA_ART_STORE))
#define RYGEL_IS_MEDIA_ART_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_MEDIA_ART_STORE))
#define RYGEL_MEDIA_ART_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_MEDIA_ART_STORE, RygelMediaArtStoreClass))

typedef struct _RygelMediaArtStore RygelMediaArtStore;
typedef struct _RygelMediaArtStoreClass RygelMediaArtStoreClass;
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

struct _RygelMediaItem {
	GObject parent_instance;
	RygelMediaItemPrivate * priv;
	gchar* title;
};

struct _RygelMediaItemClass {
	GObjectClass parent_class;
};

struct _RygelAudioItem {
	RygelMediaItem parent_instance;
	RygelAudioItemPrivate * priv;
};

struct _RygelAudioItemClass {
	RygelMediaItemClass parent_class;
};

struct _RygelMusicItem {
	RygelAudioItem parent_instance;
	RygelMusicItemPrivate * priv;
	gchar* artist;
	gchar* album;
};

struct _RygelMusicItemClass {
	RygelAudioItemClass parent_class;
};

struct _RygelAlbumArtSpecTest {
	GObject parent_instance;
	RygelAlbumArtSpecTestPrivate * priv;
};

struct _RygelAlbumArtSpecTestClass {
	GObjectClass parent_class;
};


static gpointer rygel_media_item_parent_class = NULL;
static gpointer rygel_audio_item_parent_class = NULL;
static gpointer rygel_music_item_parent_class = NULL;
static gpointer rygel_album_art_spec_test_parent_class = NULL;

GType rygel_media_item_get_type (void) G_GNUC_CONST;
enum  {
	RYGEL_MEDIA_ITEM_DUMMY_PROPERTY
};
RygelMediaItem* rygel_media_item_construct (GType object_type);
static void rygel_media_item_finalize (GObject* obj);
GType rygel_audio_item_get_type (void) G_GNUC_CONST;
enum  {
	RYGEL_AUDIO_ITEM_DUMMY_PROPERTY
};
RygelAudioItem* rygel_audio_item_new (void);
RygelAudioItem* rygel_audio_item_construct (GType object_type);
GType rygel_music_item_get_type (void) G_GNUC_CONST;
enum  {
	RYGEL_MUSIC_ITEM_DUMMY_PROPERTY
};
RygelMusicItem* rygel_music_item_new (void);
RygelMusicItem* rygel_music_item_construct (GType object_type);
static void rygel_music_item_finalize (GObject* obj);
GType rygel_album_art_spec_test_get_type (void) G_GNUC_CONST;
enum  {
	RYGEL_ALBUM_ART_SPEC_TEST_DUMMY_PROPERTY
};
gint rygel_album_art_spec_test_main (gchar** args, int args_length1);
RygelAlbumArtSpecTest* rygel_album_art_spec_test_new (void);
RygelAlbumArtSpecTest* rygel_album_art_spec_test_construct (GType object_type);
void rygel_album_art_spec_test_run (RygelAlbumArtSpecTest* self);
void rygel_album_art_spec_test_test_full_spec (RygelAlbumArtSpecTest* self);
GType rygel_media_art_store_get_type (void) G_GNUC_CONST;
RygelMediaArtStore* rygel_media_art_store_get_default (void);
GFile* rygel_media_art_store_get_media_art_file (RygelMediaArtStore* self, const gchar* type, RygelMusicItem* item, gboolean simple);


RygelMediaItem* rygel_media_item_construct (GType object_type) {
	RygelMediaItem * self = NULL;
#line 23 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	self = (RygelMediaItem*) g_object_new (object_type, NULL);
#line 23 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	return self;
#line 175 "rygel-album-art-spec-test.c"
}


static void rygel_media_item_class_init (RygelMediaItemClass * klass) {
#line 23 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	rygel_media_item_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	G_OBJECT_CLASS (klass)->finalize = rygel_media_item_finalize;
#line 184 "rygel-album-art-spec-test.c"
}


static void rygel_media_item_instance_init (RygelMediaItem * self) {
}


static void rygel_media_item_finalize (GObject* obj) {
	RygelMediaItem * self;
#line 23 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_MEDIA_ITEM, RygelMediaItem);
#line 24 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (self->title);
#line 23 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	G_OBJECT_CLASS (rygel_media_item_parent_class)->finalize (obj);
#line 200 "rygel-album-art-spec-test.c"
}


GType rygel_media_item_get_type (void) {
	static volatile gsize rygel_media_item_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_media_item_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelMediaItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_media_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelMediaItem), 0, (GInstanceInitFunc) rygel_media_item_instance_init, NULL };
		GType rygel_media_item_type_id;
		rygel_media_item_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelMediaItem", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
		g_once_init_leave (&rygel_media_item_type_id__volatile, rygel_media_item_type_id);
	}
	return rygel_media_item_type_id__volatile;
}


RygelAudioItem* rygel_audio_item_construct (GType object_type) {
	RygelAudioItem * self = NULL;
#line 27 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	self = (RygelAudioItem*) rygel_media_item_construct (object_type);
#line 27 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	return self;
#line 222 "rygel-album-art-spec-test.c"
}


RygelAudioItem* rygel_audio_item_new (void) {
#line 27 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	return rygel_audio_item_construct (RYGEL_TYPE_AUDIO_ITEM);
#line 229 "rygel-album-art-spec-test.c"
}


static void rygel_audio_item_class_init (RygelAudioItemClass * klass) {
#line 27 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	rygel_audio_item_parent_class = g_type_class_peek_parent (klass);
#line 236 "rygel-album-art-spec-test.c"
}


static void rygel_audio_item_instance_init (RygelAudioItem * self) {
}


GType rygel_audio_item_get_type (void) {
	static volatile gsize rygel_audio_item_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_audio_item_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelAudioItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_audio_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelAudioItem), 0, (GInstanceInitFunc) rygel_audio_item_instance_init, NULL };
		GType rygel_audio_item_type_id;
		rygel_audio_item_type_id = g_type_register_static (RYGEL_TYPE_MEDIA_ITEM, "RygelAudioItem", &g_define_type_info, 0);
		g_once_init_leave (&rygel_audio_item_type_id__volatile, rygel_audio_item_type_id);
	}
	return rygel_audio_item_type_id__volatile;
}


RygelMusicItem* rygel_music_item_construct (GType object_type) {
	RygelMusicItem * self = NULL;
#line 29 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	self = (RygelMusicItem*) rygel_audio_item_construct (object_type);
#line 29 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	return self;
#line 262 "rygel-album-art-spec-test.c"
}


RygelMusicItem* rygel_music_item_new (void) {
#line 29 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	return rygel_music_item_construct (RYGEL_TYPE_MUSIC_ITEM);
#line 269 "rygel-album-art-spec-test.c"
}


static void rygel_music_item_class_init (RygelMusicItemClass * klass) {
#line 29 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	rygel_music_item_parent_class = g_type_class_peek_parent (klass);
#line 29 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	G_OBJECT_CLASS (klass)->finalize = rygel_music_item_finalize;
#line 278 "rygel-album-art-spec-test.c"
}


static void rygel_music_item_instance_init (RygelMusicItem * self) {
}


static void rygel_music_item_finalize (GObject* obj) {
	RygelMusicItem * self;
#line 29 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_MUSIC_ITEM, RygelMusicItem);
#line 30 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (self->artist);
#line 31 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (self->album);
#line 29 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	G_OBJECT_CLASS (rygel_music_item_parent_class)->finalize (obj);
#line 296 "rygel-album-art-spec-test.c"
}


GType rygel_music_item_get_type (void) {
	static volatile gsize rygel_music_item_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_music_item_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelMusicItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_music_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelMusicItem), 0, (GInstanceInitFunc) rygel_music_item_instance_init, NULL };
		GType rygel_music_item_type_id;
		rygel_music_item_type_id = g_type_register_static (RYGEL_TYPE_AUDIO_ITEM, "RygelMusicItem", &g_define_type_info, 0);
		g_once_init_leave (&rygel_music_item_type_id__volatile, rygel_music_item_type_id);
	}
	return rygel_music_item_type_id__volatile;
}


gint rygel_album_art_spec_test_main (gchar** args, int args_length1) {
	gint result = 0;
	RygelAlbumArtSpecTest* _tmp0_;
	RygelAlbumArtSpecTest* test;
#line 36 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp0_ = rygel_album_art_spec_test_new ();
#line 36 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	test = _tmp0_;
#line 38 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	rygel_album_art_spec_test_run (test);
#line 40 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	result = 0;
#line 40 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_object_unref0 (test);
#line 40 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	return result;
#line 328 "rygel-album-art-spec-test.c"
}


int main (int argc, char ** argv) {
#line 35 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	g_thread_init (NULL);
#line 35 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	g_type_init ();
#line 35 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	return rygel_album_art_spec_test_main (argv, argc);
#line 339 "rygel-album-art-spec-test.c"
}


void rygel_album_art_spec_test_run (RygelAlbumArtSpecTest* self) {
#line 43 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	g_return_if_fail (self != NULL);
#line 44 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	rygel_album_art_spec_test_test_full_spec (self);
#line 348 "rygel-album-art-spec-test.c"
}


void rygel_album_art_spec_test_test_full_spec (RygelAlbumArtSpecTest* self) {
	RygelMediaArtStore* _tmp0_ = NULL;
	RygelMediaArtStore* store;
	RygelMusicItem* _tmp1_;
	RygelMusicItem* item;
	RygelMusicItem* _tmp2_;
	gchar* _tmp3_;
	RygelMusicItem* _tmp4_;
	gchar* _tmp5_;
	RygelMusicItem* _tmp6_;
	gchar* _tmp7_;
	RygelMusicItem* _tmp8_;
	GFile* _tmp9_ = NULL;
	GFile* file;
	GFile* _tmp10_;
	GFile* _tmp11_;
	gchar* _tmp12_ = NULL;
	gchar* _tmp13_;
	gboolean _tmp14_ = FALSE;
	RygelMusicItem* _tmp15_;
	GFile* _tmp16_ = NULL;
	GFile* _tmp17_;
	GFile* _tmp18_;
	gchar* _tmp19_ = NULL;
	gchar* _tmp20_;
	gboolean _tmp21_ = FALSE;
	RygelMusicItem* _tmp22_;
	RygelMusicItem* _tmp23_;
	gchar* _tmp24_;
	RygelMusicItem* _tmp25_;
	GFile* _tmp26_ = NULL;
	GFile* _tmp27_;
	GFile* _tmp28_;
	gchar* _tmp29_ = NULL;
	gchar* _tmp30_;
	gboolean _tmp31_ = FALSE;
	RygelMusicItem* _tmp32_;
	RygelMusicItem* _tmp33_;
	gchar* _tmp34_;
	RygelMusicItem* _tmp35_;
	gchar* _tmp36_;
	RygelMusicItem* _tmp37_;
	gchar* _tmp38_;
	RygelMusicItem* _tmp39_;
	GFile* _tmp40_ = NULL;
	GFile* _tmp41_;
	GFile* _tmp42_;
	gchar* _tmp43_ = NULL;
	gchar* _tmp44_;
	gboolean _tmp45_ = FALSE;
	RygelMusicItem* _tmp46_;
	RygelMusicItem* _tmp47_;
	gchar* _tmp48_;
	RygelMusicItem* _tmp49_;
	gchar* _tmp50_;
	RygelMusicItem* _tmp51_;
	gchar* _tmp52_;
	RygelMusicItem* _tmp53_;
	GFile* _tmp54_ = NULL;
	GFile* _tmp55_;
	GFile* _tmp56_;
	gchar* _tmp57_ = NULL;
	gchar* _tmp58_;
	gboolean _tmp59_ = FALSE;
	RygelMusicItem* _tmp60_;
	RygelMusicItem* _tmp61_;
	gchar* _tmp62_;
	RygelMusicItem* _tmp63_;
	gchar* _tmp64_;
	RygelMusicItem* _tmp65_;
	gchar* _tmp66_;
	RygelMusicItem* _tmp67_;
	GFile* _tmp68_ = NULL;
	GFile* _tmp69_;
	GFile* _tmp70_;
	gchar* _tmp71_ = NULL;
	gchar* _tmp72_;
	GFile* _tmp73_;
	gchar* _tmp74_ = NULL;
	gchar* _tmp75_;
	gboolean _tmp76_ = FALSE;
#line 48 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	g_return_if_fail (self != NULL);
#line 49 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp0_ = rygel_media_art_store_get_default ();
#line 49 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	store = _tmp0_;
#line 50 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp1_ = rygel_music_item_new ();
#line 50 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	item = _tmp1_;
#line 51 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp2_ = item;
#line 51 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp3_ = g_strdup ("metallica");
#line 51 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (_tmp2_->artist);
#line 51 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp2_->artist = _tmp3_;
#line 52 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp4_ = item;
#line 52 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp5_ = g_strdup ("and justice for all");
#line 52 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (_tmp4_->album);
#line 52 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp4_->album = _tmp5_;
#line 53 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp6_ = item;
#line 53 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp7_ = g_strdup ("Enter Sandman");
#line 53 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (((RygelMediaItem*) _tmp6_)->title);
#line 53 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	((RygelMediaItem*) _tmp6_)->title = _tmp7_;
#line 54 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp8_ = item;
#line 54 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp9_ = rygel_media_art_store_get_media_art_file (store, "album", _tmp8_, FALSE);
#line 54 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	file = _tmp9_;
#line 55 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp10_ = file;
#line 55 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_vala_assert (_tmp10_ != NULL, "file != null");
#line 56 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp11_ = file;
#line 56 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp12_ = g_file_get_uri (_tmp11_);
#line 56 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp13_ = _tmp12_;
#line 56 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp14_ = g_str_has_suffix (_tmp13_, "album-" "3c2234a7ce973bc1700e0c743d6a819c-" "3d422ba022ae0daa8f5454ba7dfa0f9a.jpeg");
#line 56 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_vala_assert (_tmp14_, "file.get_uri ().has_suffix                 (\"album-\" +                  \"3c2234a7ce973bc1700e0c743d6a819c-\" +                  \"3d422ba022ae0daa8f5454ba7dfa0f9a.jpeg\")");
#line 56 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (_tmp13_);
#line 61 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp15_ = item;
#line 61 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp16_ = rygel_media_art_store_get_media_art_file (store, "artist", _tmp15_, FALSE);
#line 61 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_object_unref0 (file);
#line 61 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	file = _tmp16_;
#line 62 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp17_ = file;
#line 62 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_vala_assert (_tmp17_ != NULL, "file != null");
#line 63 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp18_ = file;
#line 63 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp19_ = g_file_get_uri (_tmp18_);
#line 63 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp20_ = _tmp19_;
#line 63 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp21_ = g_str_has_suffix (_tmp20_, "artist-" "3c2234a7ce973bc1700e0c743d6a819c-" "3d422ba022ae0daa8f5454ba7dfa0f9a.jpeg");
#line 63 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_vala_assert (_tmp21_, "file.get_uri ().has_suffix                 (\"artist-\" +                  \"3c2234a7ce973bc1700e0c743d6a819c-\" +                  \"3d422ba022ae0daa8f5454ba7dfa0f9a.jpeg\")");
#line 63 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (_tmp20_);
#line 68 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp22_ = rygel_music_item_new ();
#line 68 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_object_unref0 (item);
#line 68 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	item = _tmp22_;
#line 69 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp23_ = item;
#line 69 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp24_ = g_strdup ("radio ga ga");
#line 69 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (((RygelMediaItem*) _tmp23_)->title);
#line 69 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	((RygelMediaItem*) _tmp23_)->title = _tmp24_;
#line 70 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp25_ = item;
#line 70 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp26_ = rygel_media_art_store_get_media_art_file (store, "radio", _tmp25_, FALSE);
#line 70 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_object_unref0 (file);
#line 70 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	file = _tmp26_;
#line 71 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp27_ = file;
#line 71 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_vala_assert (_tmp27_ != NULL, "file != null");
#line 72 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp28_ = file;
#line 72 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp29_ = g_file_get_uri (_tmp28_);
#line 72 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp30_ = _tmp29_;
#line 72 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp31_ = g_str_has_suffix (_tmp30_, "radio-" "b924ce08955675c6a30c745d18286d21-" "7215ee9c7d9dc229d2921a40e899ec5f.jpeg");
#line 72 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_vala_assert (_tmp31_, "file.get_uri ().has_suffix                 (\"radio-\" +                  \"b924ce08955675c6a30c745d18286d21-\" +                  \"7215ee9c7d9dc229d2921a40e899ec5f.jpeg\")");
#line 72 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (_tmp30_);
#line 77 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp32_ = rygel_music_item_new ();
#line 77 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_object_unref0 (item);
#line 77 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	item = _tmp32_;
#line 78 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp33_ = item;
#line 78 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp34_ = g_strdup ("met[xXx]allica");
#line 78 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (_tmp33_->artist);
#line 78 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp33_->artist = _tmp34_;
#line 79 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp35_ = item;
#line 79 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp36_ = g_strdup ("and justice f[{]}or all");
#line 79 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (_tmp35_->album);
#line 79 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp35_->album = _tmp36_;
#line 80 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp37_ = item;
#line 80 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp38_ = g_strdup ("Enter Sandman");
#line 80 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (((RygelMediaItem*) _tmp37_)->title);
#line 80 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	((RygelMediaItem*) _tmp37_)->title = _tmp38_;
#line 81 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp39_ = item;
#line 81 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp40_ = rygel_media_art_store_get_media_art_file (store, "album", _tmp39_, FALSE);
#line 81 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_object_unref0 (file);
#line 81 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	file = _tmp40_;
#line 82 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp41_ = file;
#line 82 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_vala_assert (_tmp41_ != NULL, "file != null");
#line 83 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp42_ = file;
#line 83 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp43_ = g_file_get_uri (_tmp42_);
#line 83 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp44_ = _tmp43_;
#line 83 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp45_ = g_str_has_suffix (_tmp44_, "album-" "3c2234a7ce973bc1700e0c743d6a819c-" "3d422ba022ae0daa8f5454ba7dfa0f9a.jpeg");
#line 83 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_vala_assert (_tmp45_, "file.get_uri ().has_suffix                 (\"album-\" +                  \"3c2234a7ce973bc1700e0c743d6a819c-\" +                  \"3d422ba022ae0daa8f5454ba7dfa0f9a.jpeg\")");
#line 83 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (_tmp44_);
#line 90 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp46_ = rygel_music_item_new ();
#line 90 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_object_unref0 (item);
#line 90 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	item = _tmp46_;
#line 91 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp47_ = item;
#line 91 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp48_ = g_strdup ("met[xX[x]alli]ca");
#line 91 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (_tmp47_->artist);
#line 91 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp47_->artist = _tmp48_;
#line 92 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp49_ = item;
#line 92 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp50_ = g_strdup ("and justice for all");
#line 92 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (_tmp49_->album);
#line 92 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp49_->album = _tmp50_;
#line 93 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp51_ = item;
#line 93 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp52_ = g_strdup ("Enter Sandman");
#line 93 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (((RygelMediaItem*) _tmp51_)->title);
#line 93 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	((RygelMediaItem*) _tmp51_)->title = _tmp52_;
#line 94 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp53_ = item;
#line 94 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp54_ = rygel_media_art_store_get_media_art_file (store, "album", _tmp53_, FALSE);
#line 94 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_object_unref0 (file);
#line 94 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	file = _tmp54_;
#line 95 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp55_ = file;
#line 95 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_vala_assert (_tmp55_ != NULL, "file != null");
#line 96 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp56_ = file;
#line 96 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp57_ = g_file_get_uri (_tmp56_);
#line 96 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp58_ = _tmp57_;
#line 96 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp59_ = g_str_has_suffix (_tmp58_, "album-" "3c2234a7ce973bc1700e0c743d6a819c-" "3d422ba022ae0daa8f5454ba7dfa0f9a.jpeg");
#line 96 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_vala_assert (_tmp59_, "file.get_uri ().has_suffix                 (\"album-\" +                  \"3c2234a7ce973bc1700e0c743d6a819c-\" +                  \"3d422ba022ae0daa8f5454ba7dfa0f9a.jpeg\")");
#line 96 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (_tmp58_);
#line 114 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp60_ = rygel_music_item_new ();
#line 114 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_object_unref0 (item);
#line 114 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	item = _tmp60_;
#line 115 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp61_ = item;
#line 115 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp62_ = g_strdup ("Peter Fox");
#line 115 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (_tmp61_->artist);
#line 115 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp61_->artist = _tmp62_;
#line 116 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp63_ = item;
#line 116 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp64_ = g_strdup ("Stadtaffe");
#line 116 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (_tmp63_->album);
#line 116 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp63_->album = _tmp64_;
#line 117 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp65_ = item;
#line 117 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp66_ = g_strdup ("Schwarz zu Blau");
#line 117 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (((RygelMediaItem*) _tmp65_)->title);
#line 117 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	((RygelMediaItem*) _tmp65_)->title = _tmp66_;
#line 118 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp67_ = item;
#line 118 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp68_ = rygel_media_art_store_get_media_art_file (store, "album", _tmp67_, TRUE);
#line 118 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_object_unref0 (file);
#line 118 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	file = _tmp68_;
#line 119 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp69_ = file;
#line 119 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_vala_assert (_tmp69_ != NULL, "file != null");
#line 120 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp70_ = file;
#line 120 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp71_ = g_file_get_uri (_tmp70_);
#line 120 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp72_ = _tmp71_;
#line 120 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	g_debug ("rygel-album-art-spec-test.vala:120: %s", _tmp72_);
#line 120 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (_tmp72_);
#line 121 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp73_ = file;
#line 121 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp74_ = g_file_get_uri (_tmp73_);
#line 121 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp75_ = _tmp74_;
#line 121 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_tmp76_ = g_str_has_suffix (_tmp75_, "album-15f9f69ee3d841df6b1e2f56439f11a2.jpg");
#line 121 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_vala_assert (_tmp76_, "file.get_uri ().has_suffix                 (\"album-15f9f69ee3d841df6b1e2f56439f11a2.jpg\")");
#line 121 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_free0 (_tmp75_);
#line 48 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_object_unref0 (file);
#line 48 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_object_unref0 (item);
#line 48 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	_g_object_unref0 (store);
#line 729 "rygel-album-art-spec-test.c"
}


RygelAlbumArtSpecTest* rygel_album_art_spec_test_construct (GType object_type) {
	RygelAlbumArtSpecTest * self = NULL;
#line 34 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	self = (RygelAlbumArtSpecTest*) g_object_new (object_type, NULL);
#line 34 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	return self;
#line 739 "rygel-album-art-spec-test.c"
}


RygelAlbumArtSpecTest* rygel_album_art_spec_test_new (void) {
#line 34 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	return rygel_album_art_spec_test_construct (RYGEL_TYPE_ALBUM_ART_SPEC_TEST);
#line 746 "rygel-album-art-spec-test.c"
}


static void rygel_album_art_spec_test_class_init (RygelAlbumArtSpecTestClass * klass) {
#line 34 "/home/jens/Source/rygel/tests/rygel-album-art-spec-test.vala"
	rygel_album_art_spec_test_parent_class = g_type_class_peek_parent (klass);
#line 753 "rygel-album-art-spec-test.c"
}


static void rygel_album_art_spec_test_instance_init (RygelAlbumArtSpecTest * self) {
}


GType rygel_album_art_spec_test_get_type (void) {
	static volatile gsize rygel_album_art_spec_test_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_album_art_spec_test_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelAlbumArtSpecTestClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_album_art_spec_test_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelAlbumArtSpecTest), 0, (GInstanceInitFunc) rygel_album_art_spec_test_instance_init, NULL };
		GType rygel_album_art_spec_test_type_id;
		rygel_album_art_spec_test_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelAlbumArtSpecTest", &g_define_type_info, 0);
		g_once_init_leave (&rygel_album_art_spec_test_type_id__volatile, rygel_album_art_spec_test_type_id);
	}
	return rygel_album_art_spec_test_type_id__volatile;
}



