spiegel-keyman/linux/ibus-keyman/tests/DbusTestHelper.h
Eberhard Beilharz 0c2d8f0312
refactor(linux): changes to get integration tests working
This change contains various changes and refactorings which together
allows the integration tests to pass again.

One of the important changs is `DbusTestHelper` which listens to a DBus
signal for a sentinel message and then simulates the sentinel key press.
Getting this to work also requires processing sd-bus messages which hooks
into the glib event loop and is implemented in `EventSource`.

Fixes: #13204
2025-02-14 17:30:42 +01:00

23 lines
397 B
C

#ifndef __DBUSTESTHELPER_H__
#define __DBUSTESTHELPER_H__
#include "config.h"
#if DBUS_IMPLEMENTATION == SYSTEMD
#include <systemd/sd-bus.h>
#else
#include <basu/sd-bus.h>
#endif
#include "testfixture.h"
#ifdef __cplusplus
extern "C" {
#endif
void dbus_testhelper_init(IBusKeymanTestsFixture* fixture);
void dbus_testhelper_close();
#ifdef __cplusplus
}
#endif
#endif // __DBUSTESTHELPER_H__