equal
deleted
inserted
replaced
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 } |
|
136 |
126 |
137 inline void CTGraphicsBase::testBooleanTrue(TBool aCondition, const TText8* aFile, TInt aLine) |
127 inline void CTGraphicsBase::testBooleanTrue(TBool aCondition, const TText8* aFile, TInt aLine) |
138 { |
128 { |
139 ((CTGraphicsStep*)iStep)->MQCTest(aCondition, aFile, aLine); |
129 ((CTGraphicsStep*)iStep)->MQCTest(aCondition, aFile, aLine); |
140 } |
130 } |