Go to the documentation of this file.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 #ifdef _MSC_VER
00035 # define CPPTEST_UNUSED(x)
00036 #else
00037 # define CPPTEST_UNUSED(x) (void)x
00038 #endif
00039
00040 namespace Test
00041 {
00042 class Source;
00043 class Time;
00044
00055 class Output
00056 {
00057 public:
00060 virtual ~Output() {}
00061
00066 virtual void initialize(int tests)
00067 {
00068 CPPTEST_UNUSED(tests);
00069 }
00070
00076 virtual void finished(int tests, const Time& time)
00077 {
00078 CPPTEST_UNUSED(tests);
00079 CPPTEST_UNUSED(time);
00080 }
00081
00087 virtual void suite_start(int tests, const std::string& name)
00088 {
00089 CPPTEST_UNUSED(tests);
00090 CPPTEST_UNUSED(name);
00091 }
00092
00099 virtual void suite_end(int tests, const std::string& name,
00100 const Time& time)
00101 {
00102 CPPTEST_UNUSED(tests);
00103 CPPTEST_UNUSED(name);
00104 CPPTEST_UNUSED(time);
00105 }
00106
00111 virtual void test_start(const std::string& name)
00112 {
00113 CPPTEST_UNUSED(name);
00114 }
00115
00123 virtual void test_end(const std::string& name, bool ok,
00124 const Time& time)
00125 {
00126 CPPTEST_UNUSED(name);
00127 CPPTEST_UNUSED(ok);
00128 CPPTEST_UNUSED(time);
00129 }
00130
00135 virtual void assertment(const Source& s)
00136 {
00137 CPPTEST_UNUSED(s);
00138 }
00139
00140 protected:
00143 Output() {}
00144
00145 private:
00146 Output(const Output&);
00147 Output& operator=(const Output&);
00148 };
00149
00150 }
00151
00152 #endif // #ifndef CPPTEST_OUTPUT_H