forked from qt-creator/qt-creator
CppTools: Tests: Clean up ProjectOpenerAndCloser and introduce timeout
Change-Id: Id46305a7e9fba1d8383622a4d21f22ee8cbc470c Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -117,21 +117,15 @@ private:
|
||||
bool m_runGarbageCollector;
|
||||
};
|
||||
|
||||
class CPPTOOLS_EXPORT ProjectOpenerAndCloser : public QObject
|
||||
class CPPTOOLS_EXPORT ProjectOpenerAndCloser
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ProjectOpenerAndCloser(bool waitForFinishedGcOnDestruction = true);
|
||||
ProjectOpenerAndCloser();
|
||||
~ProjectOpenerAndCloser(); // Closes opened projects
|
||||
|
||||
ProjectInfo open(const QString &projectFile, bool configureAsExampleProject = false);
|
||||
|
||||
private:
|
||||
void onGcFinished();
|
||||
|
||||
bool m_waitForFinishedGcOnDestruction;
|
||||
bool m_gcFinished;
|
||||
QList<ProjectExplorer::Project *> m_openProjects;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user