aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Refactor QXmppRegisterIq: Replace registerType by two separate attr.Linus Jahn2020-02-042-6/+7
| | | | | This can be done without any concerns, because the registerType was not part of any release yet.
* Add unit tests for QXmppRegistrationManagerLinus Jahn2020-02-042-0/+487
|
* Run clang-format also on all cpp filesLinus Jahn2020-02-0327-1140/+1122
|
* clang-format: Enable regrouping and sorting of includesLinus Jahn2020-02-0343-65/+94
|
* QXmppRegisterIq: Add utility methods to create common requestsLinus Jahn2020-02-031-0/+35
| | | | | This adds utility methods to create an unregistration or a change password request in one line.
* Add QXmppStartTlsPacket to replace hard-coded XML in TLS codeLinus Jahn2020-01-202-0/+94
|
* Port majority of old-style connects (#237)JBB2020-01-207-52/+52
| | | This provides more type safety and is future-proof.
* QXmppClient: Add method to get index of extensionLinus Jahn2020-01-131-4/+32
|
* QXmppRegisterIq: Add registerType for registered/removeLinus Jahn2020-01-131-32/+81
|
* Bump copyright year to 2020Linus Jahn2020-01-0643-43/+43
|
* Add a .clang-format somewhat close to the current style0xd34df00d2019-12-231-4/+3
|
* Refactor QXmppPresence, Add missing testsLinus Jahn2019-12-101-30/+69
|
* Refactor QXmppPubSubIq and add missing testsLinus Jahn2019-12-081-3/+105
|
* Implement XEP-0231: Bits of Binary: register IQ extensionLinus Jahn2019-12-061-0/+99
| | | | | This adds support for XEP-0231: Bits of Binary attachments in registration forms.
* Implement XEP-0231: Bits of Binary: message extensionLinus Jahn2019-12-061-0/+98
| | | | This adds support for XEP-0231: Bits of Binary attachments in messages.
* Implement XEP-0231: Bits of Binary: stanza extensionLinus Jahn2019-12-061-1/+1
| | | | | | This adds a type that may be used as a stanza extension. It is useful, when a stanza contains (possibly multiple) XEP-0231: Bits of Binary data elements.
* Implement XEP-0231: Bits of Binary: IQLinus Jahn2019-12-062-0/+222
| | | | | This implements parsing and serialization of the BoB IQ from XEP-0231: Bits of Binary in version 1.0.
* Implement XEP-0231: Bits of Binary: content identifiersLinus Jahn2019-12-062-0/+229
| | | | | This implements parsing and serialization of content identifiers from XEP-0231: Bits of Binary in version 1.0.
* Replace deprecated Q_ENUMS with Q_ENUMLinus Jahn2019-10-272-4/+0
| | | | | Q_ENUM exists since Qt 5.5, more details can be found here: https://woboq.com/blog/q_enum.html
* Replace Q_FOREACH (foreach) by C++11 ranged for-loopsLinus Jahn2019-10-231-4/+8
| | | | | | | Q_FOREACH is bad and will be deprecated in the future: https://www.kdab.com/goodbye-q_foreach/ This also disables Q_FOREACH by defining QT_NO_FOREACH.
* Refactor data form media elementLinus Jahn2019-10-231-19/+130
| | | | | | | | | | | * Add QXmppDataForm::MediaSource instead of using a QPair<QString, QString> to save the URIs and content types. * Deprecate QXmppDataForm::Media: The extra class was useless: Each Field has exactly one media element and the media element has only two attributes (size and media sources) * Add mediaSources and mediaSize attributes to the QXmppDataForm::Field * Deprecate getters/setters for the Media element of QXmppDataForm::Field (they are still working and tested)
* Add minimal test for QXmppClientLinus Jahn2019-10-232-0/+82
|
* Use raw literals, range based loops and autoJonah Brüchert2019-10-227-29/+29
|
* Revert "Implement MIX-PAM XEP-0405: Roster IQ extension"Linus Jahn2019-10-211-42/+0
| | | | | | | | | | This reverts commit 740a085ef7ac707e2cc2217edf02e296c3f7692e. There were talks on the standards mailing list that the XEP will be changed and a private PEP node is used for distributing joined channels. Also no server (that I am aware of) supports the MIX roster extension, so I think it is the best we remove before the next release, so we do not have problems with deprecations and ABI compatibility.
* Add unit tests for QXmppUploadRequestManagerblue2019-10-205-0/+445
| | | | Co-authored-by: Linus Jahn <lnj@kaidan.im>
* Implement XEP-0363: HTTP File Upload: Error casesLinus Jahn2019-10-201-0/+69
| | | | | This extends the QXmppStanza::Error by the error cases defined in XEP-0363: HTTP File Upload in version 0.9.0.
* Get QXmppMessage coverage to 100%Linus Jahn2019-10-191-32/+108
|
* travis: Build with all available threadsLinus Jahn2019-10-141-2/+8
|
* Modernize codebase using clang-tidyJonah Brüchert2019-09-084-5/+5
| | | | | | | | Using the following checks: * modernize-use-nullptr * modernize-use-override * modernize-use-using * modernize-use-bool-literals
* Implement XEP-0334: Message Processing HintsLinus Jahn2019-09-081-0/+51
| | | | | | | | | | This implements parsing and serialization of XEP-0334: Message Processing Hints in version 0.3.0. https://xmpp.org/extensions/xep-0334.html Co-authored-by: Juan Aragon <jaaragont@gmail.com> Co-authored-by: Sam Truscott <sam@wumpus.co.uk>
* Implement XEP-0380: Explicit Message EncryptionLinus Jahn2019-09-061-0/+46
| | | | | | | This adds parsing and serialization for XEP-0380: Explicit Message Encryption in version 0.3.0. https://xmpp.org/extensions/xep-0380.html
* Add tests for setters of QXmppStreamFeaturesLinus Jahn2019-09-061-0/+25
|
* Add test for checking 'required' mode of stream featuresLinus Jahn2019-09-061-0/+19
| | | | Co-authored-by: Melvin Keskin <melvo@olomono.de>
* Implement XEP-0367: Message AttachingLinus Jahn2019-09-061-0/+18
| | | | | This adds parsing and serialization for XEP-0367: Message Attaching in version 0.3.0.
* travis: show as much build errors as possibleBoris Pek2019-09-041-1/+1
| | | | | Without this option `make` tool stops build after first found build error.
* Add tests for QXmppMessageReceiptManagerLinus Jahn2019-05-052-0/+99
|
* Implement XEP-0363: HTTP File Upload: Request/Slot IQsLinus Jahn2019-05-042-0/+173
| | | | | This implements the IQs for requesting and receiving upload slots as defined by XEP-0363: HTTP File Upload in version 0.9.0.
* tests: mix items: Fix using old namespace in examplesLinus Jahn2019-05-041-4/+4
|
* Update implementation of XEP-0369 (v0.14.2) and XEP-0405 (v0.4.0)Linus Jahn2019-05-042-23/+23
| | | | | The changes in the XEP only affected parts we haven't implemented yet, so updating was rather easy.
* Implement XEP-0382: Spoiler messages (v0.2.0)Linus Jahn2019-05-041-0/+41
| | | | This adds parsing and serialization of spoilers in the QXmppMessage class.
* Implement MIX-CORE XEP-0369: Info/Participant node itemsLinus Jahn2019-05-042-0/+160
| | | | | | | | | This implements the pubsub items for the MIX participants and info node as defined by XEP-0369: Mediated Information eXchange (MIX) in version 0.14.2. https://xmpp.org/extensions/xep-0369.html#participants-node https://xmpp.org/extensions/xep-0369.html#info-node
* Implement MIX-PAM XEP-0405: Roster IQ extensionLinus Jahn2019-05-011-0/+42
| | | | | | | | This adds the MIX extensions for roster queries as defined in XEP-0405: Mediated Information eXchange (MIX): Participant Server Requirements in version 0.4.0. https://xmpp.org/extensions/xep-0405.html#mix-roster-capability-sharing
* Implement MIX-PAM XEP-0405: Presence extensionLinus Jahn2019-05-011-0/+28
| | | | | | | | This implements the new presence extension defined by XEP-0405: Mediated Information eXchange (MIX): Participant Server Requirements in version 0.4.0. https://xmpp.org/extensions/xep-0405.html#usecase-user-presence-receive
* Implement MIX-CORE XEP-0396: Message extensionLinus Jahn2019-05-011-0/+28
| | | | | | | This implements the new message extension specified by XEP-0369: Mediated Information eXchange (MIX) in version 0.14.2. https://xmpp.org/extensions/xep-0369.html#usecase-user-message
* Implement XEP-0369/XEP-0405 (MIX): IQ queriesLinus Jahn2019-01-202-0/+420
| | | | | | This implements all used IQ queries of XEP-0369: Mediated Information eXchange (MIX) (v0.14.1) and XEP-0405: Mediated Information eXchange (MIX): Participant Server Requirements (v0.3.1), including unit tests.
* [sasl] order mechanisms to prefer the most secureJeremy Lainé2019-01-181-1/+1
| | | | | | | | | | | | | | | | | | The previous logic was: - use the preferred SASL mechanism if available - otherwise use the first supported mechanism offered by the server However RFC 6120, section 6.3.3 states: "The initiating entity MUST maintain its own preference order independent of the preference order of the receiving entity." The new logic is: - order our supported mechanisms from most secure to least secure - if the user sets QXmppConfiguration::saslMechanism, put it first - use the best mechanism supported by the server
* [sasl] add support for SCRAM-SHA-1 and SCRAM-SHA-256Jeremy Lainé2019-01-171-1/+92
|
* [tests] add CMake option to build internal testsJeremy Lainé2019-01-172-4/+7
| | | | | | Some tests are disabled by default as they require exporting additional symbols which are not part of the public API. The BUILD_INTERNAL_TESTS option makes it possible to enable these additional tests.
* Bump copyright year to 2019Jeremy Lainé2019-01-0835-35/+35
|
* Implement XEP-0319: Last User Interaction in PresenceLinus Jahn2019-01-041-0/+23
|