summaryrefslogtreecommitdiff
path: root/testtools
AgeCommit message (Collapse)AuthorFilesLines
2014-10-16java: when rethrowing, store the original exceptionNoel Grandin1-4/+4
Change-Id: I34ce000c48d2d79bfec854c8dd55d12f2bee29c7
2014-10-07java: remove unnecessary adding of empty stringsNoel Grandin1-1/+1
Change-Id: I3825ea5fb1eb34ca52659350e202f95abea945a9
2014-09-18Use instsetoo_native-generated uno ini-file for both instdir and instsetsStephan Bergmann1-1/+1
Change-Id: I8aa839fbe621fed798a9d3a33975cbd202fba656
2014-09-16Missing dependency on uno ini-fileStephan Bergmann1-0/+1
Change-Id: I5766aa66da700d5e2962f65510e047655d13a218
2014-08-20remove more unnecessary constructor declarationsNoel Grandin1-1/+1
Change-Id: Ie5a243006b112c2e6daf12992f3dba8baf12748d
2014-08-20java: don't catch and then just rethrow an exceptionNoel Grandin1-10/+3
without doing anything else useful Change-Id: I5803d84d46e0a70e1759f2202e2c2273087f8723
2014-08-19java: use 'Byte.valueOf' instead of 'new Byte'Noel Grandin1-2/+2
Change-Id: Ia99765a6226317ee41ffb02a1b0dd7e6fd944a90
2014-08-19java: use 'Short.valueOf' instead of 'new Short'Noel Grandin1-3/+3
Change-Id: Icef19ef61ee0af2dd3bda527263934006271f219
2014-08-19java: use 'Long.valueOf' instead of 'new Long'Noel Grandin1-3/+3
Change-Id: If4fff3dd37326fbcdd01b743355a16591d71fa69
2014-08-19java: use 'Integer.valueOf' instead of 'new Integer'Noel Grandin2-8/+8
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
2014-08-19java: use Boolean.valueOf instead of instantiating Boolean objectsNoel Grandin1-1/+1
Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
2014-08-14java: remove commented out codeNoel Grandin2-124/+6
Change-Id: I05c907a38b562231e968c17f14e09ef80e0a6ed1
2014-08-12java: add @Override annotation to overriding methodsNoel Grandin5-0/+8
Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
2014-08-08java: use an empty block rather than an empty statementNoel Grandin2-2/+2
Change-Id: I05e60964521d6ec3694483816d91359fb12c8e4b
2014-08-08java: remove unused variablesNoel Grandin3-9/+4
Change-Id: I1b04fbf4d4562ff8e74f6ccdb2fd989d79cc869b
2014-08-05java: remove commented out codeNoel Grandin3-7/+0
Change-Id: I44e2043e5da23bc9421c03e550ef1d8b7ebaad36
2014-06-05various: remove SAL_THROW macroNoel Grandin1-2/+0
Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
2014-05-23remove boilerplate in UNO Exception constructor callsNoel Grandin2-32/+19
Now that we have default values for Exception constructor params, remove lots of boilerplate code. Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-05-15Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold1-2/+2
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-08various: sal_Bool->boolNoel Grandin3-23/+23
Change-Id: I30fa5227f30373f95060148f269450d2945c1bb9
2014-04-28prefer makefile-gmake-modeTakeshi Abe1-1/+1
Change-Id: I9cc9bfbddd3a90e00eee3e674994e5d6207f9034
2014-04-09Clean up function declarationsStephan Bergmann3-9/+10
Change-Id: Ia4ed1d576cb3bcf46de3225e5569f9cfd15a6f7e
2014-04-03remove unnecessary scope qualifier from sal_Bool usesNoel Grandin3-13/+13
i.e. convert "::sal_Bool" to "sal_Bool" Change-Id: Ie5943aee4fee617bf2670655558927ed25b7e067
2014-03-29typo: inteface -> interfaceThomas Arnhold1-1/+1
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann6-132/+132
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-10testtools: simplify deprecated XTypeProvider.getImplementationIdStephan Bergmann1-2/+2
Change-Id: I2ab505962c64711d72f2a6b4cdebaef2f1bf4439
2014-02-27normalize values of CROSS_COMPILINGMichael Stahl1-1/+1
Change-Id: I0cc43cef91e3fcd82a3558a16ab0afbd4d56b141
2014-02-27Remove visual noise from testtoolsAlexander Wilms9-53/+53
Change-Id: Idbf31a46a9e174b96b3cac76be6a01a6ada0abde Reviewed-on: https://gerrit.libreoffice.org/8325 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann6-180/+180
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-23Remove unneccessary commentsAlexander Wilms5-66/+66
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-10Typo: execption -> exceptionJulien Nabet1-1/+1
Change-Id: Ib57e0cc39c27595490e29dec46cc6d33067c34b5
2014-02-04gbuild: component files for Jars in NONE layer and move testComponentMichael Stahl1-1/+1
... from URE to NONE. Change-Id: If43e07b88f2ab0e845f77d1f1a835627e5c48dd7
2014-01-28bool improvementsStephan Bergmann1-4/+4
Change-Id: Ifecb1d1e31759141d1468d40c3653a193561a98b
2013-12-17Adapt all (non-extension, SharedLibrary) .components to environment="..."Stephan Bergmann3-3/+3
Change-Id: I56f38bd786f3a026cb2908f28540dc9c4003af83
2013-12-16Clean-up uno/lbnames.hStephan Bergmann3-1/+2
Change-Id: I4bd729499aa8be58f04194656e35c1f79d5d4919
2013-12-04Revert "throw new ..." fix in Managed C++ codeStephan Bergmann1-3/+3
...where it is correct and 336353a87e6003e685aab87ea74a158546e1f297 "Related rhbz#867808: More apparently bogus 'throw new ...' in C++ code" had changed it by accident. Change-Id: Id7fc1adf8c0068a3b59794d156b21f68b5ac7e72
2013-11-20remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii callsNoel Grandin1-12/+12
Convert code like: aStrBuf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "ln(x)" )); to: aStrBuf.append( "ln(x)" ); which compiles down to the same code. Change-Id: I24c7cb45ceb32fd7cd6ec7ed203c2a5d746f1c5c
2013-11-19-Werror,-Wunused-variableStephan Bergmann1-4/+2
Change-Id: Ieac2e725b2baad29dedb225d6009b2abe421be04
2013-11-19remove most use of RTL_CONSTASCII_USTRINGPARAM macroNoel Grandin2-18/+18
This is largely unnecessary when working with OUString Change-Id: I3cf4d68357a43665d01162ef4a2d5346a45da9be
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann1-3/+0
Change-Id: I6f8c9a32bc9266f20b5fc74b4e2f60f7b6be55d3
2013-11-11convert OUString compareToAscii == 0 to equalsAsciiNoel Grandin1-2/+2
Convert code like aStr.compareToAscii("XXX") == 0 to aStr.equalsAscii("XXX") which is both easier to read and faster. Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f
2013-11-11convert OUString 0==compareToAscii to equalsAsciiNoel Grandin1-4/+4
Convert code like: 0 == aStr.compareToAscii("XXX") to aStr.equalsAscii("XXX") which is both clearer and faster. Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07
2013-10-31solver doesn't solve anything...Michael Stahl1-4/+2
... it is an abbreviation of "Solar Version". Since nobody can remember that: remove OUTDIR OUTDIR_FOR_BUILD SOLARVER SOLARVERSION solarpath and any mention thereof. Change-Id: Idb3031c4f25a76ac05b22ec67e3ca3e1e8e512ad Reviewed-on: https://gerrit.libreoffice.org/6515 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2013-10-31Convert indexOf->startsWith and lastIndexOf->endsWithNoel Grandin1-1/+1
This is both an optimisation and a cleanup. This converts code like aStr.indexOf("XX") == 0 to aStr.startsWith("XX") and converts code like aStr.lastIndexOf("XXX") == aStr.getLength() - 3 to aStr.endsWith("XXX") Note that in general aStr.lastIndexOf("X") == aStr.getLength() - 1 converts to aStr.isEmpty() || aStr.endsWith("X") so I used the surrounding context to determine if aStr could be empty when modifying the code. Change-Id: I22cb8ca7c2a4d0288b001f72adb27fd63af87669
2013-10-28gbuild: refactor CliUnoApiMichael Stahl1-2/+2
- stop copying the DLL to OUTDIR - since that was the main reason for the separation between CliUnoApi and CliUnoApiTarget, merge the targets; the newly inherited variables are not expected to cause problems - hardcode target to URE bin dir for now, no immediate need for multiple layers Change-Id: I428d801ec7058e1c6374d8162a4118a3fe581978
2013-10-25stop looking for Jar files in solverMichael Stahl1-2/+2
Change-Id: I4d2a93fa7395354fbf2893df9e254ab39fa365af
2013-10-22fdo#54938: Adapt supportsService implementations..Marcos Paulo de Souza4-32/+7
to cppu::supportsService Change-Id: I0b03d3910f094f2183bf9859db9d5bcaf35d1f14 Reviewed-on: https://gerrit.libreoffice.org/6370 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-09-22add mode lines to new files (and idls) since last runCaolán McNamara7-0/+21
Change-Id: Id1e74f18c90e69d1a781c8f02e30dc3c005ed4fd
2013-09-22gbuild: remove libraries from OUTDIR and WORKDIRMichael Stahl2-4/+4
Refactor everything to find and link libraries directly in INSTDIR. - add gb_LinkTarget_get_linksearchpath_for_layer, and use it to set up -L paths for T_LDFLAGS in such a way that only allowed libraries can be linked against; i.e. it's not possible to link URE linktargets against OOO or not-installed libraries - gb_Library_get_target is now same as the gb_LinkTarget_get_target (TODO: this needs cleanup) - since a pattern rule won't work for linking libraries in INSTDIR, add a separate per-file rule for every INSTDIR lib - pattern rule can't find link target in the clean target any more so add a LINKTARGET variable - disable gb_Library_add_auxtarget, no auxtargets need to be copied - tweak the call to gb_Library_Library_platform to pass in a path in sdk/lib for the versioned URE libs - fix the Library clean target - add LAYER parameter to gb_LinkTarget_LinkTarget - adjust platform link commands - MSVC link command now uses explicit -manifestfile and -pdb parameters to keep misc. files out of INSTDIR - remove gb_Helper_OUTDIR_FOR_BUILDLIBDIR - adjust Extension, CppunitTest, JunitTest, PythonTest, Gallery, various CustomTargets to search INSTDIR - remove SDK library symlinks and import libs from odk/Package_lib - on Mac OS X, put .dylib symlinks into sdk/lib even though those are not packaged and would be created by the SDK configury; we need these to be somewhere for linking anyway - add a (unfortunately cyclic) dependency on Package ure_install to sal Change-Id: I70d88742f8c8232ad7b9521416275c67b64fe6cf
2013-09-19Directly build UNOIDL .rdb files from .idl filesStephan Bergmann2-20/+2
...via unoidl-write and the new source-format registry provicers, instead of using idlc to produce .urd files, regmerge to merge them into legacy .rdb files, and unoidl-write to translate those to new UNOIDL .rdb files. gb_UnoApi and gb_InternalUnoApi ctors take an additional argument now that is the path (below $(SRCDIR)) of the source-format registry from which to obtain UNOIDL entity definitions. It can either be an .idl file (in which case no *_add_idlfiles calls should be used and the resulting .rdb will contain all the entities from that one .idl file; used in some tests to conveniently define all test-specific entities in a single file) or a directory denoting the root of an .idl file tree (in which case *_add_idlfiles calls specify the entites to include in the resulting .idl file). (In the first case, the generated .rdb file needs to depend on that single .idl file, so the gb_UnoApiTarget ctor contains a dependency on that additional argument, which happens, as a side effect, to trigger rebuilds in the second, tree-based case when addition/removal of .idl files in the tree causes updates of directory time-stamps.) UnoApiPartTarget and all the dependency-tracking logic based on .urd files in solenv/gbuild/UnoApiTarget.mk is gone. Generation of an .rdb file now depends on its source registry (see previous paragraph) and all the .idl files specified with *_add_idlfiles (in the second, tree-based case above). A consequence of that is that gb_UnoApi_add_idlfile, -_nohdl, and -_noheader all do the same now. I left them in for now anyway, maybe they become relevant again when the use of cppumaker is changed to read directly from a source-format registry instead of going via a .rdb registry. The legacy tools idlc, regcompare, regmerge, and regview are still contained in the URE or SDK for now. cb344cd59e1ddb7c6db66dbd9263b4755969d4ba "Revert 'Looks like idlc resolved typedefs inside sequence<...>'" is re-reverted as now "the current offapi.rdb is generated via unoidl-write instead of idlc." Change-Id: I3d9d92f17326bc9f49dd934c85aab6a17951d06d