forked from qt-creator/qt-creator
BareMetal: Dissolve baremetalplugin.h
Split test so they can be closer to the implementation, move rest to plugin.cpp. Change-Id: I30310f5b2658ac669d219c2978c6a3d6c9d8b107 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -226,14 +226,12 @@ void IarParser::flush()
|
||||
// Unit tests:
|
||||
|
||||
#ifdef WITH_TESTS
|
||||
#include "baremetalplugin.h"
|
||||
#include <projectexplorer/outputparser_test.h>
|
||||
#include <QTest>
|
||||
|
||||
namespace BareMetal {
|
||||
namespace Internal {
|
||||
namespace BareMetal::Internal {
|
||||
|
||||
void BareMetalPlugin::testIarOutputParsers_data()
|
||||
void IarParserTest::testIarOutputParsers_data()
|
||||
{
|
||||
QTest::addColumn<QString>("input");
|
||||
QTest::addColumn<OutputParserTester::Channel>("inputChannel");
|
||||
@@ -392,7 +390,7 @@ void BareMetalPlugin::testIarOutputParsers_data()
|
||||
<< QString();
|
||||
}
|
||||
|
||||
void BareMetalPlugin::testIarOutputParsers()
|
||||
void IarParserTest::testIarOutputParsers()
|
||||
{
|
||||
OutputParserTester testbench;
|
||||
testbench.addLineParser(new IarParser);
|
||||
@@ -408,7 +406,6 @@ void BareMetalPlugin::testIarOutputParsers()
|
||||
outputLines);
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace BareMetal
|
||||
} // BareMetal::Internal
|
||||
|
||||
#endif // WITH_TESTS
|
||||
|
||||
Reference in New Issue
Block a user