diff options
-rw-r--r-- | include/unotest/bootstrapfixturebase.hxx | 3 | ||||
-rw-r--r-- | unotest/source/cpp/bootstrapfixturebase.cxx | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/unotest/bootstrapfixturebase.hxx b/include/unotest/bootstrapfixturebase.hxx index d69be43d013d..c447f4fa626e 100644 --- a/include/unotest/bootstrapfixturebase.hxx +++ b/include/unotest/bootstrapfixturebase.hxx @@ -62,9 +62,12 @@ public: // return a Path to a given c-str path from the source directory OUString getPathFromSrc( const char *pPath ); + // return a URL to a given c-str path from the workdir directory OUString getURLFromWorkdir( const char *pPath ); + // return a Path to a given c-str path from the workdir directory + OUString getPathFromWorkdir( const char *pPath ); virtual void setUp(); virtual void tearDown(); diff --git a/unotest/source/cpp/bootstrapfixturebase.cxx b/unotest/source/cpp/bootstrapfixturebase.cxx index cc8ae3fa189a..87a72a725eb0 100644 --- a/unotest/source/cpp/bootstrapfixturebase.cxx +++ b/unotest/source/cpp/bootstrapfixturebase.cxx @@ -83,6 +83,14 @@ OUString test::BootstrapFixtureBase::getURLFromWorkdir( const char *pPath ) return m_aWorkdirRootURL + OUString::createFromAscii( pPath ); } +#ifdef _WIN32 // ifdef just to keep it out of unusedcode.easy +OUString test::BootstrapFixtureBase::getPathFromWorkdir( const char *pPath ) +{ + return m_aWorkdirRootPath + OUString::createFromAscii( pPath ); + +} +#endif + void test::BootstrapFixtureBase::setUp() { // set UserInstallation to user profile dir in test/user-template |