summaryrefslogtreecommitdiff
path: root/drawinglayer/qa/unit/border.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'drawinglayer/qa/unit/border.cxx')
-rw-r--r--drawinglayer/qa/unit/border.cxx14
1 files changed, 2 insertions, 12 deletions
diff --git a/drawinglayer/qa/unit/border.cxx b/drawinglayer/qa/unit/border.cxx
index 30d278a91560..56357415f37a 100644
--- a/drawinglayer/qa/unit/border.cxx
+++ b/drawinglayer/qa/unit/border.cxx
@@ -32,17 +32,9 @@ namespace
class DrawinglayerBorderTest : public test::BootstrapFixture
{
-public:
- void testDoubleDecompositionSolid();
- void testDoublePixelProcessing();
-
- CPPUNIT_TEST_SUITE(DrawinglayerBorderTest);
- CPPUNIT_TEST(testDoubleDecompositionSolid);
- CPPUNIT_TEST(testDoublePixelProcessing);
- CPPUNIT_TEST_SUITE_END();
};
-void DrawinglayerBorderTest::testDoubleDecompositionSolid()
+CPPUNIT_TEST_FIXTURE(DrawinglayerBorderTest, testDoubleDecompositionSolid)
{
// Create a border line primitive that's similar to the one from the bugdoc:
// 1.47 pixels is 0.03cm at 130% zoom and 96 DPI.
@@ -110,7 +102,7 @@ void DrawinglayerBorderTest::testDoubleDecompositionSolid()
CPPUNIT_ASSERT_DOUBLES_EQUAL(fLeftWidth, fLineWidthFromDecompose, basegfx::fTools::getSmallValue());
}
-void DrawinglayerBorderTest::testDoublePixelProcessing()
+CPPUNIT_TEST_FIXTURE(DrawinglayerBorderTest, testDoublePixelProcessing)
{
// Create a pixel processor.
ScopedVclPtrInstance<VirtualDevice> pDev;
@@ -212,8 +204,6 @@ void DrawinglayerBorderTest::testDoublePixelProcessing()
CPPUNIT_ASSERT_EQUAL(nExpectedNumPolyLineActions, nPolyLineActionCount);
}
-CPPUNIT_TEST_SUITE_REGISTRATION(DrawinglayerBorderTest);
-
}
CPPUNIT_PLUGIN_IMPLEMENT();