test for trust level

This commit is contained in:
Aaron Seigo 2011-05-26 17:22:48 +02:00
parent a51925dff1
commit fda3603781
2 changed files with 8 additions and 0 deletions

View File

@ -82,6 +82,13 @@ void SigningTest::validPackage()
QCOMPARE(m_signing->signerOf(m_package), fingerprint);
}
void SigningTest::trustLevel()
{
QCOMPARE(m_signing->trustLevelOf(QString()), Plasma::UnverifiableTrust);
QCOMPARE(m_signing->trustLevelOf(fingerprint), Plasma::SelfTrusted);
//FIXME: need to test other TrustLevel values
}
void SigningTest::confirmDtorPerformance()
{
QTime t;

View File

@ -46,6 +46,7 @@ private Q_SLOTS:
void validSignature();
void validSignatureWithoutDefinedSigFile();
void validPackage();
void trustLevel();
void confirmDtorPerformance();
private: