Vladimir Svyatski
5792bf1a85
Add skeleton for TestDatabase.cpp and test data for unit tests for the "empty recycle bin" functionality
2017-04-22 12:38:36 +03:00
Jonathan White
5696178de4
Merge pull request #373 from keepassxreboot/feature/new-password-generator
...
New Diceware passphrase generator
2017-04-09 12:36:56 -04:00
Francois Ferrand
86e88c18b0
More compact search widget
...
* Move the search icon (with popup menu) and clear icon inside the
line edit
* Move the search widget to the right-side of toolbar
2017-04-06 07:19:56 -04:00
thez3ro
be9bd16b4c
Add diceware tests
2017-03-22 00:00:23 +01:00
Janek Bevendorff
c4d6fa855c
Force event processing after adding entries to prevent test failure
2017-03-17 07:49:19 -04:00
seatedscribe
06bbd6e066
Get rid of Q_{EMIT,SLOTS,SIGNALS}
2017-03-16 21:46:53 +01:00
seatedscribe
3fcf342fbc
Merge remote-tracking branch 'upstream/develop' into feature/import-csv-format
2017-03-16 21:25:38 +01:00
thez3ro
e3602e3c75
fix regex for placeholders, fix #402 , add regression test
2017-03-16 20:32:29 +01:00
Janek Bevendorff
15dd783d2c
Merge branch 'develop' into feature/yubikey
2017-03-10 18:01:14 +01:00
Janek Bevendorff
8d487d31a4
Replace Q_EMIT, Q_SIGNALS and Q_SLOTS macros with MOC keywords
2017-03-10 16:12:02 +01:00
Janek Bevendorff
2872f1706c
Fix Qt deprecation warnings
2017-03-10 16:11:55 +01:00
seatedscribe
705b74b3ba
Merge remote-tracking branch 'upstream/develop' into feature/import-csv-format
2017-03-08 22:52:39 +01:00
Jonathan White
31494ec327
Enhance attribute entry and add protected attributes ( #220 )
...
* Allow protected attributes to be hidden
* Entry area is resizable
* Added test cases for protected attributes
2017-03-07 22:38:18 -05:00
Janek Bevendorff
3c1271b1c4
Merge branch 'develop' into feature/yubikey
2017-03-06 13:49:48 +01:00
seatedscribe
41f9c3d2a1
Better handle of parser status messages (critical/not critical)
...
Use of messageWidget for displaying parser status messages
setRootGroup assigns the right label to the root db folder
test uses portable QTemporaryFile instead of hardcoded file
2017-03-05 21:27:29 +01:00
seatedscribe
a7e358c27d
Syntax style, spaces and pretty indentation
2017-03-05 21:27:29 +01:00
seatedscribe
afdf02b4be
Implement import of databases in CSV (Comma Separated Values) format (i.e. from other password managers)
2017-03-05 21:27:29 +01:00
Ryan Matthews
97150034bc
Fix clone entry gui test
2017-03-04 19:49:33 -05:00
Janek Bevendorff
a001553c5e
Fix warnings about Crypto already having been initialized
2017-02-24 21:06:23 +01:00
Janek Bevendorff
9a94c6d85e
Remove debug output to reduce console spam when running in debug mode
2017-02-24 20:50:06 +01:00
Janek Bevendorff
37c7318097
Merge branch 'develop' into feature/yubikey
2017-02-15 00:24:28 +01:00
thez3ro
51c668a0fd
fix tests with new CustomAttribute format
2017-02-08 01:14:52 +01:00
Jonathan White
7db7747cb0
Merge remote-tracking branch 'origin/master' into develop
2017-02-06 20:29:21 -05:00
Janek Bevendorff
5652018cde
Merge branch 'develop' into meta/release-preparation
2017-01-28 23:02:57 +01:00
Janek Bevendorff
4dab30ce6f
Break instead of returning
2017-01-28 17:53:19 +01:00
Janek Bevendorff
75dc21c66d
Implement Twofish CBC encryption and decryption tests
2017-01-28 17:53:17 +01:00
Jonathan White
16ed89c471
Implement ability to clone an entry when in search mode.
...
* Cloned entries have "- Clone" appended to their name
2017-01-25 20:02:32 -05:00
Akinori MUSHA
6ccae6cc37
Pressing escape quits search
2017-01-25 19:37:53 -05:00
Janek Bevendorff
292ed892c1
Fix Windows linker and runtime errors when building against static Qt
2017-01-26 01:15:12 +01:00
Jonathan White
b6f754c29a
Changed built-in clear search button with custom one to fix pixelation
2017-01-14 22:29:16 -05:00
Kyle Manna
5a3ed27fed
tests: yk: Initialize Crypto class
...
Initialize the Crypto class before running the tests as YubiKey
detection code depends on it for random data.
2017-01-14 17:58:05 -08:00
Janek Bevendorff
e17576a6f7
Merge branch 'develop' into feature/yubikey
2017-01-15 03:20:21 +02:00
Jonathan White
36df21d823
Enhanced search ui keypress actions
...
* Pressing down arrow will always focus on entry view
* Pressing enter opens currently selected entry
* Pressing CTRL+F focuses and selects search text
* Rewrote test cases to cover the new functionality
2017-01-14 19:47:35 -05:00
Janek Bevendorff
6fd7427cae
Merge branch 'develop' into feature/updateKdbxExtract
2017-01-14 22:21:41 +02:00
Janek Bevendorff
ea9f313416
Fix GUI test
2017-01-14 20:33:27 +01:00
Louis-Bertrand Varin
798041fe11
Extract readKeyFromLine.
2017-01-14 13:25:30 -05:00
Josh Soref
40eafa8adc
spelling: associations
2017-01-14 17:31:38 +01:00
Kyle Manna
9556d8e6da
tests: Add YubiKey Tests
...
* Basic testing for YubiKey code.
Signed-off-by: Kyle Manna <kyle@kylemanna.com>
2017-01-07 23:20:27 -08:00
Jonathan White
5f1b9a17ca
Fix testgui for Windows (PR #137 )
...
Introduces TemporaryFile class to act as a proxy to fix autoreload test cases failing on windows due to the behavior of QTemporaryFile.
2017-01-03 22:27:41 -05:00
Jonathan White
534364454d
Merge branch 'feature/cmake-fix-#50-#123' into develop
...
* Fixes #50 and #123
2017-01-02 22:27:20 -05:00
thez3ro
07a41f58d7
Add autotype library linking
...
Added Autotype switch + updated Travis to always test all extension
2017-01-02 22:25:36 -05:00
thez3ro
298665e32a
Improve UI of the search edit #131
2016-12-23 18:13:08 +01:00
Akinori MUSHA
d0a3c08840
Improve UI of the search edit (resurrecting 5c7c7f54
)
...
- The copy action (Control+C) when no text is selected copies the
password of the current entry. This should be reasonable when
Control+B copies the username.
- Down at EOL moves the focus to the entry view. Enter and Tab should
do that, but it would be handy for user to be able to get to the third
entry by hitting Down three times.
2016-12-22 17:16:59 +09:00
thez3ro
65992ba6ae
Option to select extension compile-time. Fix #50 #123
2016-12-04 19:57:24 +01:00
Jonathan White
791a749c2f
Search scopes to currently selected group (and children) ( #118 )
...
* Added test cases for case sensitive and group search
2016-11-28 19:02:21 -05:00
TheZ3ro
405b82588b
Add Autotype Entry-Attributes, Fix Group default sequence ( #107 )
2016-11-25 12:26:59 -05:00
Jonathan White
3d249365c2
Merge remote-tracking branch 'origin/feature/autoreload-db' into develop
2016-11-25 12:04:44 -05:00
Jonathan White
7fb33653ad
Implemented major autoreload functionality
...
* Ignore autoreload on save / save-as
* Consolidated db save code
* Corrected bug (crash) in merge entry code due to not cloning the entry
* Enhanced known modified status of database
* Implemented test cases for autoreload
2016-11-25 12:03:36 -05:00
TheZ3ro
b2f3cc6903
Add some password-related feature ( #92 )
...
* Add Standalone Password Generator. Closes #18
* Add an entropy meter for passwords. Closes #84
* Don't require password repeat when it is visible. Fixes #27
2016-11-23 21:59:24 -05:00
Jonathan White
37aedc8b03
Cleaned up code and added spots for todo work. Fully Working!
2016-11-09 07:38:14 -05:00
Jonathan White
e25cd9ba48
Add Merge database utility function ( #47 )
...
Thank you to @TheZ3ro and @monomon for there major contributions to this PR!
2016-11-07 22:37:42 -05:00
Jonathan White
13983d0e51
Make search always visible (PR #67 )
...
* Moved search bar to toolbar and consolidated search options into dropdown list
* Updated GUI tests to be atomic and rewrote search tests
* Searches are saved between databases
* Search is cleared when all databases are closed
* Implemented global search shortcut (CTRL+F) and a notification bar when in search mode
2016-11-02 21:01:02 -04:00
Josef Vitu
ad36ec4dfd
Fix tests
2016-10-28 18:51:09 +02:00
Felix Geyer
ad834f0f58
Merge branch '2.0'
2016-10-02 21:45:55 -04:00
Felix Geyer
c78822f6e6
Merge branch '2.0'
2016-10-02 21:45:54 -04:00
Felix Geyer
878995366a
Ask the user before moving an entry to the recycle bin.
...
Closes #447
2016-09-02 12:00:12 +02:00
Felix Geyer
1635a5211f
Pass entryFlags to clone() when recursing into sub-groups.
...
Based on https://github.com/keepassx/keepassx/pull/178 by Mois Moshev <mois@monomon.me>
Closes #525
2016-09-02 11:47:22 +02:00
Florian Geyer
8d16522d39
Repair UUID of inconsistent history items.
...
Closes #130
2016-08-03 23:48:40 +02:00
Felix Geyer
18e4dca6c9
Explicitly include QFile in TestKeePass2Writer.
...
Closes #452
2016-07-31 14:44:45 +02:00
Jonathan White
a454469949
Fixed test cases not building
2016-03-14 21:17:18 -04:00
Jonathan White
7f7753a004
Fixed various Qt5 changes in the http code
2016-02-28 10:52:02 -05:00
Felix Geyer
d6d92ce90a
Merge branch '2.0'
2016-02-08 18:13:29 +01:00
Felix Geyer
235361faf4
Explicitly cast char constant to QChar.
2016-02-02 00:57:28 +01:00
Felix Geyer
208b803fbe
Fix KeePass2Repair to retain multi-byte UTF-8 chars.
...
Since char is (often) unsigned the ch < 0x20 check matched all
multi-byte encoded UTF-8 chars.
2016-02-02 00:41:16 +01:00
Felix Geyer
8a92cec03f
Keep valid surrogate pairs in stripInvalidXml10Chars().
2016-02-02 00:38:58 +01:00
Felix Geyer
71d4cb781d
Merge branch '2.0'
2016-01-29 17:22:37 +01:00
Felix Geyer
eb56bd8973
Add repair functionality to strip invalid XML chars.
...
Refs #392
2016-01-28 23:07:04 +01:00
Felix Geyer
93585aded7
Always display scaled custom icons.
...
Closes #322
2016-01-26 22:44:38 +01:00
Felix Geyer
2d741afe3e
Strip invalid XML chars when writing databases.
...
These characters are unprintable or just plain invalid.
QXmlStreamReader throws and error when reading XML documents with such chars.
Closes #392
2016-01-24 17:20:16 +01:00
Felix Geyer
ecfbf72a57
Merge branch '2.0'
2015-12-15 21:05:00 +01:00
Felix Geyer
efc4cd5969
Merge remote-tracking branch 'github/pr/74'
2015-12-06 19:21:38 +01:00
Felix Geyer
2fa531745f
Check XML key file for valid base64 before using it.
...
QByteArray::fromBase64() doesn't validate the input.
Closes #366
2015-11-01 18:32:15 +01:00
Felix Geyer
0c36c40a5d
Make TestGui work with offscreen QPA.
...
For some reason hasFocus() returns true here.
Use isVisible() instead as it's a stronger check anyway.
2015-11-01 13:37:03 +01:00
Felix Geyer
dff3fc0572
Coding style fixes.
2015-10-15 18:02:31 +02:00
Felix Geyer
dc7b6623a9
Merge branch '2.0'
2015-10-11 10:44:30 +02:00
Felix Geyer
820941fd40
Auto-Type: Only require a substring match for regex.
...
This matches the behavior of KeePass.
Refs #357
2015-10-10 17:36:08 +02:00
Felix Geyer
862941abf6
TestAutoType: Restore AutoTypeEntryTitleMatch before every test.
2015-10-10 17:23:57 +02:00
Felix Geyer
3b2a39fd38
Merge branch '2.0'
2015-09-26 11:44:27 +02:00
Felix Geyer
bcb54bc38a
Avoid dereferencing QLists.
2015-09-25 21:34:56 +02:00
Felix Geyer
c8ae31a248
Remove backported Qt5 test macros.
2015-09-23 22:21:21 +02:00
Felix Geyer
5a13402b51
Activate window in TestGui.
...
It doesn't seem to get the focus automatically when run inside Xvfb.
QTRY_VERIFY(searchEdit->hasFocus()) failed as a result of this.
2015-09-12 23:12:17 +02:00
Felix Geyer
625e9a2547
Make TestGui agnostic to added "&" in tab title.
...
Fixes tests on OS X / Qt 5.5.0.
2015-09-12 15:48:38 +02:00
Felix Geyer
7fa0eddc5f
Make C++11 mandatory.
2015-09-12 13:55:50 +02:00
Felix Geyer
ae2b27d400
Connect rowsAboutToBeMoved() and rowsMoved() again.
...
Accidentally removed in 4fcce6f98f3d481514825ebdffc024c36bd5389c
2015-09-12 13:51:49 +02:00
Felix Geyer
7c424e1b85
Merge updated modeltest from Qt 5.
2015-09-12 13:51:49 +02:00
Felix Geyer
9882f16614
Remove Tools::currentDateTimeUtc().
2015-09-12 13:51:49 +02:00
Felix Geyer
e2ac176d3c
Remove second argument of QSKIP call.
...
Has been removed in Qt 5.
2015-09-12 13:51:49 +02:00
Felix Geyer
a71e25a8ba
Fix GUI tests.
2015-09-12 13:51:49 +02:00
Felix Geyer
208b0f39e6
Adapt to QtConcurrent being a separate module now.
2015-09-12 13:51:49 +02:00
Felix Geyer
c714fc89f1
Add missing include statements.
2015-09-12 13:51:49 +02:00
Felix Geyer
5a745da07b
Remove QCOmmandLineParser.
...
It is part of Qt >= 5.2.
2015-09-12 13:51:49 +02:00
Felix Geyer
531018e58d
Remove QSaveFile and QLockFile.
...
They are part of Qt >= 5.1.
2015-09-12 13:51:49 +02:00
Felix Geyer
813c64a055
Port cmake files to Qt 5.
2015-09-12 13:51:49 +02:00
Akinori MUSHA
b773dbe645
Test if hitting the Down key moves the focus to the entry view.
2015-08-05 19:02:17 +09:00
Felix Geyer
2c17fdcff0
Correct link order of testhashedblockstream.
...
Fixes FTBFS on Windows.
2015-07-21 23:08:12 +02:00
Felix Geyer
98d9dae087
Test if reset() and close() write only one final block.
2015-07-20 21:51:32 +02:00
Felix Geyer
2033174d95
Test if we correctly detect errors when writing.
2015-07-20 21:35:48 +02:00
Felix Geyer
3d1c27ceb7
Copy the database in TestGui before opening it.
...
We don't want to create lock files in the source tree.
2015-07-19 19:33:47 +02:00
Felix Geyer
6d1ca363af
Remove support for clearing the Klipper history.
...
KDE Plasma 5 doesn't provide the DBus interface anymore and
this avoids the QtDBus dependency.
2015-07-16 20:02:10 +02:00
Felix Geyer
240919335f
Add missing EmptyUuids.xml test file.
2015-07-14 22:20:56 +02:00
Felix Geyer
ceb6a0383e
Add ability to export databases to CSV files.
...
Based on implementation by Florian Geyer <blueice@fobos.de>
Closes #57
2015-07-14 22:14:34 +02:00
Felix Geyer
c6105a08ab
KeePass2XmlReader: Don't fail wheh nreading empty UUIDs.
...
Closes #298
2015-07-13 21:01:55 +02:00
Felix Geyer
cfffdae573
Improve error reporing of layered streams.
2015-05-09 23:21:50 +02:00
Felix Geyer
f6243675c9
Warn if result of processInPlace() is unchecked.
...
Fix callers accordingly.
2015-05-09 23:21:50 +02:00
Felix Geyer
a762cef0a9
Catch and handle all errors from libgcrypt.
2015-05-09 23:21:44 +02:00
Felix Geyer
ae013c2196
Don't run gcrypt self tests.
...
Seems to be broken on some distros that enable hmac verification
of the binary but ship the signature in a separate package.
We have our own test cases for the algorithms we care about.
2015-05-09 17:32:52 +02:00
Felix Geyer
eefe844dcd
Merge remote-tracking branch 'github/pr/80'
...
https://github.com/keepassx/keepassx/pull/80
2015-05-06 20:56:57 +02:00
Felix Geyer
9e051e835b
Close databases when they are locked.
...
Previously we've only hidden access to them.
Closes #275
2015-04-05 10:38:36 +02:00
Ben Boeckel
c9d12e93c2
cmake: remove the LOCATION query
...
Newer CMake deprecates the property. It isn't necessary anyways since
add_test will recognize targets as the executable name and make the full
path automatically.
2015-02-26 00:30:06 -05:00
Felix Geyer
71d39865b3
Introduce a strict mode in KeePass2XmlReader.
...
Many errors are now ignored when not in strict mode so we can still parse
files that have been written by broken/incomplete implementations.
2014-12-01 21:52:51 +01:00
Akinori MUSHA
dd79105baa
Complete remove the toggle search action.
2014-11-19 11:46:38 +09:00
Akinori MUSHA
b1c3814972
Make Ctrl+F not toggle the search mode but always enable it.
...
Switching back from other applications, the previous behavior of Ctrl+F
would often bother you in that it would dismiss the search widget if it
was already enabled when you meant by the key you wanted to perform a
search.
Making Ctrl+F always set you in search mode should save user from having
to care about the mode which is persistent across application switching
and database locking.
2014-11-18 19:46:53 +09:00
Felix Geyer
0d6117bf4c
Do some basic self-checks when initializing the crypto backend.
2014-06-15 11:17:40 +02:00
Felix Geyer
916ab99d62
Skip TestQSaveFile::transactionalWriteErrorRenaming as user root.
...
You can't deny root access to a file.
Closes #201
2014-05-26 18:24:43 +02:00
Felix Geyer
9ac01c930d
Drop DatabaseWidget::groupView() and entryView().
2014-05-17 11:21:17 +02:00
Felix Geyer
a6d44034a4
Put test executables into their default location.
2014-05-16 13:10:26 +02:00
Florian Geyer
77af79498c
Move QTEST_GUILESS_MAIN statements before test cases.
2014-05-16 12:32:52 +02:00
Florian Geyer
ea3375490c
Introduce interface for exporter.
2014-05-16 12:32:06 +02:00
Florian Geyer
204cd8d971
Move exporter to separate class.
2014-05-16 12:07:22 +02:00
Florian Geyer
c2940a8f18
Extend TestEntrySearcher.
2014-05-16 10:51:22 +02:00
Florian Geyer
4f60df029d
Refactor TestEntrySearcher.
2014-05-16 00:26:09 +02:00
Florian Geyer
c90ac914bb
Refactor TestEntrySearcher.
2014-05-15 23:59:26 +02:00
Florian Geyer
8bf4826003
Move search into separate class.
2014-05-15 23:50:40 +02:00
Felix Geyer
bf39d0b1be
Enable entry title matching but always ask before performing auto-type.
2014-05-15 18:34:12 +02:00
Felix Geyer
147cd4ed7b
Add option to use the entry title for auto-type window matching.
2014-05-15 18:30:57 +02:00
Felix Geyer
b194c29166
Show a dialog when no window matches for auto-type.
2014-04-14 22:57:25 +02:00
Florian Geyer
4a08101a60
Remove obsolete ArgumentParser files.
2014-03-08 10:45:40 +01:00
Felix Geyer
b07de47e35
Add transform key benchmark to TestKeys.
2014-01-19 15:26:32 +01:00
Felix Geyer
bc14898b13
Replace ArgumentParser with a backport of QCommandLineParser from Qt 5.2.
2014-01-18 15:23:55 +01:00
Felix Geyer
1fce1ac905
Remove wrong check in TestGui.
...
When the window is not wide enough some actions are hidden.
2013-12-08 16:11:49 +01:00
Felix Geyer
af98c2636c
Fix compatibility with Qt < 4.7.
2013-11-30 13:47:39 +01:00
Ben Boeckel
66b3d22041
Use QString::toLatin1() rather than ::toAscii()
...
The toAscii (and fromAscii) are removed from Qt5 in favor of Latin1.
2013-11-24 21:19:20 +01:00
Felix Geyer
98c821df05
Add Group::exportToDb().
2013-11-22 13:36:46 +01:00
Felix Geyer
f2dfef8c41
Add flags to Entry::clone() for customized cloning.
2013-11-22 13:32:13 +01:00
Felix Geyer
5daf0853c9
Coding style fixes.
2013-10-13 18:08:50 +02:00
Felix Geyer
7dde8a771f
Use QUINT32_MAX in tests instead of hardcoding the number.
2013-10-12 19:11:57 +02:00
Felix Geyer
98d888063b
Add tests for Random::randomUInt() and randomUIntRange().
2013-10-09 23:11:18 +02:00
Felix Geyer
b64276c4e8
Make use of the TestGui::clickIndex() helper function.
2013-10-08 22:40:47 +02:00
Felix Geyer
f7dd63a126
Add gui tests for deleting entries from the recycle bin.
2013-10-08 22:36:27 +02:00
Felix Geyer
a68a86f19b
Test that the delete action moves entries to the recycle bin.
2013-10-08 22:14:02 +02:00
Felix Geyer
984b23de70
Add tests for the multi-entry delete feature.
2013-10-08 22:11:40 +02:00
Felix Geyer
6504b6f2bd
Drop Qt module name from include statements.
...
This is a preparation to be able to build KeePassX against Qt 5.
2013-10-03 15:18:16 +02:00
Felix Geyer
5c84aa308d
Improve error messages for reading and wriiting databases.
...
Closes #7
2013-06-30 14:43:02 +02:00
Felix Geyer
0ec29b2354
Raise error if we don't find exactly one root group.
2013-04-29 22:31:50 +02:00
Felix Geyer
f1bebe904a
Add tests for broken databases.
...
Make sure we detect the error and don't crash.
2013-04-29 22:31:50 +02:00
Felix Geyer
61ee763515
Add Entry::copyDataFrom().
2013-04-29 22:31:49 +02:00
Florian Geyer
63f7a0685f
Small ArgumentParser refactoring.
2013-04-27 11:40:10 +02:00
Felix Geyer
5786e2620a
Add unit test for Metadata::copyCustomIcons().
2013-04-07 19:38:18 +02:00
Florian Geyer
2558e6db79
First draft of an argument parser.
...
Possibility to set custom config path.
2013-04-06 11:00:45 +02:00
Felix Geyer
bee570c3cf
Add Group::clone().
...
Move all the data we want to clone into a GroupData struct.
2013-04-04 21:48:55 +02:00
Felix Geyer
e805a6ff82
Coding style fix.
2013-03-30 17:27:28 +01:00
Felix Geyer
5550d7af0d
Fix autotype test (build) failures on Mac OS and Windows.
...
We need to tell Windows what symbols the main program exports
and the autotype plugin imports.
On both systems the linker needs the path of the main program that
loads the plugin.
2013-03-29 16:27:02 +01:00
Florian Geyer
57b0c17733
Improve entry test.
2013-03-24 21:57:34 +01:00
Florian Geyer
6ee781a608
Add regression test for issue #56 .
2013-03-24 21:57:34 +01:00
Felix Geyer
21a80101ba
Add TestEntryModel::testDatabaseDelete().
...
It tests that EntryModel in EntryList mode correctly
removes entries from the model when that database of
these entries is deleted.
2013-03-24 14:00:23 +01:00
Felix Geyer
c7593a3047
Stop suppressing signals in Group dtor.
...
That way we emit entry/group removed signals.
Move cleanupParent() call to the bottom so we
maintain the group tree structure for objects that
connect to those signals.
2013-03-24 14:00:23 +01:00
Felix Geyer
9144765d56
Use a fixed sleep call instead of QTest::qWaitForWindowShown().
...
The latter seems to be broken and always seeps until it hits
the timeout (2s).
2012-11-02 15:43:45 +01:00
Florian Geyer
8347fd36ba
More auto-type tests.
2012-11-02 15:09:54 +01:00
Florian Geyer
ac56ac98f7
Extend auto-type test.
2012-10-28 18:18:24 +01:00
Felix Geyer
58b6fb36f8
Add missing files for the last commit.
2012-10-28 15:42:19 +01:00
Felix Geyer
606dbc6eb4
Add infrastructure for auto-type tests.
2012-10-28 15:33:44 +01:00
Felix Geyer
5d46ecdbe6
Don't use deprecated Qt methods.
2012-10-27 00:06:12 +02:00
Felix Geyer
8b8e55aa17
Store the filename instead of a QTemporaryFile in TestGui.
...
On Windows QTemporaryFile keeps the file handle open
which conflicts with QSaveFile.
2012-10-22 17:52:08 +02:00
Felix Geyer
9eac5f35d8
Close file in TestQSaveFile::autoFlush() so we can remove it.
2012-10-22 17:50:58 +02:00
Felix Geyer
47d3c7e05a
Disable TestQSaveFile::transactionalWriteErrorRenaming() on Windows.
...
QSaveFile::setPermissions() is not implemented in the QIODevice
based version for Qt 4.
2012-10-22 17:49:42 +02:00
Florian Geyer
92bf7c94d0
Whitespace separated search terms are AND concatenated.
2012-10-21 21:09:27 +02:00
Felix Geyer
e166722026
Implement database locking.
...
Closes #35
2012-10-12 12:12:00 +02:00
Felix Geyer
18d3fe55f8
Add support for database format 3.01 (HeaderHash).
...
Add test for the format 3.00 and upgrade Compressed.kdbx, NonAscii.kdbx
and ProtectedStrings.kdbx to 3.01.
Add a test for an incorrect HeaderHash.
2012-09-25 22:33:36 +02:00
Felix Geyer
6b13d18137
Rename KEEPASSX_QTEST_CORE_MAIN to QTEST_GUILESS_MAIN which is available in Qt 5.
2012-07-25 12:18:16 +02:00
Felix Geyer
2185afefed
Speed up TestGui by removing unnecessary waits.
...
Backport QTRY_VERIFY and QTRY_COMPARE from Qt 5.
2012-07-25 12:18:16 +02:00
Florian Geyer
c0e91e4f16
Refactor wildcard matcher test.
2012-07-24 20:35:36 +02:00
Felix Geyer
9ad4cc8783
Subclass QSortFilterProxyModel to hide the group column in EntryView.
...
QTreeView::hideColumn() does not work well with keyboard search.
2012-07-22 22:02:06 +02:00
Felix Geyer
edb644baef
Add TestGui::testCloneEntry().
2012-07-22 22:02:06 +02:00
Florian Geyer
7bd080760e
Make wildcard matcher case insensitive.
2012-07-22 14:58:15 +02:00
Florian Geyer
4f78c32461
Add custom wildcard matcher.
2012-07-22 14:43:45 +02:00
Felix Geyer
33b4cd8636
Don't add new entries to EntryModel when in search mode.
...
Only allow moving entries from one group to the other.
2012-07-21 22:21:49 +02:00
Felix Geyer
b6d9c2e486
Import Auto-Type associations in KeePass1Reader.
2012-07-19 23:21:12 +02:00
Felix Geyer
4781fc19fe
Add a few drag'n'drop tests.
2012-07-17 23:29:25 +02:00
Felix Geyer
7e9343c697
Fix CompositKey self assignment.
2012-07-17 10:57:08 +02:00
Felix Geyer
f767a098d6
Add GUI test for changing the database transform rounds.
...
Refs #34
2012-07-17 10:56:56 +02:00
Felix Geyer
2b694bab16
Refactor TestGui a bit.
2012-07-17 10:16:59 +02:00
Felix Geyer
af166a66b3
Add AutoTypeAssociationsModel class.
2012-07-16 17:39:20 +02:00
Felix Geyer
3c913f196f
In TestGui::testEditEntry() wait for the delayed Database::modified() signal.
2012-07-16 17:37:59 +02:00
Felix Geyer
f98d834edb
Move Auto-Type associations handling from Entry into an own class.
2012-07-16 09:54:04 +02:00
Felix Geyer
6d5b31f527
Normalize signal/slot signatures.
2012-07-14 19:34:38 +02:00
Felix Geyer
98df309d28
Coding style fixes.
2012-07-08 10:29:38 +02:00
Felix Geyer
2e38b01d80
Add Save and SaveAs gui tests.
2012-07-06 19:21:19 +02:00
Felix Geyer
78849c43f1
Make sure tmpDir is not empty.
2012-07-06 16:40:38 +02:00
Felix Geyer
2f98d95b66
Import QSaveFile from libkdeqt5staging.
...
It's planned to become part of Qt 5.1.
2012-07-06 14:36:04 +02:00
Felix Geyer
e050385e27
Increase wait time in TestGui::testSearch() a bit.
2012-07-02 22:12:07 +02:00
Felix Geyer
782223a643
Coding style fixes.
2012-07-01 21:58:45 +02:00
Felix Geyer
fd6546c5df
Move modeltest to the front so it's always passed to the linker before Qt.
2012-07-01 21:29:54 +02:00
Felix Geyer
dedce07530
Add KeePass1 import GUI test.
2012-06-29 15:54:34 +02:00
Felix Geyer
baa5a74ba0
Convert iconCount() and expiredIconIndex() to constants.
2012-06-29 15:22:43 +02:00
Felix Geyer
68155e8f89
Make use of Q_NULLPTR.
2012-06-29 14:15:16 +02:00
Felix Geyer
92af92ccbe
Convert DatabaseOpenDialog into a widget on DatabaseWidget.
2012-06-29 10:36:35 +02:00
Florian Geyer
dad4376030
Fix typo.
2012-06-25 00:09:40 +02:00
Florian Geyer
204822b66f
Improve auto save handling.
2012-06-24 19:30:30 +02:00
Felix Geyer
b0ad864fe0
Always convert explicitly from QByteArray to QString.
2012-06-24 18:23:27 +02:00
Felix Geyer
d0016bf6c4
Fix reading non-ASCII passwords that are protected.
...
Closes #28
2012-06-24 18:22:18 +02:00
Florian Geyer
a720903083
Use temporary settings file for gui test.
2012-06-14 23:07:49 +02:00
Felix Geyer
f43ad8d062
Support copying username and password to the clipboard.
2012-05-26 16:37:57 +02:00
Felix Geyer
a1a71a88bb
Fix cmake file formatting.
2012-05-21 23:37:29 +02:00
Felix Geyer
bde397503e
Coding style fixes.
2012-05-21 11:57:29 +02:00
Florian Geyer
9faf550fa1
Use line edit widget for search edit.
2012-05-20 21:09:34 +02:00
Florian Geyer
e4a5cd214f
Improve search.
...
Find as you type.
Add shortcut.
Hide search widgets when not used.
Refs #24
2012-05-20 12:57:50 +02:00
Felix Geyer
7ebee78c75
Create src/gui/{entry,group}/ and move corresponding files to these dirs.
2012-05-16 10:22:04 +02:00
Florian Geyer
b08d2d45b7
Add gui test for search.
2012-05-16 10:18:27 +02:00
Felix Geyer
b90807c4d3
Coding style fixes.
2012-05-15 17:48:48 +02:00
Florian Geyer
a57e8f9864
Preserve order of custom icons.
...
Closes #25
2012-05-13 20:50:41 +02:00
Florian Geyer
60e65bec35
Add search test.
2012-05-13 19:21:23 +02:00
Florian Geyer
6b6c109903
Add search.
...
Refs #24
2012-05-13 19:21:10 +02:00
Felix Geyer
af726d465d
Fix typo.
2012-05-13 13:33:55 +02:00
Florian Geyer
a1dec7594d
Extend history item tests.
2012-05-11 20:14:52 +02:00
Felix Geyer
587a647c11
New TODO comment style.
...
Qt Creator 2.5 is able to parse those.
2012-05-11 12:39:06 +02:00
Felix Geyer
8faac078fd
Make EntryView sortable.
2012-05-11 12:01:01 +02:00
Florian Geyer
44489bf6f8
Fix creation of history item when a new entry is added.
...
Add corresponding gui test.
2012-05-11 09:16:45 +02:00
Felix Geyer
3738115b6d
Test if we can re-open imported KeePass 1 databases.
2012-05-10 23:00:29 +02:00
Felix Geyer
65bdc207b7
Make sure we don't create DeletedObjects when importing databases.
2012-05-10 22:54:26 +02:00
Felix Geyer
366d8a0f0e
Set master key after reading the database.
2012-05-10 22:46:36 +02:00
Felix Geyer
9d8e276950
Set uuids for entries.
2012-05-10 21:35:26 +02:00
Felix Geyer
2ecd11eb35
Add test for a non-ascii password.
2012-05-10 21:29:10 +02:00
Felix Geyer
cf4e574c50
Support Twofish encrypted KeePass 1 databases.
...
Refs #2
2012-05-10 21:06:33 +02:00
Felix Geyer
225e5dac66
Add tests for opening KeePass 1 databases with different keyfiles.
2012-05-10 19:34:55 +02:00
Felix Geyer
5a08e4619c
Add icon model tests.
2012-05-10 13:59:54 +02:00
Felix Geyer
65f2790170
Parse KeePass 1 database meta streams.
...
Refs #2
2012-05-10 11:44:25 +02:00
Felix Geyer
79b15e2ac6
Implement support for parsing groups and entries from KeePass 1 databases.
...
Still missing:
- Key files.
- Twofish encryption.
Refs #2
2012-05-09 23:16:32 +02:00
Andreas Piesk
7568582b05
compile with QT < 4.7 (RHEL6 an clones)
2012-05-09 22:15:28 +02:00
Felix Geyer
ebce183925
Start implementing support for reading KeePass 1 databases.
...
For now only decrypting the database works.
Still missing:
- Actually parsing the database.
- Key files.
Refs #1
2012-05-08 22:06:12 +02:00
Felix Geyer
38e421d9c1
Fix padding handling in SymmetricCipherStream.
...
The implementation had two issues:
- It didn't add a block full of padding when the input size was a multiple
of the block size.
- It didn't strip the padding when reading data.
2012-05-08 21:46:01 +02:00
Felix Geyer
f8f52419c8
Turn EntryAttachmentsModel into a QAbstractListModel.
2012-05-02 10:30:30 +02:00
Felix Geyer
7f67019f63
Turn EntryAttributesModel into a QAbstractListModel.
2012-04-28 16:50:17 +02:00
Felix Geyer
de4b90cdf1
Copy custom icons when moved to another database.
...
Closes #9
2012-04-27 11:22:02 +02:00
Felix Geyer
fdf4ab9d76
Improve TestGui::testEditEntry().
...
Simulate mouse click on the actual edit action widget.
Make sure that the edit entry widget is active after triggering the entry edit.
2012-04-26 17:52:02 +02:00
Florian Geyer
93c231ec2b
Extend group test.
2012-04-25 19:41:46 +02:00
Felix Geyer
0ad4b3d8fe
Minor improvements in CompositeKey and TestKeys.
2012-04-25 18:35:30 +02:00
Felix Geyer
1b8963c1f8
Change Q_ASSERT() to QVERIFY() in modeltest.
2012-04-25 10:45:36 +02:00
Felix Geyer
d3fbb291bd
Support moving groups with drag and drop.
2012-04-25 00:22:55 +02:00
Felix Geyer
0d20955920
Fix bug where index is wrong when a group is moved to the end from the same parent.
...
This triggered the bug:
group->setParent(group->parentGroup());
Then index was group->parentGroup()->children().size() instead of size()-1.
2012-04-25 00:10:06 +02:00
Felix Geyer
e026f3d1eb
Create a history item when changing entries.
...
Closes #15
2012-04-23 21:20:05 +02:00
Felix Geyer
bddc29101c
Introduce Group::aboutToMove() and moved() signals.
...
Emit them instead of remove/add when groups are moved within
a database.
2012-04-23 16:57:08 +02:00
Felix Geyer
bf25959b68
Memory management fixes in tests.
2012-04-22 23:09:52 +02:00
Florian Geyer
d8fcc43bc3
Extend deleted objects test.
2012-04-22 19:59:50 +02:00
Felix Geyer
82f1cbb3c9
Build with -DQT_NO_CAST_TO_ASCII.
2012-04-22 00:55:52 +02:00
Felix Geyer
72defa375d
Coding style fixes.
2012-04-22 00:29:16 +02:00
Florian Geyer
c8ad27975a
Clean up deleted objects test (again).
2012-04-22 00:11:17 +02:00
Florian Geyer
0d80a726fa
Clean up deleted objects test.
2012-04-22 00:11:17 +02:00
Florian Geyer
5dc21a191b
Clean up group deletion.
2012-04-22 00:11:17 +02:00
Florian Geyer
cc8d6424e2
Add test for deleted objects.
2012-04-22 00:11:17 +02:00
Felix Geyer
8acd6f74d8
Support KeePass format 3.00 (used by KeePass2 >= 2.15).
...
Closes #6
Attachments are now stored in a pool under Metadata instead of in entries.
The protected flag of attachments isn't supported anymore.
New metadata attributes: color, historyMaxItems and historyMaxSize.
Dropped metadata attribute: autoEnableVisualHiding.
2012-04-21 16:45:46 +02:00
Felix Geyer
2e011d5362
Improve code style.
2012-04-18 22:08:22 +02:00
Felix Geyer
0791b43da9
TestGroup: Register Entry as a meta type.
2012-04-18 17:42:55 +02:00
Felix Geyer
134f9a663e
Test that modified() is emitted when deleting Groups and Entries.
2012-04-18 17:31:05 +02:00
Felix Geyer
433e8c4508
Simplify TestModified a bit.
2012-04-18 17:26:32 +02:00
Florian Geyer
34204f3281
Disconnect entry from database, when removed.
2012-04-18 17:03:58 +02:00
Florian Geyer
d85e5d7560
Update connection of modified signals of entries when a parent group changes database.
2012-04-18 17:03:58 +02:00
Florian Geyer
ec3cca1f77
Add test for modified signals.
2012-04-18 17:03:58 +02:00
Felix Geyer
e3b7f621be
Convert TestKeePass2Reader to a core test so it doesn't need an X server.
2012-04-15 17:31:20 +02:00
Felix Geyer
3baaf6be97
Add TestGui::testEditEntry().
...
This tests that the database isn't marked as modified when we don't change
anything but still press the Ok button.
2012-04-14 20:31:35 +02:00
Felix Geyer
a8b3771f15
Disable some qDebug() noise in ModelTest.
2012-04-14 17:55:19 +02:00
Felix Geyer
2b16648370
Add EntryAttachmentsModel and EntryAttributesModel.
2012-04-14 15:41:57 +02:00
Felix Geyer
d4a94a8996
Move attributes and attachments handking from Entry into own classes.
2012-04-14 15:38:20 +02:00
Florian Geyer
875c01dc52
Add test for group notes.
2012-04-11 21:50:20 +02:00
Felix Geyer
d527e63f1f
Change the Entry attributes/attachment API to provide a stable key order.
2012-04-06 19:33:29 +02:00
Felix Geyer
9d1838a0fe
Rename KeyOpenDialog to DatabaseOpenDialog.
2012-04-05 18:31:12 +02:00
Felix Geyer
0ad1bf0a70
Add CompositeKey::clear().
2012-01-11 23:59:50 +01:00
Felix Geyer
e397080d79
Rename addAttribute() to setAttribute() and addAttachment() to setAttachment().
2012-01-07 16:22:11 +01:00
Felix Geyer
007a901dba
Proper error handling for reading databases.
2012-01-06 20:03:13 +01:00
Felix Geyer
ea38b721d6
Add pixmap gui test.
2012-01-05 18:45:21 +01:00
Felix Geyer
a61057d7f6
Core tests instantiate QCoreApplication instead of QApplication.
...
This way they can be used without a running X server.
2012-01-01 22:04:27 +01:00
Felix Geyer
17d0fb9963
Add include guards.
2012-01-01 21:57:13 +01:00
Felix Geyer
00aafa69f5
Store database icons as QImage instead of QIcon.
...
This has the advantage that they can be used without a running X server.
Add methods to retrieve QPixmaps that are converted from the stored QImages
and cached by QPixmapCache.
2012-01-01 21:52:54 +01:00
Florian Geyer
ccc8725bb3
Clean up gui test.
2011-12-29 20:10:19 +01:00
Felix Geyer
bce46c5ece
Enforce that group/entry uuid is set when writing a database.
2011-12-27 15:47:06 +01:00
Felix Geyer
4ebcd53801
Ignore compiler warnings in qendian.h.
2011-12-26 19:34:34 +01:00
Felix Geyer
4da6da8828
Add a GUI unit test.
2011-12-26 19:18:21 +01:00
Felix Geyer
227d39ceb2
Update ModelTest from Qt 4.8.0.
2011-12-25 20:53:33 +01:00
Felix Geyer
f215ffa3fa
Implement support for key files.
...
Closes #5 .
2011-12-21 23:22:07 +01:00
Felix Geyer
e5bba14994
Move test data files into an own subdirectory.
2011-11-20 11:10:01 +01:00
Felix Geyer
b840b5de6d
Don't include the UseQt4 file.
...
This way we don't needlessly add each Qt module to the include paths.
2011-11-20 10:12:49 +01:00
Felix Geyer
0014d50b59
Deep copy subkeys when cloning CompositeKey.
2011-11-13 14:52:43 +01:00
Felix Geyer
ac60f7ce70
Add missing crypto initalization in tests.
2011-11-12 20:00:19 +01:00
Felix Geyer
9b46225937
Fix cmake files to use new gcrypt variables.
2011-11-12 14:30:16 +01:00
Felix Geyer
027362be76
Notify entry/group parent on deletion.
...
Also make the root group pseudo static, i.e. it shouldn't be changed
after the database has been fully constructed.
2011-07-09 21:54:01 +02:00
Felix Geyer
4dbdc4d847
Make some Group methods private.
2011-07-08 13:57:02 +02:00
Felix Geyer
afb285a476
Use a special enum for inherit/enable/disable variables.
2011-07-07 12:45:14 +02:00
Felix Geyer
a299dd9715
Integrate KeePass2RandomStream into KeePass2 reader and writer classes.
...
This hopefully completes support for reading/writing kdbx <= 2.14 files.
Also fix a bug in KeePass2XmlWriter so it sets Protected="True" in the Value
tag instead of Key.
2011-07-07 00:15:52 +02:00
Felix Geyer
58e048be96
Add KeePass2RandomStream class.
...
It's responsible for processing protected strings in kdbx files.
2011-07-07 00:08:37 +02:00
Felix Geyer
a104e859cf
Clean up objects in the tests.
2011-06-29 18:40:26 +02:00
Felix Geyer
230d24a123
No longer use automoc.
2010-11-21 23:06:30 +01:00
Felix Geyer
a428464573
Add Salsa20 cipher.
...
Restructure SymmetricCipher implementation to allow multiple backends.
2010-11-21 16:19:27 +01:00
Felix Geyer
76da30adda
Pass -Wl,--no-add-needed to the linker.
2010-09-23 23:36:25 +02:00
Felix Geyer
b8dfb9cc4d
Add support for gzip compressed databases.
2010-09-23 22:27:59 +02:00
Felix Geyer
537ffafefd
Add unit test TestKeePass2Reader.
2010-09-20 00:16:30 +02:00
Felix Geyer
8835565fe3
Rename TestParser class to TestKeePass2XmlReader.
2010-09-20 00:15:32 +02:00
Felix Geyer
567dd92d4c
Add built-in icons.
2010-09-19 21:22:24 +02:00
Felix Geyer
b639c43b24
Remove unneeded toHex() calls.
2010-09-19 20:13:23 +02:00
Felix Geyer
5da7d3fca6
Implement writing in SymmetricCipherStream and add a unit test.
2010-09-18 17:19:42 +02:00
Felix Geyer
c93ac9f6fc
Move qRegisterMetaType calls into initTestCase().
2010-09-18 17:15:22 +02:00
Felix Geyer
36d974649e
Write the remaining buffer in reset().
2010-09-18 17:13:28 +02:00
Felix Geyer
c2bdfab158
Implement writing to the SymmetricCipherStream.
2010-09-16 18:20:46 +02:00
Felix Geyer
d508c2dd68
Open a kdbx file in main() and add more SymmetricCipher tests.
2010-09-13 23:25:48 +02:00
Felix Geyer
6a2034fa24
Add crypto classes and tests. Link to libgcrypt.
2010-09-11 19:49:30 +02:00
Felix Geyer
1cfc34361a
Add interface for database reader/writer.
2010-08-31 16:18:45 +02:00
Felix Geyer
ee4c2c3dd4
Move core/Parser to format/KeePass2XmlReader and core/Writer to format/KeePass2XmlWriter.
2010-08-31 14:39:35 +02:00
Felix Geyer
3bf0564436
Handle CustomData element.
...
This should make support for reading and writing
KeePass 2 XML files complete (closes #1 ).
2010-08-26 00:31:07 +02:00
Felix Geyer
cd26e9d474
Add a bunch of new Parser testcases.
2010-08-25 21:14:41 +02:00
Felix Geyer
e96c3bb011
Un-constify Entry* and Group* in various related signals and models/views.
2010-08-23 21:30:20 +02:00
Felix Geyer
8d623f37ca
Add EntryModel.
2010-08-18 16:22:48 +02:00
Felix Geyer
48c498890f
Use QCOMPARE instead of QVERIFY where possible.
2010-08-18 11:05:46 +02:00
Felix Geyer
623b325fa1
Implement support for group tree changes in GroupModel.
2010-08-18 10:27:40 +02:00
Felix Geyer
e28ed4891b
Add signal for changes in Group.
2010-08-15 15:03:47 +02:00
Felix Geyer
072a8ccf1b
Add GroupModel and corresponding unit test.
2010-08-15 12:31:48 +02:00
Felix Geyer
9b0ba46b31
Add more tests.
2010-08-14 14:26:25 +02:00
Felix Geyer
bd1ea05017
Fix parser and add unit tests.
2010-08-13 18:08:06 +02:00