53
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
* @file
|
|
16 |
* @internalComponent
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
|
|
20 |
#ifndef TINTERPRETER_H_
|
|
21 |
#define TINTERPRETER_H_
|
|
22 |
|
|
23 |
#include <e32cmn.h>
|
|
24 |
#include <test/testexecutestepbase.h>
|
|
25 |
|
|
26 |
class CTInterpreterStep : public CTestStep
|
|
27 |
{
|
|
28 |
public:
|
|
29 |
CTInterpreterStep(){};
|
|
30 |
void print(const TDesC& aBuf, const TText8* text, int line);
|
|
31 |
void testpoint(TBool aCondition, const TText8* text, int line );
|
|
32 |
protected:
|
|
33 |
TVerdict doTestStepL();
|
|
34 |
};
|
|
35 |
|
|
36 |
inline void CTInterpreterStep::print(const TDesC& aBuf, const TText8* text, int line)
|
|
37 |
{
|
|
38 |
Logger().LogExtra((text), line, ESevrInfo, (aBuf));
|
|
39 |
}
|
|
40 |
|
|
41 |
|
|
42 |
inline void CTInterpreterStep::testpoint(TBool aCondition, const TText8* text, int line )
|
|
43 |
{
|
|
44 |
testBooleanTrue((aCondition), text, line);
|
|
45 |
}
|
|
46 |
|
|
47 |
_LIT(KTestStep_T_Interpreter, "T_Interpreter");
|
|
48 |
|
|
49 |
#endif /* TINTERPRETER_H_ */
|