TestDatabase.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (C) 2017 Vladimir Svyatski <v.unreal@gmail.com>
  3. * Copyright (C) 2017 KeePassXC Team <team@keepassxc.org>
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 2 or (at your option)
  8. * version 3 of the License.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #ifndef KEEPASSX_TESTDATABASE_H
  19. #define KEEPASSX_TESTDATABASE_H
  20. #include <QObject>
  21. class TestDatabase : public QObject
  22. {
  23. Q_OBJECT
  24. private slots:
  25. void initTestCase();
  26. void testOpen();
  27. void testSave();
  28. void testSaveAs();
  29. void testSignals();
  30. void testEmptyRecycleBinOnDisabled();
  31. void testEmptyRecycleBinOnNotCreated();
  32. void testEmptyRecycleBinOnEmpty();
  33. void testEmptyRecycleBinWithHierarchicalData();
  34. void testCustomIcons();
  35. };
  36. #endif // KEEPASSX_TESTDATABASE_H