summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* mark UNO structs as SAL_WARN_UNUSED, where possibleNoel Grandin2015-11-261-2/+0
| | | | Change-Id: Ie3de518f60c9f1313c68df54dbdc1fb2804f1f0d
* loplugin:nullptr (automatic rewrite)Stephan Bergmann2015-11-106-20/+20
| | | | Change-Id: I31e61fc91dff70f32143d84ccf308f2bbc9c740e
* com::sun::star->css in testtools/Noel Grandin2015-11-091-1/+1
| | | | | | | Change-Id: I9a44e44b2478b007fba7f86eefcf4fa04d77b37b Reviewed-on: https://gerrit.libreoffice.org/19852 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann2015-11-061-6/+6
| | | | Change-Id: I9cd49febb66007a2993bd87e354ed4a84b958501
* use uno::Reference::set method instead of assignmentNoel Grandin2015-11-051-3/+3
| | | | Change-Id: Id036f867e75d03d8347cc32a1011c5cdda1dcc73
* Reduce scope of #include <tools/stream.hxx>Matteo Casalin2015-10-271-0/+1
| | | | Change-Id: I0752cbb0cb2e0f89607d81d9eda7ce7091449fd6
* loplugin:defaultparamsStephan Bergmann2015-10-201-1/+1
| | | | Change-Id: I742a25440d6c321549bb32a2e5ce86207bfb711c
* Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann2015-10-121-1/+1
| | | | Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
* convert Link<> to typedNoel Grandin2015-09-241-1/+1
| | | | | | | Change-Id: I280473a7a9069a86388f608bddc8e48879771bc9 Reviewed-on: https://gerrit.libreoffice.org/18815 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* convert Link<> to typedNoel Grandin2015-09-221-3/+3
| | | | Change-Id: I92df586295c11bc9e9276770656901c2e4e714b9
* boost->stdCaolán McNamara2015-09-182-4/+4
| | | | | | | | Change-Id: Ie490bf2c6921f393bdeed96b1a8815996b701bf0 Reviewed-on: https://gerrit.libreoffice.org/18670 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* convert Link<> to typedNoel Grandin2015-09-102-6/+5
| | | | Change-Id: Iaca21344f6a38f508f79e6d5983e515162a6dca3
* percheck: produce similar stats than off-tree callgrindNorbert Thiebaud2015-09-021-1/+1
| | | | Change-Id: I7035ea6f2d9ffe92282533064d69b75e2c1989e1
* test: hack to avoid VCLXToolkit calling CreateMainLoopThreadMichael Stahl2015-08-191-0/+13
| | | | | | | | | | ... for the PythonTest, similar to what vclbootstrapprotector does for CppunitTest; actually no idea if this is a good idea or a bad idea. Change-Id: Ia4e2e50fdc9c8deb9faf580a2f3f3308533265eb Reviewed-on: https://gerrit.libreoffice.org/17540 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
* Put Polygon from tools under tools:: namespaceNorbert Thiebaud2015-08-171-2/+2
| | | | | | | | | | Polygon is one of these names that Clash with some system objects A similar work has been done earlier with PolyPolygon. Change-Id: Icf2217cb2906292b7275760f1a16be0e150312f5 Reviewed-on: https://gerrit.libreoffice.org/17789 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
* loplugin:simplifyboolStephan Bergmann2015-07-161-2/+2
| | | | Change-Id: Idb065bab0285a5db209e75e29a9f6f4d72091e8c
* Replace boost::scoped_array<T> with std::unique_ptr<T[]>Takeshi Abe2015-06-173-6/+6
| | | | | | | | | | | | | | | | | | | | | | This may reduce some degree of dependency on boost. Done by running a script like: git grep -l '#include *.boost/scoped_array.hpp.' \ | xargs sed -i -e 's@#include *.boost/scoped_array.hpp.@#include <memory>@' git grep -l '\(boost::\)\?scoped_array<\([^<>]*\)>' \ | xargs sed -i -e 's/\(boost::\)\?scoped_array<\([^<>]*\)>/std::unique_ptr<\2[]>/' ... and then killing duplicate or unnecessary includes, while changing manually m_xOutlineStylesCandidates in xmloff/source/text/txtimp.cxx, extensions/source/ole/unoconversionutilities.hxx, and extensions/source/ole/oleobjw.cxx. Change-Id: I3955ed3ad99b94499a7bd0e6e3a09078771f9bfd Reviewed-on: https://gerrit.libreoffice.org/16289 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* window ftbfs: MetaActionType::TRANSPARENT->MetaActionType::TransparentCaolán McNamara2015-05-151-1/+1
| | | | | | ideally camel case the rest of these for consistency Change-Id: I7f66b8051ea58963ea28d128f73900aefe5d2846
* convert META_*_ACTION constants to scoped enumNoel Grandin2015-05-151-80/+79
| | | | Change-Id: I8ecfbfecd765a35fafcbcc5452b0d04a89be2459
* Use IMPL_[STATIC_]LINK_NOARG where applicableStephan Bergmann2015-05-101-1/+1
| | | | Change-Id: I1e24b032bdeea017b0e77c5446e55310899ce752
* NOINSTANCE is implied now in IMPL_STATIC_LINK...Stephan Bergmann2015-05-102-2/+2
| | | | Change-Id: Ifb032457d6c1b279c4183282ef2b271c706dd71a
* Clean up checks of sal_Bool valuesStephan Bergmann2015-05-081-2/+2
| | | | Change-Id: Ia05565077823d6efaeaeb35d3d80b51dd9a10d4c
* typo: strech -> stretchAndras Timar2015-05-051-1/+1
| | | | | | | Change-Id: I0de1cfaa0df460c7bc8e49752b31056f95c30053 Reviewed-on: https://gerrit.libreoffice.org/15628 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
* Remove unnecessary STATIC_LINK macroStephan Bergmann2015-04-292-2/+2
| | | | Change-Id: I4788824667c8e0d1d4e0717b7ae7737bb0fd2c90
* More loplugin:simplifyboolStephan Bergmann2015-04-272-4/+4
| | | | Change-Id: I020627f1747bfa31e60d79954cdb9c8fe0a4e5f2
* Use OFFICEOTRON/ODFVALIDATOR determined by configureStephan Bergmann2015-04-201-3/+12
| | | | Change-Id: I456669f15a659e144fc6ecad053cd0b929859424
* Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann2015-04-011-9/+9
| | | | Change-Id: I50d13cdd5fb94a68c2eb7c165c75ab2413a0d254
* TyposJulien Nabet2015-03-251-1/+1
| | | | Change-Id: I434be0034b26ac4719590238817538ecd90b8923
* loplugin:constantfunction: testNoel Grandin2015-03-242-24/+0
| | | | Change-Id: I86eb9e46bec561bf0ede60180754ae35cefadfd5
* V813: Decreased performanceCaolán McNamara2015-03-041-2/+2
| | | | Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
* Some more loplugin:cstylecast: testStephan Bergmann2015-01-201-2/+2
| | | | Change-Id: I48397ba0cc3c0737f6c47808d353245f81050a2b
* fdo#84938: convert STREAM_ #defines to 'enum class'Noel Grandin2015-01-074-4/+4
| | | | Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e
* Let MetafileXmlDump::dumpAndParse() take a const GDIMetaFileMiklos Vajna2014-12-191-3/+4
| | | | | | So the const_cast<> in CppunitTest_sw_uiwriter can go away. Change-Id: Id7d4234154cd6bed43cb5270b50208061038dcf7
* test: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-181-1/+1
| | | | Change-Id: Idbdc5c9aab8fa65df39d66da2461337db6350e52
* test: Use appropriate OUString functions on string constantsStephan Bergmann2014-12-181-2/+2
| | | | Change-Id: Id4327a479fd61b3793a2b8b250203edcfe3e6754
* XmlTestTools: fix conversion from UTF-8 xmlChar strings to OUStringStephan Bergmann2014-12-181-3/+20
| | | | | | | ...which resolves the mystery of 0ba6360363fb73b5b200bbc486ed8eeac5f3d337 "Garbage in, garbage out?" Change-Id: I51f102699d0474872c80392b27f71030b5e3fb59
* CppunitTest --headless is not the same as soffice --headlessStephan Bergmann2014-12-103-2/+42
| | | | | | ...they just "happen" to have the same name Change-Id: Ia602f9a62e07c3af6fba2ffb84a858e1fb4b09ce
* Unittest for autocorrect in writerDaniel Sikeler2014-11-282-0/+1
| | | | | | | | | | | | | | | | | | At first we test normal replacement of wrong words. Second part of the test is about style changes during autocorrection. And at the end we replace a word with a table. The rules for the autocorrection are in test/user-template/user/autocorr/acor_fr.dat I needed to make SwAutoCorrect public for my test. Conflicts: sw/qa/extras/uiwriter/uiwriter.cxx Change-Id: Ie753c2187c1f4eddaefe0cc428a605107112c24f Reviewed-on: https://gerrit.libreoffice.org/13131 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Fix common typos. No automatic tools. Handmade…Andrea Gelmini2014-11-121-1/+1
| | | | | | | Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* perfcheck instrument existing test : replaceAllLaurent Godard2014-11-121-0/+4
| | | | | | | Change-Id: I7766aa6d69810124b27763912c3e7a8399637280 Reviewed-on: https://gerrit.libreoffice.org/12243 Reviewed-by: Matúš Kukan <matus.kukan@collabora.com> Tested-by: Matúš Kukan <matus.kukan@collabora.com>
* Revert "use the new OUString::fromUtf8 method"Stephan Bergmann2014-11-061-1/+1
| | | | | | | | This reverts commit 05050cdb23de586870bf479a9df5ced06828d498, not all places that use e.g. OStringToOUString to convert potential UTF-8 are guaranteed to fulfil the prerequisites necessary to use fromUtf8 (and some places like e.g. in codemaker are happy with the best-effort effect of OStringToOUString's OSTRING_TO_OUSTRING_CVTFLAGS).
* use the new OUString::fromUtf8 methodNoel Grandin2014-11-061-1/+1
| | | | Change-Id: I771004b7ccab3344a67e827e45bc34c22ffa5f77
* Improve framework for callgrind performance unit testsMatúš Kukan2014-10-292-0/+35
| | | | | | | | | | | | | | | Do not abort in tests which take longer then before. Since 4f5f6d2444a24138c3d3d378771f87cb06427195 we have nice tool to collect callgrind results, store them.. Also, make it not necessary to duplicate anything. Any test can be turned into a performance test by using callgrindStart/callgrindDump. You only need to duplicate the makefile name in gb_Module_add_perfcheck_targets. So, if the test is run as part of 'perfcheck', it runs under callgrind, otherwise it behaves like a regular unit test. Change-Id: I7acbb855b1823c9a32ba126abb57dccc767ca239
* sc: fix temp file leak in ScTableSheetsObjMichael Stahl2014-10-211-1/+7
| | | | Change-Id: Iff838c97c1cf633f99e75a169eeb8bb324d4a32a
* create a macro library for implementing bit-flags typesNoel Grandin2014-10-131-15/+15
| | | | | | | | | | | Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, changed from a macro- to a template-based solution. (Unfortunately MSVC 2012 does not support explicit conversion operators. Worked around that with explicit #ifs rather than some HAVE_EXPLICIT_CONVERSION_OPERATORS and SAL_EXPLICIT_CONVERSION_OPERATOR ainticipating we hopefully soon move to a baseline that requires unconditional support for them.) Change-Id: I4a89643b218d247e8e4a861faba458ec6dfe1396
* sc: ensure global variables in tests are cleared before shutdownMichael Stahl2014-09-301-50/+45
| | | | | | | If the destructors run from exit handlers, they could access already deleted globals from VCL etc. and crash. Change-Id: I265046e95998a4384e1ce0f1f205d03c078a40a9
* Factor out duplicated code to XmlTestTools::assertXPathNoAttribute()Miklos Vajna2014-09-301-0/+12
| | | | Change-Id: I1eb3778e6bcdd8c44ffb9a7548add109331fc83b
* Include name of document in CPPUNIT_ASSERT msgsStephan Bergmann2014-09-232-9/+16
| | | | Change-Id: Ia0d06d1e0951bcc3930d5e059658209a2916405f
* fdo#82577: Handle FontNoel Grandin2014-09-181-1/+1
| | | | | | | Put the VCL Font class in the vcl namespace. Avoids clash with the X11 Font typedef. Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
* coverity#1233488 Unchecked dynamic_castCaolán McNamara2014-09-021-1/+2
| | | | Change-Id: I9599fb4473a43a4624d64c48e8768761fcbd266f