|
1 /* |
|
2 * Copyright (c) 2005-2009 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 the License "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 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 /** |
|
24 @file |
|
25 */ |
|
26 |
|
27 |
|
28 #include <e32test.h> |
|
29 #include <hash.h> |
|
30 #include <f32file.h> |
|
31 |
|
32 //TBool gMD2Test=ETrue; |
|
33 //TBool gMD5Test=ETrue; |
|
34 //TBool gSHATest=ETrue; |
|
35 //TBool gSHA1Test=ETrue; |
|
36 //TBool gHMACTest=ETrue; |
|
37 //TBool gErrorTest=ETrue; |
|
38 //TBool gPerformanceTest=ETrue; |
|
39 //TBool gVectorTest=ETrue; |
|
40 //TBool gLogging=ETrue; |
|
41 //TBool gFunctionalityTest=ETrue; |
|
42 //TBool gBugs=ETrue; |
|
43 //TBool gFixed=ETrue; |
|
44 //TBool gUnfixed=EFalse; |
|
45 |
|
46 |
|
47 class CTestData:public CBase |
|
48 |
|
49 { |
|
50 public: |
|
51 static CTestData* NewL(const TDesC& aFilename); |
|
52 enum TType { EMessage, EData, EFinished,EFileName,EError=-1 } ; |
|
53 TType Type(void); |
|
54 HBufC* Message(void); |
|
55 HBufC8* operator [] (TInt aIndex); |
|
56 ~CTestData(void); |
|
57 private: |
|
58 CTestData(void); |
|
59 TInt iCurrentPlace; |
|
60 void ConstructL(const TDesC& aFilename); |
|
61 HBufC8* iLine; |
|
62 HBufC8* iFile; |
|
63 }; |
|
64 |
|
65 |
|
66 class CTestConsole:public CConsoleBase |
|
67 |
|
68 { |
|
69 public: |
|
70 static CTestConsole* NewL(CConsoleBase* aCon); |
|
71 TInt Create(const TDesC16& aTitle,TSize aSize) {return iCon->Create(aTitle,aSize);}; |
|
72 void Read(TRequestStatus& aStatus) {iCon->Read(aStatus);}; |
|
73 void ReadCancel(void) {iCon->ReadCancel();}; |
|
74 void Write(const TDesC16& aString); |
|
75 TPoint CursorPos(void) const {return iCon->CursorPos();}; |
|
76 void SetCursorPosAbs(const TPoint& aPos) {iCon->SetCursorPosAbs(aPos);}; |
|
77 void SetCursorPosRel(const TPoint& aPos) {iCon->SetCursorPosRel(aPos);}; |
|
78 void SetCursorHeight(TInt aHeight) {iCon->SetCursorHeight(aHeight);}; |
|
79 void SetTitle(const TDesC16& aTitle) {iCon->SetTitle(aTitle);}; |
|
80 void ClearScreen(void) {iCon->ClearScreen();}; |
|
81 void ClearToEndOfLine(void) {iCon->ClearToEndOfLine();}; |
|
82 TSize ScreenSize(void) const {return iCon->ScreenSize();}; |
|
83 TKeyCode KeyCode(void) const {return iCon->KeyCode();}; |
|
84 TUint KeyModifiers(void) const {return iCon->KeyModifiers();}; |
|
85 ~CTestConsole(void); |
|
86 void SetLogFile(RFile* aFile); |
|
87 private: |
|
88 CTestConsole(void); |
|
89 CConsoleBase* iCon; |
|
90 RFile* iFile; |
|
91 }; |