summaryrefslogtreecommitdiff
path: root/include/cppunit/Test.h
diff options
context:
space:
mode:
authorBastiaan Bakker <bastiaan.bakker@lifeline.nl>2001-04-14 21:37:31 +0000
committerBastiaan Bakker <bastiaan.bakker@lifeline.nl>2001-04-14 21:37:31 +0000
commitfb5695f7ca74f6557bdff1ceff009628ac3adc4a (patch)
tree8e6c05a5db8ef1c3037a10f579c31f0eb38a087e /include/cppunit/Test.h
parentf5f2b1d2761b1d81c042d51619182c7951fd23aa (diff)
downloadcppunit-fb5695f7ca74f6557bdff1ceff009628ac3adc4a.tar.gz
Moved public header files from cppunit dir to include/cppunit, to separate them from internal header files like estring.h.
Diffstat (limited to 'include/cppunit/Test.h')
-rw-r--r--include/cppunit/Test.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/cppunit/Test.h b/include/cppunit/Test.h
new file mode 100644
index 0000000..421e403
--- /dev/null
+++ b/include/cppunit/Test.h
@@ -0,0 +1,32 @@
+#ifndef CPPUNIT_TEST_H
+#define CPPUNIT_TEST_H
+
+#include <string>
+
+namespace CppUnit {
+
+ class TestResult;
+
+ /**
+ * A Test can be run and collect its results.
+ * \see TestResult.
+ *
+ */
+ class Test
+ {
+ public:
+ virtual ~Test () {};
+
+ virtual void run (TestResult *result) = 0;
+ virtual int countTestCases () const = 0;
+ virtual std::string toString () const = 0;
+ virtual std::string getName () const = 0;
+
+
+ };
+
+
+} // namespace CppUnit
+
+#endif // CPPUNIT_TEST_H
+