summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppdoxygen_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/cppdoxygen_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/cppdoxygen_test.cpp')
-rw-r--r--src/plugins/cppeditor/cppdoxygen_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/cppeditor/cppdoxygen_test.cpp b/src/plugins/cppeditor/cppdoxygen_test.cpp
index 9511b6df6e..2f53b1a81d 100644
--- a/src/plugins/cppeditor/cppdoxygen_test.cpp
+++ b/src/plugins/cppeditor/cppdoxygen_test.cpp
@@ -375,7 +375,7 @@ void DoxygenTest::testWithMacroFromHeaderBeforeFunction()
" */\n"
"API void f();\n";
- const TestDocument headerDocumentDefiningMacro("header.h", "#define API\n");
+ const GenericCppTestDocument headerDocumentDefiningMacro("header.h", "#define API\n");
runTest(given, expected, /*settings=*/ 0, {headerDocumentDefiningMacro});
}
@@ -421,12 +421,12 @@ void DoxygenTest::runTest(const QByteArray &original,
// Write files to disk
CppTools::Tests::TemporaryDir temporaryDir;
QVERIFY(temporaryDir.isValid());
- TestDocument testDocument("file.cpp", original, '|');
+ GenericCppTestDocument testDocument("file.cpp", original, '|');
QVERIFY(testDocument.hasCursorMarker());
testDocument.m_source.remove(testDocument.m_cursorPosition, 1);
testDocument.setBaseDirectory(temporaryDir.path());
QVERIFY(testDocument.writeToDisk());
- foreach (TestDocument testDocument, includedHeaderDocuments) {
+ foreach (GenericCppTestDocument testDocument, includedHeaderDocuments) {
testDocument.setBaseDirectory(temporaryDir.path());
QVERIFY(testDocument.writeToDisk());
}