Commit 6b153c87 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Tests: Fix compilation/plugin test.

parent 261a3f17
......@@ -60,6 +60,8 @@ struct EXTENSIONSYSTEM_EXPORT PluginDependency
Optional
};
PluginDependency() : type(Required) {}
QString name;
QString version;
Type type;
......
......@@ -89,7 +89,7 @@ void tst_FindUsages::inlineMethod()
QVERIFY(arg);
QCOMPARE(arg->identifier()->chars(), "arg");
FindUsages findUsages(doc, snapshot);
FindUsages findUsages(QByteArray(), doc, snapshot);
findUsages(arg);
QCOMPARE(findUsages.usages().size(), 2);
QCOMPARE(findUsages.references().size(), 2);
......@@ -148,7 +148,7 @@ void tst_FindUsages::objc_args()
Argument *arg = methodImpl->argumentAt(0)->asArgument();
QCOMPARE(arg->identifier()->chars(), "arg");
FindUsages findUsages(doc, snapshot);
FindUsages findUsages(QByteArray(), doc, snapshot);
findUsages(arg);
QCOMPARE(findUsages.usages().size(), 2);
QCOMPARE(findUsages.references().size(), 2);
......@@ -186,7 +186,7 @@ void tst_FindUsages::qproperty_1()
QCOMPARE(setX_method->identifier()->chars(), "setX");
QCOMPARE(setX_method->argumentCount(), 1U);
FindUsages findUsages(doc, snapshot);
FindUsages findUsages(QByteArray(), doc, snapshot);
findUsages(setX_method);
QCOMPARE(findUsages.usages().size(), 2);
QCOMPARE(findUsages.references().size(), 2);
......
......@@ -228,8 +228,8 @@ void tst_PluginSpec::resolveDependencies()
Internal::PluginManagerPrivate::privateSpec(spec5)->read("testdependencies/spec5.xml");
QVERIFY(spec1Priv->resolveDependencies(specs));
QCOMPARE(spec1Priv->dependencySpecs.size(), 2);
QVERIFY(spec1Priv->dependencySpecs.contains(spec2));
QVERIFY(spec1Priv->dependencySpecs.contains(spec3));
QVERIFY(!spec1Priv->dependencySpecs.key(spec2).name.isEmpty());
QVERIFY(!spec1Priv->dependencySpecs.key(spec3).name.isEmpty());
QCOMPARE(spec1Priv->state, PluginSpec::Resolved);
QVERIFY(!spec4Priv->resolveDependencies(specs));
QVERIFY(spec4Priv->hasError);
......
......@@ -11,12 +11,10 @@ UTILSDIR = ../../../src/libs
SOURCES += \
$$FAKEVIMDIR/fakevimhandler.cpp \
$$FAKEVIMDIR/fakevimactions.cpp \
$$FAKEVIMDIR/fakevimsyntax.cpp \
tst_fakevim.cpp
HEADERS += \
$$FAKEVIMDIR/fakevimhandler.h \
$$FAKEVIMDIR/fakevimactions.h \
$$FAKEVIMDIR/fakevimsyntax.h \
$$FAKEVIMDIR/fakevimactions.h
INCLUDEPATH += $$FAKEVIMDIR $$UTILSDIR
......@@ -1576,7 +1576,7 @@ virtual bool visit(LambdaCaptureAST *ast)
return false;
}
virtual bool visit(CaptureAST *ast)
virtual bool visit(CaptureAST *)
{
return false;
}
......
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