aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)));
}