aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/tests/t-tofuinfo.cpp
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2017-05-10 08:18:41 +0000
committerAndre Heinecke <[email protected]>2017-05-10 08:18:41 +0000
commitb56f398eff4e3e70dea714c3174a5512dd9bcf33 (patch)
treeca8b3b4cfc75ce7da3418d93857c27e52ba94180 /lang/qt/tests/t-tofuinfo.cpp
parentcore: Don't split gpgconf strings on comma (diff)
downloadgpgme-b56f398eff4e3e70dea714c3174a5512dd9bcf33.tar.gz
gpgme-b56f398eff4e3e70dea714c3174a5512dd9bcf33.zip
qt, tests: Don't use internal API
* lang/qt/tests/t-encrypt.cpp, lang/qt/tests/t-tofuinfo.cpp: Only use exported API. -- With the Job::Context hack we no longer need to use internal API.
Diffstat (limited to 'lang/qt/tests/t-tofuinfo.cpp')
-rw-r--r--lang/qt/tests/t-tofuinfo.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lang/qt/tests/t-tofuinfo.cpp b/lang/qt/tests/t-tofuinfo.cpp
index 926728d7..b7161028 100644
--- a/lang/qt/tests/t-tofuinfo.cpp
+++ b/lang/qt/tests/t-tofuinfo.cpp
@@ -48,10 +48,11 @@
#include "importresult.h"
#include "keylistjob.h"
#include "keylistresult.h"
-#include "qgpgmesignjob.h"
+#include "signjob.h"
#include "key.h"
#include "t-support.h"
#include "engineinfo.h"
+#include "context.h"
#include <iostream>
using namespace QGpgME;
@@ -151,11 +152,11 @@ private:
void signAndVerify(const QString &what, const GpgME::Key &key, int expected)
{
- Context *ctx = Context::createForProtocol(OpenPGP);
+ auto job = openpgp()->signJob();
+ auto ctx = Job::context(job);
TestPassphraseProvider provider;
ctx->setPassphraseProvider(&provider);
ctx->setPinentryMode(Context::PinentryLoopback);
- auto *job = new QGpgMESignJob(ctx);
std::vector<Key> keys;
keys.push_back(key);