mirror of
https://github.com/redis/RedisDesktopManager.git
synced 2026-10-17 04:31:27 +08:00
05fa28f1a7
- Use fakeit for mocks - Repair all unit tests - Create env for QML integration tests - Add intergration test for MultilineEditor - Replace ModelTest with QAbstractItemModelTester
30 lines
517 B
C++
30 lines
517 B
C++
#pragma once
|
|
|
|
#include <QtQuickTest>
|
|
#include <QQmlEngine>
|
|
#include <QQmlContext>
|
|
#include <QSharedPointer>
|
|
#include <QQuickTextDocument>
|
|
#include "app/qmlutils.h"
|
|
|
|
class TestUtils : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
Q_INVOKABLE void removeAppSetting(const QString& category);
|
|
};
|
|
|
|
class Setup : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
Setup() {}
|
|
|
|
public slots:
|
|
void qmlEngineAvailable(QQmlEngine *engine);
|
|
|
|
private:
|
|
QSharedPointer<QmlUtils> m_qmlUtils;
|
|
QSharedPointer<TestUtils> m_testUtils;
|
|
};
|