Kaydet (Commit) a76daca8 authored tarafından Miklos Vajna's avatar Miklos Vajna

Make CppunitTest_sw_rtfimport use DECLARE_SW_IMPORT_TEST()

Change-Id: I670e0460f15951f99f0f750d2798c771f64c3095
üst 0ae2fe26
...@@ -123,7 +123,9 @@ protected: ...@@ -123,7 +123,9 @@ protected:
if (mustTestImportOf(filename)) if (mustTestImportOf(filename))
{ {
header(); header();
preTest(filename);
load(mpTestDocumentPath, filename); load(mpTestDocumentPath, filename);
postTest(filename);
verify(); verify();
finish(); finish();
} }
...@@ -158,6 +160,19 @@ protected: ...@@ -158,6 +160,19 @@ protected:
{ {
return true; 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: private:
void dumpLayout() void dumpLayout()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment