Kaydet (Commit) f871e8f5 authored tarafından Miklos Vajna's avatar Miklos Vajna

CppunitTest_drawinglayer_border: use CPPUNIT_TEST_FIXTURE()

Change-Id: I73f00a0cc052173167a539be02a42c47da34dd98
Reviewed-on: https://gerrit.libreoffice.org/67793
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.com>
üst 87138fd8
...@@ -32,17 +32,9 @@ namespace ...@@ -32,17 +32,9 @@ namespace
class DrawinglayerBorderTest : public test::BootstrapFixture 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: // 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. // 1.47 pixels is 0.03cm at 130% zoom and 96 DPI.
...@@ -110,7 +102,7 @@ void DrawinglayerBorderTest::testDoubleDecompositionSolid() ...@@ -110,7 +102,7 @@ void DrawinglayerBorderTest::testDoubleDecompositionSolid()
CPPUNIT_ASSERT_DOUBLES_EQUAL(fLeftWidth, fLineWidthFromDecompose, basegfx::fTools::getSmallValue()); CPPUNIT_ASSERT_DOUBLES_EQUAL(fLeftWidth, fLineWidthFromDecompose, basegfx::fTools::getSmallValue());
} }
void DrawinglayerBorderTest::testDoublePixelProcessing() CPPUNIT_TEST_FIXTURE(DrawinglayerBorderTest, testDoublePixelProcessing)
{ {
// Create a pixel processor. // Create a pixel processor.
ScopedVclPtrInstance<VirtualDevice> pDev; ScopedVclPtrInstance<VirtualDevice> pDev;
...@@ -212,8 +204,6 @@ void DrawinglayerBorderTest::testDoublePixelProcessing() ...@@ -212,8 +204,6 @@ void DrawinglayerBorderTest::testDoublePixelProcessing()
CPPUNIT_ASSERT_EQUAL(nExpectedNumPolyLineActions, nPolyLineActionCount); CPPUNIT_ASSERT_EQUAL(nExpectedNumPolyLineActions, nPolyLineActionCount);
} }
CPPUNIT_TEST_SUITE_REGISTRATION(DrawinglayerBorderTest);
} }
CPPUNIT_PLUGIN_IMPLEMENT(); CPPUNIT_PLUGIN_IMPLEMENT();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment