summaryrefslogtreecommitdiff
path: root/tools/qa
AgeCommit message (Collapse)Author
2014-05-22cppcheck: add missing braketThomas Arnhold
Change-Id: I1e542455ad3e4ab1a445366517c92b102471840a
2014-05-22fix-includes.pl: toolsThomas Arnhold
Change-Id: I66b3dc79998de018eae1c7eff8ce23f95e3c3f33
2014-05-15tools: add AsRGBHexString to Color + unit testTomaž Vajngerl
AsRGBHexString returns the Color as a RGB hex string. For example "00ff00" for green color. Change-Id: Ia95c7f9eb6d9aefc3ca989046fa8d76b7b7f9e8f
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-02-23Remove unneccessary commentsAlexander Wilms
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-12more SvStream:operator>> conversionNoel Grandin
Convert the template based read_lenPrefixed methods to regular methods. Change-Id: Ifd0e93aca055e55a0575e4377ec2b8e266dfb019 Reviewed-on: https://gerrit.libreoffice.org/7895 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-02-12convert SvStream::operator>> methods to ReadXXX methodsNoel Grandin
First, I updated the clang rewriter to do the conversion. Then I lightly hand-tweaked the output for the few places where the rewriter messed up, mostly when dealing with calls on "this". Change-Id: I40a6a977959cd97415c678eafc8507de8aa3b1a9 Reviewed-on: https://gerrit.libreoffice.org/7879 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-11-11convert OUString compareToAscii == 0 to equalsAsciiNoel Grandin
Convert code like aStr.compareToAscii("XXX") == 0 to aStr.equalsAscii("XXX") which is both easier to read and faster. Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f
2013-07-26fdo#33605: Handle http etc. URLs with no path but fragmentStephan Bergmann
Change-Id: I8c47cc55e7ad53e514c0bd46130cbbe6a1bb0357
2013-07-26targetted clean of redundant header piece from 62badf3828Michael Meeks
Change-Id: Ic1240114d667fb7797afae4847427cc889f3cb48
2013-06-30Clean String and sal_Bool in toolsNorbert Thiebaud
Change-Id: I6a92196f33d7a5278c7dcc426112e9c56d582655 Reviewed-on: https://gerrit.libreoffice.org/4627 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-03-16use SAL_N_ELEMENTSCaolán McNamara
Change-Id: I6610f8e888389d09b673504f1eb9387dd38fb6c1
2013-03-16Remove STRINGPARAM in tools (qa)Chr. Rossmanith
Change-Id: I1bff00d261c24e37f9ed41322c49c670850a940f Reviewed-on: https://gerrit.libreoffice.org/2768 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2012-10-31CMIS urls: remove +atom in the internal URLS as the binding is guessedCédric Bosdonnat
Change-Id: I9ae0704f1e5203778e97de5843efe777ba717271
2012-09-18deprecate oustringostreaminserter.hxxNorbert Thiebaud
the intent of this header has canged over time. now it is already systematically included with ustring.hxx and the operator overload it provide fit nicely there... Just to be safe, since that include as been added to the api during the 3.5 timeframe and therefore is already in 'production' the header remain and simply attempt to include ustring.hxx but a warning is issued indicating that this header should not be used anymore... in a couple of major release we will thenr emove it completely All internal users of that header are converted. Change-Id: I8934c55f089e29d78c0f5649b7c87b2ecf024bad Reviewed-on: https://gerrit.libreoffice.org/634 Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-08-02Bin no longer used iOS cppunit stuff that even breaks the buildTor Lillqvist
Change-Id: I459f7fd097a81ef5977974f52b0cc2c2f155a810
2012-07-11re-base on ALv2 code. Includes:Michael Meeks
Avoid some uses of non portable #!/bin/bash in shell scripts. Patch contributed by Pedro Giffuni http://svn.apache.org/viewvc?view=revision&revision=1235297 remove redundant namespace, patch contributed Mathias Bauer http://svn.apache.org/viewvc?view=revision&revision=1162610 removal of OS/2 port changes, and preferring our similiar tools/inc/tools/solar.h DLLPOSTFIX cleanup. i118595 - Removal of the use of getopt() from rscdep. Patch contributed by Andre Fische http://svn.apache.org/viewvc?view=revision&revision=1202270
2012-06-27targetted re-work of cppunit pieces.Michael Meeks
2012-06-04CMIS UCP: changed URLs to have hierarchical pathCédric Bosdonnat
Hierarchical path is assumed in loads of places, changed the URLs to the following: * Binding URL is encoded in the authority part, the repository ID is set as a fragment of the binding URL. * The hierarchical path reflects one of the path to the document on the server :x Change-Id: I8214daeb1d9c9b0f6ab86bdf60875e7e4e5369f4
2012-02-23merge cppunit test dirs togetherCaolán McNamara
drop archaic makefile.mks and export.maps and use consistent naming
2012-02-23convert workben inetmimetest to cppunit testCaolán McNamara
2012-01-16Fix for fdo43460 Part XXXIX getLength() to isEmpty()Olivier Hallot
Part XXXIX Modules testtools, toolkit, tools
2012-01-16drop strange embedded null handling behaviourCaolán McNamara
2012-01-16document with unit test rather suspicious eof handlingCaolán McNamara
ReadLine differs from std::getline with respect to final lines that end at EOF with no EOL. i.e. see Export::ConvertLineEnds in l10ntools/source/export2.cxx which doesn't make a massive amount of sense the way things currently are.
2012-01-16document with unit test rather odd embedded null handlingCaolán McNamara
2011-12-21convert ReadByteString/WriteByteString from ByteString to OStringCaolán McNamara
Nobody ever used the return values anyway, so for reading just return the string and for writing the number of bytes written Doesn't need to be members, make standalone functions Rename to read_lenPrefixed_uInt8s_ToO[U]String and write_lenPrefixed_uInt8s_FromO[U]String, lengthy, but much less unambiguous, seeing as a lot of users of it don't seem to be aware that they read/write pascal-style length prefixed strings, which isn't surprising given the apparent simplicity of their original name. added a unit test
2011-12-21needs more work firstCaolán McNamara
This reverts commit 92f396733ebc518bcb7a9eae2dd3169d333b82b9.
2011-12-21convert ReadByteString/WriteByteString from ByteString to OStringCaolán McNamara
Nobody ever used the return values anyway, so for reading just return the string and for writing the number of bytes written Doesn't need to be members, make standalone functions Rename to read_lenPrefixed_uInt8s_ToO[U]String and write_lenPrefixed_uInt8s_FromO[U]String, lengthy, but much less unambiguous, seeing as a lot of users of it don't seem to be aware that they read/write pascal-style length prefixed strings, which isn't surprising given the apparent simplicity of their original name. added a unit test
2011-12-15convert ReadCString from ByteString to OStringCaolán McNamara
Nobody ever checked the return value anyway, so just return the string and use the stream state bits if necessary to find failures. Doesn't need to be a member, make a standalone function Rename it to read_zeroTerminated_uInt8s_AsO[U]String, stupid perhaps, but *shrug*, unambiguous. Drop misleading overloaded String variants use: read_zeroTerminated_uInt8s_AsOString or read_zeroTerminated_uInt8s_AsOUString added a unit test, valgrinded it, found and fixed invalid read in original implementation.
2011-11-27remove include of pch header from toolsNorbert Thiebaud
2011-11-22New sal/log.h obsoletes osl/diagnose.h and tools/debug.hxx.Stephan Bergmann
* New SAL_INFO..., SAL_WARN... macros. * New SAL_STREAM supersedes OSL_FORMAT. * oustringostreaminserter.hxx moved from unotest to rtl (and always UTF-8 now). * TODO to enable GCC __attribute__((format)) in sal/log.h (requires call-site cleanup). * Further functionality in tools/debug.hxx (DBG_MEMTEST, DBG_CTOR, etc.) not yet addressed. * Some replacements tools String -> rtl::OUString.
2011-10-10ensure correct export size type in stream operationCaolán McNamara
2011-10-01add missing include to build urlobj test fixtureNorbert Thiebaud
2011-10-01Added cmis+atom:// scheme to the tools urlobj.Cédric Bosdonnat
Found out a unexecuted cppunit test for the urlobj, fixed it and added a test for the cmis+atom:// URLs
2011-09-29Added #include "unotest/oustringostreaminserter.hxx" back in (will be needed ↵Stephan Bergmann
once rtl::OUString::operator sal_Unicode const *() is removed); made tools explicitly depend on unotest.
2011-09-29we're not using this header hereCaolán McNamara
2011-09-28fix another unotest/test breakerMarkus Mohrhard
2011-09-27Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *().Stephan Bergmann
2011-09-12sb140: #i113503# mixing system CppUnit and OOo STLport does not work, backed ↵Stephan Bergmann
out a6913c9677c2 For LibO, that just means replacing sal/cppunit.h with sal/precppunit.hxx.
2011-09-05add a fairly efficient read_LEuInt16s_AsOUString, merge similar thingsCaolán McNamara
2011-09-02add a way to better construct an OString of len X from a SvStreamCaolán McNamara
2011-08-03Add statically linked unit tester for iOSTor Lillqvist
2011-07-29make stream operators leave variables in original state on failureCaolán McNamara
this aligns them with the behaviour of std::stream, and makes things like sal_uInt32 n(0); rSt >> n; if (n) { ... } safe if there was a short read of e.g. 3 bytes instead of the required 4
2011-07-26add a test for a nasty suspicion I haveCaolán McNamara
2011-07-25add a good(), eof(), bad() and a test case to demonstrateCaolán McNamara
2011-07-25add the legacy windows-only path utils testCaolán McNamara
2011-07-25recover my cppunit test for tools againCaolán McNamara