TextTestResult.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
- #ifndef CPPUNIT_TEXTTESTRESULT_H
- #define CPPUNIT_TEXTTESTRESULT_H
- #pragma warning( disable : 4786 4800 4355 )
- #include "KStdAfx.h"
- #include <iostream>
- #include "TestResult.h"
- class TextTestResult : public TestResult
- {
- public:
- virtual void addError (Test *test, CppUnitException *e);
- virtual void addFailure (Test *test, CppUnitException *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 */
- inline std::ostream& operator<< (std::ostream& stream, TextTestResult& result)
- { result.print (stream); return stream; }
- #endif