diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2021-09-07 13:48:37 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2021-09-08 13:17:20 +0000 |
commit | 8c7dcc44b96ec960eb955038444ca977f0e1a007 (patch) | |
tree | e0215ec769df763a13503a31b203c3a3709dc717 /src/plugins/cppeditor/cppdoxygen_test.cpp | |
parent | 1e92b2e25c7a3be2dfe5063d129a879b96228157 (diff) | |
download | qt-creator-8c7dcc44b96ec960eb955038444ca977f0e1a007.tar.gz |
CppEditor: Merge the four TestDocument classes
Change-Id: Ie3d5a4ac2b8e3beee92f5abb88583c845056842e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
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.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/cppeditor/cppdoxygen_test.cpp b/src/plugins/cppeditor/cppdoxygen_test.cpp index 6878201b2e..c9c40a8dd8 100644 --- a/src/plugins/cppeditor/cppdoxygen_test.cpp +++ b/src/plugins/cppeditor/cppdoxygen_test.cpp @@ -25,7 +25,6 @@ #include "cppdoxygen_test.h" -#include "cppeditortestcase.h" #include "cppeditorwidget.h" #include "cpptoolssettings.h" @@ -42,7 +41,7 @@ namespace { typedef QByteArray _; } using CppEditor::Tests::TemporaryDir; using CppEditor::Tests::TestCase; -using CppEditor::Tests::VerifyCleanCppModelManager; +using CppEditor::Internal::Tests::VerifyCleanCppModelManager; namespace CppEditor { namespace Internal { @@ -377,7 +376,7 @@ void DoxygenTest::testWithMacroFromHeaderBeforeFunction() " */\n" "API void f();\n"; - const GenericCppTestDocument headerDocumentDefiningMacro("header.h", "#define API\n"); + const CppTestDocument headerDocumentDefiningMacro("header.h", "#define API\n"); runTest(given, expected, /*settings=*/ 0, {headerDocumentDefiningMacro}); } @@ -423,12 +422,12 @@ void DoxygenTest::runTest(const QByteArray &original, // Write files to disk TemporaryDir temporaryDir; QVERIFY(temporaryDir.isValid()); - GenericCppTestDocument testDocument("file.cpp", original, '|'); + CppTestDocument testDocument("file.cpp", original, '|'); QVERIFY(testDocument.hasCursorMarker()); testDocument.m_source.remove(testDocument.m_cursorPosition, 1); testDocument.setBaseDirectory(temporaryDir.path()); QVERIFY(testDocument.writeToDisk()); - foreach (GenericCppTestDocument testDocument, includedHeaderDocuments) { + foreach (CppTestDocument testDocument, includedHeaderDocuments) { testDocument.setBaseDirectory(temporaryDir.path()); QVERIFY(testDocument.writeToDisk()); } |