summaryrefslogtreecommitdiffstats
path: root/tests/testqPrefLocationService.h
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-08-06 17:50:08 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-12 11:30:19 -0700
commit3174c7156371f64efedcf19281ea0dc565f23bf8 (patch)
tree28646b95d3b406a61b9f98305f7e5669b12af391 /tests/testqPrefLocationService.h
parent75ce813a27fc22fca8e4b1c7484333235c9caea6 (diff)
downloadsubsurface-3174c7156371f64efedcf19281ea0dc565f23bf8.tar.gz
tests: add qPrefLocationService testcases
add test cases to secure struct preferences and qPrefLocationService work together Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'tests/testqPrefLocationService.h')
-rw-r--r--tests/testqPrefLocationService.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/testqPrefLocationService.h b/tests/testqPrefLocationService.h
new file mode 100644
index 000000000..a3a134003
--- /dev/null
+++ b/tests/testqPrefLocationService.h
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0
+#ifndef TESTQPREFLOCATIONSERVICE_H
+#define TESTQPREFLOCATIONSERVICE_H
+
+#include <QObject>
+
+class TestQPrefLocationService : 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 // TESTQPREFLOCATIONSERVICE_H