mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 10:42:11 +01:00
gio/test-codegen: use valid interface name for FdPassing test
So that it can be ran for real, not only tested for generation
This commit is contained in:
parent
7b750972e8
commit
3d313147f0
@ -2650,53 +2650,53 @@ test_standalone_interface_info (void)
|
|||||||
|
|
||||||
/* ---------------------------------------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------------------------------------- */
|
||||||
static gboolean
|
static gboolean
|
||||||
handle_hello_fd (FooiGenFDPassing *object,
|
handle_hello_fd (FooiGenTestFDPassing *object,
|
||||||
GDBusMethodInvocation *invocation,
|
GDBusMethodInvocation *invocation,
|
||||||
GUnixFDList *fd_list,
|
GUnixFDList *fd_list,
|
||||||
const gchar *arg_greeting)
|
const gchar *arg_greeting)
|
||||||
{
|
{
|
||||||
foo_igen_fdpassing_complete_hello_fd (object, invocation, fd_list, arg_greeting);
|
foo_igen_test_fdpassing_complete_hello_fd (object, invocation, fd_list, arg_greeting);
|
||||||
return G_DBUS_METHOD_INVOCATION_HANDLED;
|
return G_DBUS_METHOD_INVOCATION_HANDLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_64
|
#if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_64
|
||||||
static gboolean
|
static gboolean
|
||||||
handle_no_annotation (FooiGenFDPassing *object,
|
handle_no_annotation (FooiGenTestFDPassing *object,
|
||||||
GDBusMethodInvocation *invocation,
|
GDBusMethodInvocation *invocation,
|
||||||
GUnixFDList *fd_list,
|
GUnixFDList *fd_list,
|
||||||
GVariant *arg_greeting,
|
GVariant *arg_greeting,
|
||||||
const gchar *arg_greeting_locale)
|
const gchar *arg_greeting_locale)
|
||||||
{
|
{
|
||||||
foo_igen_fdpassing_complete_no_annotation (object, invocation, fd_list, arg_greeting, arg_greeting_locale);
|
foo_igen_test_fdpassing_complete_no_annotation (object, invocation, fd_list, arg_greeting, arg_greeting_locale);
|
||||||
return G_DBUS_METHOD_INVOCATION_HANDLED;
|
return G_DBUS_METHOD_INVOCATION_HANDLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
handle_no_annotation_nested (FooiGenFDPassing *object,
|
handle_no_annotation_nested (FooiGenTestFDPassing *object,
|
||||||
GDBusMethodInvocation *invocation,
|
GDBusMethodInvocation *invocation,
|
||||||
GUnixFDList *fd_list,
|
GUnixFDList *fd_list,
|
||||||
GVariant *arg_files)
|
GVariant *arg_files)
|
||||||
{
|
{
|
||||||
foo_igen_fdpassing_complete_no_annotation_nested (object, invocation, fd_list);
|
foo_igen_test_fdpassing_complete_no_annotation_nested (object, invocation, fd_list);
|
||||||
return G_DBUS_METHOD_INVOCATION_HANDLED;
|
return G_DBUS_METHOD_INVOCATION_HANDLED;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
static gboolean
|
static gboolean
|
||||||
handle_no_annotation (FooiGenFDPassing *object,
|
handle_no_annotation (FooiGenTestFDPassing *object,
|
||||||
GDBusMethodInvocation *invocation,
|
GDBusMethodInvocation *invocation,
|
||||||
GVariant *arg_greeting,
|
GVariant *arg_greeting,
|
||||||
const gchar *arg_greeting_locale)
|
const gchar *arg_greeting_locale)
|
||||||
{
|
{
|
||||||
foo_igen_fdpassing_complete_no_annotation (object, invocation, arg_greeting, arg_greeting_locale);
|
foo_igen_test_fdpassing_complete_no_annotation (object, invocation, arg_greeting, arg_greeting_locale);
|
||||||
return G_DBUS_METHOD_INVOCATION_HANDLED;
|
return G_DBUS_METHOD_INVOCATION_HANDLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
handle_no_annotation_nested (FooiGenFDPassing *object,
|
handle_no_annotation_nested (FooiGenTestFDPassing *object,
|
||||||
GDBusMethodInvocation *invocation,
|
GDBusMethodInvocation *invocation,
|
||||||
GVariant *arg_files)
|
GVariant *arg_files)
|
||||||
{
|
{
|
||||||
foo_igen_fdpassing_complete_no_annotation_nested (object, invocation);
|
foo_igen_test_fdpassing_complete_no_annotation_nested (object, invocation);
|
||||||
return G_DBUS_METHOD_INVOCATION_HANDLED;
|
return G_DBUS_METHOD_INVOCATION_HANDLED;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -2709,7 +2709,7 @@ handle_no_annotation_nested (FooiGenFDPassing *object,
|
|||||||
static void
|
static void
|
||||||
test_unix_fd_list (void)
|
test_unix_fd_list (void)
|
||||||
{
|
{
|
||||||
FooiGenFDPassingIface iface;
|
FooiGenTestFDPassingIface iface;
|
||||||
|
|
||||||
g_test_bug ("https://gitlab.gnome.org/GNOME/glib/issues/1726");
|
g_test_bug ("https://gitlab.gnome.org/GNOME/glib/issues/1726");
|
||||||
|
|
||||||
|
@ -475,7 +475,7 @@
|
|||||||
</interface>
|
</interface>
|
||||||
<unknownTag/>
|
<unknownTag/>
|
||||||
|
|
||||||
<interface name="FDPassing">
|
<interface name="test.FDPassing">
|
||||||
<method name="HelloFD">
|
<method name="HelloFD">
|
||||||
<annotation name="org.gtk.GDBus.C.UnixFD" value="1"/>
|
<annotation name="org.gtk.GDBus.C.UnixFD" value="1"/>
|
||||||
<arg name="greeting" direction="in" type="s"/>
|
<arg name="greeting" direction="in" type="s"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user