summaryrefslogtreecommitdiff
path: root/vcl/qa/cppunit
AgeCommit message (Collapse)Author
2015-06-08loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann
Change-Id: I07bf1403e6b992807541a499b786d47f835b2f81
2015-06-08loplugin:redundantcastStephan Bergmann
Change-Id: Ibb641ab458e49a30637f1dff715480c0ed5d8b42
2015-06-05Clear VclPtr instance reference on removed UserEvents.Michael Meeks
Also extend VclPtr lifecycle test. Change-Id: I4d989375ca02327216eb1f37e466aefdb733579d Reviewed-on: https://gerrit.libreoffice.org/16107 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-06-05VclPtr - more extensive lifecycle tests.Michael Meeks
Change-Id: Ifb5355b3a8f33601bcec0c11ce1afe1c735695b6 Reviewed-on: https://gerrit.libreoffice.org/16100 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-06-02add testcase for CVE-2015-0848Caolán McNamara
Change-Id: Id49cbc139a39a18cd3965413fc06cc14961747e7
2015-05-27loplugin:unreffunStephan Bergmann
Change-Id: Ic0c4bd61aad4354f58cc60e8b584b9d63e397a3b
2015-05-27tdf#88675 Fix display names for hicontrast and tango_testingTobias Lippert
The special cases for the icon themes with the filenames "images_hicontrast.zip" and "images_tango_testing.zip" are now handled. They will be displayed as "High Contrast" and "Tango Testing" respectively. Change-Id: Ia3c2b8b57809db9c5ed132c42a412157e91b2599 Reviewed-on: https://gerrit.libreoffice.org/14574 Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com>
2015-05-25cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: I62076450ab77472bfd09b3fb9824f54b6ea1e0f7
2015-05-22convert WINDOW constants for GetWindow() methods to scoped enumNoel Grandin
Change-Id: I0c7c6d095732704eb4ab48f1277a0592b1c7fa33
2015-05-20convert DEFAULTCONSTANT constant to scoped enumNoel Grandin
Change-Id: I5ebd77edfa29d6c6c7acea37e826ef1d625916c3
2015-05-15convert META_*_ACTION constants to scoped enumNoel Grandin
Change-Id: I8ecfbfecd765a35fafcbcc5452b0d04a89be2459
2015-05-07vcl: simplify code by using std::any_of/std::none_ofTakeshi Abe
Change-Id: I37c4fd80780738b823c7928f22deaff0ea1c6bff Reviewed-on: https://gerrit.libreoffice.org/15585 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-05-07WaE: format ‘%d’ expects argument of type ‘int’David Tardon
Change-Id: I1697f563d21c02551088ea1469eb973a6cfc5a10
2015-05-06convert BMP_SCALE constant to scoped enumNoel Grandin
Change-Id: Ibc9f88d2588c028cd71aa86c26d970a73025ef22
2015-05-06convert DEFAULTFONT_ constants to scoped enumNoel Grandin
Change-Id: Ia33e957f6cf530e2639b3c86d9482f642652cb46
2015-04-30loplugin:literaltoboolconversionStephan Bergmann
Change-Id: I556a0fc4e47e51880b12c7e1ae25a588f576cd7c
2015-04-30Get rid of the initial :: for the vcl namespaceTor Lillqvist
We used it all over the place without leading :: already anyway, even in many files in include. So let's be consistent. In the majority of cases, prefer the easier-on-the-eyes choice, not the "safe" one. In those files in include where *all* existing uses of ::vcl:: indeed used the :: prefix, there let's keep it for consistency. Change-Id: If99cb41d3bf290d38c601d91125c3c8d935e61d0
2015-04-29abhortive focus unit test - apparently we need visible windows for that.Michael Meeks
Change-Id: I64999eb625a4b312997ba78698710bd1acaf8da7
2015-04-24Build and warning fixes, Mac, Win, Linux.Michael Meeks
Change-Id: I8a8420f96c512e031ba3cde499523b71341dfa94
2015-04-20vcl: convert new to ::CreateMichael Meeks
Change-Id: Ifd52953086ea923fa1770892d13f32c2263aec54
2015-04-13VclPtr - add a templatized ::Create method for better readability.Michael Meeks
Change-Id: I2437198709ba4848d975efd1ebb4df1071c6c8f1
2015-04-10Fix misc. issues in lifecycle unit tests.Michael Meeks
Change-Id: I667852d1c854259ed698541b868a49322c6fbe64
2015-04-10vcl: stop vcl::Window clobbering mnRefCnt itself.Michael Meeks
Change-Id: If1926c8ecc94c3b9786a3f255371b440c482a155
2015-04-10automated VclPtrInstance conversion.Michael Meeks
Change-Id: I9a1d47202e2794461f6ec44f3e72ee1dd2fde09d
2015-04-10Convert more sites to VclPtrInstance.Michael Meeks
Change-Id: I364c5eb176d5003deb1938810cccf4f2aaedbd59
2015-04-10vclptr: create Instance helpers, and set initial ref-count to 1.Michael Meeks
Document that in README.lifecycle; the problem is that our constructors currently take and release references left/right on the object being created, which ... means we need an initial reference. Change-Id: I5de952b73ac67888c3fbb150d4a7cde2a7bc9abf
2015-04-10Fix LazyDelete crasher, and add & test more post-dispose robustness.Michael Meeks
Change-Id: I0e9460cb33b7cb5da9ddb950ff27bac8cbf7fed8
2015-04-10fix VirtualDevice unit test.Michael Meeks
Change-Id: I7a1f95ae1d8577114634c62aa89d3c7e1fde62c1
2015-04-10vcl: fix virtual device lifecycle.Michael Meeks
Also remove an over-optimistic assert & ref-holding in dispose piece. Change-Id: I6ce6abb666c8143502fc450a26e1ba2aac787455
2015-04-10vcl: fix lifecycle test to disposeOnce.Michael Meeks
Change-Id: Idef33e0b8e6c986c8808c2b611c5f4b6632e7511
2015-04-10vclwidget: only call dispose() onceNoel Grandin
by using a new utility method in vcl::Window This means that we don't have to make all our dispose methods safe to call more than once. Change-Id: I2110c7de4a86c70fdc97dd8fd318c86b56865374
2015-04-09vcl: new lifecycle test.Michael Meeks
Change-Id: I05500c136839877db5c4a215b15e24a8444d3c16
2015-04-09vcl: add assert and improve lifecycle test.Michael Meeks
Change-Id: Ic70a890dae41b04d6dd1f19cbea419fe5a794af3
2015-04-09vcl: more double-dispose protection, and survival after dispose.Michael Meeks
Change-Id: I271f9bcb85d07a28abef2d97ef3c31287878324d
2015-04-09vcl: rename VclReference to VclPtrNoel Grandin
and remove the typedefs. The code is more obvious this way. Change-Id: I4c8f5b5ab050dd96216302a03e760ed0e3ab3464
2015-04-09vcl: add cast operator to VclReference to convert to pointerNoel Grandin
so we don't have to call .get() everywhere Change-Id: If6ccd7dcf1a492b1e7703956ecbe8e5ac2dd0fb7
2015-04-09vcl: implement upcasting of VclReference typesNoel Grandin
to make code less verbose Change-Id: I0e28bfc412d50e798e6c215434cffc2183b104a6
2015-04-09vcl: manage SubEdit with references - and fix leak / cleanup.Michael Meeks
Change-Id: Icbfe237a55cfbd83739b055350d5a6a54a2fa36d Conflicts: vcl/source/control/edit.cxx
2015-04-09vcl: double dispose protection & unit test.Michael Meeks
Widgets must be able to tolerate multiple 'dispose' calls. Change-Id: I76069a10b83b8384ad84dd146766054cab5bd222
2015-04-09vcl: more rtl::Reference cleanupMichael Meeks
Change-Id: Idef6b4259d784120a06d2a6c51b77029566da59f
2015-04-02loplugin:staticmethodsNoel Grandin
Change-Id: Ibf0c73ac17ec19ed672f66907db47057920babca
2015-03-30Scanlines on Windows seem to be padded to DWORD multiplesTor Lillqvist
Change-Id: I806744fed51f451f17e6f493555f81cc38e2d71e
2015-03-30coverity#1292225 variable guards dead codeCaolán McNamara
Change-Id: Ie00be7806b5bce3599c47654585246edf6f8cc90
2015-03-29Fix test on non-LinuxStephan Bergmann
Change-Id: I0852c732d580d85ebad629ca26c28ede1576b957
2015-03-29vcl: test for bitmap convert, use scoped read/write accessTomaž Vajngerl
Change-Id: I702d3e1ced356efce28ebfec141776f07645b2f9
2015-03-27vcl: stack blur implementation + basic test & performance testTomaž Vajngerl
Change-Id: I793ed80a07d9488c5f75b3abdca6db344d80d3d8
2015-03-27vcl: tests for Bitmap, check for symmetry when scaling bitmapsTomaž Vajngerl
Change-Id: I53d6e70018477abb9f98140a52697c1de0f90934
2015-03-19convert SFX_FILTER_ constants to enum classNoel Grandin
Change-Id: I7e53cfc90cefd9da7d6ecd795b09214bd44b1613
2015-03-18create new 'enum class' SotClipboardFormatId to unify typesNoel Grandin
of which there are several. There are some issues here I am unsure of - the SW and SC and CHART2 modules essentially ignore the enum values and assign their own ids Perhaps I should change them to use the common values and create new enum values where necessary? - the sc/qa/ and sq/qa/ and starmath/qa/ code was doing some dodgy stuff. I translated the code to pass down the stuff numeric values to the underlying code, but perhaps further fixing is necessary? Change-Id: Ic06d723e404481e3f1bca67c43b70321b764d923
2015-03-11add EBD-36335 and EBD-36334 testsCaolán McNamara
Change-Id: I7c70b0b95dc921b5fa535a090843cd1679bd683f