summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/inc/test/unoapi_test.hxx2
-rw-r--r--test/source/unoapi_test.cxx11
2 files changed, 4 insertions, 9 deletions
diff --git a/test/inc/test/unoapi_test.hxx b/test/inc/test/unoapi_test.hxx
index b3e341a188d2..b2ebb37f88f3 100644
--- a/test/inc/test/unoapi_test.hxx
+++ b/test/inc/test/unoapi_test.hxx
@@ -41,7 +41,7 @@ using namespace ::com::sun::star::uno;
class OOO_DLLPUBLIC_TEST UnoApiTest : public test::BootstrapFixture, public unotest::MacrosTest
{
public:
- UnoApiTest();
+ UnoApiTest(const OUString& path);
void createFileURL(const rtl::OUString& aFileBase, rtl::OUString& rFilePath);
diff --git a/test/source/unoapi_test.cxx b/test/source/unoapi_test.cxx
index 81b961c2cc93..922ef2acc69f 100644
--- a/test/source/unoapi_test.cxx
+++ b/test/source/unoapi_test.cxx
@@ -32,8 +32,8 @@
#include <com/sun/star/frame/Desktop.hpp>
#include <comphelper/processfactory.hxx>
-UnoApiTest::UnoApiTest()
- : m_aBaseString(RTL_CONSTASCII_USTRINGPARAM("/sc/qa/extras/testdocuments"))
+UnoApiTest::UnoApiTest(const OUString& path)
+ : m_aBaseString(path)
{
}
@@ -58,12 +58,7 @@ void UnoApiTest::tearDown()
void UnoApiTest::createFileURL(const rtl::OUString& aFileBase, rtl::OUString& rFilePath)
{
- rtl::OUString aSep(RTL_CONSTASCII_USTRINGPARAM("/"));
- rtl::OUStringBuffer aBuffer( getSrcRootURL() );
- rtl::OUString aFileExtension(RTL_CONSTASCII_USTRINGPARAM("ods"));
- aBuffer.append(m_aBaseString).append(aSep);
- aBuffer.append(aFileBase);
- rFilePath = aBuffer.makeStringAndClear();
+ rFilePath = getSrcRootURL() + m_aBaseString + "/" + aFileBase;
}
void UnoApiTest::closeDocument( uno::Reference< lang::XComponent > xDocument )