forked from qt-creator/qt-creator
Move TestType enum into constants...
...to avoid defining the enum in several places although almost having the same meaning. Additionally rename the values to ensure not to run in a name clash at some point. Change-Id: I0f23041b785c87efd3e7feebef855042595473f6 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
committed by
Niels Weber
parent
97011c6951
commit
54d753574e
@@ -256,7 +256,7 @@ QList<TestConfiguration *> TestTreeModel::getAllTestCases() const
|
||||
foundMains.value(proFile));
|
||||
tc->setProFile(proFile);
|
||||
tc->setProject(project);
|
||||
tc->setTestType(TestConfiguration::GTest);
|
||||
tc->setTestType(TestTypeGTest);
|
||||
result << tc;
|
||||
}
|
||||
|
||||
@@ -398,7 +398,7 @@ QList<TestConfiguration *> TestTreeModel::getSelectedTests() const
|
||||
foreach (const QString &proFile, proFilesWithEnabledTestSets.keys()) {
|
||||
TestConfiguration *tc = new TestConfiguration(QString(),
|
||||
proFilesWithEnabledTestSets.value(proFile));
|
||||
tc->setTestType(TestConfiguration::GTest);
|
||||
tc->setTestType(TestTypeGTest);
|
||||
tc->setProFile(proFile);
|
||||
tc->setProject(project);
|
||||
result << tc;
|
||||
@@ -468,7 +468,7 @@ TestConfiguration *TestTreeModel::getTestConfiguration(const TestTreeItem *item)
|
||||
config->setTestCaseCount(childCount);
|
||||
config->setProFile(item->childItem(0)->mainFile());
|
||||
config->setProject(project);
|
||||
config->setTestType(TestConfiguration::GTest);
|
||||
config->setTestType(TestTypeGTest);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -478,7 +478,7 @@ TestConfiguration *TestTreeModel::getTestConfiguration(const TestTreeItem *item)
|
||||
QStringList(parent->name() + QLatin1Char('.') + item->name()));
|
||||
config->setProFile(item->mainFile());
|
||||
config->setProject(project);
|
||||
config->setTestType(TestConfiguration::GTest);
|
||||
config->setTestType(TestTypeGTest);
|
||||
break;
|
||||
}
|
||||
// not supported items
|
||||
|
||||
Reference in New Issue
Block a user