summaryrefslogtreecommitdiff
path: root/sw/qa/extras/ooxmlimport
diff options
context:
space:
mode:
authorJustin Luth <justin.luth@collabora.com>2023-12-19 09:16:00 -0500
committerJustin Luth <jluth@mail.com>2023-12-21 23:41:00 +0100
commita7bd33955fa52380cf9b04da265646bc93d5c217 (patch)
tree5bc24a523cd0c52ffd000b57973a2d7dc09cf016 /sw/qa/extras/ooxmlimport
parenta2cd681369061574974517b1aabf78613f5601b7 (diff)
address nit: put unit tests in anonymouse namespace
https://gerrit.libreoffice.org/c/core/+/160655/5/sw/qa/extras/rtfexport/rtfexport8.cxx Miklos "nitted" me that I didn't wrap this test in an anonymous namespace. Obviously anything I do is simply copy/paste, so lets make sure that at least the latest and greatest versions of each series of unit tests are done "correctly". Change-Id: I699c8d70e4f587373918e27f08304a0fe815bff4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160991 Reviewed-by: Justin Luth <jluth@mail.com> Tested-by: Jenkins
Diffstat (limited to 'sw/qa/extras/ooxmlimport')
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport.cxx7
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport2.cxx3
2 files changed, 8 insertions, 2 deletions
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index 5d5661f0fa0f..4e0b0f80be57 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -66,6 +66,8 @@
#include <vcl/TypeSerializer.hxx>
#include <comphelper/scopeguard.hxx>
+namespace
+{
class Test : public SwModelTestBase
{
public:
@@ -766,7 +768,7 @@ CPPUNIT_TEST_FIXTURE(Test, testGroupshapeSdt)
CPPUNIT_ASSERT_EQUAL(sal_Int32(20), getProperty<sal_Int32>(getRun(getParagraphOfText(1, xShape->getText()), 1), "CharKerning"));
}
-static void lcl_countTextFrames(const css::uno::Reference< lang::XComponent >& xComponent,
+void lcl_countTextFrames(const css::uno::Reference< lang::XComponent >& xComponent,
sal_Int32 nExpected )
{
uno::Reference<text::XTextFramesSupplier> xTextFramesSupplier(xComponent, uno::UNO_QUERY);
@@ -1238,7 +1240,7 @@ CPPUNIT_TEST_FIXTURE(Test, testFloatingTableSectionColumns)
CPPUNIT_ASSERT( tableWidth.toInt32() > 10000 );
}
-static OString dateTimeToString( const util::DateTime& dt )
+OString dateTimeToString( const util::DateTime& dt )
{
return DateTimeToOString( DateTime( Date( dt.Day, dt.Month, dt.Year ), tools::Time( dt.Hours, dt.Minutes, dt.Seconds )));
}
@@ -1879,6 +1881,7 @@ CPPUNIT_TEST_FIXTURE(Test, testGroupShapeTextHighlight)
// tests should only be added to ooxmlIMPORT *if* they fail round-tripping in ooxmlEXPORT
+} // end of anonymous namespace
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx
index ccd62f5041b6..d86a6bffe861 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx
@@ -45,6 +45,8 @@
#include <flyfrms.hxx>
#include <tabfrm.hxx>
+namespace
+{
class Test : public SwModelTestBase
{
public:
@@ -1267,6 +1269,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf154370)
}
// tests should only be added to ooxmlIMPORT *if* they fail round-tripping in ooxmlEXPORT
+} // end of anonymous namespace
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */