summaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* Fix another bad use of static plugins.Lincoln Ramsay2012-06-132-12/+3
| | | | | Change-Id: I88bbe0ffe7768576df92a1d8e45097f7c35c5702 Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Use static plugins properlyLars Knoll2012-06-127-27/+7
| | | | | | | | The test case was trying to use static plugins in a rather hacky way. Change it over to use the standard way. Change-Id: I828e64b841b58b763018e2688553c0453abd304b Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Temporarily disable the test to get qt5.git through CILars Knoll2012-06-121-1/+1
| | | | | Change-Id: I98e74749fea8e7130dfd4df1213f435ebb0bbd31 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* setDataRates clobbers user-set data rateLincoln Ramsay2012-06-041-0/+22
| | | | | | | | | | | | | | | | | | | | | | Under normal conditions, dataRate is set/checked like so. QSensor::setDataRate records the data rate. It can't be evaluated because we have no backend. Upon getting a backend, we are notified of the available data rates. Re-evaluate the previously-set dataRate after connecting to a backend. The problem is that connectToBackend did not save the dataRate value until after setDataRates was called and setDataRates was clobbering the dataRate property. Two fixes will be made. connectToBackend will save the dataRate before creating the backend and setDataRates will stop clobbering dataRate. Also, setDataRates is now banned from being called outside of the constructor because otherwise an available data rate may disappear during use. Add a test case to verify that a previously-set data rate is not clobbered. Change-Id: I9632b2c8ffcc6d48d9bc91f263b99028ee997ff9 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* fix false positive sensor gesture recognition when slam is too close to headLorn Potter2012-05-242-0/+230
| | | | | Change-Id: Ic6aa24ca44b6cb61c1592bd8536a092d7ec0fc90 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* fix false positive whip gesture.Lorn Potter2012-05-243-291/+826
| | | | | | | | false positive was tapping fingers on screen would produce a whip : Change-Id: Ibff1323f27e899cd63bdbaddcf0e77915a993b21 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* make hover gesture work betterLorn Potter2012-05-242-0/+258
| | | | | | | | | make hover work when the ir prox is calibrated. Also make sure that a hand moving up after doing a cover does not trigger a hover signal. Change-Id: I8925c4d7dd53302b9d9950989e37ad991216f621 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* make twist dependent upon an orientation change.Lorn Potter2012-05-181-33/+150
| | | | | | | | | This fixes getting a twist gesture by just moving the device left or right. and update one test data that did not have needed orientation change when the gesture was performed. Change-Id: I4fd9148d3f9c3d093530d08c2f6834f0972c659e Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* add sensor gesture auto testsLorn Potter2012-05-1432-2/+6472
| | | | | | | | use mock sensor plugin to feed captured data through sensorgestures. Change-Id: I5d040f2b7d5786b79bf295c98777ada425acbe8a Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* QtSensors: Fix compilation after merging of the api_changes branch.Friedemann Kleint2012-04-181-0/+2
| | | | | Change-Id: I6d9f674eac15ad5f22de0e5631396c2c9eb1f19f Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Better/consistent progress messagesLincoln Ramsay2012-03-202-99/+101
| | | | | Change-Id: Ia71df7c244578818421e301924b52de1f33f1691 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* The variable is QT_SENSORS_LOAD_PLUGINSLincoln Ramsay2012-03-201-1/+1
| | | | | Change-Id: Ib9c52aff575cab9ef409e265e90e3c28aa517107 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Use an environment variable to suppress loading of plugins.Lincoln Ramsay2012-03-192-15/+2
| | | | | | | | This removes the last use of the sensors_unit_test_hook function so it can be removed. Change-Id: I9f0b27fc69bfe74a151826714e3a1c0e207a7e0c Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
* Don't use the platform sensors for this unit test.Lincoln Ramsay2012-03-192-12/+13
| | | | | | | Turn off plugin loading and supply test backends. Change-Id: Ib8cf96d26f4e42b3cc48728eae53511430eb3a5a Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Use the new plugin mechanism for Sensors and SensorGesturesLincoln Ramsay2012-03-167-11/+11
| | | | | | | | | | | | | | Plugins no longer use QFactoryInterface or Q_EXPORT_PLUGIN. Instead, Q_PLUGIN_METADATA is used. Meta-data is provided through a .json file that is embedded into the plugin by moc. For now, this meta-data is not actually used because both sensors and gestures use a dynamic registration mechanism. Change-Id: Ic82657e2ba5768127e13f7411ca51f60772781d8 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Remove REGISTER_STATIC_PLUGINLincoln Ramsay2012-03-162-16/+0
| | | | | | | | This API was never particularly reliable. It is somewhat incompatible with the new-style Qt plugins. Change-Id: Iaaa0e6282404ce5477abcc8b905b14b1fb58644c Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Remove REGISTER_STATIC_PLUGIN_V2Lincoln Ramsay2012-03-163-2/+31
| | | | | | | | | | | | | | | This was never officially part of the public API. Remove it from public headers so that it is not accidentally used. This macro cannot be used with the new Qt plugins. There are 2 unit tests that use this mechanism and for this reason, loading of static, legacy plugins will continue but they will use internal logic to achieve this rather than a macro defined in a public header. Change-Id: I3fadcc1ca5c22ea0fc3660584ddba28271d18a89 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Remove QSettings usageWolfgang Beck2012-03-161-21/+4
| | | | | Change-Id: Ifec28d4de4af4c5a114c66faaababaaeb57ad357 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* add some testing for sensorgestureplugins, however feeble.Lorn Potter2012-03-144-5/+259
| | | | | Change-Id: I4758f401cbf577b2ac7ba772f4897e6334f22900 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Rename declarative symbols.Lincoln Ramsay2012-03-085-30/+30
| | | | | | | Use the script rename-qtdeclarative-symbols.sh. Change-Id: Ib1a62731a6c95590978a488c4afbd804f14fb958 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Revert "Disable unit tests that rely on plugin loading."Lincoln Ramsay2012-02-231-4/+4
| | | | | | | | | | The underlying problem has been identified and fixed. It turns out QFactoryLoader had a logic error. This reverts commit fbc2e2ca805b97bdbef4a3b6b6a276215ba668df. Change-Id: I419f0cd72b65d55b81a2f8896d5b77328bc9e5cb Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Disable unit tests that rely on plugin loading.Lincoln Ramsay2012-02-171-4/+4
| | | | | | | | | Plugin loading seems to be broken. We need to get a compile fix through but it won't go while the unit tests are failing. Just turn them off for now and they can go on when plugin loading has been fixed. Change-Id: I9cde13540ca82515d119b11316afe66b62b7f968 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-3038-38/+38
| | | | | | | | | | | 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: I1ecfbf66a49bb91dd995d92c871ca36148adc645 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-2338-38/+38
| | | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: Ie8628548cde5d3b251f319cbb6f33e6c08852d9e Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Remove friend class tst_Sesnsors2QMLAPIWolfgang Beck2012-01-191-22/+22
| | | | | | Change-Id: I24772c90fc20cd02d6b442b5e80bddc226a736ee Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* speed up sensor gesture auto testLorn Potter2012-01-161-2/+2
| | | | | | Change-Id: Ie29714abcfa3f11d0507df6757022060100762a1 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* alwaysOn for QtSensors 5.0 sensorsLincoln Ramsay2012-01-132-0/+30
| | | | | | | | | refactor the enabled and alwaysOn properties into a common base class use appropriate namespacing to avoid collisions with the QtMobility.sensors elements Change-Id: I6ac9f040d226bb648ede5459df2c26b82feff587 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
* alwaysOn for legacy QML elementsLincoln Ramsay2012-01-132-1/+65
| | | | | | | | | You must use QtMobility.sensors 1.3 to get alwaysOn Use apprpriate namespacing to avoid collisions with the QtSensors 5 elements. Change-Id: If0f6dfff116d7de8a6de403b2d7c75ffd48b03b8 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* add new sensor gesturesLorn Potter2012-01-121-6/+6
| | | | | | Change-Id: Ided28e5d26af383b019d84ebb128c8ec6d6e3d34 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Implement an API for alwaysOn.Lincoln Ramsay2012-01-111-0/+10
| | | | | | Change-Id: If530fed02979ad9c4608f317b718ee449bb25ddc Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-0538-38/+38
| | | | | | Change-Id: I7fdedc329cf80f84f1f6e0c6c9da3f7d1ebcd70d Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Normalize SIGNAL/SLOT macros.Lincoln Ramsay2011-12-151-3/+3
| | | | | | Change-Id: Ic46576ab8a9f28258020ed3afe12b377036c6797 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Clean up the sensor gestures unit test.Lincoln Ramsay2011-11-292-185/+124
| | | | | | | | | | QTRY_ instead of custom waiting functions. Do the thread test properly. Since it can't possibly work anyway, remove the qt_metacast() function. Change-Id: I139ab29bc0785bee49a22fa20d10f2970cbac367 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* QtSensors: Fix compilation of examples/warnings on Windows.Friedemann Kleint2011-11-252-8/+8
| | | | | | | | | | | | - Fix double->float truncation in tests - Use -rdynamic for g++ only - Introduce EXPORT macro in grue library for Windows to work - Add DESTDIR for the grue lib (to prevent it from ending up in the debug/release subfolders, respectively Change-Id: I3b902b501483c92639c0a6252240db4ed8a4a00d Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Don't use <QtDeclarative> so we can compile with -WerrorLincoln Ramsay2011-11-252-2/+4
| | | | | | Change-Id: I039727b8920395af8b1129427f409d630d79c52d Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Fixed QtSensors autotest namespace compilation.Toby Tomkins2011-11-252-0/+7
| | | | | | Change-Id: Iaf903df5b74f8793e74a633cf4d42306d1e30263 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* compileLincoln Ramsay2011-11-151-76/+0
| | | | | | | | | | The simulator plugin did not compile under OBS. While looking for other plugins that may be affected a junk file was discovered in the qsensor unit test. Change-Id: Ic28d703d8f80214739579b74c11e7cef9b1b4148 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* remove qmobilitypluginsearch and use the QFactoryLoader instead.Lorn Potter2011-11-145-7/+15
| | | | | | Change-Id: Ifdd2031d309a5ac4cbeedc5d7cdb6ba9cbb845c3 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Sanity-Review: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Add QtSensorGesture QML APIWolfgang Beck2011-11-107-2/+508
| | | | | | Change-Id: Iaa0a875941316c341d69f473eeba3be4a87ec736 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Make TiltSensor 100% code coverageWolfgang Beck2011-11-091-1/+67
| | | | | | Change-Id: If769dc2f6b8652f3b1cbbd532cd11498a65c2317 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
* add more code coverage.Lorn Potter2011-11-082-0/+30
| | | | | | | | | qt_metacast was not tested. add Q_ASSERT instead of conditional checking for object. Change-Id: Ib8eaa0583d0f8f71b144941a34b1fe9109e85b7a Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* add invalidIds, remove redundant isValid, rename availableIds to validIdsLorn Potter2011-11-031-14/+21
| | | | | | Change-Id: I9677535dde72e771b943fa1b0522689c34336824 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* make sure recognizers do not need pluginLorn Potter2011-11-031-1/+4
| | | | | | Change-Id: Id3deaca92019c964d0d093cc2b04bf1eb043fbbf Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* make sure newSensorGestureAvailable gets signaledLorn Potter2011-11-031-0/+4
| | | | | | | | signaling needs to begin in the backend singleton Change-Id: I63453a919a0b5c9e1f093c6269bdfc171a592af9 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* add QSensorGestures API. Long live QSensorGestures!Lorn Potter2011-11-0116-1/+1735
| | | | | | Change-Id: Iada4e8888aad8b7b2180cc0bfb8576a766f75b24 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* These are system tests. Allow suppressing them.Lincoln Ramsay2011-10-282-2/+2
| | | | | | Change-Id: I107b90658304d44fe7fb0b885ae47e26df7be6d1 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Add missing test coverage for QIRProximitySensorLincoln Ramsay2011-10-282-0/+8
| | | | | | | Change-Id: I77a8a457d485f76853512063eeae15838929db0a Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com> Sanity-Review: Zsolt Simon <zsolt.simon@nokia.com>
* Revert temporary Q_SENSORS_EXPORT_TEMPalex2011-10-212-2/+2
| | | | | | | | Q_SENSORS_EXPORT_TEMP was used while the normal macro was removed from qglobal.h. Change-Id: I55bf788e9beab5b060b9e24ee2a815ce3d9bc2a4 Reviewed-by: Alex <alex.blasche@nokia.com>
* Fix test running under OBS.Lincoln Ramsay2011-10-191-96/+96
| | | | | | | | | Remove the assumptions that break between i586 and ARMv5. Cleanup code by replacing C-style casts with C++ casts. Remove redundant QVariant() wrappers. Change-Id: Ie6fd4be1c04c2c725aa7c8e87c1de261c7750cd8 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* First step of removal of Q_SENSORS_EXPXORT macro from qglobal.halex2011-10-172-2/+2
| | | | | | | | | Each module handles its own exports. We need to change the QtSensors version, remove the qglobal.h define and then add it back under the old name in QtSensors. Change-Id: I4183b7fcfc46469745c11c373d3122f02d64ccc7 Reviewed-by: Alex <alex.blasche@nokia.com>