summaryrefslogtreecommitdiff
path: root/sw/qa/extras/inc/swmodeltestbase.hxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2013-11-04 21:32:21 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2013-11-04 21:33:11 +0100
commita76daca815e9331d8019a60d1a784e5dae86edf3 (patch)
tree0be7294093aa1bdba2e7d19c1d04f3126199b954 /sw/qa/extras/inc/swmodeltestbase.hxx
parent0ae2fe26d06d957f7dc93cdc24ee22f266e36093 (diff)
Make CppunitTest_sw_rtfimport use DECLARE_SW_IMPORT_TEST()
Change-Id: I670e0460f15951f99f0f750d2798c771f64c3095
Diffstat (limited to 'sw/qa/extras/inc/swmodeltestbase.hxx')
-rw-r--r--sw/qa/extras/inc/swmodeltestbase.hxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx
index afd0cb36ba00..27cacf254a1c 100644
--- a/sw/qa/extras/inc/swmodeltestbase.hxx
+++ b/sw/qa/extras/inc/swmodeltestbase.hxx
@@ -123,7 +123,9 @@ protected:
if (mustTestImportOf(filename))
{
header();
+ preTest(filename);
load(mpTestDocumentPath, filename);
+ postTest(filename);
verify();
finish();
}
@@ -158,6 +160,19 @@ protected:
{
return true;
}
+ /**
+ * Override this function if some special filename-specific setup is needed
+ */
+ virtual void preTest(const char* /*filename*/)
+ {
+ }
+
+ /**
+ * Override this function if some special filename-specific teardown is needed
+ */
+ virtual void postTest(const char* /*filename*/)
+ {
+ }
private:
void dumpLayout()