25 lines
373 B
C
25 lines
373 B
C
|
|
#ifndef GUITESTMANAGER_H
|
||
|
|
#define GUITESTMANAGER_H
|
||
|
|
|
||
|
|
#include <QStringList>
|
||
|
|
|
||
|
|
#include "guitest.h"
|
||
|
|
|
||
|
|
class GUITestManager
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
static GUITestManager* instance();
|
||
|
|
|
||
|
|
void registerTest(GUITest* test);
|
||
|
|
bool runTest(const QString& name);
|
||
|
|
QStringList getTestNames() const;
|
||
|
|
|
||
|
|
private:
|
||
|
|
GUITestManager();
|
||
|
|
|
||
|
|
static GUITestManager* instance_;
|
||
|
|
QList<GUITest*> tests_;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|