summaryrefslogtreecommitdiff
path: root/sal/inc/cppunittester/protectorfactory.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/inc/cppunittester/protectorfactory.hxx')
-rw-r--r--sal/inc/cppunittester/protectorfactory.hxx22
1 files changed, 14 insertions, 8 deletions
diff --git a/sal/inc/cppunittester/protectorfactory.hxx b/sal/inc/cppunittester/protectorfactory.hxx
index c309dbe8a..916f89f74 100644
--- a/sal/inc/cppunittester/protectorfactory.hxx
+++ b/sal/inc/cppunittester/protectorfactory.hxx
@@ -32,14 +32,20 @@
#include "sal/types.h"
-namespace CppUnit { class Protector; }
-
-namespace cppunittester {
-
-// The type of CppUnit::Protector factory functions that can be plugged into
-// cppunittester:
-extern "C" typedef CppUnit::Protector * SAL_CALL ProtectorFactory();
-
+#include <cppunit/Protector.h>
+
+namespace cppunittester
+{
+ class LibreOfficeProtector : public CppUnit::Protector
+ {
+ public:
+ virtual bool protect(CppUnit::Functor const & functor) = 0;
+ using CppUnit::Protector::protect;
+ };
+
+ // The type of CppUnit::Protector factory functions that can be plugged into
+ // cppunittester:
+ extern "C" typedef LibreOfficeProtector * SAL_CALL ProtectorFactory();
}
#endif