diff options
author | Vladimir Svyatski <vsvyatski@yandex.ru> | 2017-04-22 10:02:59 +0300 |
---|---|---|
committer | Vladimir Svyatski <vsvyatski@yandex.ru> | 2017-04-22 12:38:36 +0300 |
commit | 5792bf1a858d66cf2f3b0953e08cae0650f217c4 (patch) | |
tree | 4dca809d0a7fb1f3ff453f2d3ca58dd52855e1b9 /tests/TestDatabase.h | |
parent | 75c16d1cbba7226fea7ada2a85a5b320bcdb06f9 (diff) |
Add skeleton for TestDatabase.cpp and test data for unit tests for the "empty recycle bin" functionality
Diffstat (limited to 'tests/TestDatabase.h')
-rw-r--r-- | tests/TestDatabase.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/TestDatabase.h b/tests/TestDatabase.h new file mode 100644 index 000000000..550155225 --- /dev/null +++ b/tests/TestDatabase.h @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2017 Vladimir Svyatski <v.unreal@gmail.com> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 or (at your option) + * version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef KEEPASSX_TESTDATABASE_H +#define KEEPASSX_TESTDATABASE_H + +#include <QObject> + +class Database; + +class TestDatabase : public QObject +{ + Q_OBJECT + +private slots: + void initTestCase(); + void testEmptyRecycleBinOnDisabled(); + void testEmptyRecycleBinOnNotCreated(); + void testEmptyRecycleBinOnEmpty(); + void testEmptyRecycleBinWithHierarchicalData(); +}; + +#endif // KEEPASSX_TESTDATABASE_H |