00001 00041 #ifndef _SORTEDLIST_TEST_H 00042 #define _SORTEDLIST_TEST_H 00043 00044 #include "list_test.h" 00045 #include "person.h" 00046 #include <gtest.h> 00047 00048 using namespace container; 00049 using namespace std; 00050 00051 namespace container_test { 00052 00063 class SortedList_test: public List_test { 00064 protected: 00065 // You can remove any or all of the following functions if its body 00066 // is empty. 00067 00068 OrderedLinkedList unsortedGroup; 00069 OrderedLinkedList sortedGroup; 00070 Person *joeSmith; 00071 Person *janeSmith; 00072 Person *fredHarris; 00073 Person *joseGonzales; 00074 Person *fernandaMijares; 00075 00076 OrderedLinkedList otherUnsortedGroup; 00077 OrderedLinkedList otherSortedGroup; 00078 Person *otherJoeSmith; 00079 Person *otherJaneSmith; 00080 Person *otherFredHarris; 00081 Person *otherJoseGonzales; 00082 Person *otherFernandaMijares; 00083 00084 SortedList_test(); 00085 00086 virtual ~SortedList_test(); 00087 00088 /******************** Unit-test Helper Methods ********************/ 00089 00090 /******************** Unit-test methods for class SortedList ********************/ 00091 00092 void insertSorted(const Object::Info* type); 00093 00094 void insertingAndRemoving(const Object::Info* type); 00095 00096 }; 00097 00098 } // namespace container_test 00099 #endif /* _SORTEDLIST_TEST_H */