aboutsummaryrefslogtreecommitdiff
path: root/autotests/testolmaccount.cpp
AgeCommit message (Collapse)Author
2022-05-16QOlmExpected and associated refactoringAlexey Rusakov
As mentioned in the commit introducing `Expected`, `QOlmExpected` is simply an alias for `Expected<T, QOlmError>`. This simplifies quite a few function signatures in `QOlm*` classes and collapses unwieldy `std::holds_alternative<>`/`std::get<>` constructs into a neat contextual bool cast and an invocation of `operator*` or `value()`/`error()` accessors that don't need to specify the type. While refactoring the code, I found a couple of cases of mismatching `uint32_t` and `qint32_t` in return values; a couple of cases where `decrypt()` returns `QString` which is in fact `QByteArray` (e.g., in `QOlmSession::decrypt()`); there's a repetitive algorithm in `Connection::Private::sessionDecryptPrekey()` and `sessionDecryptGeneral()`
2022-02-24Fix all testsTobias Fella
2022-02-24Fix testTobias Fella
2022-02-23Fix tests a bitTobias Fella
2022-02-18TestOlmAccount::claimKeys(): auth bob as bob, not as aliceAlexey Rusakov
2022-02-18testolmaccount.cpp: cleanupAlexey Rusakov
2022-02-18TestOlmAccount: align homeserver address with that in run-tests.shAlexey Rusakov
It would probably be even better to pass the homeserver address in the environment but that's a bigger endeavour. Also: reformatted CREATE_CONNECTION macro.
2022-02-18Use QCoreApplication in autotestsAlexey Rusakov
QEventLoop refuses to work without an application object instance.
2022-02-17Don't create QApplications in testsTobias Fella
2022-02-07Remove encryptionmanager and various fixesTobias Fella
2022-01-29Apply suggestions from code reviewTobias Fella
Co-authored-by: Alexey Rusakov <Kitsune-Ral@users.sf.net>
2021-12-24Apply suggestionsTobias Fella
2021-12-10Fix compilation of tests against older qtTobias Fella
2021-12-07Rename "crypto" -> "e2ee"Tobias Fella
2021-12-01Remove outdated commentTobias Fella
2021-12-01Fix setting encrypted flag in roomsCarl Schwan
2021-12-01Add a test (now failing)Carl Schwan
2021-12-01Text: Add KeyChange testCarl Schwan
2021-12-01Fix testsCarl Schwan
2021-12-01test: Add QueryKey test (failing)Carl Schwan
2021-12-01Finish writing TestOlmAccount::signatureValidCarl Schwan
2021-12-01Fix everythingCarl Schwan
2021-12-01sslCarl Schwan
2021-12-01fix typoCarl Schwan
2021-12-01Apply a few more commentsCarl Schwan
2021-12-01Fix signing keysCarl Schwan
2021-12-01More test but still failing in signing/signature verificationCarl Schwan
2021-12-01Add more test and use macro to remove duplicated codeCarl Schwan
2021-12-01Key verificationCarl Schwan
2021-12-01More testsCarl Schwan
2021-12-01E2EE: initial port to internal olm wrapperAlexey Andreyev
Remove qtolm git module. Update CMakeLists.txt. Rename olm to crypto subdir to prevent disambiguation. Rename internal files accordingly. Comment out not ported E2EE API usage.
2021-12-01Move filesCarl Schwan
2021-12-01Add encrypted file structCarl Schwan
2021-12-01Add device key testCarl Schwan
2021-12-01Disable olm test when disabling encryptionCarl Schwan
2021-12-01Improve APICarl Schwan
2021-12-01Implement outboundsessionCarl Schwan
2021-12-01Add testsCarl Schwan