This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-core/tests/auto/scripts/testhelper.cpp
2019-12-10 18:49:28 +01:00

27 lines
605 B
C++

#include "testhelper.h"
TestHelper* TestHelper::s_instance = nullptr;
TestHelper *TestHelper::instance()
{
if (!s_instance) {
s_instance = new TestHelper();
}
return s_instance;
}
void TestHelper::logEvent(const QString &deviceId, const QString &eventId, const QVariantMap &params)
{
emit eventLogged(DeviceId(deviceId), eventId, params);
}
void TestHelper::logStateChange(const QString &deviceId, const QString &stateId, const QVariant &value)
{
emit stateChangeLogged(DeviceId(deviceId), stateId, value);
}
TestHelper::TestHelper(QObject *parent) : QObject(parent)
{
}