| Last change
 on this file since 12e953 was             d3926b5, checked in by Frederik Heber <heber@…>, 15 years ago | 
        
          | 
BUGFIX: ObservedContainer::reverse_iterator was wrong way implemnted.
 Library version is now 4:0:4, API version is still 1.0.9.
reverse_iterator had begin(), end() messed in cstor.
added unit test on ObservedContainer.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            954 bytes | 
      
      
| Rev | Line |  | 
|---|
| [d3926b5] | 1 | /* | 
|---|
|  | 2 | * ObservedContainerTest.hpp | 
|---|
|  | 3 | * | 
|---|
|  | 4 | *  Created on: Jan 19, 2010 | 
|---|
|  | 5 | *      Author: crueger | 
|---|
|  | 6 | */ | 
|---|
|  | 7 |  | 
|---|
|  | 8 | #ifndef OBSERVEDCONTAINERTEST_HPP_ | 
|---|
|  | 9 | #define OBSERVEDCONTAINERTEST_HPP_ | 
|---|
|  | 10 |  | 
|---|
|  | 11 | // include config.h | 
|---|
|  | 12 | #ifdef HAVE_CONFIG_H | 
|---|
|  | 13 | #include <config.h> | 
|---|
|  | 14 | #endif | 
|---|
|  | 15 |  | 
|---|
|  | 16 | #include <cppunit/extensions/HelperMacros.h> | 
|---|
|  | 17 |  | 
|---|
|  | 18 | // forward declaration for test stubs | 
|---|
|  | 19 | class UpdateCountObservedContainer; | 
|---|
|  | 20 | class NotificationObservedContainer; | 
|---|
|  | 21 | class SimpleObservable; | 
|---|
|  | 22 | class CallObservable; | 
|---|
|  | 23 | class SuperObservable; | 
|---|
|  | 24 | class ObservableSet; | 
|---|
|  | 25 | class ObservableMap; | 
|---|
|  | 26 | class BlockObservable; | 
|---|
|  | 27 | class NotificationObservable; | 
|---|
|  | 28 |  | 
|---|
|  | 29 | class ObservedContainerTest :  public CppUnit::TestFixture | 
|---|
|  | 30 | { | 
|---|
|  | 31 | CPPUNIT_TEST_SUITE( ObservedContainerTest ) ; | 
|---|
|  | 32 | CPPUNIT_TEST ( IteratorMapTest ); | 
|---|
|  | 33 | CPPUNIT_TEST ( IteratorSetTest ); | 
|---|
|  | 34 | CPPUNIT_TEST_SUITE_END(); | 
|---|
|  | 35 |  | 
|---|
|  | 36 | public: | 
|---|
|  | 37 | void setUp(); | 
|---|
|  | 38 | void tearDown(); | 
|---|
|  | 39 |  | 
|---|
|  | 40 | void IteratorMapTest(); | 
|---|
|  | 41 | void IteratorSetTest(); | 
|---|
|  | 42 |  | 
|---|
|  | 43 | private: | 
|---|
|  | 44 | SimpleObservable *simpleObservable1; | 
|---|
|  | 45 | }; | 
|---|
|  | 46 |  | 
|---|
|  | 47 | #endif /* OBSERVEDCONTAINERTEST_HPP_ */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.