Commit 54c8a2e5 authored by Bill King's avatar Bill King

Tests: Get autotests compiling again.

parent f0aa5cda
......@@ -3,5 +3,6 @@ CONFIG += qt warn_on console depend_includepath
CONFIG += qtestlib testcase
CONFIG -= app_bundle
include(../shared/shared.pri)
INCLUDEPATH += $$IDE_SOURCE_TREE/src/plugins
SOURCES += tst_codegen.cpp
TARGET=tst_$$TARGET
......@@ -2,12 +2,13 @@
#include <Control.h>
#include <CppDocument.h>
#include <DiagnosticClient.h>
#include <InsertionPointLocator.h>
#include <Scope.h>
#include <TranslationUnit.h>
#include <Literals.h>
#include <Bind.h>
#include <Symbols.h>
#include <cpptools/insertionpointlocator.h>
#include <cpptools/cpprefactoringchanges.h>
#include <QtTest>
#include <QtDebug>
......@@ -20,6 +21,7 @@
tests the InsertionPointLocator.
*/
using namespace CPlusPlus;
using namespace CppTools;
class tst_Codegen: public QObject
{
......@@ -61,7 +63,8 @@ void tst_Codegen::public_in_empty_class()
Snapshot snapshot;
snapshot.insert(doc);
InsertionPointLocator find(snapshot);
CppRefactoringChanges changes(snapshot);
InsertionPointLocator find(&changes);
InsertionLocation loc = find.methodDeclarationInClass(
doc->fileName(),
foo,
......@@ -100,7 +103,8 @@ void tst_Codegen::public_in_nonempty_class()
Snapshot snapshot;
snapshot.insert(doc);
InsertionPointLocator find(snapshot);
CppRefactoringChanges changes(snapshot);
InsertionPointLocator find(&changes);
InsertionLocation loc = find.methodDeclarationInClass(
doc->fileName(),
foo,
......@@ -139,7 +143,8 @@ void tst_Codegen::public_before_protected()
Snapshot snapshot;
snapshot.insert(doc);
InsertionPointLocator find(snapshot);
CppRefactoringChanges changes(snapshot);
InsertionPointLocator find(&changes);
InsertionLocation loc = find.methodDeclarationInClass(
doc->fileName(),
foo,
......@@ -179,7 +184,8 @@ void tst_Codegen::private_after_protected()
Snapshot snapshot;
snapshot.insert(doc);
InsertionPointLocator find(snapshot);
CppRefactoringChanges changes(snapshot);
InsertionPointLocator find(&changes);
InsertionLocation loc = find.methodDeclarationInClass(
doc->fileName(),
foo,
......@@ -219,7 +225,8 @@ void tst_Codegen::protected_in_nonempty_class()
Snapshot snapshot;
snapshot.insert(doc);
InsertionPointLocator find(snapshot);
CppRefactoringChanges changes(snapshot);
InsertionPointLocator find(&changes);
InsertionLocation loc = find.methodDeclarationInClass(
doc->fileName(),
foo,
......@@ -259,7 +266,8 @@ void tst_Codegen::protected_betwee_public_and_private()
Snapshot snapshot;
snapshot.insert(doc);
InsertionPointLocator find(snapshot);
CppRefactoringChanges changes(snapshot);
InsertionPointLocator find(&changes);
InsertionLocation loc = find.methodDeclarationInClass(
doc->fileName(),
foo,
......@@ -319,7 +327,8 @@ void tst_Codegen::qtdesigner_integration()
Snapshot snapshot;
snapshot.insert(doc);
InsertionPointLocator find(snapshot);
CppRefactoringChanges changes(snapshot);
InsertionPointLocator find(&changes);
InsertionLocation loc = find.methodDeclarationInClass(
doc->fileName(),
foo,
......
......@@ -3,4 +3,3 @@ CONFIG += qt warn_on console depend_includepath
CONFIG += qtestlib testcase
include(../shared/shared.pri)
SOURCES += tst_findusages.cpp
TARGET=tst_$$TARGET
......@@ -3,4 +3,3 @@ CONFIG += qt warn_on console depend_includepath
CONFIG += qtestlib testcase
include(../shared/shared.pri)
SOURCES += tst_lookup.cpp
TARGET=tst_$$TARGET
......@@ -2,6 +2,4 @@ TEMPLATE = app
CONFIG += qt warn_on console depend_includepath
CONFIG += qtestlib testcase
include(../shared/shared.pri)
SOURCES += tst_semantic.cpp
TARGET=tst_$$TARGET
......@@ -2,5 +2,5 @@ DEFINES+=CPLUSPLUS_BUILD_STATIC_LIB
include(../../../../qtcreator.pri)
INCLUDEPATH += $$IDE_SOURCE_TREE/src/libs/cplusplus
INCLUDEPATH += $$IDE_SOURCE_TREE/src/shared/cplusplus
include($$IDE_SOURCE_TREE/src/libs/cplusplus/cplusplus-lib.pri)
include($$IDE_SOURCE_TREE/src/libs/utils/utils-lib.pri)
include($$IDE_SOURCE_TREE/src/plugins/cpptools/cpptools.pri)
LIBS += -L$$IDE_PLUGIN_PATH/Nokia
......@@ -3,4 +3,3 @@ CONFIG += qt warn_on console depend_includepath
CONFIG += qtestlib testcase
include(../shared/shared.pri)
SOURCES += tst_typeprettyprinter.cpp
TARGET=tst_$$TARGET
......@@ -9,22 +9,14 @@ FAKEVIMDIR = ../../../src/plugins/fakevim
UTILSDIR = ../../../src/libs
SOURCES += \
$$FAKEVIMDIR/fakevimhandler.cpp \
$$FAKEVIMDIR/fakevimactions.cpp \
$$FAKEVIMDIR/fakevimsyntax.cpp \
$$UTILSDIR/utils/environment.cpp \
$$UTILSDIR/utils/savedaction.cpp \
$$UTILSDIR/utils/pathchooser.cpp \
$$UTILSDIR/utils/basevalidatinglineedit.cpp \
$$FAKEVIMDIR/fakevimhandler.cpp \
$$FAKEVIMDIR/fakevimactions.cpp \
$$FAKEVIMDIR/fakevimsyntax.cpp \
tst_fakevim.cpp
HEADERS += \
$$FAKEVIMDIR/fakevimhandler.h \
$$FAKEVIMDIR/fakevimactions.h \
$$FAKEVIMDIR/fakevimsyntax.h \
$$UTILSDIR/utils/environment.h \
$$UTILSDIR/utils/savedaction.h \
$$UTILSDIR/utils/pathchooser.h \
$$UTILSDIR/utils/basevalidatinglineedit.h \
$$FAKEVIMDIR/fakevimhandler.h \
$$FAKEVIMDIR/fakevimactions.h \
$$FAKEVIMDIR/fakevimsyntax.h \
INCLUDEPATH += $$FAKEVIMDIR $$UTILSDIR
......@@ -45,7 +45,7 @@ public:
virtual ~SyntaxHighlighter() {}
protected:
void SyntaxHighlighter::applyFormatToSpaces(const QString &, const QTextCharFormat &)
void applyFormatToSpaces(const QString &, const QTextCharFormat &)
{}
};
......
......@@ -3,7 +3,8 @@ include($$IDE_SOURCE_TREE/src/plugins/qmldesigner/config.pri)
QT += script \
network \
declarative
declarative \
webkit
CONFIG += qtestlib testcase
......
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