camerasrv_plat/media_recorder_api/tsrc/src/camcTest_9.cpp
changeset 42 605672cc2a86
parent 0 9b3e960ffc8a
equal deleted inserted replaced
39:e80a5e3e883f 42:605672cc2a86
   459     RFs fsSession;
   459     RFs fsSession;
   460     fsSession.Connect();
   460     fsSession.Connect();
   461     TInt err;
   461     TInt err;
   462     TFileName fileName;
   462     TFileName fileName;
   463     AddDriveLetterToPath(_L("non-existent-folder\\recordQCIF.3gp"), fileName);
   463     AddDriveLetterToPath(_L("non-existent-folder\\recordQCIF.3gp"), fileName);
   464     err = file.Open(fsSession,fileName,EFileShareAny);
   464     if ( err = file.Open(fsSession,fileName,EFileShareAny) )
       
   465         {
       
   466         fsSession.Close();
       
   467         }
   465     assertTIntsEqualL( KErrNone, err );
   468     assertTIntsEqualL( KErrNone, err );
   466 
   469 
   467     file.Close();
   470     file.Close();
   468     fsSession.Close();
   471     fsSession.Close();
   469     }
   472     }
   594 
   597 
   595 MTest* CCamcTest_9::suiteL ()
   598 MTest* CCamcTest_9::suiteL ()
   596     {
   599     {
   597     // Always use NewL (Do not use NewLC) !!!
   600     // Always use NewL (Do not use NewLC) !!!
   598     CTestSuite *suite = CTestSuite::NewL(_L8("CCamcTest_9"));
   601     CTestSuite *suite = CTestSuite::NewL(_L8("CCamcTest_9"));
   599 
   602     CleanupStack::PushL( suite );
   600     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.PREPARE_007"), &Prepare_007_L));
   603 
   601     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.PREPARE_008"), &Prepare_008_L));
   604     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.PREPARE_007"), &CCamcTest_9::Prepare_007_L));
   602     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.PREPARE_009"), &Prepare_009_L));
   605     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.PREPARE_008"), &CCamcTest_9::Prepare_008_L));
   603     
   606     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.PREPARE_009"), &CCamcTest_9::Prepare_009_L));
   604     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.RECORDTIMEAVAILABLEL_005"), &RecordTimeAvailableL_005_L));
   607     
       
   608     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.RECORDTIMEAVAILABLEL_005"), &CCamcTest_9::RecordTimeAvailableL_005_L));
   605     
   609     
   606     // SetMaxClipSizeL_008 and SetMaxClipSizeL_009, only to be tested on HW
   610     // SetMaxClipSizeL_008 and SetMaxClipSizeL_009, only to be tested on HW
   607 #if !( defined (__WINS__) || defined (__WINSCW__) )
   611 #if !( defined (__WINS__) || defined (__WINSCW__) )
   608     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.SETMAXCLIPSIZEL_008"), &SetMaxClipSizeL_008_L));
   612     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.SETMAXCLIPSIZEL_008"), &CCamcTest_9::SetMaxClipSizeL_008_L));
   609     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.SETMAXCLIPSIZEL_009"), &SetMaxClipSizeL_009_L));
   613     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.SETMAXCLIPSIZEL_009"), &CCamcTest_9::SetMaxClipSizeL_009_L));
   610 #endif
   614 #endif
   611     
   615     
   612     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.NEWFILENAME_001"), &NewFileName_001_L));
   616     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.NEWFILENAME_001"), &CCamcTest_9::NewFileName_001_L));
   613     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.NEWFILENAME_002"), &NewFileName_002_L));
   617     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.NEWFILENAME_002"), &CCamcTest_9::NewFileName_002_L));
   614     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.NEWFILENAME_003"), &NewFileName_003_L));
   618     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.NEWFILENAME_003"), &CCamcTest_9::NewFileName_003_L));
   615     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.NEWFILENAME_004"), &NewFileName_004_L));
   619     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.NEWFILENAME_004"), &CCamcTest_9::NewFileName_004_L));
   616     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.NEWFILENAME_005"), &NewFileName_005_L));
   620     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.NEWFILENAME_005"), &CCamcTest_9::NewFileName_005_L));
   617     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.NEWFILENAME_006"), &NewFileName_006_L));
   621     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.NEWFILENAME_006"), &CCamcTest_9::NewFileName_006_L));
   618     
   622     
   619 #ifdef MP4_FILE_FORMAT_SUPPORTED
   623 #ifdef MP4_FILE_FORMAT_SUPPORTED
   620 #if ((!defined __WINS__) || (!defined __WINSCW__)) // AAC supported only in HW
   624 #if ((!defined __WINS__) || (!defined __WINSCW__)) // AAC supported only in HW
   621     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.NEWFILENAME_007"), &NewFileName_007_L));
   625     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.NEWFILENAME_007"), &CCamcTest_9::NewFileName_007_L));
   622 #endif
   626 #endif
   623 #endif
   627 #endif
   624 
   628 
   625     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.OPENFILEL_016"), &OpenFileL_016_L));
   629     suite->addTestL(CTestCaller<CCamcTest_9>::NewL(_L8("CAMC_API.OPENFILEL_016"), &CCamcTest_9::OpenFileL_016_L));
   626    
   630    
       
   631     CleanupStack::Pop( suite );
   627     return suite;
   632     return suite;
   628     }
   633     }
   629 
   634