[Libreoffice-commits] core.git: cppcanvas/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Feb 7 08:01:48 UTC 2019
cppcanvas/qa/extras/emfplus/emfplus.cxx | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
New commits:
commit e44c31d68b026ad9cd954dc572cb1460958a6327
Author: Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Wed Feb 6 21:36:37 2019 +0100
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Thu Feb 7 09:01:25 2019 +0100
CppunitTest_cppcanvas_emfplus: use CPPUNIT_TEST_FIXTURE()
Change-Id: I1d6a2b5d2b34dfd3356650a14cc853d00afbdda9
Reviewed-on: https://gerrit.libreoffice.org/67476
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
diff --git a/cppcanvas/qa/extras/emfplus/emfplus.cxx b/cppcanvas/qa/extras/emfplus/emfplus.cxx
index 2c0e06de80e7..b684d9ccee9a 100644
--- a/cppcanvas/qa/extras/emfplus/emfplus.cxx
+++ b/cppcanvas/qa/extras/emfplus/emfplus.cxx
@@ -68,16 +68,10 @@ public:
return aResultBitmap.GetBitmap();
}
- void testFdo77229();
-
- CPPUNIT_TEST_SUITE(Test);
- CPPUNIT_TEST(testFdo77229);
- CPPUNIT_TEST_SUITE_END();
-
uno::Reference<lang::XComponent> mxComponent;
};
-void Test::testFdo77229()
+CPPUNIT_TEST_FIXTURE(Test, testFdo77229)
{
Bitmap aBitmap = load("fdo77229.emf");
Bitmap::ScopedReadAccess pAccess(aBitmap);
@@ -88,8 +82,6 @@ void Test::testFdo77229()
CPPUNIT_ASSERT(aColor.GetGreen() == 0xfe || aColor.GetGreen() == 0xff);
}
-CPPUNIT_TEST_SUITE_REGISTRATION(Test);
-
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
More information about the Libreoffice-commits
mailing list