test for trust level
This commit is contained in:
parent
a51925dff1
commit
fda3603781
@ -82,6 +82,13 @@ void SigningTest::validPackage()
|
|||||||
QCOMPARE(m_signing->signerOf(m_package), fingerprint);
|
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()
|
void SigningTest::confirmDtorPerformance()
|
||||||
{
|
{
|
||||||
QTime t;
|
QTime t;
|
||||||
|
@ -46,6 +46,7 @@ private Q_SLOTS:
|
|||||||
void validSignature();
|
void validSignature();
|
||||||
void validSignatureWithoutDefinedSigFile();
|
void validSignatureWithoutDefinedSigFile();
|
||||||
void validPackage();
|
void validPackage();
|
||||||
|
void trustLevel();
|
||||||
void confirmDtorPerformance();
|
void confirmDtorPerformance();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user