From 3d313147f0c3ec8c30a28447c072f6c13520f14d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 30 Jun 2023 04:53:23 +0200 Subject: [PATCH] gio/test-codegen: use valid interface name for FdPassing test So that it can be ran for real, not only tested for generation --- gio/tests/gdbus-test-codegen.c | 22 +++++++++++----------- gio/tests/test-codegen.xml | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/gio/tests/gdbus-test-codegen.c b/gio/tests/gdbus-test-codegen.c index 3fa83e761..9037dd021 100644 --- a/gio/tests/gdbus-test-codegen.c +++ b/gio/tests/gdbus-test-codegen.c @@ -2650,53 +2650,53 @@ test_standalone_interface_info (void) /* ---------------------------------------------------------------------------------------------------- */ static gboolean -handle_hello_fd (FooiGenFDPassing *object, +handle_hello_fd (FooiGenTestFDPassing *object, GDBusMethodInvocation *invocation, GUnixFDList *fd_list, 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; } #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_64 static gboolean -handle_no_annotation (FooiGenFDPassing *object, +handle_no_annotation (FooiGenTestFDPassing *object, GDBusMethodInvocation *invocation, GUnixFDList *fd_list, GVariant *arg_greeting, 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; } static gboolean -handle_no_annotation_nested (FooiGenFDPassing *object, +handle_no_annotation_nested (FooiGenTestFDPassing *object, GDBusMethodInvocation *invocation, GUnixFDList *fd_list, 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; } #else static gboolean -handle_no_annotation (FooiGenFDPassing *object, +handle_no_annotation (FooiGenTestFDPassing *object, GDBusMethodInvocation *invocation, GVariant *arg_greeting, 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; } static gboolean -handle_no_annotation_nested (FooiGenFDPassing *object, +handle_no_annotation_nested (FooiGenTestFDPassing *object, GDBusMethodInvocation *invocation, 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; } #endif @@ -2709,7 +2709,7 @@ handle_no_annotation_nested (FooiGenFDPassing *object, static void test_unix_fd_list (void) { - FooiGenFDPassingIface iface; + FooiGenTestFDPassingIface iface; g_test_bug ("https://gitlab.gnome.org/GNOME/glib/issues/1726"); diff --git a/gio/tests/test-codegen.xml b/gio/tests/test-codegen.xml index 3090cad4a..ae4eaa1ca 100644 --- a/gio/tests/test-codegen.xml +++ b/gio/tests/test-codegen.xml @@ -475,7 +475,7 @@ - +