AutoTest: Merge settings and tools hierarchies [1/2]

Currently living in the settings files to keep changes small,
will be renamed in a second step.

This allows the settings aspects to be used in their short form
and overall removes some indirections.

Change-Id: I099369b62239aed8192613a04bca958a660c36c7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2023-07-11 12:40:08 +02:00
parent 345c946255
commit 14e18fc92f
37 changed files with 489 additions and 567 deletions

View File

@@ -1,48 +0,0 @@
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "qttestframework.h"
#include "qttestconstants.h"
#include "qttestparser.h"
#include "qttesttreeitem.h"
#include "../autotesttr.h"
namespace Autotest {
namespace Internal {
ITestParser *QtTestFramework::createTestParser()
{
return new QtTestParser(this);
}
ITestTreeItem *QtTestFramework::createRootNode()
{
return new QtTestTreeItem(this, displayName(), {}, ITestTreeItem::Root);
}
const char *QtTestFramework::name() const
{
return QtTest::Constants::FRAMEWORK_NAME;
}
QString QtTestFramework::displayName() const
{
return Tr::tr(QtTest::Constants::FRAMEWORK_SETTINGS_CATEGORY);
}
unsigned QtTestFramework::priority() const
{
return QtTest::Constants::FRAMEWORK_PRIORITY;
}
QStringList QtTestFramework::testNameForSymbolName(const QString &symbolName) const
{
int index = symbolName.lastIndexOf("::");
if (index == -1)
return {};
return { symbolName.left(index), symbolName.mid(index + 2) };
}
} // namespace Internal
} // namespace Autotest