forked from qt-creator/qt-creator
Autotest: Move Test{FrameWorkManager,Runner} singletons
Make them plugin-pimpl data members, removing some indirections. Change-Id: Ie441ac94a27f07342513b0b5b1437ccfe4b5d7d2 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -53,14 +53,17 @@ enum class TestRunMode;
|
||||
|
||||
namespace Internal {
|
||||
|
||||
class AUTOTESTSHARED_EXPORT TestRunner : public QObject
|
||||
class AUTOTESTSHARED_EXPORT TestRunner final : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TestRunner();
|
||||
~TestRunner() final;
|
||||
|
||||
enum CancelReason { UserCanceled, Timeout, KitChanged };
|
||||
|
||||
static TestRunner* instance();
|
||||
~TestRunner() override;
|
||||
|
||||
void setSelectedTests(const QList<TestConfiguration *> &selected);
|
||||
void runTest(TestRunMode mode, const TestTreeItem *item);
|
||||
@@ -92,7 +95,6 @@ private:
|
||||
void debugTests();
|
||||
void runOrDebugTests();
|
||||
void reportResult(ResultType type, const QString &description);
|
||||
explicit TestRunner(QObject *parent = nullptr);
|
||||
bool postponeTestRunWithEmptyExecutable(ProjectExplorer::Project *project);
|
||||
void onBuildSystemUpdated();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user