graphicstest/graphicstestharness/inc/TGraphicsHarness.h
changeset 116 171fae344dd4
parent 0 5d03bc08d59c
child 164 25ffed67c7ef
equal deleted inserted replaced
103:2717213c588a 116:171fae344dd4
   120 	} \
   120 	} \
   121 	 \
   121 	 \
   122 CTGraphicsBase* CT##a##Step::CreateTestL() \
   122 CTGraphicsBase* CT##a##Step::CreateTestL() \
   123 	{ \
   123 	{ \
   124 	return new (ELeave) CT##a (this); \
   124 	return new (ELeave) CT##a (this); \
   125 	} 
   125 	}
       
   126 
       
   127 // Macros to automatically test error condition and report when test fails.
       
   128 // Essentially same as TESTE(a,b) MACRO that CTestStep uses, except error to
       
   129 // check is also error that is reported.
       
   130 #define TESTNOERROR(a) \
       
   131 	{\
       
   132 	TInt b = a;\
       
   133 	TBool c = (b == KErrNone);\
       
   134 	testBooleanTrueWithErrorCode((c), (b), (TText8*)__FILE__, __LINE__);\
       
   135 	}
   126 	
   136 	
   127 inline void CTGraphicsBase::testBooleanTrue(TBool aCondition, const TText8* aFile, TInt aLine) 
   137 inline void CTGraphicsBase::testBooleanTrue(TBool aCondition, const TText8* aFile, TInt aLine) 
   128 	{
   138 	{
   129 	((CTGraphicsStep*)iStep)->MQCTest(aCondition, aFile, aLine);
   139 	((CTGraphicsStep*)iStep)->MQCTest(aCondition, aFile, aLine);
   130 	}
   140 	}