Tests: Get autotests compiling again.

This commit is contained in:
Bill King
2010-10-20 14:16:04 +10:00
parent f0aa5cdabb
commit 54c8a2e5b5
10 changed files with 30 additions and 32 deletions

View File

@@ -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,