mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 02:50:41 -05:00
e9cd2b60a6
This means we can eliminate the use of scattered singletons that isn't added by the tests or the test framework itself. tests: Don't get backend from old singleton getter Either use the ownership chain, or the explicit test context instance pointer. tests/wayland: Pass context to test client constructor So that we can get the Wayland compositor directly from the context. tests: Don't get display from singleton tests/client: Make test client carry a context pointer tests/runner: Have test cases carry a context pointer tests/wayland/test-driver: Get backend from context Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2718>
31 lines
1.1 KiB
C
31 lines
1.1 KiB
C
/*
|
|
* Copyright (C) 2021-2022 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_WAYLAND_TEST_UTILS_H
|
|
#define META_WAYLAND_TEST_UTILS_H
|
|
|
|
#include "meta/meta-context.h"
|
|
|
|
typedef struct _MetaWaylandTestClient MetaWaylandTestClient;
|
|
|
|
MetaWaylandTestClient * meta_wayland_test_client_new (MetaContext *context,
|
|
const char *test_client_name);
|
|
|
|
void meta_wayland_test_client_finish (MetaWaylandTestClient *wayland_test_client);
|
|
|
|
#endif /* META_WAYLAND_TEST_UTILS_H */
|