[mutter] tests: Prefix test plugin name getter with meta_



commit acb0a442248796e7260be7bc57339c2dafcc8a8c
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Fri May 7 00:47:01 2021 +0200

    tests: Prefix test plugin name getter with meta_
    
    It'll be used via the new shared library, so prefix it.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>

 src/tests/meta-test-utils.c                   | 2 +-
 src/tests/meta-test-utils.h                   | 2 +-
 src/tests/native-persistent-virtual-monitor.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tests/meta-test-utils.c b/src/tests/meta-test-utils.c
index ff3eb873de..bd4702bcb1 100644
--- a/src/tests/meta-test-utils.c
+++ b/src/tests/meta-test-utils.c
@@ -566,7 +566,7 @@ meta_test_client_destroy (MetaTestClient *client)
 }
 
 const char *
-test_get_plugin_name (void)
+meta_test_get_plugin_name (void)
 {
   const char *name;
 
diff --git a/src/tests/meta-test-utils.h b/src/tests/meta-test-utils.h
index 3100a8e735..51cc5f4165 100644
--- a/src/tests/meta-test-utils.h
+++ b/src/tests/meta-test-utils.h
@@ -82,7 +82,7 @@ MetaTestClient * meta_test_client_new (const char            *id,
 
 void meta_test_client_destroy (MetaTestClient *client);
 
-const char * test_get_plugin_name (void);
+const char * meta_test_get_plugin_name (void);
 
 void test_wait_for_x11_display (void);
 
diff --git a/src/tests/native-persistent-virtual-monitor.c b/src/tests/native-persistent-virtual-monitor.c
index d8d998cfe6..19a16cc5e8 100644
--- a/src/tests/native-persistent-virtual-monitor.c
+++ b/src/tests/native-persistent-virtual-monitor.c
@@ -88,7 +88,7 @@ main (int    argc,
 
   context = meta_create_context ("Persistent virtual monitor test");
   g_assert (meta_context_configure (context, &fake_argc, &fake_argv, &error));
-  meta_context_set_plugin_name (context, test_get_plugin_name ());
+  meta_context_set_plugin_name (context, meta_test_get_plugin_name ());
   g_assert (meta_context_setup (context, &error));
   g_assert (meta_context_start (context, &error));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]