From fda36037813fa20cf789d3f16302332416557ff6 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Thu, 26 May 2011 17:22:48 +0200 Subject: [PATCH] test for trust level --- tests/signingtest.cpp | 7 +++++++ tests/signingtest.h | 1 + 2 files changed, 8 insertions(+) diff --git a/tests/signingtest.cpp b/tests/signingtest.cpp index b024372be..2fb95dadb 100644 --- a/tests/signingtest.cpp +++ b/tests/signingtest.cpp @@ -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; diff --git a/tests/signingtest.h b/tests/signingtest.h index eaaefe316..14e4f9d1f 100644 --- a/tests/signingtest.h +++ b/tests/signingtest.h @@ -46,6 +46,7 @@ private Q_SLOTS: void validSignature(); void validSignatureWithoutDefinedSigFile(); void validPackage(); + void trustLevel(); void confirmDtorPerformance(); private: