equal
deleted
inserted
replaced
36 class Test { |
36 class Test { |
37 public: |
37 public: |
38 Test (char const *name); |
38 Test (char const *name); |
39 virtual ~Test (); |
39 virtual ~Test (); |
40 |
40 |
41 virtual bool run_tests (void) = 0; |
41 virtual bool runTests (void) = 0; |
42 |
42 |
43 protected: |
43 protected: |
44 std::ostream &failure (void); |
44 std::ostream &failure (void); |
45 }; |
45 }; |
46 |
46 |
47 class TestManager { |
47 class TestManager { |
48 public: |
48 public: |
49 // main methods the test runner is supposed to |
49 // main methods the test runner is supposed to |
50 // invoke. |
50 // invoke. |
51 static void enable_verbose (void); |
51 static void enableVerbose (void); |
52 static bool run_tests (void); |
52 static bool runTests (void); |
53 |
53 |
54 // helper methods |
54 // helper methods |
55 static void add (Test *test, char const *name); |
55 static void add (Test *test, char const *name); |
56 static std::ostream &failure (void); |
56 static std::ostream &failure (void); |
57 private: |
57 private: |
58 static TestManager *get (void); |
58 static TestManager *get (void); |
59 bool real_run_tests (void); |
59 bool realRunTests (void); |
60 |
60 |
61 TestManager (); |
61 TestManager (); |
62 ~TestManager (); |
62 ~TestManager (); |
63 |
63 |
64 typedef std::list<std::pair<Test *,std::string *> > Tests; |
64 typedef std::list<std::pair<Test *,std::string *> > Tests; |