aboutsummaryrefslogtreecommitdiff
path: root/autotests/testolmsession.cpp
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-01-28 23:49:52 +0100
committerTobias Fella <fella@posteo.de>2021-12-01 21:34:52 +0100
commit12dd7bab004a0b85807347e9bac4ead2baf56bc5 (patch)
treeece19ed1ce93a3854b519c2eebba76d6c5a7c975 /autotests/testolmsession.cpp
parentd72f220e3e3a3b243fdafd93d1405f8207dc516a (diff)
downloadlibquotient-12dd7bab004a0b85807347e9bac4ead2baf56bc5.tar.gz
libquotient-12dd7bab004a0b85807347e9bac4ead2baf56bc5.zip
Fix test
Diffstat (limited to 'autotests/testolmsession.cpp')
-rw-r--r--autotests/testolmsession.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/autotests/testolmsession.cpp b/autotests/testolmsession.cpp
index 6535e4fe..72c54174 100644
--- a/autotests/testolmsession.cpp
+++ b/autotests/testolmsession.cpp
@@ -25,7 +25,7 @@ std::pair<std::unique_ptr<QOlmSession>, std::unique_ptr<QOlmSession>> createSess
const auto preKey = outbound->encrypt(""); // Payload does not matter for PreKey
- if (preKey.type() != Message::PreKey) {
+ if (preKey.type() != QOlmMessage::PreKey) {
throw "Wrong first message type received, can't create session";
}
auto inbound = std::get<std::unique_ptr<QOlmSession>>(accountB.createInboundSession(preKey));
@@ -42,8 +42,8 @@ void TestOlmSession::olmEncryptDecrypt()
{
const auto [inboundSession, outboundSession] = createSessionPair();
const auto encrypted = outboundSession->encrypt("Hello world!");
- if (encrypted.type() == Message::PreKey) {
- Message m(encrypted); // clone
+ if (encrypted.type() == QOlmMessage::PreKey) {
+ QOlmMessage m(encrypted); // clone
QVERIFY(std::get<bool>(inboundSession->matchesInboundSession(m)));
}