summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-02-20 21:46:53 +0100
committerMiklos Vajna <vmiklos@collabora.com>2019-02-21 09:14:03 +0100
commit07f24df0e8dbc035f2f9a24c12879848a1f318f1 (patch)
tree80027d761e77d52376a930a91210d2a07bd20fe7
parenttdf#123090 Handle removed column with gridSpan. (diff)
downloadcore-07f24df0e8dbc035f2f9a24c12879848a1f318f1.tar.gz
core-07f24df0e8dbc035f2f9a24c12879848a1f318f1.zip
CppunitTest_filter_textfilterdetect: use CPPUNIT_TEST_FIXTURE()
Change-Id: I0af7233d13223c4d1114d4f92a24e381ef81b5d5 Reviewed-on: https://gerrit.libreoffice.org/68126 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r--filter/qa/unit/textfilterdetect.cxx21
1 files changed, 2 insertions, 19 deletions
diff --git a/filter/qa/unit/textfilterdetect.cxx b/filter/qa/unit/textfilterdetect.cxx
index 63a309d85972..f5bf6fc98b42 100644
--- a/filter/qa/unit/textfilterdetect.cxx
+++ b/filter/qa/unit/textfilterdetect.cxx
@@ -16,19 +16,10 @@
#include <unotools/streamwrap.hxx>
#include <tools/stream.hxx>
-namespace com
-{
-namespace sun
-{
-namespace star
-{
-namespace io
+namespace com::sun::star::io
{
class XInputStream;
}
-}
-}
-}
using namespace com::sun::star;
@@ -37,17 +28,11 @@ namespace
/// Test class for PlainTextFilterDetect.
class TextFilterDetectTest : public test::BootstrapFixture
{
-public:
- void testTdf114428();
-
- CPPUNIT_TEST_SUITE(TextFilterDetectTest);
- CPPUNIT_TEST(testTdf114428);
- CPPUNIT_TEST_SUITE_END();
};
char const DATA_DIRECTORY[] = "/filter/qa/unit/data/";
-void TextFilterDetectTest::testTdf114428()
+CPPUNIT_TEST_FIXTURE(TextFilterDetectTest, testTdf114428)
{
uno::Reference<uno::XComponentContext> xComponentContext
= comphelper::getComponentContext(getMultiServiceFactory());
@@ -68,8 +53,6 @@ void TextFilterDetectTest::testTdf114428()
// This was empty, XML declaration caused HTML detect to not handle XHTML.
CPPUNIT_ASSERT_EQUAL(OUString("HTML (StarWriter)"), aFilterName);
}
-
-CPPUNIT_TEST_SUITE_REGISTRATION(TextFilterDetectTest);
}
CPPUNIT_PLUGIN_IMPLEMENT();