TestKeys.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (C) 2011 Felix Geyer <debfx@fobos.de>
  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_TESTKEYS_H
  19. #define KEEPASSX_TESTKEYS_H
  20. #include <QObject>
  21. class TestKeys : public QObject
  22. {
  23. Q_OBJECT
  24. private slots:
  25. void initTestCase();
  26. void testComposite();
  27. void testFileKey();
  28. void testFileKey_data();
  29. void testCreateFileKey();
  30. void testCreateAndOpenFileKey();
  31. void testFileKeyHash();
  32. void testFileKeyError();
  33. void testCompositeKeyComponents();
  34. void benchmarkTransformKey();
  35. };
  36. #endif // KEEPASSX_TESTKEYS_H