Kaydet (Commit) 8ec26e21 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

svgio test: no need to create our own ComponentContext

Change-Id: If8e90c949223a0f11c6b8c6a8ac1cd08ce95a74b
üst cebb4abe
...@@ -29,8 +29,6 @@ using namespace css::graphic; ...@@ -29,8 +29,6 @@ using namespace css::graphic;
class Test : public test::BootstrapFixture class Test : public test::BootstrapFixture
{ {
Reference<XComponentContext> mxContext;
void testStyles(); void testStyles();
Primitive2DSequence parseSvg(const char* aSource); Primitive2DSequence parseSvg(const char* aSource);
...@@ -46,7 +44,7 @@ public: ...@@ -46,7 +44,7 @@ public:
Primitive2DSequence Test::parseSvg(const char* aSource) Primitive2DSequence Test::parseSvg(const char* aSource)
{ {
const Reference<XSvgParser> xSvgParser = SvgTools::create(mxContext); const Reference<XSvgParser> xSvgParser = SvgTools::create(m_xContext);
OUString aUrl = getURLFromSrc(aSource); OUString aUrl = getURLFromSrc(aSource);
OUString aPath = getPathFromSrc(aSource); OUString aPath = getPathFromSrc(aSource);
...@@ -66,8 +64,6 @@ Primitive2DSequence Test::parseSvg(const char* aSource) ...@@ -66,8 +64,6 @@ Primitive2DSequence Test::parseSvg(const char* aSource)
void Test::setUp() void Test::setUp()
{ {
BootstrapFixture::setUp(); BootstrapFixture::setUp();
mxContext = Reference<XComponentContext>(comphelper::getProcessComponentContext());
} }
void Test::tearDown() void Test::tearDown()
......
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