00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00029 #ifndef CPPTEST_OUTPUT_H
00030 #define CPPTEST_OUTPUT_H
00031
00032 #include <string>
00033
00034 namespace Test
00035 {
00036 class Source;
00037 class Time;
00038
00049 class Output
00050 {
00051 public:
00054 virtual ~Output() {}
00055
00060 virtual void initialize(int ) {}
00061
00067 virtual void finished(int tests, const Time& time) {}
00068
00074 virtual void suite_start(int tests, const std::string& name) {}
00075
00082 virtual void suite_end(int tests, const std::string& name,
00083 const Time& time) {}
00084
00089 virtual void test_start(const std::string& name) {}
00090
00098 virtual void test_end(const std::string& name, bool ok,
00099 const Time& time) {}
00100
00105 virtual void assertment(const Source& s) {}
00106
00107 protected:
00110 Output() {}
00111
00112 private:
00113 Output(const Output&);
00114 Output& operator=(const Output&);
00115 };
00116
00117 }
00118
00119 #endif // #ifndef CPPTEST_OUTPUT_H
00120
00121