summaryrefslogtreecommitdiff
path: root/unotest
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-01-19 21:01:05 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-01-19 21:08:52 +0100
commit9b27d39081379aefbd8e1636088bf7eee3216ae3 (patch)
tree05c4cd104488a35f03b076592e114d1e3fdecdba /unotest
parent1234d599d4ee67bd725f0513431b2d4c56c9e09d (diff)
finish sd's regression test
Implemented a simple character based comparison of the exported file and the reference file
Diffstat (limited to 'unotest')
-rw-r--r--unotest/inc/unotest/bootstrapfixturebase.hxx6
-rw-r--r--unotest/source/cpp/bootstrapfixturebase.cxx10
2 files changed, 16 insertions, 0 deletions
diff --git a/unotest/inc/unotest/bootstrapfixturebase.hxx b/unotest/inc/unotest/bootstrapfixturebase.hxx
index 6176f057a368..6e9af912f40a 100644
--- a/unotest/inc/unotest/bootstrapfixturebase.hxx
+++ b/unotest/inc/unotest/bootstrapfixturebase.hxx
@@ -78,6 +78,12 @@ public:
// return a URL to a given c-str path from the source directory
::rtl::OUString getURLFromSrc( const char *pPath );
+ // return a Path to a given c-str path from the source directory
+ ::rtl::OUString getPathFromSrc( const char *pPath );
+
+ // return a Path to a given c-str path from the solver directory
+ ::rtl::OUString getPathFromSolver( const char *pPath );
+
virtual void setUp();
virtual void tearDown();
diff --git a/unotest/source/cpp/bootstrapfixturebase.cxx b/unotest/source/cpp/bootstrapfixturebase.cxx
index ca04b302d1aa..907535e887f5 100644
--- a/unotest/source/cpp/bootstrapfixturebase.cxx
+++ b/unotest/source/cpp/bootstrapfixturebase.cxx
@@ -77,6 +77,16 @@ test::BootstrapFixtureBase::~BootstrapFixtureBase()
return m_aSrcRootURL + rtl::OUString::createFromAscii( pPath );
}
+::rtl::OUString test::BootstrapFixtureBase::getPathFromSrc( const char *pPath )
+{
+ return m_aSrcRootPath + rtl::OUString::createFromAscii( pPath );
+}
+
+::rtl::OUString test::BootstrapFixtureBase::getPathFromSolver( const char *pPath )
+{
+ return m_aSolverRootPath + rtl::OUString::createFromAscii( pPath );
+}
+
void test::BootstrapFixtureBase::setUp()
{
// set UserInstallation to user profile dir in test/user-template