summaryrefslogtreecommitdiff
path: root/sd/qa
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-01 12:31:38 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-01 12:31:38 +0200
commiteeb852ea1ecb77c2980d44075429b06e7d420c3a (patch)
treece0a1f236b8c1f55238d2acca1a5f5c8bc580fdd /sd/qa
parentfb4580f6aae4d2d5377913c255e42e0919466ab3 (diff)
loplugin:unreffun
...after recently splitting up the test .cxx files Change-Id: I11542454188b3636ef880beb7f28f2638828e99e
Diffstat (limited to 'sd/qa')
-rw-r--r--sd/qa/unit/export-tests-ooxml1.cxx57
-rw-r--r--sd/qa/unit/export-tests.cxx16
2 files changed, 0 insertions, 73 deletions
diff --git a/sd/qa/unit/export-tests-ooxml1.cxx b/sd/qa/unit/export-tests-ooxml1.cxx
index 80af08d17214..14d29d971ba1 100644
--- a/sd/qa/unit/export-tests-ooxml1.cxx
+++ b/sd/qa/unit/export-tests-ooxml1.cxx
@@ -165,22 +165,6 @@ public:
reinterpret_cast<xmlChar const *>(namespaces[i].pURI));
}
}
-
- xmlDocPtr parseExport(utl::TempFile & rTempFile, OUString const& rStreamName)
- {
- OUString const url(rTempFile.GetURL());
- uno::Reference<packages::zip::XZipFileAccess2> const xZipNames(
- packages::zip::ZipFileAccess::createWithURL(
- comphelper::getComponentContext(m_xSFactory), url));
- uno::Reference<io::XInputStream> const xInputStream(
- xZipNames->getByName(rStreamName), uno::UNO_QUERY);
- std::unique_ptr<SvStream> const pStream(
- utl::UcbStreamHelper::CreateStream(xInputStream, true));
- xmlDocPtr const pXmlDoc = parseXmlStream(pStream.get());
- pXmlDoc->name = reinterpret_cast<char *>(xmlStrdup(
- reinterpret_cast<xmlChar const *>(OUStringToOString(url, RTL_TEXTENCODING_UTF8).getStr())));
- return pXmlDoc;
- }
};
namespace {
@@ -799,47 +783,6 @@ void SdOOXMLExportTest1::testTableCellBorder()
xDocShRef->DoClose();
}
-bool checkTransitionOnPage(uno::Reference<drawing::XDrawPagesSupplier> xDoc, sal_Int32 nSlideNumber,
- sal_Int16 nExpectedTransitionType, sal_Int16 nExpectedTransitionSubType,
- bool bExpectedDirection = true)
-{
- sal_Int32 nSlideIndex = nSlideNumber - 1;
-
- CPPUNIT_ASSERT_MESSAGE("Slide/Page index out of range", nSlideIndex < xDoc->getDrawPages()->getCount());
-
- uno::Reference<drawing::XDrawPage> xPage(xDoc->getDrawPages()->getByIndex(nSlideIndex), uno::UNO_QUERY_THROW);
- uno::Reference<beans::XPropertySet> xPropSet(xPage, uno::UNO_QUERY);
-
- sal_Int16 nTransitionType = 0;
- xPropSet->getPropertyValue("TransitionType") >>= nTransitionType;
-
- if (nExpectedTransitionType != nTransitionType)
- {
- std::cerr << "Transition type: " << nTransitionType << " " << nExpectedTransitionType << std::endl;
- return false;
- }
-
- sal_Int16 nTransitionSubtype = 0;
- xPropSet->getPropertyValue("TransitionSubtype") >>= nTransitionSubtype;
- if (nExpectedTransitionSubType != nTransitionSubtype)
- {
- std::cerr << "Transition Subtype: " << nTransitionSubtype << " " << nExpectedTransitionSubType << std::endl;
- return false;
- }
-
- bool bDirection = false;
- xPropSet->getPropertyValue("TransitionDirection") >>= bDirection;
-
- if (bExpectedDirection != bDirection)
- {
- std::cerr << "Transition Direction: " << (bExpectedDirection ? "normal" : "reversed")
- << " " << (bDirection ? "normal" : "reversed") << std::endl;
- return false;
- }
-
- return true;
-}
-
CPPUNIT_TEST_SUITE_REGISTRATION(SdOOXMLExportTest1);
CPPUNIT_PLUGIN_IMPLEMENT();
diff --git a/sd/qa/unit/export-tests.cxx b/sd/qa/unit/export-tests.cxx
index bdf888e30dff..ad1b16803f95 100644
--- a/sd/qa/unit/export-tests.cxx
+++ b/sd/qa/unit/export-tests.cxx
@@ -133,22 +133,6 @@ public:
reinterpret_cast<xmlChar const *>(namespaces[i].pURI));
}
}
-
- xmlDocPtr parseExport(utl::TempFile & rTempFile, OUString const& rStreamName)
- {
- OUString const url(rTempFile.GetURL());
- uno::Reference<packages::zip::XZipFileAccess2> const xZipNames(
- packages::zip::ZipFileAccess::createWithURL(
- comphelper::getComponentContext(m_xSFactory), url));
- uno::Reference<io::XInputStream> const xInputStream(
- xZipNames->getByName(rStreamName), uno::UNO_QUERY);
- std::unique_ptr<SvStream> const pStream(
- utl::UcbStreamHelper::CreateStream(xInputStream, true));
- xmlDocPtr const pXmlDoc = parseXmlStream(pStream.get());
- pXmlDoc->name = reinterpret_cast<char *>(xmlStrdup(
- reinterpret_cast<xmlChar const *>(OUStringToOString(url, RTL_TEXTENCODING_UTF8).getStr())));
- return pXmlDoc;
- }
};
void SdExportTest::testN821567()