sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
|
sl@0
|
19 |
|
sl@0
|
20 |
|
sl@0
|
21 |
/**
|
sl@0
|
22 |
@file
|
sl@0
|
23 |
*/
|
sl@0
|
24 |
|
sl@0
|
25 |
|
sl@0
|
26 |
#include <e32test.h>
|
sl@0
|
27 |
#include <hash.h>
|
sl@0
|
28 |
#include <f32file.h>
|
sl@0
|
29 |
|
sl@0
|
30 |
//TBool gMD2Test=ETrue;
|
sl@0
|
31 |
//TBool gMD5Test=ETrue;
|
sl@0
|
32 |
//TBool gSHATest=ETrue;
|
sl@0
|
33 |
//TBool gSHA1Test=ETrue;
|
sl@0
|
34 |
//TBool gHMACTest=ETrue;
|
sl@0
|
35 |
//TBool gErrorTest=ETrue;
|
sl@0
|
36 |
//TBool gPerformanceTest=ETrue;
|
sl@0
|
37 |
//TBool gVectorTest=ETrue;
|
sl@0
|
38 |
//TBool gLogging=ETrue;
|
sl@0
|
39 |
//TBool gFunctionalityTest=ETrue;
|
sl@0
|
40 |
//TBool gBugs=ETrue;
|
sl@0
|
41 |
//TBool gFixed=ETrue;
|
sl@0
|
42 |
//TBool gUnfixed=EFalse;
|
sl@0
|
43 |
|
sl@0
|
44 |
|
sl@0
|
45 |
class CTestData:public CBase
|
sl@0
|
46 |
|
sl@0
|
47 |
{
|
sl@0
|
48 |
public:
|
sl@0
|
49 |
static CTestData* NewL(const TDesC& aFilename);
|
sl@0
|
50 |
enum TType { EMessage, EData, EFinished,EFileName,EError=-1 } ;
|
sl@0
|
51 |
TType Type(void);
|
sl@0
|
52 |
HBufC* Message(void);
|
sl@0
|
53 |
HBufC8* operator [] (TInt aIndex);
|
sl@0
|
54 |
~CTestData(void);
|
sl@0
|
55 |
private:
|
sl@0
|
56 |
CTestData(void);
|
sl@0
|
57 |
TInt iCurrentPlace;
|
sl@0
|
58 |
void ConstructL(const TDesC& aFilename);
|
sl@0
|
59 |
HBufC8* iLine;
|
sl@0
|
60 |
HBufC8* iFile;
|
sl@0
|
61 |
};
|
sl@0
|
62 |
|
sl@0
|
63 |
|
sl@0
|
64 |
class CTestConsole:public CConsoleBase
|
sl@0
|
65 |
|
sl@0
|
66 |
{
|
sl@0
|
67 |
public:
|
sl@0
|
68 |
static CTestConsole* NewL(CConsoleBase* aCon);
|
sl@0
|
69 |
TInt Create(const TDesC16& aTitle,TSize aSize) {return iCon->Create(aTitle,aSize);};
|
sl@0
|
70 |
void Read(TRequestStatus& aStatus) {iCon->Read(aStatus);};
|
sl@0
|
71 |
void ReadCancel(void) {iCon->ReadCancel();};
|
sl@0
|
72 |
void Write(const TDesC16& aString);
|
sl@0
|
73 |
TPoint CursorPos(void) const {return iCon->CursorPos();};
|
sl@0
|
74 |
void SetCursorPosAbs(const TPoint& aPos) {iCon->SetCursorPosAbs(aPos);};
|
sl@0
|
75 |
void SetCursorPosRel(const TPoint& aPos) {iCon->SetCursorPosRel(aPos);};
|
sl@0
|
76 |
void SetCursorHeight(TInt aHeight) {iCon->SetCursorHeight(aHeight);};
|
sl@0
|
77 |
void SetTitle(const TDesC16& aTitle) {iCon->SetTitle(aTitle);};
|
sl@0
|
78 |
void ClearScreen(void) {iCon->ClearScreen();};
|
sl@0
|
79 |
void ClearToEndOfLine(void) {iCon->ClearToEndOfLine();};
|
sl@0
|
80 |
TSize ScreenSize(void) const {return iCon->ScreenSize();};
|
sl@0
|
81 |
TKeyCode KeyCode(void) const {return iCon->KeyCode();};
|
sl@0
|
82 |
TUint KeyModifiers(void) const {return iCon->KeyModifiers();};
|
sl@0
|
83 |
~CTestConsole(void);
|
sl@0
|
84 |
void SetLogFile(RFile* aFile);
|
sl@0
|
85 |
private:
|
sl@0
|
86 |
CTestConsole(void);
|
sl@0
|
87 |
CConsoleBase* iCon;
|
sl@0
|
88 |
RFile* iFile;
|
sl@0
|
89 |
};
|
sl@0
|
90 |
|