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