qt: Fix tofu test.
authorJustus Winter <justus@g10code.com>
Mon, 12 Sep 2016 08:11:44 +0000 (10:11 +0200)
committerJustus Winter <justus@g10code.com>
Mon, 12 Sep 2016 08:11:44 +0000 (10:11 +0200)
* lang/qt/tests/t-tofuinfo.cpp: Adjust member names.

Fixes-commit: 120b1478
Signed-off-by: Justus Winter <justus@g10code.com>
lang/qt/tests/t-tofuinfo.cpp

index 5646f70..2e1f1f8 100644 (file)
@@ -69,7 +69,7 @@ class TofuInfoTest: public QGpgMETest
     {
         Q_ASSERT(!orig.isNull());
         Q_ASSERT(!other.isNull());
-        Q_ASSERT(orig.lastSeen() == other.lastSeen());
+        Q_ASSERT(orig.signLast() == other.signLast());
         Q_ASSERT(orig.signCount() == other.signCount());
         Q_ASSERT(orig.validity() == other.validity());
         Q_ASSERT(orig.policy() == other.policy());
@@ -132,8 +132,8 @@ private Q_SLOTS:
         Q_ASSERT(tofu.isNull());
         Q_ASSERT(!tofu.description());
         Q_ASSERT(!tofu.signCount());
-        Q_ASSERT(!tofu.lastSeen());
-        Q_ASSERT(!tofu.firstSeen());
+        Q_ASSERT(!tofu.signLast());
+        Q_ASSERT(!tofu.signFirst());
         Q_ASSERT(tofu.validity() == TofuInfo::ValidityUnknown);
         Q_ASSERT(tofu.policy() == TofuInfo::PolicyUnknown);
     }
@@ -164,7 +164,7 @@ private Q_SLOTS:
         Q_ASSERT(sig.key().primaryFingerprint());
         Q_ASSERT(sig.fingerprint());
         Q_ASSERT(!strcmp(sig.key().primaryFingerprint(), sig.fingerprint()));
-        Q_ASSERT(stats.firstSeen() == stats.lastSeen());
+        Q_ASSERT(stats.signFirst() == stats.signLast());
         Q_ASSERT(stats.signCount() == 1);
         Q_ASSERT(stats.policy() == TofuInfo::PolicyAuto);
         Q_ASSERT(stats.validity() == TofuInfo::LittleHistory);
@@ -188,7 +188,7 @@ private Q_SLOTS:
         stats = sig.key().userID(0).tofuInfo();
         Q_ASSERT(!stats.isNull());
         Q_ASSERT(!strcmp(sig.key().primaryFingerprint(), sig.fingerprint()));
-        Q_ASSERT(stats.firstSeen() == stats.lastSeen());
+        Q_ASSERT(stats.signFirst() == stats.signLast());
         Q_ASSERT(stats.signCount() == 1);
         Q_ASSERT(stats.policy() == TofuInfo::PolicyAuto);
         Q_ASSERT(stats.validity() == TofuInfo::LittleHistory);
@@ -209,7 +209,7 @@ private Q_SLOTS:
         stats = sig.key().userID(0).tofuInfo();
         Q_ASSERT(!stats.isNull());
         Q_ASSERT(!strcmp(sig.key().primaryFingerprint(), sig.fingerprint()));
-        Q_ASSERT(stats.firstSeen() == stats.lastSeen());
+        Q_ASSERT(stats.signFirst() == stats.signLast());
         Q_ASSERT(stats.signCount() == 1);
         Q_ASSERT(stats.policy() == TofuInfo::PolicyAuto);
         Q_ASSERT(stats.validity() == TofuInfo::LittleHistory);