equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 |
19 |
20 // INCLUDE FILES |
20 // INCLUDE FILES |
21 #include "CamcTest_6.h" |
21 #include "camcTest_6.h" |
22 #include "CamcTest.h" |
22 #include "camcTest.h" |
23 #include <bldvariant.hrh> |
23 #include <bldvariant.hrh> |
24 |
24 |
25 |
25 |
26 |
26 |
27 // EXTERNAL DATA STRUCTURES |
27 // EXTERNAL DATA STRUCTURES |
184 TInt filesize; |
184 TInt filesize; |
185 RFs fsSession; |
185 RFs fsSession; |
186 fsSession.Connect(); |
186 fsSession.Connect(); |
187 TFileName fileName; |
187 TFileName fileName; |
188 AddDriveLetterToPath(_L("recordQCIF.3gp"),fileName); |
188 AddDriveLetterToPath(_L("recordQCIF.3gp"),fileName); |
189 TInt err = file.Open(fsSession,fileName,EFileShareAny); |
189 TInt err; |
|
190 if ( err = file.Open(fsSession,fileName,EFileShareAny) ) |
|
191 { |
|
192 fsSession.Close(); |
|
193 } |
190 assertTIntsEqualL( KErrNone, err ); |
194 assertTIntsEqualL( KErrNone, err ); |
191 |
195 |
192 err = file.Size(filesize); |
196 err = file.Size(filesize); |
193 file.Close(); |
197 file.Close(); |
194 fsSession.Close(); |
198 fsSession.Close(); |
908 |
912 |
909 MTest* CCamcTest_6::suiteL () |
913 MTest* CCamcTest_6::suiteL () |
910 { |
914 { |
911 // Always use NewL (Do not use NewLC) !!! |
915 // Always use NewL (Do not use NewLC) !!! |
912 CTestSuite *suite = CTestSuite::NewL(_L8("CCamcTest_6")); |
916 CTestSuite *suite = CTestSuite::NewL(_L8("CCamcTest_6")); |
|
917 CleanupStack::PushL( suite ); |
913 |
918 |
914 suite->addTestL(CTestCaller<CCamcTest_6>::NewL(_L8("CAMC_API.PAUSEL_003"), &PauseL_003_L)); |
919 suite->addTestL(CTestCaller<CCamcTest_6>::NewL(_L8("CAMC_API.PAUSEL_003"), &PauseL_003_L)); |
915 |
920 |
916 suite->addTestL(CTestCaller<CCamcTest_6>::NewL(_L8("CAMC_API.SETVIDEOFRAMESIZEL_005"), &SetVideoFrameSizeL_005_L)); |
921 suite->addTestL(CTestCaller<CCamcTest_6>::NewL(_L8("CAMC_API.SETVIDEOFRAMESIZEL_005"), &SetVideoFrameSizeL_005_L)); |
917 |
922 |
982 |
987 |
983 suite->addTestL(CTestCaller<CCamcTest_6>::NewL(_L8("CAMC_API.DURATIONL_001"), &DurationL_001_L)); |
988 suite->addTestL(CTestCaller<CCamcTest_6>::NewL(_L8("CAMC_API.DURATIONL_001"), &DurationL_001_L)); |
984 suite->addTestL(CTestCaller<CCamcTest_6>::NewL(_L8("CAMC_API.DURATIONL_002"), &DurationL_002_L)); |
989 suite->addTestL(CTestCaller<CCamcTest_6>::NewL(_L8("CAMC_API.DURATIONL_002"), &DurationL_002_L)); |
985 suite->addTestL(CTestCaller<CCamcTest_6>::NewL(_L8("CAMC_API.DURATIONL_003"), &DurationL_003_L)); |
990 suite->addTestL(CTestCaller<CCamcTest_6>::NewL(_L8("CAMC_API.DURATIONL_003"), &DurationL_003_L)); |
986 |
991 |
|
992 CleanupStack::Pop( suite ); |
987 return suite; |
993 return suite; |
988 } |
994 } |
989 |
995 |