diff options
author | hjk <[email protected]> | 2024-01-15 18:30:16 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2024-01-16 09:53:43 +0000 |
commit | 2a02866787cd56aeb5c47031e75957e35a263119 (patch) | |
tree | cfc4f8c63d0c3792285b377f6c7ce991e9c00871 /src/plugins/qmakeprojectmanager/qmakeparser.cpp | |
parent | b1ec196c14894d1c0c1ce371c4780192623215d9 (diff) |
QmakeProjectManager: Hide plugin class definition in .cpp
Change-Id: If813b4eef86084a126c1d4a45e53b056d55f7caf
Reviewed-by: Jarek Kobus <[email protected]>
Diffstat (limited to 'src/plugins/qmakeprojectmanager/qmakeparser.cpp')
-rw-r--r-- | src/plugins/qmakeprojectmanager/qmakeparser.cpp | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/src/plugins/qmakeprojectmanager/qmakeparser.cpp b/src/plugins/qmakeprojectmanager/qmakeparser.cpp index 2cb9d941c14..57051ba5a20 100644 --- a/src/plugins/qmakeprojectmanager/qmakeparser.cpp +++ b/src/plugins/qmakeprojectmanager/qmakeparser.cpp @@ -72,17 +72,22 @@ OutputLineParser::Result QMakeParser::handleLine(const QString &line, OutputForm #ifdef WITH_TESTS -#include "qmakeprojectmanagerplugin.h" - #include <projectexplorer/outputparser_test.h> #include <QTest> -using namespace QmakeProjectManager::Internal; +namespace QmakeProjectManager::Internal { -namespace QmakeProjectManager { +class QmakeOutputParserTest final : public QObject +{ + Q_OBJECT -void QmakeProjectManagerPlugin::testQmakeOutputParsers_data() +private slots: + void testQmakeOutputParsers_data(); + void testQmakeOutputParsers(); +}; + +void QmakeOutputParserTest::testQmakeOutputParsers_data() { QTest::addColumn<QString>("input"); QTest::addColumn<OutputParserTester::Channel>("inputChannel"); @@ -162,7 +167,7 @@ void QmakeProjectManagerPlugin::testQmakeOutputParsers_data() << QString(); } -void QmakeProjectManagerPlugin::testQmakeOutputParsers() +void QmakeOutputParserTest::testQmakeOutputParsers() { OutputParserTester testbench; testbench.addLineParser(new QMakeParser); @@ -178,6 +183,13 @@ void QmakeProjectManagerPlugin::testQmakeOutputParsers() outputLines); } -} // QmakeProjectManager +QObject *createQmakeOutputParserTest() +{ + return new QmakeOutputParserTest; +} + +} // QmakeProjectManager::Internal #endif + +#include "qmakeparser.moc" |