summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppsourceprocessor_test.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@digia.com>2014-08-19 15:46:50 +0200
committerErik Verbruggen <erik.verbruggen@digia.com>2014-08-20 11:12:48 +0200
commit7d35212f60c7b6f0b71ec53177e52d1a71f1282e (patch)
tree047a5ffb0a6092c3eed3fdc7c427125d8196dcc0 /src/plugins/cpptools/cppsourceprocessor_test.cpp
parent7e71a299ef76917458c92a033a1636d3e6452018 (diff)
downloadqt-creator-7d35212f60c7b6f0b71ec53177e52d1a71f1282e.tar.gz
CppTools: Rename SnapshotUpdater to BuiltinEditorDocumentParser
Change-Id: I554b5e9e3f1ef7c167fa45b5cd0c230fdf63073b Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cppsourceprocessor_test.cpp')
-rw-r--r--src/plugins/cpptools/cppsourceprocessor_test.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/plugins/cpptools/cppsourceprocessor_test.cpp b/src/plugins/cpptools/cppsourceprocessor_test.cpp
index db7983cbf3..0a3a09fe0a 100644
--- a/src/plugins/cpptools/cppsourceprocessor_test.cpp
+++ b/src/plugins/cpptools/cppsourceprocessor_test.cpp
@@ -29,10 +29,10 @@
#include "cpptoolsplugin.h"
+#include "builtineditordocumentparser.h"
#include "cppmodelmanager.h"
#include "cppsourceprocessertesthelper.h"
#include "cppsourceprocessor.h"
-#include "cppsnapshotupdater.h"
#include "cpptoolseditorsupport.h"
#include "cpptoolstestcase.h"
@@ -131,7 +131,7 @@ void CppToolsPlugin::test_cppsourceprocessor_includes_cyclic()
const QString fileName2 = TestIncludePaths::testFilePath(QLatin1String("cyclic2.h"));
const QStringList sourceFiles = QStringList() << fileName1 << fileName2;
- // Create global snapshot (needed in SnapshotUpdater)
+ // Create global snapshot (needed in BuiltinEditorDocumentParser)
TestCase testCase;
testCase.parseFiles(sourceFiles);
@@ -144,9 +144,10 @@ void CppToolsPlugin::test_cppsourceprocessor_includes_cyclic()
CppEditorSupport *cppEditorSupport = CppModelManagerInterface::instance()
->cppEditorSupport(editor);
QVERIFY(cppEditorSupport);
- QSharedPointer<SnapshotUpdater> snapshotUpdater = cppEditorSupport->snapshotUpdater();
- QVERIFY(snapshotUpdater);
- Snapshot snapshot = snapshotUpdater->snapshot();
+ QSharedPointer<BuiltinEditorDocumentParser> documentParser
+ = cppEditorSupport->documentParser();
+ QVERIFY(documentParser);
+ Snapshot snapshot = documentParser->snapshot();
QCOMPARE(snapshot.size(), 3); // Configuration file included
// Check includes