aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/tests/t-keylist.cpp
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-04-03 10:29:14 +0000
committerAndre Heinecke <[email protected]>2016-04-03 10:29:14 +0000
commit0991485170ca4ef90fd566540522027d0fc59a72 (patch)
treec70aa40bfa878a945e28cff24ca16bab7ef2543b /lang/qt/tests/t-keylist.cpp
parentQt: Add a unit test for qgpgme (diff)
downloadgpgme-0991485170ca4ef90fd566540522027d0fc59a72.tar.gz
gpgme-0991485170ca4ef90fd566540522027d0fc59a72.zip
Qt: Add static factor methods for protocol
* lang/qt/src/qgpgmebackend.cpp (QGpgME::openpgp, QGpgME::smime): New. * lang/qt/src/qgpgmebackend.h: Declare. * lang/qt/tests/t-keylist.cpp (KeyListTest::testSingleKeyListSync): Use new functions. -- This replaces the cryptobackendfactory functionality from libkleo.
Diffstat (limited to 'lang/qt/tests/t-keylist.cpp')
-rw-r--r--lang/qt/tests/t-keylist.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lang/qt/tests/t-keylist.cpp b/lang/qt/tests/t-keylist.cpp
index 67ace7f5..626d0a7f 100644
--- a/lang/qt/tests/t-keylist.cpp
+++ b/lang/qt/tests/t-keylist.cpp
@@ -14,8 +14,7 @@ private Q_SLOTS:
void testSingleKeyListSync()
{
- QGpgMEBackend backend;
- KeyListJob *job = backend.openpgp()->keyListJob(false, false, false);
+ KeyListJob *job = openpgp()->keyListJob(false, false, false);
std::vector<GpgME::Key> keys;
GpgME::KeyListResult result = job->exec(QStringList() << QStringLiteral("[email protected]"),
false, keys);