diff options
author | Garrett Regier <garrettregier@gmail.com> | 2015-11-20 02:26:30 -0800 |
---|---|---|
committer | Garrett Regier <garrettregier@gmail.com> | 2015-12-15 16:57:45 -0800 |
commit | 8b539f808ac5a79a2c797915eb2c8ae1e68b667a (patch) | |
tree | 23a01ea7779d794a55f4516418259f02135beb69 | |
parent | a1dba0c613226faefb2eb620380097c9776cdedb (diff) | |
download | libpeas-8b539f808ac5a79a2c797915eb2c8ae1e68b667a.tar.gz |
Remove the Has Missing Prerequisite extension test
This hasn't been used since the GJS plugin loader
was removed and is no longer needed.
4 files changed, 7 insertions, 117 deletions
diff --git a/tests/libpeas/introspection/Makefile.am b/tests/libpeas/introspection/Makefile.am index fb51757..3cd8b41 100644 --- a/tests/libpeas/introspection/Makefile.am +++ b/tests/libpeas/introspection/Makefile.am @@ -13,15 +13,13 @@ libintrospection_1_0_la_LIBADD = \ $(top_builddir)/libpeas/libpeas-1.0.la libintrospection_1_0_la_SOURCES = \ - introspection-base.c \ - introspection-base.h \ - introspection-callable.c \ - introspection-callable.h \ - introspection-has-missing-prerequisite.c \ - introspection-has-missing-prerequisite.h \ - introspection-has-prerequisite.c \ - introspection-has-prerequisite.h \ - introspection-unimplemented.c \ + introspection-base.c \ + introspection-base.h \ + introspection-callable.c \ + introspection-callable.h \ + introspection-has-prerequisite.c \ + introspection-has-prerequisite.h \ + introspection-unimplemented.c \ introspection-unimplemented.h -include $(INTROSPECTION_MAKEFILE) diff --git a/tests/libpeas/introspection/introspection-has-missing-prerequisite.c b/tests/libpeas/introspection/introspection-has-missing-prerequisite.c deleted file mode 100644 index 0d1c357..0000000 --- a/tests/libpeas/introspection/introspection-has-missing-prerequisite.c +++ /dev/null @@ -1,37 +0,0 @@ -/* - * introspection-has-prerequisite.h - * This file is part of libpeas - * - * Copyright (C) 2011 Garrett Regier - * - * libpeas 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. - * - * libpeas is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -#include "introspection-has-missing-prerequisite.h" - -#include "introspection-callable.h" - -G_DEFINE_INTERFACE(IntrospectionHasMissingPrerequisite, - introspection_has_missing_prerequisite, - INTROSPECTION_TYPE_CALLABLE) - -void -introspection_has_missing_prerequisite_default_init (IntrospectionHasMissingPrerequisiteInterface *iface) -{ -} diff --git a/tests/libpeas/introspection/introspection-has-missing-prerequisite.h b/tests/libpeas/introspection/introspection-has-missing-prerequisite.h deleted file mode 100644 index e229a58..0000000 --- a/tests/libpeas/introspection/introspection-has-missing-prerequisite.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * introspection-has-prerequisite.h - * This file is part of libpeas - * - * Copyright (C) 2011 - Garrett Regier - * - * libpeas 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. - * - * libpeas is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -#ifndef __INTROSPECTION_HAS_MISSING_PREREQUISITE_H__ -#define __INTROSPECTION_HAS_MISSING_PREREQUISITE_H__ - -#include <glib-object.h> - -G_BEGIN_DECLS - -/* - * Type checking and casting macros - */ -#define INTROSPECTION_TYPE_HAS_MISSING_PREREQUISITE (introspection_has_missing_prerequisite_get_type ()) -#define INTROSPECTION_HAS_MISSING_PREREQUISITE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), INTROSPECTION_TYPE_HAS_MISSING_PREREQUISITE, IntrospectionHasMissingPrerequisite)) -#define INTROSPECTION_HAS_MISSING_PREREQUISITE_IFACE(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), INTROSPECTION_TYPE_HAS_MISSING_PREREQUISITE, IntrospectionHasMissingPrerequisiteInterface)) -#define INTROSPECTION_IS_HAS_MISSING_PREREQUISITE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), INTROSPECTION_TYPE_HAS_MISSING_PREREQUISITE)) -#define INTROSPECTION_HAS_MISSING_PREREQUISITE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), INTROSPECTION_TYPE_HAS_MISSING_PREREQUISITE, IntrospectionHasMissingPrerequisiteInterface)) - -typedef struct _IntrospectionHasMissingPrerequisite IntrospectionHasMissingPrerequisite; /* dummy typedef */ -typedef struct _IntrospectionHasMissingPrerequisiteInterface IntrospectionHasMissingPrerequisiteInterface; - -struct _IntrospectionHasMissingPrerequisiteInterface { - GTypeInterface g_iface; -}; - -/* - * Public methods - */ -GType introspection_has_missing_prerequisite_get_type (void) G_GNUC_CONST; - -G_END_DECLS - -#endif /* __INTROSPECTION_HAS_MISSING_PREREQUISITE_H__ */ diff --git a/tests/libpeas/testing/testing-extension.c b/tests/libpeas/testing/testing-extension.c index f09349f..1fb3182 100644 --- a/tests/libpeas/testing/testing-extension.c +++ b/tests/libpeas/testing/testing-extension.c @@ -35,7 +35,6 @@ #include "introspection-base.h" #include "introspection-callable.h" -#include "introspection-has-missing-prerequisite.h" #include "introspection-has-prerequisite.h" #include "introspection-unimplemented.h" @@ -171,24 +170,6 @@ test_extension_create_invalid (PeasEngine *engine, NULL); g_assert (!PEAS_IS_EXTENSION (extension)); - /* This cannot be tested in PyGI and Seed's log handler messes this up */ - if (g_strcmp0 (extension_plugin, "extension-c") != 0 && - g_strcmp0 (extension_plugin, "extension-lua51") != 0 && - g_strcmp0 (extension_plugin, "extension-python") != 0 && - g_strcmp0 (extension_plugin, "extension-python3") != 0) - { - testing_util_push_log_hook ("*cannot add *IntrospectionHasMissingPrerequisite* " - "which does not conform to *IntrospectionCallable*"); - testing_util_push_log_hook ("*Type *HasMissingPrerequisite* is invalid"); - testing_util_push_log_hook ("*does not provide a *HasMissingPrerequisite* extension"); - - /* Missing Prerequisite */ - extension = peas_engine_create_extension (engine, info, - INTROSPECTION_TYPE_HAS_MISSING_PREREQUISITE, - NULL); - g_assert (!PEAS_IS_EXTENSION (extension)); - } - /* Not loaded */ g_assert (peas_engine_unload_plugin (engine, info)); extension = peas_engine_create_extension (engine, info, |