diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2021-05-11 09:35:04 +0200 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2021-07-15 11:42:40 +0200 |
commit | 724a7eee7496709f22de76213b8769ea90ab6393 (patch) | |
tree | 887bd90b27c2ed1897d975acb29c0d70f6071bb4 /src/tests/unit-tests.h | |
parent | e8742be568aa4d5ab69ed2681bb86ec6d28d1e9d (diff) | |
download | mutter-724a7eee7496709f22de76213b8769ea90ab6393.tar.gz |
tests: Move 'wait-for-X11-display' helper to MetaContextTest
Gets rid of a un-prefixed helper function relying on a global singleton.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
Diffstat (limited to 'src/tests/unit-tests.h')
-rw-r--r-- | src/tests/unit-tests.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/tests/unit-tests.h b/src/tests/unit-tests.h new file mode 100644 index 000000000..30f24979e --- /dev/null +++ b/src/tests/unit-tests.h @@ -0,0 +1,25 @@ +/* + * Copyright (C) 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 UNIT_TESTS_H +#define UNIT_TESTS_H + +#include "meta/meta-context.h" + +extern MetaContext *test_context; + +#endif /* UNIT_TESTS_H */ |