aboutsummaryrefslogtreecommitdiff
path: root/autotests/testolmsession.cpp
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-01-27 15:33:46 +0100
committerTobias Fella <fella@posteo.de>2021-12-01 21:34:52 +0100
commiteabea7af10b5734a507484478a64d2c9f716279f (patch)
tree04abf250636dadd8f639c9c34d0a6af571aa4730 /autotests/testolmsession.cpp
parent069602584e0f3ec10a26380af69b95f5da11a8b7 (diff)
downloadlibquotient-eabea7af10b5734a507484478a64d2c9f716279f.tar.gz
libquotient-eabea7af10b5734a507484478a64d2c9f716279f.zip
Add QOlmSession::decrypt
Diffstat (limited to 'autotests/testolmsession.cpp')
-rw-r--r--autotests/testolmsession.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/autotests/testolmsession.cpp b/autotests/testolmsession.cpp
index 2f7a82e9..fc151621 100644
--- a/autotests/testolmsession.cpp
+++ b/autotests/testolmsession.cpp
@@ -52,9 +52,9 @@ void TestOlmSession::olmEncryptDecrypt()
QVERIFY(std::get<bool>(inboundSession->matchesInboundSession(m)));
}
- //const auto decrypted = inboundSession->decrypt(encrypted);
+ const auto decrypted = std::get<QString>(inboundSession->decrypt(encrypted));
- //QCOMPARE(decrypted, "Hello world!");
+ QCOMPARE(decrypted, "Hello world!");
#endif
}