701 private: // Friend classes |
701 private: // Friend classes |
702 // None |
702 // None |
703 |
703 |
704 }; |
704 }; |
705 |
705 |
706 |
706 // DESCRIPTION |
|
707 // CTestCasesList is a class, which contains list of test cases assosiated with |
|
708 // specified config file. |
|
709 NONSHARABLE_CLASS( CTestCasesList ): public CBase |
|
710 { |
|
711 public: |
|
712 /** |
|
713 * NewL is first phase of two-phased constructor. |
|
714 */ |
|
715 static CTestCasesList* NewL( const TDesC& aConfigFileName ); |
|
716 public: |
|
717 /** |
|
718 * Destructor of CTestServer. |
|
719 */ |
|
720 ~CTestCasesList(); |
|
721 |
|
722 /** |
|
723 * Appends test case. |
|
724 */ |
|
725 void AppendTestCaseL( const TDesC& aTestCaseTitle ); |
|
726 |
|
727 /** |
|
728 * Returns specified test case title. |
|
729 */ |
|
730 const TDesC& GetTestCaseTitleL( TInt aIndex ) const; |
|
731 |
|
732 /** |
|
733 * Returns config file name. |
|
734 */ |
|
735 const TDesC& GetConfigFileName() const; |
|
736 |
|
737 /** |
|
738 * Returns count of test cases. |
|
739 */ |
|
740 TInt Count() const; |
|
741 |
|
742 /** |
|
743 * Resets list of test cases. |
|
744 */ |
|
745 void ResetAndDestroy(); |
|
746 private: |
|
747 /** |
|
748 * C++ default constructor. |
|
749 */ |
|
750 CTestCasesList(); |
|
751 |
|
752 /** |
|
753 * By default Symbian OS constructor is private. |
|
754 */ |
|
755 void ConstructL( const TDesC& aConfigFileName ); |
|
756 private: |
|
757 // Config file name |
|
758 HBufC* iConfigFileName; |
|
759 // List of test cases |
|
760 RPointerArray<HBufC> iTestCases; |
|
761 }; |
|
762 |
|
763 |
707 // DESCRIPTION |
764 // DESCRIPTION |
708 // CTestModule is a session class. |
765 // CTestModule is a session class. |
709 // Session for the CTestServer server, to a single client-side session |
766 // Session for the CTestServer server, to a single client-side session |
710 // a session may own any number of CCounter objects |
767 // a session may own any number of CCounter objects |
711 class CTestModule |
768 class CTestModule |
842 void PanicClient( TInt aPanic, const RMessage2& aMessage ) const; |
899 void PanicClient( TInt aPanic, const RMessage2& aMessage ) const; |
843 |
900 |
844 /** |
901 /** |
845 * Get title of currently running test case |
902 * Get title of currently running test case |
846 */ |
903 */ |
847 void GetTestCaseTitleL(TInt aTestCaseNumber, TDes& aTestCaseTitle); |
904 void GetTestCaseTitleL(TInt aTestCaseNumber, const TDesC& aConfigFile, TDes& aTestCaseTitle); |
848 |
905 |
849 /** |
906 /** |
850 * Get pointer to test server |
907 * Get pointer to test server |
851 */ |
908 */ |
852 CTestServer* GetTestServer(); |
909 CTestServer* GetTestServer(); |
899 |
956 |
900 RMessage2 iErrorMessage; // Error message |
957 RMessage2 iErrorMessage; // Error message |
901 |
958 |
902 TBool iErrorMessageAvailable; // Error message available? |
959 TBool iErrorMessageAvailable; // Error message available? |
903 |
960 |
904 RPointerArray<TDesC> iTestCaseTitles; //Test case titles |
961 RPointerArray<CTestCasesList> iTestCaseTitlesMap; //Test case titles |
905 |
962 |
906 public: // Friend classes |
963 public: // Friend classes |
907 // None |
964 // None |
908 |
965 |
909 protected: // Friend classes |
966 protected: // Friend classes |