summaryrefslogtreecommitdiff
path: root/tests/bindingstest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bindingstest.cpp')
-rw-r--r--tests/bindingstest.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/bindingstest.cpp b/tests/bindingstest.cpp
index 6f1cf6c..c943a20 100644
--- a/tests/bindingstest.cpp
+++ b/tests/bindingstest.cpp
@@ -427,11 +427,13 @@ void BindingsTest::contactCompletness()
c.setGPSpos(geo);
Kolab::Crypto crypto;
crypto.setAllowed(Kolab::Crypto::PGPinline | Kolab::Crypto::SMIMEopaque);
- crypto.setPGPKey("pgp");
crypto.setSignPref(Kolab::Crypto::IfPossible);
crypto.setEncryptPref(Kolab::Crypto::Never);
- crypto.setSMIMEKey("smime");
c.setCrypto(crypto);
+ std::vector<Kolab::Key> keys;
+ keys.push_back(Kolab::Key("pgp", Kolab::Key::PGP));
+ keys.push_back(Kolab::Key("smime", Kolab::Key::PKCS7_MIME));
+ c.setKeys(keys);
std::vector<Kolab::CustomProperty> properties;
properties.push_back(Kolab::CustomProperty("ident", "value"));
@@ -469,6 +471,7 @@ void BindingsTest::contactCompletness()
QCOMPARE(e.emailAddresses(), c.emailAddresses());
QCOMPARE(e.emailAddressPreferredIndex(), c.emailAddressPreferredIndex());
QCOMPARE(e.gpsPos(), c.gpsPos());
+ QCOMPARE(e.keys(), c.keys());
QCOMPARE(e.crypto(), c.crypto());
QCOMPARE(e.customProperties(), c.customProperties());
}