| Last change
 on this file since 9e619e was             ef9dff6, checked in by Frederik Heber <heber@…>, 11 years ago | 
        
          | 
logger and errorLogger have new setOutputStream().
 this allows to redirect the logging streams in a program internally, e.g.
in a GUI setting.
added unit test on this function.
TESTFIX: LogUnitTest used loggerStub which made the tests useless.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            590 bytes | 
      
      
| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | * logunittest.hpp | 
|---|
| 3 | */ | 
|---|
| 4 |  | 
|---|
| 5 | #ifndef LOGTEST_HPP_ | 
|---|
| 6 | #define LOGTEST_HPP_ | 
|---|
| 7 |  | 
|---|
| 8 | // include config.h | 
|---|
| 9 | #ifdef HAVE_CONFIG_H | 
|---|
| 10 | #include <config.h> | 
|---|
| 11 | #endif | 
|---|
| 12 |  | 
|---|
| 13 | #include <cppunit/extensions/HelperMacros.h> | 
|---|
| 14 |  | 
|---|
| 15 |  | 
|---|
| 16 | /********************************************** Test classes **************************************/ | 
|---|
| 17 |  | 
|---|
| 18 | class LogTest : public CppUnit::TestFixture | 
|---|
| 19 | { | 
|---|
| 20 | CPPUNIT_TEST_SUITE( LogTest) ; | 
|---|
| 21 | CPPUNIT_TEST ( logTest ); | 
|---|
| 22 | CPPUNIT_TEST ( newOutputTest ); | 
|---|
| 23 | CPPUNIT_TEST_SUITE_END(); | 
|---|
| 24 |  | 
|---|
| 25 | public: | 
|---|
| 26 | void setUp(); | 
|---|
| 27 | void tearDown(); | 
|---|
| 28 | void newOutputTest(); | 
|---|
| 29 |  | 
|---|
| 30 | void logTest(); | 
|---|
| 31 | }; | 
|---|
| 32 |  | 
|---|
| 33 | #endif /* LOGTEST_HPP_ */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.