summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* QBluetoothServiceDiscovery auto test fixAlex Blasche2013-08-133-33/+37
| | | | | Change-Id: I4e20a50549f69367652bd6881a3c541aa283c128 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Add unit test for QNdefNfcSmartPosterRecordStuart Burge2013-08-133-1/+563
| | | | | | | Task-number: QTBUG-31738 Change-Id: I153c3ea4b03edc0e699596a30f395bfe5cab9d16 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Extend and improve the unit test for QBluetoothServiceInfoAlex Blasche2013-08-121-1/+86
| | | | | | | | | | | | | | Note that this change causes a behavior change. If a service object is a copy of antoher one they both share the same data and behavior. Changing one will affect the copy in the same way. No automatic detach will happen. THis is a much more expected behavior and avoids issues where one service info copy was not able to deregister the service anymore. Change-Id: I0b10688a5ef55e8c1dd9f5ccbf090336e3f635ad Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Improve QBluetoothTransferManager unit testAlex Blasche2013-08-093-94/+223
| | | | | | | | | and fix some minor issues during the process. Task-number: QTBUG-22017 Change-Id: Iff1adde28ba818c3ed0511cb5d45404f05d7c36f Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* The QBluetoothDeviceDiscoveryAgent test is not longer insignificantAlex Blasche2013-08-061-1/+0
| | | | | | | Task-number: QTBUG-22017 Change-Id: I83f1d88ddd6255693f4aa8a2993cd1a818981a75 Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Fix bluetooth device discovery testAlex Blasche2013-07-311-129/+166
| | | | | | | | The Bluez and Generic backends were failing. Change-Id: Id4a55a43432a9ad198d36062a1e4e23a54b658ec Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Don't hardcode the test device's Bt address in the unit test.Alex Blasche2013-07-291-7/+14
| | | | | | | | | | | Ensure that all signals emitted during a pairing request are queued via the event loop. The exact reason for doing this is unknown however such a change was done on purpose in QtMobility. We keep the behavior to be on the safe side. Change-Id: I666c5b2c25a0c80df634f7b6643bd08126812b65 Reviewed-by: Michael Zanetti <michael.zanetti@canonical.com> Reviewed-by: Alex <alexander.blasche@digia.com>
* Don't export QNearFieldTagType* classes.Alex Blasche2013-07-252-2/+2
| | | | | | | | | | | | There is no implementation for them at this stage. Hence we remove them from the committed API. They remain enabled via auto tests to ensure that the code keeps working. Task-number: QTBUG-32306 Change-Id: I5312e8436a99be4e24311bea4c92718239178ef4 Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Michael Zanetti <michael.zanetti@canonical.com> Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Improve and fix the qbluetoothlocaldevice testAlex Blasche2013-07-151-49/+127
| | | | | | | | The Bluez code was not passing the test. Task-number: QTBUG-22017 Change-Id: I0bc2fca7ec9d352481eea24c75b902c21b4fc0da Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Add unit test and signal for/to QDeclarativeNdefRecordAlex Blasche2013-07-101-0/+126
| | | | | Change-Id: Ifbfb2e11b072610b3f2c140a469ed73e110c2eca Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Fixing QNearFieldTarget::waitForRequestCompletedFabian Bumberger2013-07-101-7/+7
| | | | | | | | | | | | The current implementation is not waiting at all. Adjust the waiting time for the tagtype1 unit test to avoid 30min runtime. Change-Id: Ied9cff72456b964af9224362f47113a7e2c792ae Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com> Reviewed-by: Alex <alexander.blasche@digia.com>
* Re-enable qnearfieldtagtype* auto test.Alex Blasche2013-07-012-6/+0
| | | | | | | | | The tests don't crash on platforms I can test with. Retrigger CI on it to validate crash. Change-Id: Ieac67a891a946ca15c9e23be773f2371043230a6 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Fix broken QBluetoothLocalDevice::isValid() behaviorAlex Blasche2013-06-282-8/+26
| | | | | | | | | | | | | | | The Bluez and QNX backend always returned true. They should only return true if the local device is truly available or if the passed QBluetoothAddress is indeed one of the local bluetooth devices. The related unit test was extended to ensure common bahvior of invalid QBluetoothLocalDevice instance on all platforms. Task-number: QTBUG-32068 Change-Id: I40ab4db48dc82ba0d1c0bb5275e96a3ee812b01a Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Alex <alexander.blasche@digia.com>
* Export qHash(QNdefRecord)Alex Blasche2013-06-271-0/+6
| | | | | | | | | | | | | The symbol is used by the library itself. We may as well export it for wider use. The patch adds qHash usage to the unit tests to confirm the export of the function and to ensure catch changes of the hashing algorithm. Task-number: QTBUG-31951 Change-Id: Ic6e6e2a0cf7ee5aa9f5bd6c91a8a6c31030c5848 Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Enable Qt NFC in the CI system.Alex Blasche2013-06-264-16/+7
| | | | | | | | | | | | | | | | | | Don't require CONFIG+=nfc to build QtNfc lib. This prevents proper test execution and there is no API commitment until the API is offcially released anyway. Excludes three auto tests from -developer-build builds as they require Q_AUTOTEST_EXPORT. Fixes compile errors associated to namespace'd builds of Qt. Revert "Remove not needed symbol 'qHash(const QNdefRecord&)'" The symbol is needed during compilation by Windows. This reverts commit 39901af48f40f0672731a1f62dc003c4b37d1fec. Change-Id: I61c644bbfc4906729e6d2b9deb741989030c8624 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Fix parsing of QNdefMessage::fromByteArray()Alex Blasche2013-06-251-0/+40
| | | | | | | | | | | | Multiple NdefRecords were parsed incorrectly because the to-be-added record was never reset when reading the next entry. The added unit test fails without the fix. Task-number: QTBUG-31950 Change-Id: I2f1335b7e2d43000f55dc429524c5b8b87f868d2 Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Alex <alexander.blasche@digia.com>
* Update Copyright headersAlex Blasche2013-06-2529-82/+84
| | | | | | | | | - Update Digia's copyright year - Add copyright to files without it - Convert old BSD to new LGPL license for auto test code Change-Id: I47f5c871c436f9c2731b235026434448719cc671 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Add QBluetoothDeviceInfo::operator!= which was missing.Milian Wolff2013-03-281-3/+3
| | | | | | | | The code just forwards to operator==, as is done as well by e.g. QBluetoothTransferRequest. Change-Id: I4db523124b6bd88bcb1f129d0742fc8ef376c61b Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
* Rename NFC and Bluetooth namespace macros.Aaron McCarthy2013-02-1420-20/+20
| | | | | | | | Renamed to the namespace macros to follow what syncqt expects. This fixes missing namespace macro warnings printed by syncqt. Change-Id: I7be5a700e8435a559cb4c2e74938851233095887 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Fix building of NFC tests.Aaron McCarthy2013-02-083-0/+3
| | | | | | | | | The tests qnearfieldmanager, qnearfieldtagtype1 and qnearfieldtagtype2 pull in shared code from the NFC library source. Set VPATH so that these source files can be found. Change-Id: Ie095b4d55b06cb364c697b944f9a4aca9e6fbb93 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* make use of qtHaveModule()Oswald Buddenhagen2013-01-042-4/+4
| | | | | | Change-Id: I810dc7b5863c1674390a7e471845f1779cbba98c Reviewed-by: Tasuku Suzuki <stasuku@gmail.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* remove obsolete DEPENDPATH assignmentsOswald Buddenhagen2012-12-166-7/+0
| | | | | | | | qmake now add CONFIG+=depend_includepath by default, making manual DEPENDPATH setup unnecessary. Change-Id: I51dd08d4a1a9a383296ce4331b843bc5e6375871 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* remove some unnecessary CONFIG additionsOswald Buddenhagen2012-12-161-1/+0
| | | | | | | | qt is already added by spec_pre.prf, warn_on and depend_includepath by default_pre.prf, and console is added one line below. Change-Id: I69345d5cd2cfcb9726cdd4c21874381463e51c2c Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Fix QBluetoothDeviceInfo testLiang Qi2012-11-221-4/+2
| | | | | | | | | Correct the test data, and for the 0-1 bits in address, they are unused and should be set to 0. Task-number: QTBUG-25453 Change-Id: I958da212528a0d61c1404f7bb9e6c8ae6c4730de Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Fix qnearfieldmanager test.Aaron McCarthy2012-10-281-2/+0
| | | | | | | Test was crashing due to dereferencing an invalid iterator. Change-Id: I912acc970de6859501e6d692a98d4c81c9673e79 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Further porting of NFC module from mobility to Qt 5.Aaron McCarthy2012-10-018-49/+115
| | | | | | | | | | | | | | | | | | | Includes the following changes: * Conditionally enables building of the NFC module when qmake is run with CONFIG+=nfc. * Correctly build within the QtNfc namespace. * Fix compile errors in examples, enable building of NFC examples. * Fix compile errors in tests, enable building of NFC tests. Mark the some NFC tests as insignificant as they currently crash. Notably does not enable NFC documentation generation. Task-number: QTBUG-22015 Change-Id: I9ff170c45848c8f0215e9427797922f840c2f015 Reviewed-by: Alex <ablasche@gmail.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-2330-687/+687
| | | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I4f07028d0bf0b3ba4c4649897b80687ea5e51abc Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Set the Qt API level to compatibility mode in all tests.Thiago Macieira2012-08-0121-0/+21
| | | | | | | | | | Qt 5.0 beta requires changing the default to the 5.0 API, disabling the deprecated code. However, tests should test (and often do) the compatibility API too, so turn it back on. Task-number: QTBUG-25053 Change-Id: I9db441ddaeb09298f311ece48111aea1ff2ae554 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Modify setAttribute parameter, it no longer accepts QUuid.Toby Tomkins2012-07-311-1/+1
| | | | | Change-Id: Icb05fcf183456af17fdbdc69ddfab434a37fa348 Reviewed-by: Andrew Stanley-Jones <andrew.stanley-jones@nokia.com>
* Test that the package configs for QtConnectivity work.Stephen Kelly2012-07-205-0/+90
| | | | | Change-Id: I485e3316cb7b0a84513511e5b834b33a19e341a8 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Rename getter functions for QBluetoothHostInfoalex2012-07-021-16/+16
| | | | | | | | | | The previous name was not compliant with Qt naming standard. QBluetoothHostInfo::getAddress() -> address() QBluetoothHostInfo::getName() -> name() Change-Id: Ia130687c456e3ded398e685846a41de7ebb908e9 Reviewed-by: Andrew Stanley-Jones <andrew.stanley-jones@nokia.com> Reviewed-by: Michael Zanetti <michael.zanetti@nokia.com>
* Add unit test for new QBluetoothHostInfo class.alex2012-06-273-0/+184
| | | | | Change-Id: I47e9673790c6ec264f3985fefdb35dfbfc2fd482 Reviewed-by: Andrew Stanley-Jones <andrew.stanley-jones@nokia.com>
* Fix various Bluetooth tests such that they run via CIalex2012-06-275-5/+43
| | | | | | | | | The CI system doesn't have any Bluetooth devices attached to it. Task-number: QTBUG-22017 Change-Id: I136d8f1295f3e770eb8c66557343ede7fa438a06 Reviewed-by: Michael Zanetti <michael.zanetti@nokia.com> Reviewed-by: Andrew Stanley-Jones <andrew.stanley-jones@nokia.com>
* Fix QBluetoothServiceInfo testalex2012-06-251-6/+9
| | | | | | | | | The test can never succeed in CI as long as CI doesn't have an attached Bluetooth device. Skip test when approrpiate. Task-number: QTBUG-25452 Change-Id: Iaeb4e4c2d978a8806e20dfee32b41c967503482a Reviewed-by: Alex <alex.blasche@nokia.com>
* Change uses of {to,from}Ascii to {to,from}Latin1Thiago Macieira2012-05-302-3/+3
| | | | | | | | | | This operation should be a no-op anyway, since at this point in time, the fromAscii and toAscii functions simply call their fromLatin1 and toLatin1 counterparts. Task-number: QTBUG-21872 Change-Id: Ia2fed44c5db997b6fc13a243f5e312d35f8625ad Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Set explicit testcase.timeout for slow testsRohan McGovern2012-05-292-0/+2
| | | | | | | | | | | | We'd like to decrease the default timeout for tests in the Qt Project CI so that we waste less time waiting for hanging tests. Tests which genuinely take a long time to run, such as these, should have their timeout explicitly set in their .pro file. Change-Id: I46f6728a26661bf9355d68fa739c3029507c2cec Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com> Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
* tst_qbluetoothservicediscoveryagent disabled, it has timeout crashes.Toby Tomkins2012-05-091-0/+1
| | | | | | | | | | | | | tst_qbluetoothservicediscoveryagent crashes when being tested, this would be an acceptable, however it crashes and overruns the 10 minute timeout for tests. This adds a significant percentage to both the qtconnectivity and qt5 integration. It is being disabled for this reason. Task-number: QTBUG-22017 Change-Id: I34c4b72a62c3e54443df6270261e22371645342e Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove insignificant_test markers associated with maemo platform.Jason McDonald2012-04-243-6/+0
| | | | | | | Continuous Integration is no longer performed for this platform. Change-Id: I8058228256c52d86e872217cec54fe890a180fdf Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove insignification from qndefmessage test.Jason McDonald2012-04-241-2/+0
| | | | | | | | This test is currently excluded form the build (along with all NFC tests), but was passing prior to that. Change-Id: I56f340c36c8f475941fa8e4b864a5790ffd9b317 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove insignification from the qbluetoothdeviceinfo test.Jason McDonald2012-04-242-2/+2
| | | | | | | | | This test has two stable failures. Mark these with QEXPECT_FAIL and re-enable the test. Task-number: QTBUG-25453 Change-Id: I1839a26280d2f47097d17278f55d1c9d84f8b300 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove insignification of qbluetoothserviceinfo test.Jason McDonald2012-04-242-2/+1
| | | | | | | | | This test has one stable failure. Mark that failure with QEXPECT_FAIL and re-enable the test. Task-number: QTBUG-25452 Change-Id: I811ffc52685780b185358dfa5e28c83598631ed4 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Re-enable qbluetoothtransferrequest test.Jason McDonald2012-04-241-2/+0
| | | | | | | | This test hasn't failed in CI since December 2011. Task-number: QTBUG-22017 Change-Id: Ic963bd742cb0007c1d0634f38aae3c470d607682 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove/disable QtNFC from Qt 5.0.alex2012-03-012-18/+21
| | | | | | | | | | | | Currently there is no way of verifying the QtNFC API. This decision will be revisited by future Qt releases. Furthermore there will be no commitment that the re-enabled QtNFC API will be source or binary compatible to the version disabled by this commit. Change-Id: I9aea986189d48b5c2368ce6b2c7ff20e2c94f2f8 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Michael Zanetti <michael.zanetti@nokia.com> Reviewed-by: Oliver Woltermann <oliver.woltermann@nokia.com>
* No more NFC on Symbian.alex2012-02-2852-7561/+0
| | | | | | Change-Id: Id1355d5c7a56de3b031945f226d9c52897020c8b Reviewed-by: Michael Zanetti <michael.zanetti@nokia.com> Reviewed-by: Alex <alex.blasche@nokia.com>
* Remove duplicates of QTRY_VERIFY and QTRY_COMPARE.Jason McDonald2012-02-131-28/+0
| | | | | | | These macros are now provided by QTestLib via the QtTest/QtTest header. Change-Id: I4a63a5fac456205c03bfb8cc7db782302f0eedd0 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* No more Bluetooth on Symbianalex2012-02-0814-241/+0
| | | | | | | | This change cleans the code base significantly. Change-Id: I668d05d72cf5aa896818139e2daba51909c0b9dd Reviewed-by: Michael Zanetti <michael.zanetti@nokia.com> Reviewed-by: Alex <alex.blasche@nokia.com>
* QtConnectivity: Add dependency to QtConcurrentFriedemann Kleint2012-02-0812-12/+12
| | | | | | | | | QtConcurrent is now a separate module. Add library to tests and examples. Change-Id: Ie66d73b80580ec23ad7c23e6c49771f7f08d8ea3 Reviewed-by: Alex <alex.blasche@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-3056-56/+56
| | | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: I84f8c423bd7748bbae495fedae696990414cee83 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* added documentation and examplesMichael Zanetti2012-01-231-2/+2
| | | | | | Change-Id: Ia99e5f8f9579c189379bce1a22de3d58b12ce5fc Reviewed-by: Alex <alex.blasche@nokia.com> Sanity-Review: Alex <alex.blasche@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-2056-56/+56
| | | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: I1c6ba5c87f0eca30b6f01f4245a032262d30f8ce Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>