summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsensor
diff options
context:
space:
mode:
authorLincoln Ramsay <lincoln.ramsay@nokia.com>2011-10-06 16:54:05 +1000
committerLincoln Ramsay <lincoln.ramsay@nokia.com>2011-10-10 09:25:31 +1000
commita53bcc52d0092b523781e8e731de3e476dc4d4b0 (patch)
treeb90377f47eb669c9ae84a67bd6e0e231810bf59a /tests/auto/qsensor
parent8292bb2ccefa91aa50eff52d8237ddd3cef15bb5 (diff)
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/qsensor')
-rw-r--r--tests/auto/qsensor/tst_qsensor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qsensor/tst_qsensor.cpp b/tests/auto/qsensor/tst_qsensor.cpp
index 0765750d..3218d7fc 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()