aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Implement XEP-0308: Last Message CorrectionLinus Jahn2018-12-301-0/+18
|
* Add partial support of XEP-0066: Out of Band DataLinus Jahn2018-12-191-0/+28
| | | | | Today this is most important for attaching URLs generated by XEP-0363: HTTP File Upload for a very basic form of media/file sharing.
* Implement XEP-0352: Client State IndicationLinus Jahn2018-10-291-0/+3
| | | | | This commit is based on a pull request by fbeutel (GitHub) (see #87) and was rebased and slightly modified by me.
* [tests] Explicitly include QXmppRtpChannel.h (see #78)Jeremy Lainé2018-10-271-0/+2
|
* CMake: Add binary paths for tests to the include pathsNiels Ole Salscheider2018-09-303-0/+3
| | | | This fixes #141.
* travis: Install clangNiels Ole Salscheider2018-09-301-1/+1
| | | | Now that we only use the system binaries we have to install this manually.
* travis: Only use system binariesNiels Ole Salscheider2018-09-301-1/+5
|
* [travis] build qxmpp out-of-sourceJeremy Lainé2018-09-241-1/+3
|
* [travis] test build on OS XJeremy Lainé2018-09-182-7/+23
|
* [tests] disable tests that require QXMPP_AUTOTEST_EXPORT (fixes #149)Jeremy Lainé2018-09-181-3/+3
|
* [tests] switch from coveralls to codecovJeremy Lainé2018-09-082-9/+0
|
* support XEP-0237 Roster VersioningZam2018-08-171-0/+27
|
* [tests] generate code coverage reportJeremy Lainé2018-06-242-0/+14
|
* Merge pull request #131 from olesalscheider/cmakeNiels Ole Salscheider2018-06-2343-196/+65
|\ | | | | Add CMake build system, drop Qt4 support
| * Fix paths in CMakeLists.txtNiels Ole Salscheider2018-06-171-3/+4
| |
| * Fix qxmppsasl testNiels Ole Salscheider2017-09-041-1/+1
| |
| * Drop the version string testNiels Ole Salscheider2017-09-041-6/+0
| | | | | | | | It is just stupid to adjust this...
| * Update travis scriptsNiels Ole Salscheider2017-09-042-32/+7
| |