summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppmodelmanager_test.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@digia.com>2013-09-30 12:24:58 +0200
committerNikolai Kosjar <nikolai.kosjar@digia.com>2013-10-01 10:25:31 +0200
commit447c4ed37f8904ca733d6e6253ad19bb0388f209 (patch)
treec36c5f1b9c6d38b9c5aea69876b0fc5b64cbec1f /src/plugins/cpptools/cppmodelmanager_test.cpp
parenta0b2d10822fa61c859395dc5f1cb004c777170f3 (diff)
downloadqt-creator-447c4ed37f8904ca733d6e6253ad19bb0388f209.tar.gz
CppEditor/CppTools: Fix plugin tests in master.
Change-Id: Ia641c70f8c72cf762cf571cdd505385d28492b7c Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanager_test.cpp')
-rw-r--r--src/plugins/cpptools/cppmodelmanager_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager_test.cpp b/src/plugins/cpptools/cppmodelmanager_test.cpp
index 8f4f588390..7482cd3222 100644
--- a/src/plugins/cpptools/cppmodelmanager_test.cpp
+++ b/src/plugins/cpptools/cppmodelmanager_test.cpp
@@ -33,6 +33,7 @@
#include "modelmanagertesthelper.h"
#include <coreplugin/editormanager/editormanager.h>
+#include <coreplugin/plugintestutils.h>
#include <coreplugin/testdatadir.h>
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/session.h>
@@ -725,7 +726,7 @@ void CppToolsPlugin::test_modelmanager_gc_if_last_cppeditor_closed()
QVERIFY(mm->snapshot().contains(file));
// Close file/editor
- Core::EditorManager::closeEditor(editor, /*askAboutModifiedEditors=*/ false);
+ Core::Tests::closeAndDeleteEditor(editor);
helper.waitForFinishedGc();
// Check: File is removed from the snapshpt
@@ -762,7 +763,7 @@ void CppToolsPlugin::test_modelmanager_dont_gc_opened_files()
QVERIFY(mm->snapshot().contains(file));
// Close editor
- Core::EditorManager::closeEditors(QList<Core::IEditor*>() << editor);
+ Core::Tests::closeAndDeleteEditor(editor);
helper.waitForFinishedGc();
QVERIFY(mm->snapshot().isEmpty());
}