aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2021-08-27 16:00:33 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2021-08-30 08:22:10 +0000
commit49211c4a5ce165a40825672c744c1511ad3db334 (patch)
tree207db1b1d71f80cb213804de645cc1642b4fdeab /src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
parent5fe3ead73ef730fa1659bd17af206ec94a428159 (diff)
CppEditor: Move FollowSymbolTest into the Tests namespace
This is now possible, as there is no ambiguity anymore regarding the TestDocument class. Change-Id: I6f736a5790d2eab1c82f5429a9292aa9d7bcda56 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp')
-rw-r--r--src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
index fd25211090..10c78edc8a 100644
--- a/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
+++ b/src/plugins/cppeditor/followsymbol_switchmethoddecldef_test.cpp
@@ -123,8 +123,7 @@ QT_END_NAMESPACE
typedef QByteArray _;
-namespace CppEditor {
-namespace Internal {
+namespace CppEditor::Internal::Tests {
/// A fake virtual functions assist provider that runs processor->perform() already in configure()
class VirtualFunctionTestAssistProvider : public VirtualFunctionAssistProvider
@@ -546,13 +545,11 @@ TestDocumentPtr F2TestCase::testFileWithTargetCursorMarker(const QList<TestDocum
return TestDocumentPtr();
}
-} // namespace Internal
-} // namespace CppEditor
+} // namespace CppEditor::Internal::Tests
-Q_DECLARE_METATYPE(QList<CppEditor::Internal::TestDocumentPtr>)
+Q_DECLARE_METATYPE(QList<CppEditor::Internal::Tests::TestDocumentPtr>)
-namespace CppEditor {
-namespace Internal {
+namespace CppEditor::Internal::Tests {
void FollowSymbolTest::initTestCase()
{
@@ -2080,8 +2077,7 @@ void FollowSymbolTest::testFollowVirtualFunctionCallMultipleDocuments()
F2TestCase(F2TestCase::FollowSymbolUnderCursorAction, testFiles, finalResults);
}
-} // namespace Internal
-} // namespace CppEditor
+} // namespace CppEditor::Internal::Tests
/*
Potential test cases improving name lookup.