kmail
potentialphishingemailjobtest.cpp
Go to the documentation of this file.
50 QTest::newRow("NoPotentialPhishing") << (QStringList() << QLatin1String("foo@kde.org")) << QStringList() << false;
51 QTest::newRow("HasPotentialPhishing") << (QStringList() << QLatin1String("\"bla@kde.org\" <foo@kde.org>")) << QStringList() << true;
53 QTest::newRow("EmailInWhiteList") << (QStringList() << email) << (QStringList() << email) << false;
54 QTest::newRow("NotAllEmailInWhiteList") << (QStringList() << email << QLatin1String("\"c@kde.org\" <dd@kde.org>")) << (QStringList() << email) << true;
55 QTest::newRow("EmailInWhiteListWithSpace") << (QStringList() << QLatin1String(" \"bla@kde.org\" <foo@kde.org> ")) << (QStringList() << email) << false;
56 QTest::newRow("EmailWithSameNameAndDisplayName") << (QStringList() << QLatin1String("\"<foo@kde.com>\" <foo@kde.com>")) << (QStringList() << email) << false;
57 QTest::newRow("EmailWithSameNameAndDisplayNameWithSpace") << (QStringList() << QLatin1String(" \"<foo@kde.com>\" <foo@kde.com> ")) << (QStringList() << email) << false;
59 QTest::newRow("notsamecase") << (QStringList() << QLatin1String("\"Foo@kde.org\" <foo@kde.org>")) << QStringList() << false;
60 QTest::newRow("notsamecaseaddress") << (QStringList() << QLatin1String("\"Foo@kde.org\" <FOO@kde.ORG>")) << QStringList() << false;
62 QTest::newRow("emailinparenthese") << (QStringList() << QLatin1String("\"bla (Foo@kde.org)\" <FOO@kde.ORG>")) << QStringList() << false;
63 QTest::newRow("notemailinparenthese") << (QStringList() << QLatin1String("\"bla (bli@kde.org)\" <FOO@kde.ORG>")) << QStringList() << true;
64 QTest::newRow("erroremailinparenthese") << (QStringList() << QLatin1String("\"bla Foo@kde.org\" <FOO@kde.ORG>")) << QStringList() << true;
QStringList potentialPhisingEmails() const
Definition: potentialphishingemailjob.cpp:45
void setEmailWhiteList(const QStringList &emails)
Definition: potentialphishingemailjob.cpp:35
bool isEmpty() const
void setEmails(const QStringList &emails)
Definition: potentialphishingemailjob.cpp:40
QTestData & newRow(const char *dataTag)
PotentialPhishingEmailJobTest(QObject *parent=0)
Definition: potentialphishingemailjobtest.cpp:27
~PotentialPhishingEmailJobTest()
Definition: potentialphishingemailjobtest.cpp:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.