diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-01-30 01:58:32 -0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-01-31 04:31:10 +0100 |
commit | 7226ac25e2edb6ee27affd576f7aa600bb43520c (patch) | |
tree | e71f09dd1ab043caeac3ad474774c60836cd8b48 /sc/qa/extras/scdatabaserangeobj.cxx | |
parent | 11cfcf401a68cbaf5dfe0a309fd482d3a3fbdff6 (diff) |
Use a method from UnoApitest instead of implement a new one in calc
In calc, we see a lot of implementations of createFileURL. So get ride
of all it and start to use the UnoAPitest::createFileURL method.
Also, clean the UnoApiRest::createFileURL method, fix the path from UnoApiTest and
moved some testing files to the right dir that the file belongs.
Conflicts:
sc/qa/extras/scoutlineobj.cxx
Change-Id: Ic02f13777503729ac70da590f4a42866f17ea9b2
Diffstat (limited to 'sc/qa/extras/scdatabaserangeobj.cxx')
-rw-r--r-- | sc/qa/extras/scdatabaserangeobj.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sc/qa/extras/scdatabaserangeobj.cxx b/sc/qa/extras/scdatabaserangeobj.cxx index 1f66f50a3f75..bd358853b8f7 100644 --- a/sc/qa/extras/scdatabaserangeobj.cxx +++ b/sc/qa/extras/scdatabaserangeobj.cxx @@ -47,6 +47,8 @@ public: virtual uno::Reference< uno::XInterface > init( const rtl::OUString& rDBName ); + ScDatabaseRangeObj(); + CPPUNIT_TEST_SUITE(ScDatabaseRangeObj); CPPUNIT_TEST(testDataArea); CPPUNIT_TEST(testGetSortDescriptor); @@ -63,10 +65,15 @@ private: sal_Int32 ScDatabaseRangeObj::nTest = 0; uno::Reference< lang::XComponent > ScDatabaseRangeObj::mxComponent; +ScDatabaseRangeObj::ScDatabaseRangeObj() + : UnoApiTest("/sc/qa/extras/testdocuments") +{ +} + uno::Reference< uno::XInterface > ScDatabaseRangeObj::init( const rtl::OUString& rDBName ) { rtl::OUString aFileURL; - createFileURL(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ScDatabaseRangeObj.ods")), aFileURL); + createFileURL("ScDatabaseRangeObj.ods", aFileURL); if(!mxComponent.is()) mxComponent = loadFromDesktop(aFileURL); CPPUNIT_ASSERT(mxComponent.is()); |