diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2012-04-04 09:43:52 (GMT) |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2012-04-04 09:43:52 (GMT) |
commit | 5be9ac77cc026fe2435d4d82025c93764454f555 (patch) | |
tree | 05f967c0e2081cc5eb841493478fdd9bde41d45e /tests/bindingstest.cpp | |
parent | df09a3cd73cf73bcaac45a4dc3f23776d066a04e (diff) | |
download | libkolabxml-5be9ac77cc026fe2435d4d82025c93764454f555.tar.gz |
Use the more general and standards compliant key property also in the API.
Diffstat (limited to 'tests/bindingstest.cpp')
-rw-r--r-- | tests/bindingstest.cpp | 7 |
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()); } |