tests/test-utils: Move test client path ensure helper to private header

It's only used from the test context, and the main test utils header
file will be used to export helper functionality, so move it out,
preparing for that.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
This commit is contained in:
Jonas Ådahl 2021-05-11 09:36:22 +02:00
parent 724a7eee74
commit d8107027ef
4 changed files with 28 additions and 5 deletions

View File

@ -27,7 +27,7 @@
#include "core/meta-context-private.h" #include "core/meta-context-private.h"
#include "tests/meta-backend-test.h" #include "tests/meta-backend-test.h"
#include "tests/meta-test-utils.h" #include "tests/meta-test-utils-private.h"
#include "wayland/meta-wayland.h" #include "wayland/meta-wayland.h"
#include "wayland/meta-xwayland.h" #include "wayland/meta-xwayland.h"

View File

@ -0,0 +1,26 @@
/*
* Copyright (C) 2017-2021 Red Hat, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program 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
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef META_TEST_UTILS_PRIVATE_H
#define META_TEST_UTILS_PRIVATE_H
#include "tests/meta-test-utils.h"
void meta_ensure_test_client_path (int argc,
char **argv);
#endif /* META_TEST_UTILS_PRIVATE_H */

View File

@ -19,7 +19,7 @@
#include "config.h" #include "config.h"
#include "tests/meta-test-utils.h" #include "tests/meta-test-utils-private.h"
#include <gio/gio.h> #include <gio/gio.h>
#include <string.h> #include <string.h>

View File

@ -82,7 +82,4 @@ void meta_test_client_destroy (MetaTestClient *client);
const char * meta_test_get_plugin_name (void); const char * meta_test_get_plugin_name (void);
void meta_ensure_test_client_path (int argc,
char **argv);
#endif /* TEST_UTILS_H */ #endif /* TEST_UTILS_H */