LCOV - code coverage report
Current view: top level - writerperfect/qa/unit - WpftImportTestBase.hxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 1 1 100.0 %
Date: 2014-04-11 Functions: 1 2 50.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  */
       9             : 
      10             : #ifndef INCLUDED_WRITERPERFECT_QA_UNIT_WPFTIMPORTTESTBASE_HXX
      11             : #define INCLUDED_WRITERPERFECT_QA_UNIT_WPFTIMPORTTESTBASE_HXX
      12             : 
      13             : #include <com/sun/star/uno/Reference.hxx>
      14             : #include <com/sun/star/uno/Sequence.hxx>
      15             : 
      16             : #include <rtl/ustring.hxx>
      17             : 
      18             : #include <test/bootstrapfixture.hxx>
      19             : 
      20             : #include <unotest/filters-test.hxx>
      21             : 
      22             : namespace com { namespace sun { namespace star {
      23             :     namespace beans { struct PropertyValue; }
      24             :     namespace container { class XNameAccess; }
      25             :     namespace document { class XFilter; }
      26             :     namespace frame { class XDesktop2; }
      27             :     namespace ucb { class XSimpleFileAccess; }
      28             : } } }
      29             : 
      30             : namespace writerperfect
      31             : {
      32             : namespace test
      33             : {
      34             : 
      35           3 : class WpftImportTestBase
      36             :     : public ::test::FiltersTest
      37             :     , public ::test::BootstrapFixture
      38             : {
      39             : public:
      40             :     explicit WpftImportTestBase(const rtl::OUString &rFactoryURL);
      41             : 
      42             :     virtual void setUp() SAL_OVERRIDE;
      43             :     virtual void tearDown() SAL_OVERRIDE;
      44             : 
      45             : protected:
      46             :     void doTest(const rtl::OUString &rFilter, const rtl::OUString &rPath);
      47             : 
      48             : private:
      49             :     virtual bool load(const OUString &, const OUString &rURL, const OUString &,
      50             :         unsigned int, unsigned int, unsigned int) SAL_OVERRIDE;
      51             : 
      52             :     void impl_detectFilterName(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> &rDescriptor, const rtl::OUString &rTypeName);
      53             : 
      54             : private:
      55             :     const rtl::OUString m_aFactoryURL;
      56             :     com::sun::star::uno::Reference<com::sun::star::frame::XDesktop2> m_xDesktop;
      57             :     com::sun::star::uno::Reference<com::sun::star::ucb::XSimpleFileAccess> m_xFileAccess;
      58             :     com::sun::star::uno::Reference<com::sun::star::document::XFilter> m_xFilter;
      59             :     com::sun::star::uno::Reference<com::sun::star::container::XNameAccess> m_xTypeMap;
      60             : };
      61             : 
      62             : }
      63             : }
      64             : 
      65             : #endif // INCLUDED_WRITERPERFECT_QA_UNIT_WPFTIMPORTTESTBASE_HXX
      66             : 
      67             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10