keepassxc/tests
tenzap dc7ad6c1b7
Fix syntax issue & add a missing header (#7160)
* Fix syntax to prevent compilation issue

Fix build failure with AppleClang 7 & 8.

Error was:
src/core/CustomData.cpp:30:41: error: default initialization of an object of const type 'const CustomData::CustomDataItem' without a user-provided default constructor
static const CustomData::CustomDataItem NULL_ITEM;
                                        ^
                                                 {}
src/core/Metadata.cpp:32:39: error: default initialization of an object of const type 'const Metadata::CustomIconData' without a user-provided default constructor
static const Metadata::CustomIconData NULL_ICON;
                                      ^

src/core/Metadata.cpp:32:48: note: add an explicit initializer to initialize 'NULL_ICON'
static const Metadata::CustomIconData NULL_ICON;
                                               ^
                                               {}

* Add missing QUuid header

Fixes this compilation issue with LLVM clang 9, possibly also due to an old QT5

tests/TestTools.cpp:96:39: error: incomplete type 'QUuid' named in nested name specifier
    auto validUuid = Tools::uuidToHex(QUuid::createUuid());
                                      ^~~~~~~
/opt/local/libexec/qt5/lib/QtCore.framework/Headers/qmetatype.h:1887:1: note: forward declaration of 'QUuid'
QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
^
/opt/local/libexec/qt5/lib/QtCore.framework/Headers/qmetatype.h:108:18: note: expanded from macro 'QT_FOR_EACH_STATIC_CORE_CLASS'
    F(QUuid, 30, QUuid) \
                 ^
tests/TestTools.cpp:101:40: error: incomplete type 'QUuid' named in nested name specifier
    auto nonHexUuid = Tools::uuidToHex(QUuid::createUuid()).replace(0, 1, 'p');
                                       ^~~~~~~
/opt/local/libexec/qt5/lib/QtCore.framework/Headers/qmetatype.h:1887:1: note: forward declaration of 'QUuid'
QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
^
/opt/local/libexec/qt5/lib/QtCore.framework/Headers/qmetatype.h:108:18: note: expanded from macro 'QT_FOR_EACH_STATIC_CORE_CLASS'
    F(QUuid, 30, QUuid) \
                 ^
2021-11-24 22:36:31 -05:00
..
data CLI: Add commands to handle attachments 2021-11-07 17:27:16 -05:00
gui Removing QWidget dependency from src/core. 2021-11-12 07:41:30 -05:00
mock Fix challenge-response key data after Botan 2021-05-19 22:36:30 -04:00
util Optimize includes across code base 2021-07-13 22:08:33 -04:00
CMakeLists.txt Remove WITH_GUI_TESTS exclusion for CLI tests (#6946) 2021-09-26 12:36:54 +02:00
config-keepassx-tests.h.cmake
FailDevice.cpp
FailDevice.h
modeltest.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
modeltest.h
TestAutoType.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestAutoType.h Auto-Type support for T-CONV, T-REPLACE-RX, and Comments 2021-02-22 07:41:23 -05:00
TestBase32.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestBase32.h
TestBrowser.cpp Support for triggering Global Auto-Type from browser extension 2021-10-10 23:41:58 -04:00
TestBrowser.h Support for triggering Global Auto-Type from browser extension 2021-10-10 23:41:58 -04:00
TestCli.cpp CLI: Fixed typo in tests 2021-11-07 17:27:16 -05:00
TestCli.h CLI: Add commands to handle attachments 2021-11-07 17:27:16 -05:00
TestConfig.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestConfig.h Change settings checkbox texts to positive phrasing (#4715) 2020-05-10 21:35:08 -04:00
TestCryptoHash.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestCryptoHash.h
TestCsvExporter.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestCsvExporter.h
TestCsvParser.cpp Add braces around single line statements 2020-02-02 08:46:18 -05:00
TestCsvParser.h Moving CsvParser to format/ 2021-08-22 18:30:43 -04:00
TestDatabase.cpp Implement KDBX 4.1 extended custom icons 2021-11-22 12:58:04 +01:00
TestDatabase.h Implement KDBX 4.1 extended custom icons 2021-11-22 12:58:04 +01:00
TestDeletedObjects.cpp Implement KDBX 4.1 extended custom icons 2021-11-22 12:58:04 +01:00
TestDeletedObjects.h Implement KDBX 4.1 extended custom icons 2021-11-22 12:58:04 +01:00
TestEntry.cpp Implement KDBX 4.1 PreviousParentGroup flag 2021-11-22 12:58:04 +01:00
TestEntry.h Implement KDBX 4.1 PreviousParentGroup flag 2021-11-22 12:58:04 +01:00
TestEntryModel.cpp Removing QWidget dependency from src/core. 2021-11-12 07:41:30 -05:00
TestEntryModel.h
TestEntrySearcher.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestEntrySearcher.h Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestFdoSecrets.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestFdoSecrets.h Replace all crypto libraries with Botan 2021-04-05 22:56:03 -04:00
TestGroup.cpp Implement KDBX 4.1 extended custom icons 2021-11-22 12:58:04 +01:00
TestGroup.h Implement KDBX 4.1 PreviousParentGroup flag 2021-11-22 12:58:04 +01:00
TestGroupModel.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestGroupModel.h
TestHashedBlockStream.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestHashedBlockStream.h
TestHibp.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestHibp.h CLI: add 'analyze' subcommand for offline HIBP breach checks 2019-06-25 15:37:40 -04:00
TestIconDownloader.cpp Fix favicon download from URL with non-standard port. 2021-03-01 21:42:19 -05:00
TestIconDownloader.h Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestKdbx2.cpp Correctly set KDBX envelope version 2021-11-22 12:58:04 +01:00
TestKdbx2.h
TestKdbx3.cpp Correctly set KDBX envelope version 2021-11-22 12:58:04 +01:00
TestKdbx3.h Correctly set KDBX envelope version 2021-11-22 12:58:04 +01:00
TestKdbx4.cpp Correctly set KDBX envelope version 2021-11-22 12:58:04 +01:00
TestKdbx4.h Correctly set KDBX envelope version 2021-11-22 12:58:04 +01:00
TestKeePass1Reader.cpp Implement KDBX 4.1 extended custom icons 2021-11-22 12:58:04 +01:00
TestKeePass1Reader.h
TestKeePass2Format.cpp Avoid redundant KDBX4 test runs 2021-11-22 12:58:04 +01:00
TestKeePass2Format.h Correctly set KDBX envelope version 2021-11-22 12:58:04 +01:00
TestKeePass2RandomStream.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestKeePass2RandomStream.h
TestKeys.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestKeys.h
TestMerge.cpp Implement KDBX 4.1 extended custom icons 2021-11-22 12:58:04 +01:00
TestMerge.h Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestModified.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestModified.h Properly block modified signal during Database destruction (#6438) 2021-05-27 21:50:15 -04:00
TestOpenSSHKey.cpp SSH Agent: Add support for OpenSSH 8.2 FIDO/U2F keys 2021-10-01 16:25:14 -04:00
TestOpenSSHKey.h SSH Agent: Add support for OpenSSH 8.2 FIDO/U2F keys 2021-10-01 16:25:14 -04:00
TestOpVaultReader.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestOpVaultReader.h Improve OPVault handling and replace test opvault 2020-05-14 15:17:28 -04:00
TestPassphraseGenerator.cpp Add word case option to passphrase generator (#3172) 2019-05-24 18:23:19 -04:00
TestPassphraseGenerator.h Add word case option to passphrase generator (#3172) 2019-05-24 18:23:19 -04:00
TestPasswordGenerator.cpp Exclude additional lookalike characters (6G8B) 2021-02-25 21:36:30 -05:00
TestPasswordGenerator.h Allow defining additional characters for the password generator 2020-03-09 23:35:55 -04:00
TestPasswordHealth.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestPasswordHealth.h Implement Password Health Report 2020-02-01 09:30:12 -05:00
TestRandomGenerator.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestRandomGenerator.h Replace all crypto libraries with Botan 2021-04-05 22:56:03 -04:00
TestSharing.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestSharing.h Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestSignature.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestSignature.h
TestSSHAgent.cpp Fix removing encrypted ASN.1 keys from ssh-agent (#6804) 2021-08-08 09:36:06 -04:00
TestSSHAgent.h Fix removing encrypted ASN.1 keys from ssh-agent (#6804) 2021-08-08 09:36:06 -04:00
TestSymmetricCipher.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestSymmetricCipher.h Replace all crypto libraries with Botan 2021-04-05 22:56:03 -04:00
TestTools.cpp Fix syntax issue & add a missing header (#7160) 2021-11-24 22:36:31 -05:00
TestTools.h Allow specifing database backup paths. (#7035) 2021-11-07 17:41:17 -05:00
TestTotp.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestTotp.h
TestUpdateCheck.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestUpdateCheck.h Ran make format 2019-03-19 18:56:17 -04:00
TestYkChallengeResponseKey.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestYkChallengeResponseKey.h Significantly enhance hardware key robustness 2020-05-14 20:19:56 -04:00