File: testlib.h

package info (click to toggle)
feedbackd 0.8.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,060 kB
  • sloc: ansic: 7,924; xml: 97; makefile: 31; sh: 30; python: 8
file content (25 lines) | stat: -rw-r--r-- 813 bytes parent folder | download | duplicates (2)
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) 2024 The Phosh Developers
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

#include <glib.h>
#include <umockdev.h>

#pragma once

G_BEGIN_DECLS

typedef struct _FbdUdevMockFixture {
  UMockdevTestbed *testbed;
} FbdUmockdevFixture;


void fbd_test_umockdev_setup (FbdUmockdevFixture *fixture, gconstpointer mockname);
void fbd_test_umockdev_teardown (FbdUmockdevFixture *fixture, gconstpointer unused);

#define FBD_UMOCKDEV_TEST_ADD(name, func, f) g_test_add ((name), FbdUmockdevFixture, (f),  \
                                                         (gpointer)fbd_test_umockdev_setup, \
                                                         (gpointer)(func),                  \
                                                         (gpointer)fbd_test_umockdev_teardown)
G_END_DECLS