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/testjsonrpc.h
2014-05-03 23:55:08 +02:00

44 lines
849 B
C++

#ifndef TESTJSONRPC_H
#define TESTJSONRPC_H
#include "guhtestbase.h"
class TestJSONRPC: public GuhTestBase
{
Q_OBJECT
public:
TestJSONRPC(QObject *parent=0): GuhTestBase(parent) {}
TestJSONRPC (const TestJSONRPC &other) {}
TestJSONRPC& operator=(const TestJSONRPC &other) {}
private slots:
void testBasicCall();
void introspect();
void executeAction_data();
void executeAction();
void getActionTypes_data();
void getActionTypes();
void getEventTypes_data();
void getEventTypes();
void getStateTypes_data();
void getStateTypes();
void enableDisableNotifications_data();
void enableDisableNotifications();
void stateChangeEmitsNotifications();
void getRules();
private:
QStringList extractRefs(const QVariant &variant);
};
Q_DECLARE_METATYPE(TestJSONRPC)
#endif