genericservices/mimerecognitionfw/tef/T_MimeStep.cpp
changeset 59 09fa7c3c5079
parent 52 bf6a71c50e42
--- a/genericservices/mimerecognitionfw/tef/T_MimeStep.cpp	Wed Aug 18 11:27:44 2010 +0300
+++ b/genericservices/mimerecognitionfw/tef/T_MimeStep.cpp	Thu Sep 02 22:16:05 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;
@@ -486,7 +498,6 @@
 	CleanupStack::PopAndDestroy(buf); // buf
 
 	delete iRecognizer;
-	iRecongnizer = 0;
 	}
 
 CT_MimeStep::~CT_MimeStep()