00001 #ifndef _RR_CONTROLPOINTCONTAINERTESTS_H_ 00002 #define _RR_CONTROLPOINTCONTAINERTESTS_H_ 00003 00004 #include <vector> 00005 #include <cppunit/extensions/HelperMacros.h> 00006 00007 #include <vrs/vector.h> 00008 00009 #include "../src/ControlPointContainer.h" 00010 #include "ControlPointTestGenerator.h" 00011 00012 00013 namespace random_racer 00014 { 00015 00024 class ControlPointContainerTests : public CPPUNIT_NS::TestFixture 00025 { 00026 CPPUNIT_TEST_SUITE(ControlPointContainerTests); 00027 CPPUNIT_TEST(testMapsValueToKey); 00028 CPPUNIT_TEST(testGetOffsetToKey); 00029 CPPUNIT_TEST(testGetTheFourBlocks); 00030 CPPUNIT_TEST(testHashMapValues); 00031 CPPUNIT_TEST_SUITE_END(); 00032 00033 ControlPointTestGenerator *m_controlPointGenerator; 00034 ControlPointContainer *m_controlPoints; 00035 ControlPointContainer *m_controlPointsFive; 00036 std::vector<VRS::Vector> m_target; 00037 int m_blockList[8]; 00038 00039 public: 00040 void setUp(); 00041 00042 protected: 00043 void testMapsValueToKey(); 00044 void testGetOffsetToKey(); 00045 void testGetTheFourBlocks(); 00046 void testHashMapValues(); 00047 00048 }; 00049 00050 } // namespace random_racer 00051 00052 #endif /* _RR_CONTROLPOINTCONTAINERTESTS_H_ */
1.5.1