forked from qt-creator/qt-creator
ClangStaticAnalyzer: Start tool directly in test
Removes the only user of DEBUGGER_EXPORT void runAction(Core::Id actionId) Change-Id: Ia26577e07ccc8a556882d99d6dd9f9c29c3bc883 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
#include "clangstaticanalyzertool.h"
|
||||
#include "clangstaticanalyzerutils.h"
|
||||
|
||||
#include <debugger/analyzer/analyzermanager.h>
|
||||
#include <cpptools/cppmodelmanager.h>
|
||||
#include <cpptools/cpptoolstestcase.h>
|
||||
#include <projectexplorer/kitinformation.h>
|
||||
@@ -44,7 +43,6 @@
|
||||
#include <QTimer>
|
||||
#include <QtTest>
|
||||
|
||||
using namespace Debugger;
|
||||
using namespace ProjectExplorer;
|
||||
using namespace Utils;
|
||||
|
||||
@@ -89,7 +87,7 @@ void ClangStaticAnalyzerUnitTests::testProject()
|
||||
CppTools::Tests::ProjectOpenerAndCloser projectManager;
|
||||
const CppTools::ProjectInfo projectInfo = projectManager.open(projectFilePath, true);
|
||||
QVERIFY(projectInfo.isValid());
|
||||
Debugger::runAction(ClangStaticAnalyzerActionId);
|
||||
m_analyzerTool->startTool();
|
||||
QSignalSpy waiter(m_analyzerTool, SIGNAL(finished(bool)));
|
||||
QVERIFY(waiter.wait(30000));
|
||||
const QList<QVariant> arguments = waiter.takeFirst();
|
||||
|
||||
@@ -137,7 +137,6 @@ DEBUGGER_EXPORT void enableMainWindow(bool on);
|
||||
DEBUGGER_EXPORT QWidget *mainWindow();
|
||||
|
||||
DEBUGGER_EXPORT void selectPerspective(const QByteArray &perspectiveId);
|
||||
DEBUGGER_EXPORT void runAction(Core::Id actionId);
|
||||
|
||||
// Convenience functions.
|
||||
DEBUGGER_EXPORT void showStatusMessage(const QString &message, int timeoutMS = 10000);
|
||||
|
||||
@@ -3597,12 +3597,6 @@ void selectPerspective(const QByteArray &perspectiveId)
|
||||
dd->m_mainWindow->restorePerspective(perspectiveId);
|
||||
}
|
||||
|
||||
void runAction(Id actionId)
|
||||
{
|
||||
ActionDescription desc = dd->m_descriptions.value(actionId);
|
||||
desc.startTool();
|
||||
}
|
||||
|
||||
QWidget *mainWindow()
|
||||
{
|
||||
return dd->m_mainWindow;
|
||||
|
||||
Reference in New Issue
Block a user