Janek Bevendorff
7a6850d5fe
Move useful QTest template specializations to global header file
...
Fix KDBX test linker errors on Windows
2018-01-24 13:32:37 +01:00
Jonathan White
0141fa2f1c
Correct memory leaks in TestGroup.cpp
2017-12-12 23:46:25 -05:00
Jonathan White
28ad6ed552
Merge branch 'master' into develop
2017-12-11 21:10:25 -05:00
Michal Kaptur
0ff75e7a88
Fixed memory leaks in non-gui tests
...
Fixed 2 memory leaks in production code and a few in testcases. As a
result leak_check_at_exit ASAN option does not need to turned off for
non-gui tests.
Smart pointers should be used elsewhere for consistency, but the sooner
this fixes are delivered, the lesser memory leaks are introduced.
2017-11-27 23:36:09 +01:00
Louis-Bertrand Varin
f25c23c051
Adding tests for Group::clone
2017-11-21 14:24:24 -05:00
louib
6e1fd0694f
CLI : basic entry manipulation commands. ( #919 )
...
* CLI : basic entry manipulation commands.
* Code review.
2017-09-06 09:14:41 -04:00
louib
1220b7d501
Feature : Update entries across groups when merging ( #807 )
...
* Feature : Update entries across groups when merging
* Styling
2017-09-05 10:28:47 -04:00
louib
b2107b5e27
Adding Locate command. ( #829 )
...
* Adding Locate command.
* Adding group searching in locate
2017-08-05 12:20:26 -04:00
louib
3b23e68540
Refactoring : Introducing Command class for CLI commands ( #778 )
2017-07-17 15:16:53 -04:00
louib
48ea024d7e
Adding support for listing a group. ( #652 )
...
* Adding support for listing a group.
* added findGroupByPath
* Removing useless asserts.
* Code review.
2017-06-21 17:34:49 -04:00
thez3ro
a53b111182
Update and fix copyright headers
2017-06-14 15:54:43 +02:00
Louis-Bertrand Varin
eeafe77614
Find entry by title.
2017-05-21 13:51:16 -04:00
louib
54ad927044
Moving print group in Group class. ( #586 )
2017-05-21 13:05:44 -04:00
louib
a2e82dc883
Feature : clip command ( #578 )
2017-05-19 14:04:11 -04: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
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
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
Felix Geyer
c8ae31a248
Remove backported Qt5 test macros.
2015-09-23 22:21:21 +02:00
Felix Geyer
0d6117bf4c
Do some basic self-checks when initializing the crypto backend.
2014-06-15 11:17:40 +02:00
Florian Geyer
77af79498c
Move QTEST_GUILESS_MAIN statements before test cases.
2014-05-16 12:32:52 +02:00
Florian Geyer
204cd8d971
Move exporter to separate class.
2014-05-16 12:07:22 +02:00
Florian Geyer
8bf4826003
Move search into separate class.
2014-05-15 23:50:40 +02: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
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
5786e2620a
Add unit test for Metadata::copyCustomIcons().
2013-04-07 19:38:18 +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
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
Florian Geyer
92bf7c94d0
Whitespace separated search terms are AND concatenated.
2012-10-21 21:09:27 +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
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
Florian Geyer
60e65bec35
Add search test.
2012-05-13 19:21:23 +02:00
Felix Geyer
de4b90cdf1
Copy custom icons when moved to another database.
...
Closes #9
2012-04-27 11:22:02 +02:00
Florian Geyer
93c231ec2b
Extend group test.
2012-04-25 19:41:46 +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
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
72defa375d
Coding style fixes.
2012-04-22 00:29:16 +02:00
Florian Geyer
5dc21a191b
Clean up group deletion.
2012-04-22 00:11:17 +02:00
Felix Geyer
0791b43da9
TestGroup: Register Entry as a meta type.
2012-04-18 17:42:55 +02: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
ac60f7ce70
Add missing crypto initalization in tests.
2011-11-12 20:00:19 +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
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
c93ac9f6fc
Move qRegisterMetaType calls into initTestCase().
2010-09-18 17:15:22 +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