forked from qt-creator/qt-creator
AutoTest: Use base of framework inside TestTreeItem
...and respectively inside the parse results which hold the information that are used to create the items. Change-Id: I78f7b5632df5d449d39fa03ffbf48036a138e337 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "autotestconstants.h"
|
||||
#include "itestframework.h"
|
||||
#include "itestparser.h"
|
||||
#include "testconfiguration.h"
|
||||
#include "testtreeitem.h"
|
||||
@@ -38,9 +39,9 @@
|
||||
|
||||
namespace Autotest {
|
||||
|
||||
TestTreeItem::TestTreeItem(ITestFramework *framework, const QString &name,
|
||||
TestTreeItem::TestTreeItem(ITestBase *testBase, const QString &name,
|
||||
const QString &filePath, Type type)
|
||||
: m_framework(framework),
|
||||
: m_testBase(testBase),
|
||||
m_name(name),
|
||||
m_filePath(filePath),
|
||||
m_type(type)
|
||||
@@ -369,7 +370,7 @@ inline bool TestTreeItem::modifyName(const QString &name)
|
||||
|
||||
ITestFramework *TestTreeItem::framework() const
|
||||
{
|
||||
return m_framework;
|
||||
return static_cast<ITestFramework *>(m_testBase);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user