11#include <QDBusConnection>
23using namespace swift::misc::simulation;
38 void marshallUnmarshall();
46 void CTestDBus::marshallUnmarshall()
51 QSKIP(
"Cannot register DBus service, skip unit test");
55 Q_UNUSED(testService);
59 QVERIFY2(errors == 0,
"DBus Ping tests fail");
62 void CTestDBus::signatureSize()
64 constexpr int max = 255;
68 const CAircraftModel model;
72 const CSimulatedAircraft aircraft;
76 const CSimulatedAircraftList al;
85#include "testdbus.moc"
DBus implementation classes tests.
static QString dBusSignature(const ValueObj &obj)
Signature for swift::misc::CValueObject.
static bool canRegisterTestService(QDBusConnection &connection)
Can the testservice be registered?
static const QString & InterfaceName()
DBus interface name.
static const QString & ObjectPath()
DBus object path.
static CTestService * registerTestService(QDBusConnection &connection, bool verbose, QObject *parent=nullptr)
Register testservice with connection.
static int pingTests(ITestServiceInterface &testServiceInterface, bool verbose)
Ping via DBus, tests object marshalling/unmarshalling.
Generate data for testing purposes.
Free functions in swift::misc.
void registerMetadata()
Register all relevant metadata in Misc.
QCoreApplication * instance()
QDBusConnection sessionBus()
qsizetype length() const const
QVERIFY2(condition, message)
#define SWIFTTEST_MAIN(TestObject)
Implements a main() function that executes all tests in TestObject including instantiating a QCoreApp...