summaryrefslogtreecommitdiffstats
path: root/tests/testqPrefDiveComputer.h
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-07-22 17:02:26 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-25 08:35:04 -0700
commitbb5c1da1b7e8f5b2758db4d3235dad190f530fac (patch)
treefcc36a0adbe2247d409be81b2e41e5415622ea07 /tests/testqPrefDiveComputer.h
parent3d6848b22c9fb64a99bb3dec535431a6cab09ad9 (diff)
downloadsubsurface-bb5c1da1b7e8f5b2758db4d3235dad190f530fac.tar.gz
tests: add qPrefDiveComputer testcases
add test cases to secure struct preferences and qPrefDiveComputer work together Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'tests/testqPrefDiveComputer.h')
-rw-r--r--tests/testqPrefDiveComputer.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/testqPrefDiveComputer.h b/tests/testqPrefDiveComputer.h
new file mode 100644
index 000000000..df0e2cfef
--- /dev/null
+++ b/tests/testqPrefDiveComputer.h
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: GPL-2.0
+#ifndef TESTQPREFDIVECOMPUTER_H
+#define TESTQPREFDIVECOMPUTER_H
+
+#include <QObject>
+
+class TestQPrefDiveComputer : public QObject
+{
+ Q_OBJECT
+
+private slots:
+ void initTestCase();
+ void test_struct_get();
+ void test_set_struct();
+ void test_set_load_struct();
+ void test_struct_disk();
+ void test_multiple();
+};
+
+#endif // TESTQPREFDIVECOMPUTER_H