595 void DoCalibrationTransfer(TUint64 &atime); |
595 void DoCalibrationTransfer(TUint64 &atime); |
596 TInt QueueAsyncRequest(TRequestStatus &aRequestState,TUint64 &atime); |
596 TInt QueueAsyncRequest(TRequestStatus &aRequestState,TUint64 &atime); |
597 }; |
597 }; |
598 |
598 |
599 /** |
599 /** |
|
600 Used for testing Pause and Resume ( Negative Testing) |
|
601 |
|
602 Extends CSingle transfer by adding the capability to test |
|
603 Pause & Resume() API. Expects that Pause and Resume is not supported |
|
604 */ |
|
605 class CPauseResumeNegTest : public CSingleTransferTest |
|
606 { |
|
607 public: |
|
608 CPauseResumeNegTest(const TDesC& aName, TInt aIterations, const TDmaTransferArgs& aArgs, const TResultSet& aExpected) |
|
609 :CSingleTransferTest(aName, aIterations, aArgs, aExpected) |
|
610 {} |
|
611 |
|
612 ~CPauseResumeNegTest(); |
|
613 |
|
614 virtual void RunTest(); |
|
615 virtual void PrintTestType() const; |
|
616 |
|
617 virtual CTest* Clone() const {return new CPauseResumeNegTest(*this);} |
|
618 |
|
619 // The methods below is a setters ie. The Named Parameter Idiom |
|
620 // @see http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.18 |
|
621 inline CPauseResumeNegTest& UseNewDmaApi(TBool aFlag) {CSingleTransferTest::UseNewDmaApi(aFlag); return *this;} |
|
622 }; |
|
623 |
|
624 /** |
|
625 Used for testing Linking of DMA Channels ( Negative Testing) |
|
626 |
|
627 Extends CSingle transfer by adding the capability to test DMA channel linking |
|
628 Expects that channel linking is not supported |
|
629 */ |
|
630 class CLinkChannelTest : public CSingleTransferTest |
|
631 { |
|
632 public: |
|
633 CLinkChannelTest(const TDesC& aName, TInt aIterations, const TDmaTransferArgs& aArgs, const TResultSet& aExpected) |
|
634 :CSingleTransferTest(aName, aIterations, aArgs, aExpected) |
|
635 {} |
|
636 |
|
637 ~CLinkChannelTest(); |
|
638 |
|
639 virtual void RunTest(); |
|
640 virtual void PrintTestType() const; |
|
641 |
|
642 virtual CTest* Clone() const {return new CLinkChannelTest(*this);} |
|
643 |
|
644 // The methods below is a setters ie. The Named Parameter Idiom |
|
645 // @see http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.18 |
|
646 inline CLinkChannelTest& UseNewDmaApi(TBool aFlag) {CSingleTransferTest::UseNewDmaApi(aFlag); return *this;} |
|
647 }; |
|
648 |
|
649 |
|
650 /** |
600 This class will be used for tests which benchmark certain DMA operations |
651 This class will be used for tests which benchmark certain DMA operations |
601 */ |
652 */ |
602 class CDmaBenchmark : public CSingleTransferTest |
653 class CDmaBenchmark : public CSingleTransferTest |
603 { |
654 { |
604 public: |
655 public: |