--- a/genericservices/mimerecognitionfw/tef/T_MimeStep.cpp Thu Aug 19 11:33:45 2010 +0300
+++ b/genericservices/mimerecognitionfw/tef/T_MimeStep.cpp Tue Aug 31 16:54:36 2010 +0300
@@ -137,6 +137,12 @@
TEST(dataType.Uid().iUid==0);
TEST(confidenceVal==0);
INFO_PRINTF2(_L("Val of confidence %d"), confidenceVal);
+ //New tests
+ TInt bufSize = iData->PreferredBufSize();
+ TEST(bufSize==0);
+ INFO_PRINTF2(_L("Val of Preferred buffer size %d"), bufSize);
+ INFO_PRINTF1(_L("Testing default constructor of TDataTypeWithPriority"));
+ TDataTypeWithPriority dataTypeWithPriority = TDataTypeWithPriority();
CleanupStack::PopAndDestroy(confAndMimeDataRec);
}
@@ -306,7 +312,13 @@
}
CleanupStack::PopAndDestroy(1); // tmpListOfRecogniszers
-
+
+ //New test
+ INFO_PRINTF1(_L("Testing index([]) operator"));
+ const CApaScanningDataRecognizer::TRecognizer& testDataRecognizer=(*iRecognizer)[0];
+ TUid uid1 = testDataRecognizer.iUid;
+ TUid uid2 = ((*iRecognizer)[0]).iUid;
+ TEST(uid1==uid2);
//for testing ecom style plugin
INFO_PRINTF1(_L("Testing the ecom style TTESTECOMDATAREC recognizer is loaded or not"));
CApaScanningDataRecognizer::TRecognizer testEcomDataRecognizer;