summaryrefslogtreecommitdiff
path: root/cppcanvas
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-02-06 21:36:37 +0100
committerMiklos Vajna <vmiklos@collabora.com>2019-02-07 09:01:25 +0100
commite44c31d68b026ad9cd954dc572cb1460958a6327 (patch)
treeea0eeab44bcea1c2b17759bd9b9ca68226b4509a /cppcanvas
parent23916dba4343c27503be4e84f2746461f55c056f (diff)
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@collabora.com>
Diffstat (limited to 'cppcanvas')
-rw-r--r--cppcanvas/qa/extras/emfplus/emfplus.cxx10
1 files changed, 1 insertions, 9 deletions
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: */