|
1 /* |
|
2 * Copyright (c) 1998-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 * CValidateTest class implementation |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file |
|
24 @internalTechnology |
|
25 */ |
|
26 |
|
27 #ifndef __TWTLSCERTVAL_H |
|
28 #define __TWTLSCERTVAL_H |
|
29 |
|
30 #include "tcertutils.h" |
|
31 #include "t_testaction.h" |
|
32 |
|
33 class CValidateTest : public CTestAction |
|
34 { |
|
35 public: |
|
36 static CTestAction* NewL(RFs& aFs, CConsoleBase& aConsole, |
|
37 Output& aOut, const TTestActionSpec& aTestActionSpec); |
|
38 static CTestAction* NewLC(RFs& aFs, CConsoleBase& aConsole, |
|
39 Output& aOut, const TTestActionSpec& aTestActionSpec); |
|
40 void TestValidation(TRequestStatus& aStatus); |
|
41 ~CValidateTest(); |
|
42 |
|
43 public: |
|
44 virtual void DoPerformPrerequisite(TRequestStatus& aStatus); |
|
45 virtual void DoPerformPostrequisite(TRequestStatus& aStatus); |
|
46 virtual void PerformAction(TRequestStatus& aStatus); |
|
47 |
|
48 virtual void DoReportAction(); |
|
49 virtual void DoCheckResult(TInt aError); |
|
50 |
|
51 private: |
|
52 CValidateTest(RFs& aFs, CConsoleBase& aConsole, Output& aOut); |
|
53 void ConstructL(const TTestActionSpec& aTestActionSpec); |
|
54 TUint8 ConvertByteA2H(TUint8 aInput); |
|
55 |
|
56 private: |
|
57 |
|
58 private: |
|
59 RFs& iFs; |
|
60 TBuf<128> iFilename; |
|
61 TBuf8<20> iResultKeyID; // expected result |
|
62 TBool iValid; |
|
63 }; |
|
64 |
|
65 #endif |