619 // The methods below is a setters ie. The Named Parameter Idiom |
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 |
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;} |
621 inline CPauseResumeNegTest& UseNewDmaApi(TBool aFlag) {CSingleTransferTest::UseNewDmaApi(aFlag); return *this;} |
622 }; |
622 }; |
623 |
623 |
|
624 |
|
625 /** |
|
626 Used for testing element counting |
|
627 |
|
628 Extends CSingle transfer by adding the capability to test |
|
629 Element Counting APIs |
|
630 */ |
|
631 class CElementCountingTest : public CSingleTransferTest |
|
632 { |
|
633 public: |
|
634 CElementCountingTest(const TDesC& aName, TInt aIterations, const TDmaTransferArgs& aArgs, const TResultSet& aExpected) |
|
635 :CSingleTransferTest(aName, aIterations, aArgs, aExpected) |
|
636 {} |
|
637 |
|
638 ~CElementCountingTest(); |
|
639 |
|
640 virtual void RunTest(); |
|
641 virtual void PrintTestType() const; |
|
642 |
|
643 virtual CTest* Clone() const {return new CElementCountingTest(*this);} |
|
644 |
|
645 // The methods below is a setters ie. The Named Parameter Idiom |
|
646 // @see http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.18 |
|
647 inline CElementCountingTest& UseNewDmaApi(TBool aFlag) {CSingleTransferTest::UseNewDmaApi(aFlag); return *this;} |
|
648 }; |
|
649 |
|
650 |
624 /** |
651 /** |
625 Used for testing Linking of DMA Channels ( Negative Testing) |
652 Used for testing Linking of DMA Channels ( Negative Testing) |
626 |
653 |
627 Extends CSingle transfer by adding the capability to test DMA channel linking |
654 Extends CSingle transfer by adding the capability to test DMA channel linking |
628 Expects that channel linking is not supported |
655 Expects that channel linking is not supported |