Commit ea33bed5 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

VCS: Un-static testDiffFileResolving



Change-Id: I43c40585e5ac50369422d78f74240d7249be95ae
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent ce4ead40
......@@ -622,7 +622,7 @@ void BazaarPlugin::testDiffFileResolving_data()
void BazaarPlugin::testDiffFileResolving()
{
BazaarEditor editor(editorParameters + 3, 0);
VcsBase::VcsBaseEditorWidget::testDiffFileResolving(&editor);
editor.testDiffFileResolving();
}
#endif
......
......@@ -1961,7 +1961,7 @@ void ClearCasePlugin::testDiffFileResolving_data()
void ClearCasePlugin::testDiffFileResolving()
{
ClearCaseEditor editor(editorParameters + 3, 0);
VcsBase::VcsBaseEditorWidget::testDiffFileResolving(&editor);
editor.testDiffFileResolving();
}
#endif
......
......@@ -1398,7 +1398,7 @@ void CvsPlugin::testDiffFileResolving_data()
void CvsPlugin::testDiffFileResolving()
{
CvsEditor editor(editorParameters + 3, 0);
VcsBase::VcsBaseEditorWidget::testDiffFileResolving(&editor);
editor.testDiffFileResolving();
}
#endif
......
......@@ -1312,7 +1312,7 @@ void GitPlugin::testDiffFileResolving_data()
void GitPlugin::testDiffFileResolving()
{
GitEditor editor(editorParameters + 3, 0);
VcsBase::VcsBaseEditorWidget::testDiffFileResolving(&editor);
editor.testDiffFileResolving();
}
#endif
......
......@@ -718,7 +718,7 @@ void MercurialPlugin::testDiffFileResolving_data()
void MercurialPlugin::testDiffFileResolving()
{
MercurialEditor editor(editorParameters + 3, 0);
VcsBase::VcsBaseEditorWidget::testDiffFileResolving(&editor);
editor.testDiffFileResolving();
}
#endif
......
......@@ -1425,7 +1425,7 @@ void SubversionPlugin::testDiffFileResolving_data()
void SubversionPlugin::testDiffFileResolving()
{
SubversionEditor editor(editorParameters + 3, 0);
VcsBase::VcsBaseEditorWidget::testDiffFileResolving(&editor);
editor.testDiffFileResolving();
}
#endif
......
......@@ -1528,14 +1528,14 @@ Core::IEditor* VcsBaseEditorWidget::locateEditorByTag(const QString &tag)
#ifdef WITH_TESTS
#include <QTest>
void VcsBase::VcsBaseEditorWidget::testDiffFileResolving(VcsBaseEditorWidget *editor)
void VcsBase::VcsBaseEditorWidget::testDiffFileResolving()
{
QFETCH(QByteArray, header);
QFETCH(QByteArray, fileName);
QTextDocument doc(QString::fromLatin1(header));
editor->init();
init();
QTextBlock block = doc.lastBlock();
QVERIFY(editor->fileNameFromDiffSpecification(block).endsWith(QString::fromLatin1(fileName)));
QVERIFY(fileNameFromDiffSpecification(block).endsWith(QString::fromLatin1(fileName)));
}
#endif
......
......@@ -275,7 +275,7 @@ private:
#ifdef WITH_TESTS
public:
static void testDiffFileResolving(VcsBaseEditorWidget *editor);
void testDiffFileResolving();
#endif
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment