keepassxc/tests
Aetf a31c5ba006 FdoSecrets: Implement unlock before search
Fixes #6942 and fixes #4443

- Return number of deleted entries
- Fix minor memory leak
- FdoSecrets: make all prompt truly async per spec and update tests
    * the waited signal may already be emitted before calling spy.wait(),
      causing the test to fail. This commit checks the count before waiting.
    * check unlock result after waiting for signal
- FdoSecrets: implement unlockBeforeSearch option
- FdoSecrets: make search always work regardless of entry group searching settings, fixes #6942
- FdoSecrets: cleanup gracefully even if some test failed
- FdoSecrets: make it safe to call prompts concurrently
- FdoSecrets: make sure in unit test we click on the correct dialog

Note on the unit tests: objects are not deleted (due to deleteLater event not handled).
So there may be multiple AccessControlDialog. But only one of
it is visible and is the correctly one to click on.

Before this change, a random one may be clicked on, causing the
completed signal never be sent.
2021-10-16 22:50:04 -04:00
..
data Fix removing encrypted ASN.1 keys from ssh-agent (#6804) 2021-08-08 09:36:06 -04:00
gui FdoSecrets: Implement unlock before search 2021-10-16 22:50:04 -04: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 Remove KeePassHttp plugin and qhttp (#1752) 2018-03-31 11:36:18 -04:00
FailDevice.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
FailDevice.h Make C++11 mandatory. 2015-09-12 13:55:50 +02:00
modeltest.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
modeltest.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
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 Add new Base32 implementation 2017-10-21 13:15:02 +02:00
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 Remove WITH_GUI_TESTS exclusion for CLI tests (#6946) 2021-09-26 12:36:54 +02:00
TestCli.h CLI: Replace locate command with search 2021-08-22 19:23:16 -04: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 Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestCsvExporter.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestCsvExporter.h Refactor Database and Database widgets (#2491) 2018-11-22 11:47:31 +01:00
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 Add direct write save option 2021-10-09 11:12:25 -04:00
TestDatabase.h Improve Database and CLI tests 2019-10-20 18:56:41 -04:00
TestDeletedObjects.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestDeletedObjects.h Refactor Database and Database widgets (#2491) 2018-11-22 11:47:31 +01:00
TestEntry.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestEntry.h Add natural sort of entry list 2020-05-22 12:13:20 -04:00
TestEntryModel.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestEntryModel.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
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 CLI: Replace locate command with search 2021-08-22 19:23:16 -04:00
TestGroup.h CLI: Replace locate command with search 2021-08-22 19:23:16 -04:00
TestGroupModel.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestGroupModel.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestHashedBlockStream.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestHashedBlockStream.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
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 Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestKdbx2.h Refactor Database and Database widgets (#2491) 2018-11-22 11:47:31 +01:00
TestKdbx3.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestKdbx3.h Performed project-wide code formatting 2019-01-28 22:38:59 -05:00
TestKdbx4.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestKdbx4.h Ensure challenge-response key buffer is properly cleared. 2020-01-11 11:16:03 +01:00
TestKeePass1Reader.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestKeePass1Reader.h Refactor Database and Database widgets (#2491) 2018-11-22 11:47:31 +01:00
TestKeePass2Format.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestKeePass2Format.h Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestKeePass2RandomStream.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestKeePass2RandomStream.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestKeys.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestKeys.h Add MockChallengeResponseKey and additional composite key component test 2018-03-01 19:26:18 -05:00
TestMerge.cpp Optimize includes across code base 2021-07-13 22:08:33 -04: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 Add sharing of groups between databases 2018-10-01 10:39:37 -04:00
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 broken browser integration since #6899 (#7030) 2021-10-09 11:22:44 -04:00
TestTools.h Add delete-entry command to Browser Integration API 2021-09-21 04:17:14 -04:00
TestTotp.cpp Optimize includes across code base 2021-07-13 22:08:33 -04:00
TestTotp.h Complete refactor of TOTP integration 2018-09-15 12:10:26 -04:00
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