equal
deleted
inserted
replaced
135 TDataType dataType= iData->MimeType(); |
135 TDataType dataType= iData->MimeType(); |
136 TInt confidenceVal=iData->Confidence(); |
136 TInt confidenceVal=iData->Confidence(); |
137 TEST(dataType.Uid().iUid==0); |
137 TEST(dataType.Uid().iUid==0); |
138 TEST(confidenceVal==0); |
138 TEST(confidenceVal==0); |
139 INFO_PRINTF2(_L("Val of confidence %d"), confidenceVal); |
139 INFO_PRINTF2(_L("Val of confidence %d"), confidenceVal); |
140 //New tests |
|
141 TInt bufSize = iData->PreferredBufSize(); |
|
142 TEST(bufSize==0); |
|
143 INFO_PRINTF2(_L("Val of Preferred buffer size %d"), bufSize); |
|
144 INFO_PRINTF1(_L("Testing default constructor of TDataTypeWithPriority")); |
|
145 TDataTypeWithPriority dataTypeWithPriority = TDataTypeWithPriority(); |
|
146 CleanupStack::PopAndDestroy(confAndMimeDataRec); |
140 CleanupStack::PopAndDestroy(confAndMimeDataRec); |
147 } |
141 } |
148 |
142 |
149 |
143 |
150 /** |
144 /** |
310 { |
304 { |
311 testRecognizer((*tempListOfRecognizers)[ii]); |
305 testRecognizer((*tempListOfRecognizers)[ii]); |
312 } |
306 } |
313 |
307 |
314 CleanupStack::PopAndDestroy(1); // tmpListOfRecogniszers |
308 CleanupStack::PopAndDestroy(1); // tmpListOfRecogniszers |
315 |
309 |
316 //New test |
|
317 INFO_PRINTF1(_L("Testing index([]) operator")); |
|
318 const CApaScanningDataRecognizer::TRecognizer& testDataRecognizer=(*iRecognizer)[0]; |
|
319 TUid uid1 = testDataRecognizer.iUid; |
|
320 TUid uid2 = ((*iRecognizer)[0]).iUid; |
|
321 TEST(uid1==uid2); |
|
322 //for testing ecom style plugin |
310 //for testing ecom style plugin |
323 INFO_PRINTF1(_L("Testing the ecom style TTESTECOMDATAREC recognizer is loaded or not")); |
311 INFO_PRINTF1(_L("Testing the ecom style TTESTECOMDATAREC recognizer is loaded or not")); |
324 CApaScanningDataRecognizer::TRecognizer testEcomDataRecognizer; |
312 CApaScanningDataRecognizer::TRecognizer testEcomDataRecognizer; |
325 testEcomDataRecognizer.iUid=KTestEcomDataRecognizerUid; |
313 testEcomDataRecognizer.iUid=KTestEcomDataRecognizerUid; |
326 testEcomDataRecognizer.iDrive=25; |
314 testEcomDataRecognizer.iDrive=25; |