|
LibreOffice Module test (master) 1
|
#include <unoapixml_test.hxx>
Public Member Functions | |
| UnoApiXmlTest (OUString path) | |
| xmlDocUniquePtr | parseExport (OUString const &rStreamName) |
Public Member Functions inherited from UnoApiTest | |
| UnoApiTest (OUString path) | |
| virtual void | setUp () override |
| virtual void | tearDown () override |
| OUString | createFileURL (std::u16string_view aFileBase) |
| OUString | createFilePath (std::u16string_view aFileBase) |
| void | load (const OUString &rURL, const char *pPassword=nullptr) |
| OUString | loadFromURL (std::u16string_view aFileBase, const char *pPassword=nullptr) |
| css::uno::Any | executeMacro (const OUString &rScriptURL, const css::uno::Sequence< css::uno::Any > &rParams={}) |
| void | save (const OUString &rFilter, const char *pPassword=nullptr) |
| void | saveAndReload (const OUString &rFilter, const char *pPassword=nullptr) |
| std::unique_ptr< vcl::pdf::PDFiumDocument > | parsePDFExport (const OString &rPassword=OString()) |
| void | createTempCopy (std::u16string_view fileName) |
| void | skipValidation () |
| void | setFilterOptions (const OUString &rFilterOptions) |
| void | setImportFilterOptions (const OUString &rFilterOptions) |
| void | setImportFilterName (const OUString &rFilterName) |
Public Member Functions inherited from test::BootstrapFixture | |
| DECL_DLLPRIVATE_STATIC_LINK (BootstrapFixture, ImplInitFilterHdl, ConvertData &, bool) | |
| BootstrapFixture (bool bAssertOnDialog=true, bool bNeedUCB=true) | |
| virtual | ~BootstrapFixture () override |
| virtual void | setUp () override |
| void | validate (const OUString &rURL, ValidationFormat) const |
Public Member Functions inherited from test::BootstrapFixtureBase | |
| BootstrapFixtureBase () | |
| virtual | ~BootstrapFixtureBase () override |
| const css::uno::Reference< css::uno::XComponentContext > & | getComponentContext () const |
| const css::uno::Reference< css::lang::XMultiServiceFactory > & | getMultiServiceFactory () const |
| virtual void | setUp () override |
| virtual void | tearDown () override |
Public Member Functions inherited from unotest::MacrosTest | |
| MacrosTest () | |
| ~MacrosTest () | |
| css::uno::Reference< css::lang::XComponent > | loadFromDesktop (const OUString &rURL, const OUString &rDocService=OUString(), const css::uno::Sequence< css::beans::PropertyValue > &rExtra_args=css::uno::Sequence< css::beans::PropertyValue >()) |
| void | setUpNssGpg (const test::Directories &rDirectories, const OUString &rTestName) |
| void | tearDownNssGpg () |
Additional Inherited Members | |
Static Public Member Functions inherited from test::BootstrapFixture | |
| static sal_uInt16 | getDefaultDeviceBitCount () |
Static Public Member Functions inherited from unotest::MacrosTest | |
| static css::uno::Any | dispatchCommand (const css::uno::Reference< css::lang::XComponent > &xComponent, const OUString &rCommand, const css::uno::Sequence< css::beans::PropertyValue > &rPropertyValues) |
| static std::unique_ptr< SvStream > | parseExportStream (const OUString &url, const OUString &rStreamName) |
| static bool | IsValid (const css::uno::Reference< css::security::XCertificate > &cert, const css::uno::Reference< css::xml::crypto::XSecurityEnvironment > &env) |
| static css::uno::Reference< css::security::XCertificate > | GetValidCertificate (const css::uno::Sequence< css::uno::Reference< css::security::XCertificate > > &certs, const css::uno::Reference< css::xml::crypto::XSecurityEnvironment > &env, const css::uno::Sequence< css::beans::PropertyValue > &rFilterData={}) |
Static Public Member Functions inherited from XmlTestTools | |
| static xmlDocUniquePtr | parseXmlStream (SvStream *pStream) |
| Return xmlDocPtr representation of the XML stream read from pStream. More... | |
| static xmlDocUniquePtr | dumpAndParse (MetafileXmlDump &rDumper, const GDIMetaFile &rGDIMetaFile) |
Protected Member Functions inherited from XmlTestTools | |
| XmlTestTools () | |
| virtual | ~XmlTestTools () |
| virtual void | registerNamespaces (xmlXPathContextPtr &pXmlXpathCtx) |
| xmlXPathObjectPtr | getXPathNode (const xmlDocUniquePtr &pXmlDoc, const OString &rXPath) |
| OUString | getXPath (const xmlDocUniquePtr &pXmlDoc, const OString &rXPath, const OString &rAttribute) |
| Same as the assertXPath(), but don't assert: return the string instead. More... | |
| OUString | getXPathContent (const xmlDocUniquePtr &pXmlDoc, const OString &rXPath) |
| Same as the assertXPathContent(), but don't assert: return the string instead. More... | |
| int | getXPathPosition (const xmlDocUniquePtr &pXmlDoc, const OString &rXPath, std::string_view rChildName) |
| Get the position of the child named rName of the parent node specified by rXPath. More... | |
| int | countXPathNodes (const xmlDocUniquePtr &pXmlDoc, const OString &rXPath) |
| Get the number of the nodes returned by the rXPath. More... | |
| void | assertXPath (const xmlDocUniquePtr &pXmlDoc, const OString &rXPath, const OString &rAttribute, const OUString &rExpectedValue) |
| Assert that rXPath exists, returns exactly one node, and the rXPath's attribute's value equals to the rExpected value. More... | |
| void | assertXPathAttrs (const xmlDocUniquePtr &pXmlDoc, const OString &rXPath, const std::vector< std::pair< OString, OUString > > &aPairVector) |
| void | assertXPath (const xmlDocUniquePtr &pXmlDoc, const OString &rXPath, int nNumberOfNodes=1) |
| Assert that rXPath exists, and returns exactly nNumberOfNodes nodes (1 by default). More... | |
| void | assertXPathContent (const xmlDocUniquePtr &pXmlDoc, const OString &rXPath, const OUString &rContent) |
| Assert that rXPath exists, and its content equals rContent. More... | |
| void | assertXPathNSDef (const xmlDocUniquePtr &pXmlDoc, const OString &rXPath, std::u16string_view rNSPrefix, std::u16string_view rNSHref) |
| Assert that rXPath exists and it has an rNSPrefix=rNSHref namespace definition. More... | |
| void | assertXPathChildren (const xmlDocUniquePtr &pXmlDoc, const OString &rXPath, int nNumberOfChildNodes) |
| Assert that rXPath exists, and has exactly nNumberOfChildNodes child nodes. More... | |
| void | assertXPathNoAttribute (const xmlDocUniquePtr &pXmlDoc, const OString &rXPath, const OString &rAttribute) |
| Assert that rXPath exists, has exactly 1 result set nodes and does not have an attribute named rAttribute. More... | |
Static Protected Member Functions inherited from test::BootstrapFixture | |
| static bool | IsDefaultDPI () |
| static std::pair< double, double > | getDPIScaling () |
Static Protected Member Functions inherited from XmlTestTools | |
| static xmlDocUniquePtr | parseXml (utl::TempFileNamed const &aTempFile) |
| static void | registerODFNamespaces (xmlXPathContextPtr &pXmlXpathCtx) |
| static void | registerOOXMLNamespaces (xmlXPathContextPtr &pXmlXpathCtx) |
Protected Attributes inherited from UnoApiTest | |
| css::uno::Reference< css::lang::XComponent > | mxComponent |
| css::uno::Reference< css::lang::XComponent > | mxComponent2 |
| utl::TempFileNamed | maTempFile |
| SvMemoryStream | maMemory |
| rtl::Reference< TestInteractionHandler > | xInteractionHandler |
Protected Attributes inherited from test::BootstrapFixture | |
| css::uno::Reference< css::uno::XComponentContext > | mxComponentContext |
Protected Attributes inherited from test::BootstrapFixtureBase | |
| Directories | m_directories |
| css::uno::Reference< css::uno::XComponentContext > | m_xContext |
| css::uno::Reference< css::lang::XMultiServiceFactory > | m_xSFactory |
| css::uno::Reference< css::lang::XMultiComponentFactory > | m_xFactory |
Protected Attributes inherited from unotest::MacrosTest | |
| css::uno::Reference< css::frame::XDesktop2 > | mxDesktop |
Definition at line 20 of file unoapixml_test.hxx.
| UnoApiXmlTest::UnoApiXmlTest | ( | OUString | path | ) |
Definition at line 24 of file unoapixml_test.cxx.
| xmlDocUniquePtr UnoApiXmlTest::parseExport | ( | OUString const & | rStreamName | ) |
Definition at line 29 of file unoapixml_test.cxx.
References utl::TempFileNamed::GetURL(), UnoApiTest::maTempFile, unotest::MacrosTest::parseExportStream(), and XmlTestTools::parseXmlStream().