summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppuseselections_test.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2021-08-27 13:15:46 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2021-08-30 08:21:57 +0000
commit5fe3ead73ef730fa1659bd17af206ec94a428159 (patch)
tree39be30dcb1b4509a6e6fa44ec3f4e935b73659dd /src/plugins/cppeditor/cppuseselections_test.cpp
parent2d994620d1c6de5c2ba085ba50d28be27e27a1fb (diff)
downloadqt-creator-5fe3ead73ef730fa1659bd17af206ec94a428159.tar.gz
CppTools/CppEditor: Rename the TestDocument classes
It was not helpful that we had four different classes with the same name. Note that they look suspiciously similar and could possibly be merged into a single class at some point. Change-Id: I7d4c10a09408226037bc0d276940bca39dc5f576 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppuseselections_test.cpp')
-rw-r--r--src/plugins/cppeditor/cppuseselections_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/cppeditor/cppuseselections_test.cpp b/src/plugins/cppeditor/cppuseselections_test.cpp
index 07fdab8083..148b11d09f 100644
--- a/src/plugins/cppeditor/cppuseselections_test.cpp
+++ b/src/plugins/cppeditor/cppuseselections_test.cpp
@@ -70,7 +70,7 @@ namespace Tests {
class UseSelectionsTestCase : public TestCase
{
public:
- UseSelectionsTestCase(TestDocument &testDocument,
+ UseSelectionsTestCase(GenericCppTestDocument &testDocument,
const SelectionList &expectedSelections);
private:
@@ -82,7 +82,7 @@ private:
CppEditorWidget *m_editorWidget = nullptr;
};
-UseSelectionsTestCase::UseSelectionsTestCase(TestDocument &testFile,
+UseSelectionsTestCase::UseSelectionsTestCase(GenericCppTestDocument &testFile,
const SelectionList &expectedSelections)
{
QVERIFY(succeededSoFar());
@@ -253,7 +253,7 @@ void SelectionsTest::testUseSelections()
QFETCH(QByteArray, source);
QFETCH(SelectionList, expectedSelections);
- Tests::TestDocument testDocument("file.cpp", source);
+ Tests::GenericCppTestDocument testDocument("file.cpp", source);
Tests::UseSelectionsTestCase(testDocument, expectedSelections);
}