sw/qa/inc/swmodeltestbase.hxx | 20 -------------------- sw/qa/unit/swmodeltestbase.cxx | 10 ---------- 2 files changed, 30 deletions(-)
New commits: commit c216b58631deda48531475f7a8f054ac266386f7 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Oct 16 15:53:16 2024 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Oct 16 20:50:17 2024 +0200 SwModelTestBase: Remove unused executeImportExport Since b67991ecdb12bfa385496731f192ac081947c779 "CppunitTest_sw_htmlexport: use more CPPUNIT_TEST_FIXTURE()" Change-Id: I572649a1f70180084846aa47446689b331f35f11 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175024 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> Tested-by: Jenkins diff --git a/sw/qa/inc/swmodeltestbase.hxx b/sw/qa/inc/swmodeltestbase.hxx index d9de82274d54..e28cb37b3c3f 100644 --- a/sw/qa/inc/swmodeltestbase.hxx +++ b/sw/qa/inc/swmodeltestbase.hxx @@ -91,14 +91,6 @@ protected: */ void executeLoadVerifyReloadVerify(const char* filename, const char* pPassword = nullptr); - /** - * Helper func used by each unit test to test the 'export' code. - * (Loads the requested file for document base (this represents - * the initial document condition), exports with the desired - * export filter and then calls 'verify' method) - */ - void executeImportExport(const char* filename, const char* pPassword); - /** * Function overridden by unit test. See DECLARE_SW_*_TEST macros */ diff --git a/sw/qa/unit/swmodeltestbase.cxx b/sw/qa/unit/swmodeltestbase.cxx index 791d0ad781e7..a95308d04153 100644 --- a/sw/qa/unit/swmodeltestbase.cxx +++ b/sw/qa/unit/swmodeltestbase.cxx @@ -73,16 +73,6 @@ void SwModelTestBase::executeLoadVerifyReloadVerify(const char* filename, const maTempFile.EnableKillingFile(); } -void SwModelTestBase::executeImportExport(const char* filename, const char* pPassword) -{ - maTempFile.EnableKillingFile(false); - header(); - loadAndSave(filename, pPassword); - maTempFile.EnableKillingFile(false); - verify(); - maTempFile.EnableKillingFile(); -} - void SwModelTestBase::dumpLayout(const uno::Reference<lang::XComponent>& rComponent) { // create the xml writer commit a0e31effd0c7231ec0517e01e9aec39cebc361e1 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Oct 16 15:30:34 2024 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Oct 16 20:50:10 2024 +0200 SwModelTestBase: remove obsolete comment block Change-Id: I4b4383c02cddc26e2f96ab4d252e55ac5f0dc3d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175023 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/qa/inc/swmodeltestbase.hxx b/sw/qa/inc/swmodeltestbase.hxx index 71f9ebf0438c..d9de82274d54 100644 --- a/sw/qa/inc/swmodeltestbase.hxx +++ b/sw/qa/inc/swmodeltestbase.hxx @@ -28,18 +28,6 @@ #include <doc.hxx> -/** - * Macro to declare a new test (with full round-trip. To test - * import only use the CPPUNIT_TEST_FIXTURE macro directly). - * In order to add a new test, one only needs to use this macro - * and then specify the test content, like this: - * - * DECLARE_SW_ROUNDTRIP_TEST(MyTest, "myfilename.docx", Test) - * { - * CPPUNIT_ASSERT_EQUAL(blabla); - * } - * - */ #define DECLARE_SW_ROUNDTRIP_TEST(TestName, filename, password, BaseClass) \ class TestName : public BaseClass { \ public:\