forked from qt-creator/qt-creator
AutoTest: Introduce ITestTool
Preparation for separating handling of code based and build system based tests. Task-number: QTCREATORBUG-23332 Change-Id: I490af5f3157fd4a8cd07d976cdfd9e4503ade97b Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -36,14 +36,6 @@ ITestBase::ITestBase(bool activeByDefault)
|
||||
: m_active(activeByDefault)
|
||||
{}
|
||||
|
||||
TestTreeItem *ITestBase::rootNode()
|
||||
{
|
||||
if (!m_rootNode)
|
||||
m_rootNode = createRootNode();
|
||||
// These are stored in the TestTreeModel and destroyed on shutdown there.
|
||||
return m_rootNode;
|
||||
}
|
||||
|
||||
Utils::Id ITestBase::settingsId() const
|
||||
{
|
||||
return Utils::Id(Constants::SETTINGSPAGE_PREFIX)
|
||||
@@ -75,6 +67,14 @@ ITestFramework::~ITestFramework()
|
||||
delete m_testParser;
|
||||
}
|
||||
|
||||
TestTreeItem *ITestFramework::rootNode()
|
||||
{
|
||||
if (!m_rootNode)
|
||||
m_rootNode = createRootNode();
|
||||
// These are stored in the TestTreeModel and destroyed on shutdown there.
|
||||
return static_cast<TestTreeItem *>(m_rootNode);
|
||||
}
|
||||
|
||||
ITestParser *ITestFramework::testParser()
|
||||
{
|
||||
if (!m_testParser)
|
||||
@@ -82,4 +82,12 @@ ITestParser *ITestFramework::testParser()
|
||||
return m_testParser;
|
||||
}
|
||||
|
||||
ITestTreeItem *ITestTool::rootNode()
|
||||
{
|
||||
if (!m_rootNode)
|
||||
m_rootNode = createRootNode();
|
||||
// These are stored in the TestTreeModel and destroyed on shutdown there.
|
||||
return m_rootNode;
|
||||
}
|
||||
|
||||
} // namespace Autotest
|
||||
|
||||
Reference in New Issue
Block a user