aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cppincludehierarchy_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cppeditor/cppincludehierarchy_test.cpp')
-rw-r--r--src/plugins/cppeditor/cppincludehierarchy_test.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/plugins/cppeditor/cppincludehierarchy_test.cpp b/src/plugins/cppeditor/cppincludehierarchy_test.cpp
index bafcee6d84..ac20877871 100644
--- a/src/plugins/cppeditor/cppincludehierarchy_test.cpp
+++ b/src/plugins/cppeditor/cppincludehierarchy_test.cpp
@@ -42,9 +42,11 @@
Q_DECLARE_METATYPE(QList<QByteArray>)
using namespace CPlusPlus;
-using namespace CppEditor::Internal;
using namespace CppTools;
+namespace CppEditor {
+namespace Internal {
+
namespace {
QString toString(CppIncludeHierarchyModel &model, const QModelIndex &index, int indent = 0)
@@ -69,7 +71,7 @@ QString toString(CppIncludeHierarchyModel &model)
+ toString(model, model.index(1, 0));
}
-class IncludeHierarchyTestCase: public CppEditor::Internal::Tests::TestCase
+class IncludeHierarchyTestCase : public Tests::TestCase
{
public:
IncludeHierarchyTestCase(const QList<QByteArray> &sourceList,
@@ -95,7 +97,7 @@ public:
// Open Editor
const QString fileName = QDir::tempPath() + QLatin1String("/file1.h");
- CPPEditor *editor;
+ CppEditor *editor;
QVERIFY(openCppEditor(fileName, &editor));
closeEditorAtEndOfTestCase(editor);
@@ -182,3 +184,6 @@ void CppEditorPlugin::test_includehierarchy()
IncludeHierarchyTestCase(documents, expectedHierarchy);
}
+
+} // namespace CppEditor
+} // namespace Internal