mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
tests: use public accessors to get plugin description details
This commit is contained in:
parent
467fabf6c1
commit
b8304137d3
1 changed files with 7 additions and 6 deletions
|
@ -61,7 +61,7 @@ GST_START_TEST (test_registry)
|
||||||
|
|
||||||
/* one for the registry, one for the list */
|
/* one for the registry, one for the list */
|
||||||
GST_DEBUG ("refcount %d %s", GST_OBJECT_REFCOUNT_VALUE (plugin),
|
GST_DEBUG ("refcount %d %s", GST_OBJECT_REFCOUNT_VALUE (plugin),
|
||||||
plugin->desc.name);
|
gst_plugin_get_name (plugin));
|
||||||
ASSERT_OBJECT_REFCOUNT (plugin, "plugin in registry", 2);
|
ASSERT_OBJECT_REFCOUNT (plugin, "plugin in registry", 2);
|
||||||
|
|
||||||
gst_object_unref (plugin);
|
gst_object_unref (plugin);
|
||||||
|
@ -145,11 +145,12 @@ GST_START_TEST (test_find_plugin)
|
||||||
fail_if (plugin == NULL, "Failed to find coreelements plugin");
|
fail_if (plugin == NULL, "Failed to find coreelements plugin");
|
||||||
ASSERT_OBJECT_REFCOUNT (plugin, "plugin", 2);
|
ASSERT_OBJECT_REFCOUNT (plugin, "plugin", 2);
|
||||||
|
|
||||||
fail_unless_equals_string (plugin->desc.version, VERSION);
|
fail_unless_equals_string (gst_plugin_get_version (plugin), VERSION);
|
||||||
fail_unless_equals_string (plugin->desc.license, "LGPL");
|
fail_unless_equals_string (gst_plugin_get_license (plugin), "LGPL");
|
||||||
fail_unless_equals_string (plugin->desc.source, "gstreamer");
|
fail_unless_equals_string (gst_plugin_get_source (plugin), "gstreamer");
|
||||||
fail_unless_equals_string (plugin->desc.package, GST_PACKAGE_NAME);
|
fail_unless_equals_string (gst_plugin_get_package (plugin), GST_PACKAGE_NAME);
|
||||||
fail_unless_equals_string (plugin->desc.origin, GST_PACKAGE_ORIGIN);
|
fail_unless_equals_string (gst_plugin_get_origin (plugin),
|
||||||
|
GST_PACKAGE_ORIGIN);
|
||||||
|
|
||||||
gst_object_unref (plugin);
|
gst_object_unref (plugin);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue