diff options
author | hjk <hjk@qt.io> | 2024-02-02 08:14:50 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2024-02-06 17:17:59 +0000 |
commit | c06dfdb237a2eda55c5affcfba1e337c67c6f755 (patch) | |
tree | 12b2724c49794bfb08be2678e69660f32218db44 /src/plugins/projectexplorer/linuxiccparser.cpp | |
parent | 48d47faa4b517a5a26ab386c2fc4561f6261ca9e (diff) |
ProjectExplorer: Move plugin unit tests definition to new class
This removes it from the central public header.
Change-Id: Icf1c552f9136a2e262e1bc48ae164b2fdd8edc79
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/linuxiccparser.cpp')
-rw-r--r-- | src/plugins/projectexplorer/linuxiccparser.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/plugins/projectexplorer/linuxiccparser.cpp b/src/plugins/projectexplorer/linuxiccparser.cpp index f5d0489650..62e151846e 100644 --- a/src/plugins/projectexplorer/linuxiccparser.cpp +++ b/src/plugins/projectexplorer/linuxiccparser.cpp @@ -8,9 +8,10 @@ #include <utils/qtcassert.h> -using namespace ProjectExplorer; using namespace Utils; +namespace ProjectExplorer { + LinuxIccParser::LinuxIccParser() : m_temporary(Task()) { @@ -109,12 +110,16 @@ void LinuxIccParser::flush() scheduleTask(t, m_lines, 1); } +} // ProjectExplorer + #ifdef WITH_TESTS # include <QTest> -# include "projectexplorer.h" +# include "projectexplorer_test.h" # include "outputparser_test.h" -void ProjectExplorerPlugin::testLinuxIccOutputParsers_data() +namespace ProjectExplorer::Internal { + +void ProjectExplorerTest::testLinuxIccOutputParsers_data() { QTest::addColumn<QString>("input"); QTest::addColumn<OutputParserTester::Channel>("inputChannel"); @@ -197,7 +202,7 @@ void ProjectExplorerPlugin::testLinuxIccOutputParsers_data() << QString(); } -void ProjectExplorerPlugin::testLinuxIccOutputParsers() +void ProjectExplorerTest::testLinuxIccOutputParsers() { OutputParserTester testbench; testbench.setLineParsers(LinuxIccParser::iccParserSuite()); @@ -213,4 +218,6 @@ void ProjectExplorerPlugin::testLinuxIccOutputParsers() outputLines); } -#endif +} // ProjectExplorer::Internal + +#endif // WITH_TESTS |