File: testlib-compositor.h

package info (click to toggle)
phosh 0.51.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 9,620 kB
  • sloc: ansic: 81,727; xml: 3,903; python: 502; sh: 456; makefile: 34; lisp: 22; javascript: 6
file content (25 lines) | stat: -rw-r--r-- 886 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Copyright (C) 2023 Phosh.mobi e.V.
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

#include "testlib.h"

#pragma once

typedef struct _PhoshTestCompositorFixture {
  char                     *tmpdir;
  GTestDBus                *bus;
  PhoshTestCompositorState *state;
} PhoshTestCompositorFixture;


void phosh_test_compositor_setup    (PhoshTestCompositorFixture *fixture, gconstpointer unused);
void phosh_test_compositor_teardown (PhoshTestCompositorFixture *fixture, gconstpointer unused);

#define PHOSH_COMPOSITOR_TEST_ADD(name, func) g_test_add ((name), PhoshTestCompositorFixture, NULL, \
                                                          (gpointer)phosh_test_compositor_setup, \
                                                          (gpointer)(func), \
                                                          (gpointer)phosh_test_compositor_teardown)