1179 CallbackRecord(TCallbackRecord::Empty()). |
1179 CallbackRecord(TCallbackRecord::Empty()). |
1180 PostTransferResult(KErrUnknown); |
1180 PostTransferResult(KErrUnknown); |
1181 |
1181 |
1182 CLinkChannelTest testChannelLinking = CLinkChannelTest(_L("DMA Channel Linking and Unlinking Negative Test"), 1, transferArgs, noTransferExpected); |
1182 CLinkChannelTest testChannelLinking = CLinkChannelTest(_L("DMA Channel Linking and Unlinking Negative Test"), 1, transferArgs, noTransferExpected); |
1183 TTestCase testCaseChannelLinking(&testChannelLinking , EFalse, capAboveV1,LinkingNotWanted); |
1183 TTestCase testCaseChannelLinking(&testChannelLinking , EFalse, capAboveV1,LinkingNotWanted); |
|
1184 } |
|
1185 |
|
1186 //-------------------------------------------------------------------------------------------- |
|
1187 //! TestCaseID KBASE-DMA-2574 |
|
1188 //! TestType CIT |
|
1189 //! PREQ REQ |
|
1190 //! TestCaseDesc This test verifies that the DMA Element Counting APIs can be called. The calls |
|
1191 //! to these functions are meant to be used to meet a code coverage requirement.These APIs |
|
1192 //! are not yet supported so the functionality of the APIs are not currently tested. |
|
1193 //! |
|
1194 //! TestActions |
|
1195 //! 1. Open a DMA channel for a transfer. |
|
1196 //! 2. Make calls to Element Counting APIs |
|
1197 //! 3. Close DMA channel. |
|
1198 //! |
|
1199 //! |
|
1200 //! TestExpectedResults 1. DMA channel opens and KErrNone returned. |
|
1201 //! 2. Element Counting APIs are called without crashing the framework |
|
1202 //! 3. DMA channel closes and KErrNone returned. |
|
1203 //! |
|
1204 //! TestPriority High |
|
1205 //! TestStatus Implemented |
|
1206 //---------------------------------------------------------------------------------------------- |
|
1207 namespace ElementCountingTest |
|
1208 { |
|
1209 const TInt srcAddr = 0; |
|
1210 const TInt desAddr = 2 * KMega; |
|
1211 const TInt transferSize = 1 * KMega; |
|
1212 |
|
1213 TDmaTransferArgs transferArgs(srcAddr, desAddr, transferSize, KDmaMemAddr); |
|
1214 |
|
1215 const TResultSet expectedResults(threadCallback); |
|
1216 CElementCountingTest testElementCounting(_L("DMA Element Counting Test"), 1, transferArgs, expectedResults); |
|
1217 TTestCase testCaseElementCounting(&testElementCounting, EFalse, capAboveV1); |
1184 } |
1218 } |
1185 |
1219 |
1186 static TTestCase* StaticSimpleTestArray[] = { |
1220 static TTestCase* StaticSimpleTestArray[] = { |
1187 &Simple_1::testCase, |
1221 &Simple_1::testCase, |
1188 &Simple_1::testCaseConcurrent, |
1222 &Simple_1::testCaseConcurrent, |
1339 &PauseResumeApiTest::testCasePauseResume, |
1373 &PauseResumeApiTest::testCasePauseResume, |
1340 &PauseResumeApiNegTest::testCasePauseResumeNeg, |
1374 &PauseResumeApiNegTest::testCasePauseResumeNeg, |
1341 &CancelAllTest::testCase, |
1375 &CancelAllTest::testCase, |
1342 &IsQueueEmptyTest::testCase, |
1376 &IsQueueEmptyTest::testCase, |
1343 &ChannelLinkingTest::testCaseChannelLinking, |
1377 &ChannelLinkingTest::testCaseChannelLinking, |
|
1378 &ElementCountingTest::testCaseElementCounting, |
1344 }; |
1379 }; |
1345 |
1380 |
1346 RPointerArray<TTestCase> TestArray(StaticTestArray, ARRAY_LENGTH(StaticTestArray)); |
1381 RPointerArray<TTestCase> TestArray(StaticTestArray, ARRAY_LENGTH(StaticTestArray)); |
1347 RPointerArray<TTestCase> TestArrayIsrAndDfc(StaticIsrAndDfcTestArray, ARRAY_LENGTH(StaticIsrAndDfcTestArray)); |
1382 RPointerArray<TTestCase> TestArrayIsrAndDfc(StaticIsrAndDfcTestArray, ARRAY_LENGTH(StaticIsrAndDfcTestArray)); |
1348 RPointerArray<TTestCase> TestArraySimple(StaticSimpleTestArray, ARRAY_LENGTH(StaticSimpleTestArray)); |
1383 RPointerArray<TTestCase> TestArraySimple(StaticSimpleTestArray, ARRAY_LENGTH(StaticSimpleTestArray)); |