[Libreoffice-commits] core.git: include/unotest
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Nov 7 12:15:02 UTC 2018
include/unotest/bootstrapfixturebase.hxx | 15 +++++++++++++++
1 file changed, 15 insertions(+)
New commits:
commit 20f84aa139e122733f215fc539dcbcdcfce18c81
Author: Miklos Vajna <vmiklos at collabora.co.uk>
AuthorDate: Tue Nov 6 21:45:36 2018 +0100
Commit: Miklos Vajna <vmiklos at collabora.co.uk>
CommitDate: Wed Nov 7 13:13:15 2018 +0100
unotest: backport CPPUNIT_TEST_FIXTURE macro from cppunit.git
Added upstream as
<https://cgit.freedesktop.org/libreoffice/cppunit/commit/?id=48145587c4c2dc4f1e07d83073e136336c81ce79>.
Change-Id: If3adbad3187e3d2b4319be7b295b41d5b7e9c08d
Reviewed-on: https://gerrit.libreoffice.org/62975
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
diff --git a/include/unotest/bootstrapfixturebase.hxx b/include/unotest/bootstrapfixturebase.hxx
index 67be3b5f4ea7..0a967d34d736 100644
--- a/include/unotest/bootstrapfixturebase.hxx
+++ b/include/unotest/bootstrapfixturebase.hxx
@@ -22,6 +22,21 @@
#include <unotest/detail/unotestdllapi.hxx>
#include <unotest/directories.hxx>
+// For cppunit < 1.15.0.
+#ifndef CPPUNIT_TEST_FIXTURE
+#define CPPUNIT_TEST_FIXTURE(TestClass, TestName) \
+ class TestName : public TestClass \
+ { \
+ public: \
+ void TestBody(); \
+ CPPUNIT_TEST_SUITE(TestName); \
+ CPPUNIT_TEST(TestBody); \
+ CPPUNIT_TEST_SUITE_END(); \
+ }; \
+ CPPUNIT_TEST_SUITE_REGISTRATION(TestName); \
+ void TestName::TestBody()
+#endif
+
namespace test {
// Class to do lots of heavy-lifting UNO & environment
More information about the Libreoffice-commits
mailing list