diff -r 3104fc151679 -r 9a48e301e94b uiservicetab/vimpststorage/tsrc/vimpststorage_ut/conf/CVIMPSTStorageContactSorter_UT.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpststorage/tsrc/vimpststorage_ut/conf/CVIMPSTStorageContactSorter_UT.cfg Wed Sep 01 12:33:36 2010 +0100 @@ -0,0 +1,88 @@ +[Define] + +[Enddefine] + +// --- Test Case 1, tests NewL() + +[Test] +title 1.CreateSorter +create CVIMPSTStorageContactSorter_UT foobar +foobar CreateSorter +delete foobar +[Endtest] + +// --- Test Case 2-3, tests SetSortAlgorithm() + +[Test] +title 2.SelectAlgorithm +create CVIMPSTStorageContactSorter_UT foobar +foobar SelectAlgorithm 1 +delete foobar +[Endtest] + +[Test] +title 3.SelectAlgorithm +create CVIMPSTStorageContactSorter_UT foobar +foobar SelectAlgorithm 2 +delete foobar +[Endtest] + +// --- Test Cases 4-6, tests Sort() + +[Test] +title 4.DoSort +create CVIMPSTStorageContactSorter_UT foobar +foobar DoSort alpha +delete foobar +[Endtest] + +[Test] +title 5.DoSort +create CVIMPSTStorageContactSorter_UT foobar +foobar DoSort presence +delete foobar +[Endtest] + +[Test] +title 6.DoSort +create CVIMPSTStorageContactSorter_UT foobar +foobar DoSort default +delete foobar +[Endtest] + +// --- Test Cases 7-11, Compare() + +[Test] +title 7.CompareContacts 2 valid contacts +create CVIMPSTStorageContactSorter_UT foobar +foobar CompareContacts 2validcontacts +delete foobar +[Endtest] + +[Test] +title 8.CompareContacts 1 valid contact +create CVIMPSTStorageContactSorter_UT foobar +foobar CompareContacts 1validcontact +delete foobar +[Endtest] + +[Test] +title 9.CompareContacts 1 null contact +create CVIMPSTStorageContactSorter_UT foobar +foobar CompareContacts 1nullcontact +delete foobar +[Endtest] + +[Test] +title 10.CompareContacts 2 null contacts +create CVIMPSTStorageContactSorter_UT foobar +foobar CompareContacts 2nullcontacts +delete foobar +[Endtest] + +[Test] +title 11.CompareContacts same contacts +create CVIMPSTStorageContactSorter_UT foobar +foobar CompareContacts samecontacts +delete foobar +[Endtest]