graphicstest/graphicstestharness/inc/ttmsgraphicsstep1.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17 @file
       
    18 @test
       
    19 @internalComponent
       
    20 */
       
    21 
       
    22 #ifndef TTMSGRAPHICSSTEP_
       
    23 #define TTMSGRAPHICSSTEP_
       
    24 
       
    25 #include <test/testexecutestepbase.h>
       
    26 #include <w32std.h>
       
    27 #include <flogger.h>
       
    28 #include <badesca.h> 
       
    29 
       
    30 // default name that a test will be called if not specifically set in the calling object
       
    31 _LIT(KUnknownSYMTestCaseIDName, "@SYMTestCaseID Unnamed test");
       
    32 _LIT(KUndefinedSYMTestCaseIDName, "@SYMTestCaseID is not defined");
       
    33 _LIT(KNotATestSYMTestCaseIDName, "This is not a test");
       
    34 
       
    35 class CTMSDataColumn
       
    36 {
       
    37 public:
       
    38 TBuf8<256> iTheID;
       
    39 TBuf8<50> iTheResult;
       
    40 };
       
    41 
       
    42 class CTTMSGraphicsStep : public CTestStep
       
    43 	{
       
    44 public:
       
    45 	IMPORT_C CTTMSGraphicsStep();
       
    46 	IMPORT_C virtual ~CTTMSGraphicsStep();
       
    47 	IMPORT_C void CloseTMSGraphicsStep();
       
    48 	IMPORT_C void MQCTest(TBool aCondition, const TText8* aFile, TInt aLine);
       
    49 	IMPORT_C void MQCTestL(TBool aCondition, const TText8* aFile, TInt aLine);
       
    50 	IMPORT_C void SetTestStepID(const TDesC& aStepName);
       
    51 	IMPORT_C void SetOverallTestStepID(const TDesC& aStepName);
       
    52 	IMPORT_C void RecordTestResultL();
       
    53 	IMPORT_C void MultipleResultsForSameID(TBool aShowMultipleResults);
       
    54 	IMPORT_C void MQCTestWithErrorCode(TBool aCondition, TInt aErrorCode, const TText8* aFile, TInt aLine);
       
    55 	
       
    56 	void DebugLogL(const TDesC8 &aText, const TDesC8 &aText1);
       
    57 protected:
       
    58 	void CleanUpAndWriteResults();
       
    59 	TBuf8<KMaxTestExecuteNameLength> iCurrentTestStepName;
       
    60 	TBool iStepPassFail;
       
    61 	TBool iShowMultipleResults;
       
    62 	RArray<CTMSDataColumn> iArrayTMSData;
       
    63 	};
       
    64 
       
    65 #endif /*TTMSGRAPHICSSTEP_*/