initial commit

This commit is contained in:
mikhail "synzr" 2025-12-25 01:37:49 +05:00
commit 9d20827c46
2469 changed files with 470994 additions and 0 deletions

View file

@ -0,0 +1,43 @@
#include <QDebug>
#include "guitestmanager.h"
GUITestManager::GUITestManager()
{
}
GUITestManager* GUITestManager::instance()
{
if (!instance_) {
instance_ = new GUITestManager();
}
return instance_;
}
void GUITestManager::registerTest(GUITest* test)
{
tests_ += test;
}
bool GUITestManager::runTest(const QString& name)
{
foreach(GUITest* test, tests_) {
if (test->name() == name) {
return test->run();
}
}
qWarning() << "Test not found: " << name;
return false;
}
QStringList GUITestManager::getTestNames() const
{
QStringList test_names;
foreach(GUITest* test, tests_) {
test_names += test->name();
}
return test_names;
}
GUITestManager* GUITestManager::instance_ = NULL;