keepassxc/tests
Jonathan White 744b4abce8 Move FileWatcher into Database class
* Fix #3506
* Fix #2389
* Fix #2536
* Fix #2230

Every database that has been opened now watch's it's own file. This allows the database class to manage file changes and detect fail conditions during saving. Additionally, all stakeholders of the database can listen for the database file changed notification and respond accordingly.

Performed significant cleanup of the autoreload code within DatabaseWidget. Fixed several issues with handling changes due to merging, not merging, and other scenarios while reloading.

Prevent database saves to the same file if there are changes on disk that have not been merged with the open database.
2019-10-20 18:56:41 -04:00
..
data CLI: Add Yubikey unlock support 2019-09-22 18:11:40 -04:00
gui Add support for multiple URLs in an entry 2019-10-16 22:20:57 -04:00
mock Restore correct formatting 2018-11-28 18:29:15 -05:00
stub Merge branch 'develop' 2018-12-18 22:28:56 -05:00
util Restore correct formatting 2018-11-28 18:29:15 -05:00
CMakeLists.txt Move FileWatcher into Database class 2019-10-20 18:56:41 -04: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 🐛 Fix building with Qt 5.9 (closes #528) 2017-06-01 17:05:07 -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 Fix global Auto-Type when database locked 2019-05-12 12:37:50 -04:00
TestAutoType.h Refactor Database and Database widgets (#2491) 2018-11-22 11:47:31 +01:00
TestBase32.cpp Move useful QTest template specializations to global header file 2018-01-24 13:32:37 +01:00
TestBase32.h Add new Base32 implementation 2017-10-21 13:15:02 +02:00
TestBrowser.cpp Add support for multiple URLs in an entry 2019-10-16 22:20:57 -04:00
TestBrowser.h Add support for multiple URLs in an entry 2019-10-16 22:20:57 -04:00
TestCli.cpp Add support for multiple URLs in an entry 2019-10-16 22:20:57 -04:00
TestCli.h CLI: Add Import XML command (#3572) 2019-10-15 22:10:45 -04:00
TestCryptoHash.cpp Restore correct formatting 2018-11-28 18:29:15 -05: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 Performed project-wide code formatting 2019-01-28 22:38:59 -05:00
TestCsvExporter.h Refactor Database and Database widgets (#2491) 2018-11-22 11:47:31 +01:00
TestCsvParser.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
TestCsvParser.h Formatting the code. 2018-03-31 16:01:30 -04:00
TestDatabase.cpp Move FileWatcher into Database class 2019-10-20 18:56:41 -04:00
TestDatabase.h Move FileWatcher into Database class 2019-10-20 18:56:41 -04:00
TestDeletedObjects.cpp Refactor Database and Database widgets (#2491) 2018-11-22 11:47:31 +01:00
TestDeletedObjects.h Refactor Database and Database widgets (#2491) 2018-11-22 11:47:31 +01:00
TestEntry.cpp Add support for multiple URLs in an entry 2019-10-16 22:20:57 -04:00
TestEntry.h CLI: add 'analyze' subcommand for offline HIBP breach checks 2019-06-25 15:37:40 -04:00
TestEntryModel.cpp Clean up Entry Model/View code 2018-11-17 08:49:47 -05: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 Allow abbreviation of search field names 2019-09-04 22:31:15 -04:00
TestEntrySearcher.h Improve existing code prior to implementing FDO Secrets 2019-05-12 12:35:42 -04:00
TestFdoSecrets.cpp Add Freedesktop.org Secret Storage Spec Server Side API (Fix #1403) 2019-05-12 12:35:42 -04:00
TestFdoSecrets.h Add Freedesktop.org Secret Storage Spec Server Side API (Fix #1403) 2019-05-12 12:35:42 -04:00
TestGlobal.h Restore correct formatting 2018-11-28 18:29:15 -05:00
TestGroup.cpp Prompt to delete recycle bin when disabling it 2019-10-20 17:58:15 -04:00
TestGroup.h Autocomplete usernames based on most frequent in database 2019-06-23 22:22:57 -04:00
TestGroupModel.cpp Formatting the code. 2018-03-31 16:01:30 -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 Move useful QTest template specializations to global header file 2018-01-24 13:32:37 +01: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 CLI: add 'analyze' subcommand for offline HIBP breach checks 2019-06-25 15:37:40 -04:00
TestHibp.h CLI: add 'analyze' subcommand for offline HIBP breach checks 2019-06-25 15:37:40 -04:00
TestKdbx2.cpp Refactor Database and Database widgets (#2491) 2018-11-22 11:47:31 +01:00
TestKdbx2.h Refactor Database and Database widgets (#2491) 2018-11-22 11:47:31 +01:00
TestKdbx3.cpp Refactor Database and Database widgets (#2491) 2018-11-22 11:47:31 +01:00
TestKdbx3.h Performed project-wide code formatting 2019-01-28 22:38:59 -05:00
TestKdbx4.cpp Support Database Custom Data Merging (#3002) 2019-05-01 18:35:08 -04:00
TestKdbx4.h Performed project-wide code formatting 2019-01-28 22:38:59 -05:00
TestKeePass1Reader.cpp Correct checks for containers' emptiness 2018-11-28 18:29:15 -05:00
TestKeePass1Reader.h Refactor Database and Database widgets (#2491) 2018-11-22 11:47:31 +01:00
TestKeePass2Format.cpp Restore correct formatting 2018-11-28 18:29:15 -05:00
TestKeePass2Format.h Performed project-wide code formatting 2019-01-28 22:38:59 -05:00
TestKeePass2RandomStream.cpp Formatting the code. 2018-03-31 16:01:30 -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 Correct checks for containers' emptiness 2018-11-28 18:29:15 -05:00
TestKeys.h Add MockChallengeResponseKey and additional composite key component test 2018-03-01 19:26:18 -05:00
TestMerge.cpp CLI: Add interactive session mode command open 2019-09-28 11:24:42 -04:00
TestMerge.h Merge custom data only when necessary (#3475) 2019-09-16 14:01:13 -04:00
TestModified.cpp Restore correct formatting 2018-11-28 18:29:15 -05:00
TestModified.h Introduce synchronize merge method 2018-09-30 09:36:39 -04:00
TestOpenSSHKey.cpp Merge branch 'develop' 2018-12-18 22:28:56 -05:00
TestOpenSSHKey.h Add sharing of groups between databases 2018-10-01 10:39:37 -04:00
TestOpVaultReader.cpp Implement 1Password Vault Import 2019-05-19 18:21:34 -04:00
TestOpVaultReader.h Implement 1Password Vault Import 2019-05-19 18:21:34 -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 Restore correct formatting 2018-11-28 18:29:15 -05:00
TestPasswordGenerator.h Restore correct formatting 2018-11-28 18:29:15 -05:00
TestRandomGenerator.cpp Add sharing of groups between databases 2018-10-01 10:39:37 -04:00
TestRandomGenerator.h Add sharing of groups between databases 2018-10-01 10:39:37 -04:00
TestSharing.cpp Performed project-wide code formatting 2019-01-28 22:38:59 -05:00
TestSharing.h Add sharing of groups between databases 2018-10-01 10:39:37 -04:00
TestSignature.cpp Add sharing of groups between databases 2018-10-01 10:39:37 -04:00
TestSignature.h Add sharing of groups between databases 2018-10-01 10:39:37 -04:00
TestSymmetricCipher.cpp Restore correct formatting 2018-11-28 18:29:15 -05:00
TestSymmetricCipher.h Add CLI tests and improve coding style and i18n 2018-10-19 21:49:54 +02:00
TestTools.cpp Fix base64 check missing '/' as valid character 2019-03-25 13:06:03 -04:00
TestTools.h Add some unit tests to Tools 2018-05-22 09:28:54 +02:00
TestTotp.cpp Correct issues with TOTP Setup 2019-10-20 17:57:51 -04:00
TestTotp.h Complete refactor of TOTP integration 2018-09-15 12:10:26 -04:00
TestUpdateCheck.cpp Enhance update checker 2019-04-11 08:52:51 -04:00
TestUpdateCheck.h Ran make format 2019-03-19 18:56:17 -04:00
TestWildcardMatcher.cpp Formatting the code. 2018-03-31 16:01:30 -04:00
TestWildcardMatcher.h Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords 2017-03-10 16:12:02 +01:00
TestYkChallengeResponseKey.cpp CLI: Add Yubikey unlock support 2019-09-22 18:11:40 -04:00
TestYkChallengeResponseKey.h Formatting the code. 2018-03-31 16:01:30 -04:00