AutoTest: Provide mark and sweep functions

Actually they are not used, this is a preparation for later patches.

Change-Id: I25f43dd7dba06068ca9e39ccd4153361a7746304
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Christian Stenger
2016-01-26 13:52:45 +01:00
parent 1caeb9bb63
commit 7a331b8c94
4 changed files with 107 additions and 2 deletions

View File

@@ -78,6 +78,9 @@ public:
QMultiMap<QString, int> gtestNamesAndSets() const;
#endif
void markAllForRemoval();
void markForRemoval(const QString &filePath);
void sweep();
QMap<QString, QString> referencingFiles() const;
signals:
@@ -94,6 +97,7 @@ private:
void removeTestTreeItems(const QString &filePath, Type type);
void removeUnnamedQuickTests(const QString &filePath);
void removeGTests(const QString &filePath);
bool sweepChildren(TestTreeItem *item);
TestTreeItem *unnamedQuickTests() const;
TestTreeItem *rootItemForType(Type type);