diff options
| author | Bastiaan Bakker <bastiaan.bakker@lifeline.nl> | 2001-04-14 21:37:31 +0000 |
|---|---|---|
| committer | Bastiaan Bakker <bastiaan.bakker@lifeline.nl> | 2001-04-14 21:37:31 +0000 |
| commit | fb5695f7ca74f6557bdff1ceff009628ac3adc4a (patch) | |
| tree | 8e6c05a5db8ef1c3037a10f579c31f0eb38a087e /include/cppunit/TextTestResult.h | |
| parent | f5f2b1d2761b1d81c042d51619182c7951fd23aa (diff) | |
| download | cppunit-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/TextTestResult.h')
| -rw-r--r-- | include/cppunit/TextTestResult.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/cppunit/TextTestResult.h b/include/cppunit/TextTestResult.h new file mode 100644 index 0000000..2176b2c --- /dev/null +++ b/include/cppunit/TextTestResult.h @@ -0,0 +1,32 @@ +#ifndef CPPUNIT_TEXTTESTRESULT_H +#define CPPUNIT_TEXTTESTRESULT_H + +#include <iosfwd> +#include "TestResult.h" + +namespace CppUnit { + + class Exception; + class Test; + + class TextTestResult : public TestResult + { + public: + virtual void addError (Test *test, Exception *e); + virtual void addFailure (Test *test, Exception *e); + virtual void startTest (Test *test); + virtual void print (std::ostream& stream); + virtual void printErrors (std::ostream& stream); + virtual void printFailures (std::ostream& stream); + virtual void printHeader (std::ostream& stream); + + }; + + /** insertion operator for easy output */ + std::ostream& operator<< (std::ostream& stream, TextTestResult& result); + +} // namespace CppUnit + +#endif // CPPUNIT_TEXTTESTRESULT_H + + |
