CppEditor: Tests: Make AddIncludeForUndefinedIdentifier tests data driven

...as far as possible.

Change-Id: Ida039df7fbd4f1a9fce354dd8541c32255752082
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
Nikolai Kosjar
2015-01-13 15:26:04 +01:00
committed by Erik Verbruggen
parent 446345091b
commit 4a397a5ff5
3 changed files with 213 additions and 465 deletions

View File

@@ -67,6 +67,8 @@ public:
QString m_expectedSource;
};
typedef QList<QuickFixTestDocument::Ptr> QuickFixTestDocuments;
class BaseQuickFixTestCase : public TestCase
{
public:
@@ -125,3 +127,5 @@ QList<QuickFixTestDocument::Ptr> singleDocument(const QByteArray &original,
} // namespace Tests
} // namespace Internal
} // namespace CppEditor
Q_DECLARE_METATYPE(CppEditor::Internal::Tests::QuickFixTestDocuments)