summaryrefslogtreecommitdiff
path: root/include/test
AgeCommit message (Collapse)AuthorFilesLines
2015-05-15convert META_*_ACTION constants to scoped enumNoel Grandin1-3/+5
Change-Id: I8ecfbfecd765a35fafcbcc5452b0d04a89be2459
2015-05-05loplugin:staticmethodsNoel Grandin1-2/+2
Change-Id: Ib765ce5a61916b0598ebb42cb9445a5f09c8d37f
2015-05-05loplugin:staticmethodsNoel Grandin4-5/+5
Change-Id: Ie6867e04156f40cacee275d5bbf3d63ac4965b30
2015-05-05loplugin:staticmethodsNoel Grandin2-2/+2
Change-Id: I384a5e60f4b7b2f479c89ef97630519059ab720f
2015-03-24loplugin:constantfunction: testNoel Grandin2-5/+0
Change-Id: I86eb9e46bec561bf0ede60180754ae35cefadfd5
2014-12-19Let MetafileXmlDump::dumpAndParse() take a const GDIMetaFileMiklos Vajna1-2/+2
So the const_cast<> in CppunitTest_sw_uiwriter can go away. Change-Id: Id7d4234154cd6bed43cb5270b50208061038dcf7
2014-10-29Improve framework for callgrind performance unit testsMatúš Kukan1-0/+21
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
2014-09-30Factor out duplicated code to XmlTestTools::assertXPathNoAttribute()Miklos Vajna1-0/+4
Change-Id: I1eb3778e6bcdd8c44ffb9a7548add109331fc83b
2014-08-28parseXml should return xmlDocPtr instead of htmlDocPtrTomaž Vajngerl1-1/+1
Change-Id: Ia9fb79ea40ca840d7328a078e747ad64a63d18f1
2014-08-17loplugin:passstuffbyref (Primitive2DSequence)Matteo Casalin1-1/+1
Change-Id: I3d9c6daa09d71ca872021fe13405b08050e191d9
2014-08-16initial implementation of XML dump for Primitive2DSequenceTomaž Vajngerl1-0/+47
Change-Id: I6618b18164a26553f81a1c737e009b7187b028c3
2014-08-16XmlWriter: simplify and take SvStream* as inputTomaž Vajngerl1-1/+4
Change-Id: I56b2fa6887f7971604a2dcf34497ecda9cea8937
2014-08-16mtfxmldump: move XML writing into its own functionTomaž Vajngerl1-0/+4
Change-Id: I82954177fe9d4934e69b33c1c985304add09e089
2014-08-11XStyleLoader2 : enhance unit test to PageStyleLaurent Godard1-0/+5
and remove duplicate code Change-Id: Ib9e3568c860fe5cd3f11374a1c61dff101e33a18 Reviewed-on: https://gerrit.libreoffice.org/10832 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2014-08-08XStyleLoader2 loadStylesFromDocument - unit testsLaurent Godard1-0/+40
Change-Id: Id143689f573e6f8585db9bc48a252e311ff0e721
2014-07-29Remove some unused codeMarcos Paulo de Souza1-1/+0
Change-Id: Ib1fb5108a858c35a5bbe8ba865e15660639725e3 Reviewed-on: https://gerrit.libreoffice.org/10593 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-07-20Also add xmlwriter's "content" method to the header fileTomaž Vajngerl1-0/+1
Change-Id: Ic3e13e89480e3b18f84c3a8fd1a88627bd465d6a
2014-07-02unit test XSheetAnnotations GetByIndex for #fdo80551Laurent Godard1-0/+1
Change-Id: I89ebc3d5ac257f3c754a050caf3776959b81d8b3 Reviewed-on: https://gerrit.libreoffice.org/9933 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-06-10MetafileXmlDump: No need to specify the stream, simplify the API.Jan Holesovsky2-4/+14
Change-Id: Ia08f67e359bbd26cefdba8661f0b0c4ae2147382
2014-06-06fixincludeguards: fix include guardsThomas Arnhold3-8/+8
Change-Id: Ie6e8d4272b0b1d0d2ce93bcbc2e818a9eac1a56b Reviewed-on: https://gerrit.libreoffice.org/9629 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-06-02Fix memory leaks in test codeStephan Bergmann1-1/+2
Change-Id: Ifa756a5da636e0b37654ad83900115872bc40f0e
2014-06-02fdo#68849: Add header guards to all include filesJens Carl32-0/+160
added header guards for directories basebmp/, chart2/, cppuhelper/, include/test/, io/test/, sax/test, shell/, writerfilter/, and xmlhelp/ Change-Id: I0e29a9b75c26d71f58aa98986b52f6d3b46015a6 Reviewed-on: https://gerrit.libreoffice.org/9615 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-15test: don't create root element in startDocument() in xmlwriterTomaž Vajngerl1-1/+1
Change-Id: Ia08e9f8caf2a2fb42855dcb2245e013e1a181216
2014-05-15test: dump staroffice metafile to XML & XML writer interfaceTomaž Vajngerl2-0/+82
Change-Id: Ie42f72e0fc281d1f51e1729be408c2b0042f4174
2014-05-15test: parseXmlStream & parseHtmlStream added to test toolsTomaž Vajngerl2-1/+7
Change-Id: Iff8af5e9ffefb4c3cecf387b16473d45e8b4a65a
2014-05-15Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold2-4/+4
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-14Find places where uno::Sequence is passed by value.Noel Grandin1-1/+1
Implement a clang plugin to find them, and clean up existing code to pass them by reference. Change-Id: If642d87407c73346d9c0164b9fc77c5c3c4354b8 Reviewed-on: https://gerrit.libreoffice.org/9351 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-04-30test: move XmlTestTools API documentation to the headerMiklos Vajna1-0/+26
Change-Id: Iae56b1fb68fde0cbc44f6b9e37ba1a66194b25e0
2014-04-29tests: add XML and HTML test tools to test moduleTomaž Vajngerl2-0/+77
XML and HTML parsing and XPath asserts are used by many test in sw, sc and sd modules. This commit moves this functionallity to test module, where it is available to all modules. Change-Id: I53ad9c45b24f4c9bf106cb58ea619002968bfeda
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann3-6/+6
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-05move the export validation code to testMarkus Mohrhard1-0/+8
Change-Id: Iaafe30a1095bd5b6dac3637c394818ba8bd848ce
2013-12-06count notes - GetNotesInRange now include last tabLaurent Godard1-1/+2
- refactor tests - add unit test on counting notes on a sheet Change-Id: I6762a0e791a745b828800645effdfc044ac33710 Reviewed-on: https://gerrit.libreoffice.org/6954 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2013-11-09fdo#65108 inter-module includes <> include/testNorbert Thiebaud9-15/+15
Change-Id: I70617d9095272f7c3aa62223db120cce9e03a66a
2013-11-09Calc UNO API testLionel Elie Mamane1-0/+26
Change-Id: I6dcd9ac05ff7c4a6fbae7947b0ceda8797feea2f
2013-11-09UnoApiTest don't require CalcLionel Elie Mamane1-1/+0
There is no reason for the generic UnoApiTest to require Calc specifically. Calc tests can/should instantiate a Calc instance. We can create a CalcUnoApiTest for that that inherits from UnoApiTest; however this does not seem necessary, "make sc.clean" succeeds. Anyway, the ScGlobals::ensure mentioned in the comment does not seem to exist. This allows us to eliminate some code duplication in tests that were reimplementing UnoApiTest minus the Calc instantiation. Change-Id: I37bea9df41e3960df0458fe689cf6c046a243617
2013-10-23fixincludeguards.sh: include - the restThomas Arnhold3-6/+6
Change-Id: If1ee11da444a7f96f2d8668b277540da0bb4dbe9
2013-07-26targetted clean of redundant header piece from 62badf3828Michael Meeks2-6/+0
Change-Id: Ic1240114d667fb7797afae4847427cc889f3cb48
2013-06-30add missing css prefix to headerThomas Arnhold1-1/+1
Change-Id: I4c3311061150f2fd6c703566f064df8263caaa09
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák1-1/+1
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks7-161/+28
2013-04-26test: clean up namespacingThomas Arnhold31-153/+69
Change-Id: I7df07176bdbd15fdfdf8f9a7cdb26d4bee12997d
2013-04-25don't pollute global namespaceThomas Arnhold1-5/+3
Change-Id: Iffeeffb015c59ea787838c737c6a11f6fbef2794
2013-04-23execute move of global headersBjoern Michaelsen35-0/+1501
see https://gerrit.libreoffice.org/#/c/3367/ and Change-Id: I00c96fa77d04b33a6f8c8cd3490dfcd9bdc9e84a for details Change-Id: I199a75bc4042af20817265d5ef85b1134a96ff5a