Commit 58f25a32 authored by hjk's avatar hjk

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's avatarNikolai Kosjar <nikolai.kosjar@qt.io>
parent 3ac867c8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment