summaryrefslogtreecommitdiff
path: root/tests/auto/cplusplus/codegen/tst_codegen.cpp
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2010-10-20 14:16:04 +1000
committerBill King <bill.king@nokia.com>2010-10-20 14:16:04 +1000
commit54c8a2e5b5ecf60ac806d2b0b522dc647530bbbd (patch)
tree125a257205e9447b21dfdc29b600de435a7836f6 /tests/auto/cplusplus/codegen/tst_codegen.cpp
parentf0aa5cdabb830a3abbdde998402b2f97f7edaa5d (diff)
downloadqt-creator-54c8a2e5b5ecf60ac806d2b0b522dc647530bbbd.tar.gz
Tests: Get autotests compiling again.
Diffstat (limited to 'tests/auto/cplusplus/codegen/tst_codegen.cpp')
-rw-r--r--tests/auto/cplusplus/codegen/tst_codegen.cpp25
1 files changed, 17 insertions, 8 deletions
diff --git a/tests/auto/cplusplus/codegen/tst_codegen.cpp b/tests/auto/cplusplus/codegen/tst_codegen.cpp
index 336cf78062..43cbbb6ffb 100644
--- a/tests/auto/cplusplus/codegen/tst_codegen.cpp
+++ b/tests/auto/cplusplus/codegen/tst_codegen.cpp
@@ -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,