diff options
| author | Melvin Keskin <melvo@olomono.de> | 2022-03-07 14:58:29 +0100 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-03-07 20:19:29 +0100 |
| commit | ebbf58a05ca112b7e56df8aa072f410398a86dae (patch) | |
| tree | 414f3459888096124d4b3a1846c355ce2d0f290d /tests/qxmpptrustmemorystorage/tst_qxmpptrustmemorystorage.cpp | |
| parent | 76965a11aa4d230ae8636c67e0e6f9ce20f5ec5c (diff) | |
| download | qxmpp-ebbf58a05ca112b7e56df8aa072f410398a86dae.tar.gz | |
Add parameter 'keyOwnerJid' to trust storages' 'trustLevel()'
Diffstat (limited to 'tests/qxmpptrustmemorystorage/tst_qxmpptrustmemorystorage.cpp')
| -rw-r--r-- | tests/qxmpptrustmemorystorage/tst_qxmpptrustmemorystorage.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/qxmpptrustmemorystorage/tst_qxmpptrustmemorystorage.cpp b/tests/qxmpptrustmemorystorage/tst_qxmpptrustmemorystorage.cpp index ff7537dc..cebe886f 100644 --- a/tests/qxmpptrustmemorystorage/tst_qxmpptrustmemorystorage.cpp +++ b/tests/qxmpptrustmemorystorage/tst_qxmpptrustmemorystorage.cpp @@ -523,6 +523,7 @@ void tst_QXmppTrustMemoryStorage::testTrustLevels() auto future = m_trustStorage.trustLevel( ns_omemo, + QStringLiteral("alice@example.org"), QByteArray::fromBase64(QByteArrayLiteral("AZ/cF4OrUOILKO1gQBf62pQevOhBJ2NyHnXLwM4FDZU="))); QVERIFY(future.isFinished()); auto result = future.result(); @@ -538,6 +539,7 @@ void tst_QXmppTrustMemoryStorage::testTrustLevels() future = m_trustStorage.trustLevel( ns_omemo, + QStringLiteral("alice@example.org"), QByteArray::fromBase64(QByteArrayLiteral("AZ/cF4OrUOILKO1gQBf62pQevOhBJ2NyHnXLwM4FDZU="))); QVERIFY(future.isFinished()); result = future.result(); @@ -545,6 +547,7 @@ void tst_QXmppTrustMemoryStorage::testTrustLevels() future = m_trustStorage.trustLevel( ns_omemo, + QStringLiteral("bob@example.com"), QByteArray::fromBase64(QByteArrayLiteral("9E51lG3vVmUn8CM7/AIcmIlLP2HPl6Ao0/VSf4VT/oA="))); QVERIFY(future.isFinished()); result = future.result(); @@ -560,6 +563,7 @@ void tst_QXmppTrustMemoryStorage::testTrustLevels() future = m_trustStorage.trustLevel( ns_omemo, + QStringLiteral("alice@example.org"), QByteArray::fromBase64(QByteArrayLiteral("9w6oPjKyGSALd9gHq7sNOdOAkD5bHUVOKACNs89FjkA="))); QVERIFY(future.isFinished()); result = future.result(); @@ -569,6 +573,7 @@ void tst_QXmppTrustMemoryStorage::testTrustLevels() // The default value is returned. future = m_trustStorage.trustLevel( ns_omemo, + QStringLiteral("alice@example.org"), QByteArray::fromBase64(QByteArrayLiteral("WXL4EDfzUGbVPQWjT9pmBeiCpCBzYZv3lUAaj+UbPyE="))); QVERIFY(future.isFinished()); result = future.result(); @@ -585,6 +590,7 @@ void tst_QXmppTrustMemoryStorage::testTrustLevels() future = m_trustStorage.trustLevel( ns_omemo, + QStringLiteral("alice@example.org"), QByteArray::fromBase64(QByteArrayLiteral("AZ/cF4OrUOILKO1gQBf62pQevOhBJ2NyHnXLwM4FDZU="))); QVERIFY(future.isFinished()); result = future.result(); @@ -592,6 +598,7 @@ void tst_QXmppTrustMemoryStorage::testTrustLevels() future = m_trustStorage.trustLevel( ns_omemo, + QStringLiteral("bob@example.com"), QByteArray::fromBase64(QByteArrayLiteral("9E51lG3vVmUn8CM7/AIcmIlLP2HPl6Ao0/VSf4VT/oA="))); QVERIFY(future.isFinished()); result = future.result(); @@ -600,6 +607,7 @@ void tst_QXmppTrustMemoryStorage::testTrustLevels() // Verify that the default trust level is returned for an unknown key. future = m_trustStorage.trustLevel( ns_omemo, + QStringLiteral("alice@example.org"), QByteArray::fromBase64(QByteArrayLiteral("wE06Gwf8f4DvDLFDoaCsGs8ibcUjf84WIOA2FAjPI3o="))); QVERIFY(future.isFinished()); result = future.result(); |
