summaryrefslogtreecommitdiff
path: root/tools/qa/cppunit
AgeCommit message (Collapse)AuthorFilesLines
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák4-16/+16
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 McNamara1-6/+6
Change-Id: I6610f8e888389d09b673504f1eb9387dd38fb6c1
2013-03-16Remove STRINGPARAM in tools (qa)Chr. Rossmanith2-37/+28
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 Bosdonnat1-4/+4
Change-Id: I9ae0704f1e5203778e97de5843efe777ba717271
2012-09-18deprecate oustringostreaminserter.hxxNorbert Thiebaud1-1/+0
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 Lillqvist2-130/+0
Change-Id: I459f7fd097a81ef5977974f52b0cc2c2f155a810
2012-07-11re-base on ALv2 code. Includes:Michael Meeks3-75/+48
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 Meeks6-18/+5
2012-06-04CMIS UCP: changed URLs to have hierarchical pathCédric Bosdonnat1-8/+23
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 McNamara2-0/+280
drop archaic makefile.mks and export.maps and use consistent naming
2012-02-23convert workben inetmimetest to cppunit testCaolán McNamara1-0/+69
2012-01-16Fix for fdo43460 Part XXXIX getLength() to isEmpty()Olivier Hallot1-1/+1
Part XXXIX Modules testtools, toolkit, tools
2012-01-16drop strange embedded null handling behaviourCaolán McNamara1-6/+4
2012-01-16document with unit test rather suspicious eof handlingCaolán McNamara1-3/+33
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 McNamara1-0/+67
2011-12-21convert ReadByteString/WriteByteString from ByteString to OStringCaolán McNamara1-8/+51
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 McNamara1-51/+8
This reverts commit 92f396733ebc518bcb7a9eae2dd3169d333b82b9.
2011-12-21convert ReadByteString/WriteByteString from ByteString to OStringCaolán McNamara1-8/+51
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 McNamara1-0/+21
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 Thiebaud3-3/+0
2011-11-22New sal/log.h obsoletes osl/diagnose.h and tools/debug.hxx.Stephan Bergmann1-1/+1
* 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-09-29Added #include "unotest/oustringostreaminserter.hxx" back in (will be needed ↵Stephan Bergmann1-0/+1
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 McNamara1-1/+0
2011-09-28fix another unotest/test breakerMarkus Mohrhard1-1/+1
2011-09-27Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *().Stephan Bergmann1-0/+1
2011-09-12sb140: #i113503# mixing system CppUnit and OOo STLport does not work, backed ↵Stephan Bergmann4-5/+21
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 McNamara1-4/+4
2011-09-02add a way to better construct an OString of len X from a SvStreamCaolán McNamara1-0/+22
2011-08-03Add statically linked unit tester for iOSTor Lillqvist2-0/+141
2011-07-29make stream operators leave variables in original state on failureCaolán McNamara1-1/+4
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 McNamara1-2/+11
2011-07-25add a good(), eof(), bad() and a test case to demonstrateCaolán McNamara1-0/+114
2011-07-25add the legacy windows-only path utils testCaolán McNamara1-0/+76
2011-07-25recover my cppunit test for tools againCaolán McNamara1-0/+171