Debian Codegraph @

liblearnerprofile/autotests/testlearnerstorage.h

raw
1 /*
2 SPDX-FileCopyrightText: 2016 Andreas Cord-Landwehr <[email protected]>
3
4 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
5 */
6
7 #ifndef TESTLEARNERSTORAGE_H
8 #define TESTLEARNERSTORAGE_H
9
10 #include <QObject>
11 #include <QScopedPointer>
12 #include <QTemporaryFile>
13
14 namespace LearnerProfile
15 {
16 class Storage;
17 }
18
19 class TestLearnerStorage : public QObject
20 {
21 Q_OBJECT
22
23 public:
24 TestLearnerStorage();
25
26 private Q_SLOTS:
27 /**
28 * Called before every test case.
29 */
30 void init();
31
32 /**
33 * Called after every test case.
34 */
35 void cleanup();
36
37 void testLearnerStorage();
38 void testProgressLogStorage();
39 void testProgressValueStorage();
40
41 private:
42 QScopedPointer<LearnerProfile::Storage> m_storage;
43 QTemporaryFile m_db;
44 };
45
46 #endif