Commit Graph

55 Commits

Author SHA1 Message Date
Michael Stahl
769778e489 test::BootstrapFixtureBase::getPathFromWorkdir not unused
Change-Id: I4ddad27d1e5a4de9885956b80db37f1e2f80a96e
2014-01-17 16:08:09 +01:00
Petr Vorel
db27efd297 removed some unused code (svx, svtools, unotest)
Change-Id: I1250581d69423030bd0a93a1529458b8d424ce3e
Reviewed-on: https://gerrit.libreoffice.org/7329
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-17 13:50:26 +00:00
Miklos Vajna
73a808f6b3 test::FiltersTest: add support for export tests
For now, this is only implemented for the Writer RTF filter.

Change-Id: I0c7ae5b0e544bd4738652a38474f4d262ce65661
2013-12-17 20:52:35 +01:00
Noel Grandin
08fe82e59c Remove unnecessary use of OUString constructor in + expressions
Convert code like
  aFilename =  OUString::number(nFilePostfixCount) + OUString(".bmp");
to
  aFilename =  OUString::number(nFilePostfixCount) + ".bmp";

Change-Id: I03f513ad1c8ec8846b2afbdc67ab12525ed07e50
2013-12-17 11:49:03 +02:00
Markus Mohrhard
31cba7d346 fixes for previous commit
Change-Id: Ic4f2d36ce901b88b47b43fdebba197daf8bd0373
2013-12-13 20:05:14 +01:00
Noel Grandin
610b2b94b3 remove unnecessary use of OUString constructor when assigning
change code like
   aStr = OUString("xxxx");
to
   aStr = "xxxx";

Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-19 10:29:31 +02:00
Lionel Elie Mamane
d00c4476da fail early and hard
Change-Id: Ib550126d190e9436cf77e6c51eaf869ecd75a18b
2013-11-09 06:35:20 +01:00
Thomas Arnhold
d0c12f0aa2 fixincludeguards.sh: uno*
Change-Id: I8fb3c25cd583b688104a0ee8620696e7b2958ab5
2013-11-05 09:28:51 +01:00
Noel Grandin
0e6a2601b3 Convert code that calls OUString::getStr()[] to use the [] operator
This also means that this code now gets bounds checked in debug builds.

Change-Id: Id777f85eaee6a737bbcb84625e6e110abe0e0f27
2013-11-04 08:06:10 +02:00
Michael Stahl
5d8f48c81e solver doesn't solve anything...
... 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-31 15:42:24 +00:00
Michael Stahl
18c702a8e1 gbuild: move unittest mock profile to WORKDIR
Change-Id: Idd6420a855fec8b44fce6c0694b491d5f1eec95e
2013-10-29 00:58:44 +01:00
Stephan Bergmann
30823bce29 Improve test assertion
Change-Id: If1f41f9c25600199ba4fb8c2f75ddd7c8ce8c8b3
2013-10-22 08:55:24 +02:00
Stephan Bergmann
95f56095a9 Can use CppUnit assert functionality here
Change-Id: Iecc42e79b72e99f9222ba2419226b0f655a5af7d
2013-09-27 15:17:28 +02:00
Stephan Bergmann
a86a737a27 Fix URL creation
Change-Id: Icbbe9096c60def4687b137a37bfe86c4de9b3f22
2013-09-27 14:36:40 +02:00
Stephan Bergmann
5063e39261 getURLFromWorkdir should actually return a URL
Change-Id: Id6d67f820226da15d90b95aa047767926583cc2e
2013-09-27 14:26:51 +02:00
Lionel Elie Mamane
92c53b9d94 unittest for fdo#67685
Change-Id: I44500717109a026d7c71e6494daacbea1f224263
2013-09-27 11:38:08 +02:00
Michael Meeks
03993b47c5 targetted clean of redundant header piece from 62badf3828
Change-Id: Ic1240114d667fb7797afae4847427cc889f3cb48
2013-07-26 14:18:52 +01:00
Michael Stahl
247b182fc5 unotest: re-add test::BootstrapFixtureBase::getPathFromWorkdir
also erroneously removed in 6a59659541

Change-Id: Id9e942cf012d901546b5b403d0d04e749fd20695
2013-07-01 14:42:34 +02:00
Petr Vorel
6a59659541 Remove unused code
Change-Id: Id789250d6aeae642ef5c712e33c5583628638218
Reviewed-on: https://gerrit.libreoffice.org/4604
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
2013-07-01 11:39:43 +00:00
Thomas Arnhold
318f2b64cc remove some createFromAscii usage
there are a lot more of them:

git grep 'createFromAscii[^)]*"'

Change-Id: Ibc2e9cae208d8b9c91667bb3b177c6bd6d3a9424
2013-06-29 16:23:23 +02:00
David Tardon
25ea7f0b5e move sal_inc headers to include/
Change-Id: I840c681b7c500640d3983e05e9895f3fa8bb1313
Reviewed-on: https://gerrit.libreoffice.org/3501
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-24 05:17:49 +00:00
Michael Meeks
62badf3828 Move to MPLv2 license headers, with ESC decision and author's permission. 2013-04-22 09:37:38 +01:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
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-04-07 14:23:11 +02:00
Chr. Rossmanith
413fe6c65a Removed RTL_CONSTASCII_(U)STRINGPARAM in unotest
Change-Id: Iba14ed093bcb97ac1f6996e62e6191cf09574bfd
2013-03-12 21:02:26 +01:00
Kohei Yoshida
7d3ddc2c6c Pass DocumentService to the loader during macro tests.
And disable user interaction during type detection, since that would
cause the test to fail.

With this change, 'make check' works once again.

Change-Id: I2f45a2e962e45ee64f7984e794cff814fbfe6dab
2013-02-05 14:40:58 -05:00
Jean-Noël Rouvignac
63bcb139b9 Replaced O[U]String::valueOf( static_cast<> ) with O[U]String::number()
Change-Id: I2f11f2f15a652a9edc3c7e5b67c854debeed20de
Reviewed-on: https://gerrit.libreoffice.org/1784
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-21 15:04:17 +00:00
Noel Grandin
bb121c864c fdo#46808, Convert frame::Desktop to new style service.
I had to drop XEventBroadcaster from the merged interface
because it introduced method name conflicts (addEventListener).

Shouldn't be an issue since it was scheduled to be dropped anyhow,
and the service implementation still implements it, so existing clients
will be fine.

I dropped the interface XPropertySet from the combined IDL because nobody
seems to be using it, and it's primary purpose appears to be to set weird
flags.

I dropped the optional interfaces
   XStatusIndicatorFactory
   XDispatchInformationProvider
from the combined IDL because the service does not implement them, and
nobody seems to be using them. I suspect they were mistakenly copied
from XFrame.

I also did not convert the Title, UserDefinedAttributes and LayoutManager
properties to attributes, again because no-one is using them.

Change-Id: I678a00006ed2cca2d6c37c4e39465811442c33af
2012-12-21 10:57:09 +02:00
Stephan Bergmann
aaeba64fa5 -Werror,-Wtautological-constant-out-of-range-compare
Change-Id: I4356413b23fdbaaa1bf2e94ad7aed3ceed1f9261
2012-12-10 11:07:42 +01:00
Thorsten Behrens
66a175834c c++ API: use css alias in generated headers, adds global css decl
This changes all generated API headers (.hpp and .hdl) to use a
namespace alias 'css' instead of the pointlessly long com::sun::star

Makes the change in cppumaker & associated tools, adds a global
namespace alias definition in sal/types.h, and removes a kiloton
of local, now pointless-to-harmful versions of that alias from all
over the code.

Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-11-30 14:36:36 +01:00
Norbert Thiebaud
7378043546 unottest: add get(URL|Path)FromWorkdir to locate $WORKDIR_FOR_BUILD
Change-Id: Iec4e609e023262f357a7552b75863aeae9385205
2012-11-03 20:24:28 -05:00
Marcos Paulo de Souza
bdcdbf5da0 Remove unused method and also remove not build test
These tests are not in the main build, so remove it all.

Change-Id: Ia0e13c984fe11b543a66d3150082cbdd7f34296a
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/977
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2012-11-03 23:37:40 +00:00
Caolán McNamara
c2913591d8 rework filters test to squeeze through extra flags
that are needed to load .odt, .sxw etc files, and
add a regression test for CVE-2012-4233

Change-Id: Ie178725ded3d76942030d12f23074de519cf62de
2012-11-01 13:14:09 +00:00
Marcos Paulo de Souza
036e4a5a89 Remove unused method from test
Change-Id: Id54d9bd2963573c4b8e77de0dfafe33ea5882d32
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/947
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2012-10-31 16:48:43 +00:00
Cédric Bosdonnat
6ffa5b9f53 Show URL of failing document in unit tests
Change-Id: I5434b6615338dfc6780c6ff877c6eebfd20b763b
2012-10-31 12:03:31 +01:00
Stephan Bergmann
9ac86f484b Improvement on previous commit, UCB clean up
* As UCB is only ever initialized with "Local"/"Office", remove this
  configuration vector completely.  The "create" ctor creates an instance
  internally initialized with those "Local"/"Office" keys.  Special (test) code
  can still instantiate an uninitialized one via plain createInstance.  And for
  backwards compatilibity process startup still ensures to create an initialized
  instance early, in case there is still code out there (in extensions) that
  later calls plain createInstance and expects to get the already-initialized
  (single) instance.

* XInitialization is an "implementation detail" of the UniversalContentBroker
  service, do not expose in XUniversalContentBroker.

* ucbhelper/configurationkeys.hxx is no longer needed and is removed.

* ucbhelper/contentbroker.hxx is an empty wrapper and is removed; however, that
  requires ucbhelper::Content constructors to take explicit XComponentContext
  arguments now.

* The only remaining code in ucbhelper/source/client/contentbroker.cxx is
  Android-only InitUCBHelper.  Is that relevant still?

Change-Id: I3f7bddd0456bffbcd13590c66d9011915c760f28
2012-09-14 18:24:49 +02:00
Caolán McNamara
1d76bc0d90 add another tiff regression test
Change-Id: I0466a872576132b8ad9e5b164f57951549dd54e0
2012-07-30 12:47:50 +01:00
Caolán McNamara
23826a28f4 use EDB as well as CVE as encrypted prefixes
Change-Id: I3cb1e4d736ca1627cb0716a9c17ff11b5a837264
2012-07-26 16:38:05 +01:00
Michael Meeks
328e2263fb targetted re-work of cppunit pieces. 2012-06-27 19:13:11 +01:00
Michael Meeks
46b8dbda43 re-base on ALv2 code. 2012-06-26 21:48:59 +01:00
Caolán McNamara
8d7e8a0a3b setup/teardown default component context once before/after all tests
avoids the problems of dangling uno singletons invalidated after the first
dispose and the chain of other singletons that don't expect to need to
re-initialize, etc.

reenable editeng cppunit test

inherit i18npool cppunit test from unotest base

drop LibreOfficeProtector, do "throwable" work in setUp/tearDown not
in ctors/dtors
2012-04-13 13:15:25 +01:00
Stephan Bergmann
b37acfc09e Obtain resolver before spawning process_ in setUp
...so that tearDown does not hang waiting for (idling) process_ to terminate
if setUp throws an exception when obtaining resolver.
2012-04-10 16:30:05 +02:00
Markus Mohrhard
b8d8672979 add regression test for writer
use the hidden layout dump export filter to export the state of the
layout and compare it against a reference file

Still a work in progress.
2012-03-09 15:56:29 +01:00
Matúš Kukan
d06a78c25b unotest: convert to gbuild 2012-02-10 13:35:34 +01:00
Stephan Bergmann
69aff995cb Do not fail isStillAlive for "connect:" connections 2012-02-09 15:26:23 +01:00
Tor Lillqvist
47c6f602f7 Use /assets as SRC_ROOT and OUTDIR_FOR_BUILD on Android 2012-01-23 12:04:46 +02:00
Markus Mohrhard
9b27d39081 finish sd's regression test
Implemented a simple character based comparison of the exported file and
the reference file
2012-01-19 21:08:52 +01:00
Tor Lillqvist
86cd55a249 Use / as SRC_ROOT and OUTDIR_FOR_BUILD on Android 2011-12-19 01:28:02 +02:00
Matúš Kukan
f958657cc5 gcc-trunk: fix error: unable to find string literal operator 'operator"" FOO' 2011-12-16 21:20:08 +01:00
Markus Mohrhard
6c8f7589de create a base class for macros_test
For tests that need file import you can now choose between FiltersTest
or MacrosTest as base class.

FiltersTest imports through SfxObjectShell and does not have any ui
MacrosTest imports through Desktop::LoadComponentFromURL and initializes
the ui, therefore it needs to run headless
2011-11-27 08:22:39 +01:00
Tor Lillqvist
79d0853239 Do build the unoexceptionprotector also when cross-compiling 2011-11-19 02:55:11 +02:00