diff options
author | Lincoln Ramsay <lincoln.ramsay@nokia.com> | 2011-10-06 16:54:05 +1000 |
---|---|---|
committer | Lincoln Ramsay <lincoln.ramsay@nokia.com> | 2011-10-10 09:25:31 +1000 |
commit | a53bcc52d0092b523781e8e731de3e476dc4d4b0 (patch) | |
tree | b90377f47eb669c9ae84a67bd6e0e231810bf59a /tests/auto | |
parent | 8292bb2ccefa91aa50eff52d8237ddd3cef15bb5 (diff) | |
download | qtsensors-a53bcc52d0092b523781e8e731de3e476dc4d4b0.tar.gz |
Sensors "porting" guide.
Change-Id: Ie471fcb632d3cfc581076c36b1c9bfc78c2b4d22
Reviewed-on: http://codereview.qt-project.org/6211
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qsensor/tst_qsensor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qsensor/tst_qsensor.cpp b/tests/auto/qsensor/tst_qsensor.cpp index 0765750..3218d7f 100644 --- a/tests/auto/qsensor/tst_qsensor.cpp +++ b/tests/auto/qsensor/tst_qsensor.cpp @@ -272,11 +272,15 @@ private slots: sensor.connectToBackend(); QVERIFY(sensor.reading() != 0); quint64 timestamp = sensor.reading()->timestamp(); + qtimestamp timestamp2 = sensor.reading()->timestamp(); QVERIFY(timestamp == quint64()); + QVERIFY(timestamp2 == qtimestamp()); sensor.setProperty("doThis", "setOne"); sensor.start(); timestamp = sensor.reading()->timestamp(); + timestamp2 = sensor.reading()->timestamp(); QVERIFY(timestamp == 1); + QVERIFY(timestamp2 == 1); } void testStart() |