CppEditor: Tests: Refactor out BaseQuickFixTestCase

We will add another type of test case that allows us to test the list of
offered operations.

Change-Id: I528b3844181c139c8955091ac0bbcf6475fd8a4f
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
Nikolai Kosjar
2014-11-27 15:48:11 +01:00
parent 315fb0372e
commit c58b029319
3 changed files with 230 additions and 211 deletions

View File

@@ -1637,7 +1637,7 @@ void CppEditorPlugin::test_quickfix_InsertVirtualMethods()
InsertVirtualMethods factory(
new Tests::InsertVirtualMethodsDialogTest(implementationMode, insertVirtualKeyword));
Tests::QuickFixTestCase(Tests::singleDocument(original, expected), &factory);
Tests::QuickFixOperationTest(Tests::singleDocument(original, expected), &factory);
}
/// Check: Insert in implementation file
@@ -1683,7 +1683,7 @@ void CppEditorPlugin::test_quickfix_InsertVirtualMethods_implementationFile()
InsertVirtualMethods factory(new Tests::InsertVirtualMethodsDialogTest(
InsertVirtualMethodsDialog::ModeImplementationFile, true));
Tests::QuickFixTestCase(testFiles, &factory);
Tests::QuickFixOperationTest(testFiles, &factory);
}
/// Check: Qualified names.
@@ -1735,7 +1735,7 @@ void CppEditorPlugin::test_quickfix_InsertVirtualMethods_BaseClassInNamespace()
InsertVirtualMethods factory(new Tests::InsertVirtualMethodsDialogTest(
InsertVirtualMethodsDialog::ModeImplementationFile, true));
Tests::QuickFixTestCase(testFiles, &factory);
Tests::QuickFixOperationTest(testFiles, &factory);
}
#endif // WITH_TESTS